Home
last modified time | relevance | path

Searched refs:bootcount (Results 1 – 19 of 19) sorted by relevance

/openbmc/u-boot/include/
H A Dbootcount.h25 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 DKconfig22 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 Dbootcount-uclass.c11 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 DMakefile3 obj-$(CONFIG_BOOTCOUNT_GENERIC) += bootcount.o
11 obj-$(CONFIG_DM_BOOTCOUNT) += bootcount-uclass.o
/openbmc/u-boot/board/BuR/brppt1/
H A Dboard.c167 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 Dchosen.txt45 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 Dtheadorable.c225 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 Dbootcount.c56 U_BOOT_CMD(bootcount, 2, 1, do_bootcount,
H A DMakefile26 obj-$(CONFIG_CMD_BOOTCOUNT) += bootcount.o
H A DKconfig1384 bool "bootcount"
1387 Enable the bootcount command, which allows interrogation and
/openbmc/u-boot/drivers/
H A DMakefile31 obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/
79 obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
H A DKconfig15 source "drivers/bootcount/Kconfig"
/openbmc/u-boot/arch/arm/dts/
H A Dbitmain-antminer-s9.dts32 bootcount@efffff0 {
/openbmc/qemu/system/
H A Dbootdevice.c104 static int bootcount; in restore_boot_order() local
106 switch (bootcount++) { in restore_boot_order()
/openbmc/u-boot/test/dm/
H A DMakefile19 obj-$(CONFIG_DM_BOOTCOUNT) += bootcount.o
/openbmc/u-boot/arch/sandbox/dts/
H A Dtest.dts326 bootcount@0 {
327 compatible = "u-boot,bootcount-rtc";
/openbmc/u-boot/common/spl/
H A DKconfig85 bool "Support bootcount in SPL"
/openbmc/
H A Dopengrok2.0.log32367 …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 Dopengrok1.0.log32891 …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