]> git.sur5r.net Git - u-boot/commitdiff
Migrate CONFIG_BOOTCOUNT_ALEN to Kconfig
authorAlex Kiernan <alex.kiernan@gmail.com>
Fri, 16 Feb 2018 15:50:47 +0000 (15:50 +0000)
committerTom Rini <trini@konsulko.com>
Sat, 24 Feb 2018 13:43:45 +0000 (08:43 -0500)
Convert CONFIG_BOOTCOUNT_ALEN to Kconfig
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
drivers/bootcount/Kconfig
include/configs/ids8313.h
scripts/config_whitelist.txt

index 9fde2f2a6609c1f168e3e562a60af604e1f561b2..c41b1316cd094b0703937af5462c6e9b02d1c06c 100644 (file)
@@ -64,7 +64,6 @@ config BOOTCOUNT_I2C
          CONFIG_SYS_I2C_RTC_ADDR = i2c chip address
          CONFIG_SYS_BOOTCOUNT_ADDR = i2c addr which is used for
                                      the bootcounter.
-         CONFIG_BOOTCOUNT_ALEN = address len
 
 config BOOTCOUNT_AT91
        bool "Boot counter for Atmel AT91SAM9XE"
@@ -72,6 +71,14 @@ config BOOTCOUNT_AT91
 
 endchoice
 
+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
index 08865f8339990cf448b2fbf57b9fa55921538138..12c3aff4166d7ed5f82209b50ce7e06f55203f03 100644 (file)
 #define CONFIG_MTD_PARTITIONS
 
 /* bootcount support */
-#define CONFIG_BOOTCOUNT_ALEN  1
 #define CONFIG_SYS_BOOTCOUNT_ADDR      0x9
 
 #define CONFIG_IMAGE_FORMAT_LEGACY
index e1b3fdc0e2f1974a1ddaf57ff55d8852b7e65b40..d2e89b36db96b8e285b44efdeec81da4ca776f72 100644 (file)
@@ -145,7 +145,6 @@ CONFIG_BOARD_TAURUS
 CONFIG_BOARD_TYPES
 CONFIG_BOOGER
 CONFIG_BOOTBLOCK
-CONFIG_BOOTCOUNT_ALEN
 CONFIG_BOOTFILE
 CONFIG_BOOTMAPSZ
 CONFIG_BOOTMODE