]> Git Repo - J-u-boot.git/blobdiff - drivers/bootcount/Kconfig
net: fec: phy: Don't advertise Gbit on (R)MII
[J-u-boot.git] / drivers / bootcount / Kconfig
index 8d6424c9da109c4bb695dfc13b79ecac53b4720b..0080d2a165cb016104386ce574ea67ecd90cfc61 100644 (file)
@@ -6,14 +6,13 @@ menuconfig BOOTCOUNT_LIMIT
        bool "Enable support for checking boot count limit"
        help
          Enable checking for exceeding the boot count limit.
-         More information: http://www.denx.de/wiki/DULG/UBootBootCountLimit
+         More information: https://docs.u-boot.org/en/latest/api/bootcount.html
 
 if BOOTCOUNT_LIMIT
 
 choice
        prompt "Boot count device"
        default BOOTCOUNT_AM33XX if AM33XX || SOC_DA8XX
-       default BOOTCOUNT_AT91 if AT91SAM9XE
        default BOOTCOUNT_GENERIC
 
 config BOOTCOUNT_GENERIC
@@ -25,13 +24,13 @@ config BOOTCOUNT_GENERIC
            Set to the address where the bootcount and bootcount magic
            will be stored.
 
-config BOOTCOUNT_EXT
-       bool "Boot counter on EXT filesystem"
-       depends on FS_EXT4
-       select EXT4_WRITE
+config BOOTCOUNT_FS
+       bool "Boot counter on a filesystem"
        help
-         Add support for maintaining boot count in a file on an EXT
-         filesystem.
+         Add support for maintaining boot count in a file on a filesystem.
+         This requires that you have enabled write support for the filesystem
+         that will be used by the partition that you configure this feature
+         for.
 
 config BOOTCOUNT_AM33XX
        bool "Boot counter in AM33XX RTC IP block"
@@ -79,14 +78,6 @@ config BOOTCOUNT_RAM
          Store the bootcount in DRAM protected against bit errors
          due to short power loss or holding a system in RESET.
 
-config BOOTCOUNT_I2C
-       bool "Boot counter on I2C device"
-       help
-         Enable support for the bootcounter on an i2c (like RTC) device.
-         CONFIG_SYS_I2C_RTC_ADDR = i2c chip address
-         CONFIG_SYS_BOOTCOUNT_ADDR = i2c addr which is used for
-                                     the bootcounter.
-
 config BOOTCOUNT_AT91
        bool "Boot counter for Atmel AT91SAM9XE"
        depends on AT91SAM9XE
@@ -117,6 +108,16 @@ config DM_BOOTCOUNT_RTC
          Accesses to the backing store are performed using the write16
          and read16 ops of DM RTC devices.
 
+config DM_BOOTCOUNT_I2C
+       bool "Driver Model boot counter on I2C device"
+       depends on DM_I2C
+       help
+         Enable support for the bootcounter on a generic i2c device, like a RTC
+         or PMIC. The bootcounter is configured in the device tree using the
+         "u-boot,bootcount-i2c" compatible string. It requires a phandle
+         'i2cbcdev' for the i2c device and an 'offset' property used within the
+         device.
+
 config DM_BOOTCOUNT_I2C_EEPROM
        bool "Support i2c eeprom devices as a backing store for bootcount"
        depends on I2C_EEPROM
@@ -163,6 +164,13 @@ config DM_BOOTCOUNT_SYSCON
 
          Accessing the backend is done using the regmap interface.
 
+config DM_BOOTCOUNT_ZYNQMP
+       bool "Support ZynqMP PMUFW as a backing store for bootcount"
+       depends on ARCH_ZYNQMP
+       help
+         Enable support for the bootcount API by utilising the Persistent
+         Global General Storage Register 2 of the PMU.
+
 endmenu
 
 endif
@@ -175,14 +183,6 @@ config BOOTCOUNT_BOOTLIMIT
          counter being cleared.
          If set to 0, do not set a boot limit in the environment.
 
-config BOOTCOUNT_ALEN
-       int "I2C address length"
-       default 1
-       depends on BOOTCOUNT_I2C
-       help
-         Length of the the I2C address at SYS_BOOTCOUNT_ADDR for storing
-         the boot counter.
-
 config SYS_BOOTCOUNT_SINGLEWORD
        bool "Use single word to pack boot count and magic value"
        depends on BOOTCOUNT_GENERIC
@@ -190,26 +190,26 @@ config SYS_BOOTCOUNT_SINGLEWORD
          This option enables packing boot count magic value and boot count
          into single word (32 bits).
 
-config SYS_BOOTCOUNT_EXT_INTERFACE
-       string "Interface on which to find boot counter EXT filesystem"
+config SYS_BOOTCOUNT_FS_INTERFACE
+       string "Interface on which to find boot counter filesystem"
        default "mmc"
-       depends on BOOTCOUNT_EXT
+       depends on BOOTCOUNT_FS
        help
          Set the interface to use when locating the filesystem to use for the
          boot counter.
 
-config SYS_BOOTCOUNT_EXT_DEVPART
-       string "Partition of the boot counter EXT filesystem"
+config SYS_BOOTCOUNT_FS_DEVPART
+       string "Partition of the boot counter filesystem"
        default "0:1"
-       depends on BOOTCOUNT_EXT
+       depends on BOOTCOUNT_FS
        help
          Set the partition to use when locating the filesystem to use for the
          boot counter.
 
-config SYS_BOOTCOUNT_EXT_NAME
-       string "Path and filename of the EXT filesystem based boot counter"
+config SYS_BOOTCOUNT_FS_NAME
+       string "Path and filename of the FS filesystem based boot counter"
        default "/boot/failures"
-       depends on BOOTCOUNT_EXT
+       depends on BOOTCOUNT_FS
        help
          Set the filename and path of the file used to store the boot counter.
 
@@ -217,22 +217,20 @@ config SYS_BOOTCOUNT_ADDR
        hex "RAM address used for reading and writing the boot counter"
        default 0x44E3E000 if BOOTCOUNT_AM33XX || BOOTCOUNT_AM33XX_NVMEM
        default 0xE0115FF8 if ARCH_LS1043A || ARCH_LS1021A
-       depends on BOOTCOUNT_AM33XX || BOOTCOUNT_GENERIC || BOOTCOUNT_EXT || \
-                  BOOTCOUNT_I2C || BOOTCOUNT_AM33XX_NVMEM
+       depends on BOOTCOUNT_AM33XX || BOOTCOUNT_GENERIC || BOOTCOUNT_FS || \
+                  BOOTCOUNT_AM33XX_NVMEM
        help
          Set the address used for reading and writing the boot counter.
 
 config SYS_BOOTCOUNT_MAGIC
        hex "Magic value for the boot counter"
-       default 0xB001C041 if BOOTCOUNT_GENERIC || BOOTCOUNT_EXT || \
+       default 0xB001C041 if BOOTCOUNT_GENERIC || BOOTCOUNT_FS || \
                              BOOTCOUNT_AM33XX || BOOTCOUNT_ENV || \
-                             BOOTCOUNT_RAM || BOOTCOUNT_I2C || \
-                             BOOTCOUNT_AT91 || DM_BOOTCOUNT
+                             BOOTCOUNT_RAM || BOOTCOUNT_AT91 || DM_BOOTCOUNT
        default 0xB0 if BOOTCOUNT_AM33XX_NVMEM
-       depends on BOOTCOUNT_GENERIC || BOOTCOUNT_EXT || \
+       depends on BOOTCOUNT_GENERIC || BOOTCOUNT_FS || \
                   BOOTCOUNT_AM33XX || BOOTCOUNT_ENV || \
-                  BOOTCOUNT_RAM || BOOTCOUNT_I2C || \
-                  BOOTCOUNT_AT91 || DM_BOOTCOUNT || \
+                  BOOTCOUNT_RAM || BOOTCOUNT_AT91 || DM_BOOTCOUNT || \
                   BOOTCOUNT_AM33XX_NVMEM
        help
          Set the magic value used for the boot counter.
This page took 0.030342 seconds and 4 git commands to generate.