/u-boot/include/ |
H A D | bootcount.h | 18 * 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 D | bootcount_nvmem.c | 7 * 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 D | Makefile | 3 obj-$(CONFIG_BOOTCOUNT_GENERIC) += bootcount.o 4 obj-$(CONFIG_BOOTCOUNT_MEM) += bootcount.o 12 obj-$(CONFIG_DM_BOOTCOUNT) += bootcount-uclass.o
|
H A D | bootcount-uclass.c | 11 #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 D | bootcount_ext.c | 6 #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 D | bootcount_davinci.c | 6 * A bootcount driver for the RTC IP block found on many TI platforms. 11 #include <bootcount.h> 22 * used for bootcount value.
|
H A D | rtc.c | 7 #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 D | bootcount_dm_i2c.c | 9 #include <bootcount.h> 91 { .compatible = "u-boot,bootcount-i2c" }, 96 .name = "bootcount-i2c",
|
H A D | i2c-eeprom.c | 8 #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 D | bootcount.c | 7 #include <bootcount.h> 58 * struct bootcount_mem_priv - private bootcount mem driver data 132 { .compatible = "u-boot,bootcount" }, 137 .name = "bootcount-mem",
|
H A D | spi-flash.c | 8 #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 D | pmic_pfuze100.c | 7 * 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 D | bootcount_syscon.c | 7 #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 D | bootcount.c | 5 #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 D | Makefile | 36 obj-$(CONFIG_CMD_BOOTCOUNT) += bootcount.o
|
/u-boot/board/BuR/brppt1/ |
H A D | board.c | 13 #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 D | common.c | 23 #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 D | theadorable.c | 15 #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 D | bootcount.c | 8 #include <bootcount.h> 20 ut_assertok(uclass_get_device_by_name(UCLASS_BOOTCOUNT, "bootcount@0",
|
H A D | Makefile | 39 obj-$(CONFIG_DM_BOOTCOUNT) += bootcount.o
|
/u-boot/drivers/ |
H A D | Makefile | 5 obj-$(CONFIG_$(SPL_TPL_)BOOTCOUNT_LIMIT) += bootcount/
|
/u-boot/board/liebherr/display5/ |
H A D | spl.c | 31 #include <bootcount.h>
|
/u-boot/common/ |
H A D | autoboot.c | 25 #include <bootcount.h>
|
/u-boot/common/spl/ |
H A D | spl.c | 43 #include <bootcount.h>
|