Searched refs:bootcount (Results 1 - 24 of 24) sorted by relevance

/u-boot/include/
H A Dbootcount.h18 * get() - get the current bootcount value
20 * Returns the current counter value of the bootcount backing
24 * @bootcount: Address to put the current bootcount value
26 int (*get)(struct udevice *dev, u32 *bootcount);
29 * set() - set a bootcount value (e.g. to reset or increment)
31 * Sets the value in the bootcount backing store.
34 * @bootcount: New bootcount value to store
36 int (*set)(struct udevice *dev, const u32 bootcount);
99 unsigned long bootcount = bootcount_load(); local
116 unsigned long bootcount = bootcount_load(); local
[all...]
/u-boot/drivers/bootcount/
H A Dbootcount_nvmem.c7 * A bootcount driver for the RTC IP block found on many TI platforms.
12 #include <bootcount.h>
17 void bootcount_store(ulong bootcount) argument
27 /* Only update bootcount during upgrade process */
29 bootcount = 0;
31 val = (bootcount & 0x000000ff) |
39 * used for bootcount value.
H A DMakefile3 obj-$(CONFIG_BOOTCOUNT_GENERIC) += bootcount.o
4 obj-$(CONFIG_BOOTCOUNT_MEM) += bootcount.o
12 obj-$(CONFIG_DM_BOOTCOUNT) += bootcount-uclass.o
H A Dbootcount-uclass.c11 #include <bootcount.h>
15 int dm_bootcount_get(struct udevice *dev, u32 *bootcount) argument
22 return ops->get(dev, bootcount);
25 int dm_bootcount_set(struct udevice *dev, const u32 bootcount) argument
32 return ops->set(dev, bootcount);
40 const char *propname = "u-boot,bootcount-device";
44 * If there's a preferred bootcount device selected by the user (by
45 * setting '/chosen/u-boot,bootcount-device' in the DTS), try to use
67 const char *propname = "u-boot,bootcount-device";
72 * If there's a preferred bootcount devic
94 UCLASS_DRIVER(bootcount) = { variable
[all...]
H A Dbootcount_ext.c6 #include <bootcount.h>
16 u8 bootcount; member in struct:__anon1
34 /* Only update bootcount during upgrade process */
41 buf->bootcount = (a & 0xff);
49 puts("Error storing bootcount\n");
67 puts("Error loading bootcount\n");
75 ret = buf->bootcount;
77 puts("Incorrect bootcount file\n");
H A Dbootcount_davinci.c6 * A bootcount driver for the RTC IP block found on many TI platforms.
11 #include <bootcount.h>
22 * used for bootcount value.
H A Drtc.c7 #include <bootcount.h>
47 debug("%s: bootcount magic does not match on %04x\n", __func__, val);
79 { .compatible = "u-boot,bootcount-rtc" },
84 .name = "bootcount-rtc",
H A Dbootcount_dm_i2c.c9 #include <bootcount.h>
91 { .compatible = "u-boot,bootcount-i2c" },
96 .name = "bootcount-i2c",
H A Di2c-eeprom.c8 #include <bootcount.h>
50 debug("%s: bootcount magic does not match on %04x\n", __func__, val);
85 { .compatible = "u-boot,bootcount-i2c-eeprom" },
90 .name = "bootcount-i2c-eeprom",
H A Dbootcount.c7 #include <bootcount.h>
58 * struct bootcount_mem_priv - private bootcount mem driver data
132 { .compatible = "u-boot,bootcount" },
137 .name = "bootcount-mem",
H A Dspi-flash.c8 #include <bootcount.h>
82 debug("%s: bootcount magic does not match on %04x\n", __func__, val);
114 { .compatible = "u-boot,bootcount-spi-flash" },
119 .name = "bootcount-spi-flash",
H A Dpmic_pfuze100.c7 * A bootcount driver using the registers MEMA - MEMD on the PFUZE100.
12 #include <bootcount.h>
150 { .compatible = "u-boot,bootcount-pmic" },
155 .name = "bootcount-pmic",
H A Dbootcount_syscon.c7 #include <bootcount.h>
26 * @reg_addr: register address used to store the bootcount value
27 * @size: size of the bootcount value (2 or 4 bytes)
28 * @magic: magic used to validate/save the bootcount value
30 * @reg_mask: mask used to identify the location of the bootcount value
82 dev_err(dev, "%s: Invalid bootcount magic\n", __func__);
86 debug("%s: Read bootcount value: 0x%08x from regval: 0x%08x\n",
128 "%s: Driver supports only 2 and 4 bytes bootcount size\n",
148 { .compatible = "u-boot,bootcount-syscon" },
153 .name = "bootcount
[all...]
/u-boot/cmd/
H A Dbootcount.c5 #include <bootcount.h>
38 /* drop initial "bootcount" arg */
49 U_BOOT_LONGHELP(bootcount,
53 U_BOOT_CMD(bootcount, 2, 1, do_bootcount,
54 "bootcount",
H A DMakefile36 obj-$(CONFIG_CMD_BOOTCOUNT) += bootcount.o
/u-boot/board/BuR/brppt1/
H A Dboard.c13 #include <bootcount.h>
169 ulong bootcount = 0; local
172 bootcount = bootcount_load() & 0xF;
176 if (rc != 0 || gpio_get_value(REPSWITCH) == 0 || bootcount == 12)
178 else if (bootcount > 0)
186 /* get sure that bootcmd isn't affected by any bootcount value */
/u-boot/board/keymile/common/
H A Dcommon.c23 #include <bootcount.h>
93 ulong bootcount = bootcount_load(); local
100 * and bootcount limit is not exceeded.
104 bootcount <= CONFIG_BOOTCOUNT_BOOTLIMIT) {
114 printf("early bootcount exceeded (%lu)\n",
123 * bootcount limit is never exceeded. Must never happen!
125 WARN_ON(bootcount > CONFIG_BOOTCOUNT_BOOTLIMIT);
/u-boot/board/theadorable/
H A Dtheadorable.c15 #include <bootcount.h>
260 ulong bootcount; local
275 bootcount = bootcount_load();
276 printf("Failed to find PLX PEX-switch (bootcount=%ld)\n",
277 bootcount);
300 if (bootcount > PEX_SWITCH_NOT_FOUNT_LIMIT) {
393 * bootcmd=echo bootcount=$bootcount; pcie ;if test $? -eq 0;
395 * echo PCIe status NOT okay, hanging (bootcount=$bootcount); f
[all...]
/u-boot/test/dm/
H A Dbootcount.c8 #include <bootcount.h>
20 ut_assertok(uclass_get_device_by_name(UCLASS_BOOTCOUNT, "bootcount@0",
H A DMakefile39 obj-$(CONFIG_DM_BOOTCOUNT) += bootcount.o
/u-boot/drivers/
H A DMakefile5 obj-$(CONFIG_$(SPL_TPL_)BOOTCOUNT_LIMIT) += bootcount/
/u-boot/board/liebherr/display5/
H A Dspl.c31 #include <bootcount.h>
/u-boot/common/
H A Dautoboot.c25 #include <bootcount.h>
/u-boot/common/spl/
H A Dspl.c43 #include <bootcount.h>

Completed in 112 milliseconds