/openbmc/u-boot/include/ |
H A D | bootcount.h | 25 int (*get)(struct udevice *dev, u32 *bootcount); 35 int (*set)(struct udevice *dev, const u32 bootcount); 48 int dm_bootcount_get(struct udevice *dev, u32 *bootcount); 57 int dm_bootcount_set(struct udevice *dev, u32 bootcount); 96 unsigned long bootcount = bootcount_load(); in bootcount_error() local 99 if (bootlimit && bootcount > bootlimit) { in bootcount_error() 113 unsigned long bootcount = bootcount_load(); in bootcount_inc() local 116 bootcount_store(++bootcount); in bootcount_inc() 123 bootcount_store(++bootcount); in bootcount_inc() 125 env_set_ulong("bootcount", bootcount); in bootcount_inc()
|
/openbmc/u-boot/drivers/bootcount/ |
H A D | Kconfig | 22 Generic bootcount stored at SYS_BOOTCOUNT_ADDR. 25 Set to the address where the bootcount and bootcount magic 47 "bootcount" is stored in the environment. To prevent a 50 0, "bootcount" is always 0, if "upgrade_available" is 51 1 "bootcount" is incremented in the environment. 53 and "bootcount" variable to 0, if a boot was successfully. 76 Enables reading/writing the bootcount in a device-model based 79 the first available bootcount device will be used. 85 menu "Backing stores for device-model backed bootcount" 87 bool "Support RTC devices as a backing store for bootcount" [all …]
|
H A D | bootcount-uclass.c | 11 int dm_bootcount_get(struct udevice *dev, u32 *bootcount) in dm_bootcount_get() argument 18 return ops->get(dev, bootcount); in dm_bootcount_get() 21 int dm_bootcount_set(struct udevice *dev, const u32 bootcount) in dm_bootcount_set() argument 28 return ops->set(dev, bootcount); in dm_bootcount_set() 90 UCLASS_DRIVER(bootcount) = {
|
H A D | Makefile | 3 obj-$(CONFIG_BOOTCOUNT_GENERIC) += bootcount.o 11 obj-$(CONFIG_DM_BOOTCOUNT) += bootcount-uclass.o
|
/openbmc/u-boot/board/BuR/brppt1/ |
H A D | board.c | 167 ulong bootcount = 0; in board_late_init() local 170 bootcount = bootcount_load() & 0xF; in board_late_init() 174 if (rc != 0 || gpio_get_value(REPSWITCH) == 0 || bootcount == 12) in board_late_init() 176 else if (bootcount > 0) in board_late_init()
|
/openbmc/u-boot/doc/device-tree-bindings/ |
H A D | chosen.txt | 45 u-boot,bootcount-device property 48 In a DM-based system, the bootcount may be stored in a device known to 52 u-boot,bootcount-device property can select the preferred target. 58 u-boot,bootcount-device = &bootcount-rv3029; 61 bootcount-rv3029: bootcount@0 { 62 compatible = "u-boot,bootcount-rtc";
|
/openbmc/u-boot/board/theadorable/ |
H A D | theadorable.c | 225 ulong bootcount; in board_late_init() local 239 bootcount = bootcount_load(); in board_late_init() 241 bootcount); in board_late_init() 242 if (bootcount > PEX_SWITCH_NOT_FOUNT_LIMIT) { in board_late_init()
|
/openbmc/u-boot/cmd/ |
H A D | bootcount.c | 56 U_BOOT_CMD(bootcount, 2, 1, do_bootcount,
|
H A D | Makefile | 26 obj-$(CONFIG_CMD_BOOTCOUNT) += bootcount.o
|
H A D | Kconfig | 1384 bool "bootcount" 1387 Enable the bootcount command, which allows interrogation and
|
/openbmc/u-boot/drivers/ |
H A D | Makefile | 31 obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/ 79 obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
|
H A D | Kconfig | 15 source "drivers/bootcount/Kconfig"
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | bitmain-antminer-s9.dts | 32 bootcount@efffff0 {
|
/openbmc/qemu/system/ |
H A D | bootdevice.c | 104 static int bootcount; in restore_boot_order() local 106 switch (bootcount++) { in restore_boot_order()
|
/openbmc/u-boot/test/dm/ |
H A D | Makefile | 19 obj-$(CONFIG_DM_BOOTCOUNT) += bootcount.o
|
/openbmc/u-boot/arch/sandbox/dts/ |
H A D | test.dts | 326 bootcount@0 { 327 compatible = "u-boot,bootcount-rtc";
|
/openbmc/u-boot/common/spl/ |
H A D | Kconfig | 85 bool "Support bootcount in SPL"
|
/openbmc/ |
H A D | opengrok2.0.log | 32367 …lelessChildren: not file-less due to: /opengrok/data/xref/openbmc/u-boot/drivers/bootcount/rtc.c.gz 32368 …FilelessChildren: its children prevent delete: /opengrok/data/xref/openbmc/u-boot/drivers/bootcount
|
H A D | opengrok1.0.log | 32891 …lelessChildren: not file-less due to: /opengrok/data/xref/openbmc/u-boot/drivers/bootcount/rtc.c.gz 32892 …FilelessChildren: its children prevent delete: /opengrok/data/xref/openbmc/u-boot/drivers/bootcount
|