]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Integrate AT91 bootcount driver
authorAlex Kiernan <alex.kiernan@gmail.com>
Fri, 16 Feb 2018 15:50:45 +0000 (15:50 +0000)
committerTom Rini <trini@konsulko.com>
Sat, 24 Feb 2018 13:43:42 +0000 (08:43 -0500)
Integrate Boot counter for Atmel AT91SAM9XE into Kconfig

Reviewed-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
README
drivers/bootcount/Kconfig
drivers/bootcount/Makefile

diff --git a/README b/README
index 4b2e97652e5b7aa6165c97fdec06548d687af65d..5cf90a482a8f2056e1fc69b75aa825bffe5ae19f 100644 (file)
--- a/README
+++ b/README
@@ -2267,10 +2267,6 @@ The following options need to be configured:
                A better solution is to properly configure the firewall,
                but sometimes that is not allowed.
 
-- bootcount support:
-               CONFIG_AT91SAM9XE
-               enable special bootcounter support on at91sam9xe based boards.
-
 - Show boot progress:
                CONFIG_SHOW_BOOT_PROGRESS
 
index 8c19ae610bb3493a9da6b49dcc41c7c6cd456e15..e0d1fc2fc65908f1b0ab151d5eee07c95bf9a762 100644 (file)
@@ -13,6 +13,7 @@ if BOOTCOUNT_LIMIT
 choice
        prompt "Boot count device"
        default BOOTCOUNT_AM33XX if AM33XX || SOC_DA8XX
+       default BOOTCOUNT_AT91 if AT91SAM9XE
 
 config BOOTCOUNT_EXT
        bool "Boot counter on EXT filesystem"
@@ -55,6 +56,10 @@ config BOOTCOUNT_I2C
                                      the bootcounter.
          CONFIG_BOOTCOUNT_ALEN = address len
 
+config BOOTCOUNT_AT91
+       bool "Boot counter for Atmel AT91SAM9XE"
+       depends on AT91SAM9XE
+
 endchoice
 
 config SYS_BOOTCOUNT_SINGLEWORD
index 62bf55e47475dffdd2cc2ebb6d965e129cf980b4..a3658c11b81511b19e5aee1fdfc2d21d1d46eadd 100644 (file)
@@ -3,7 +3,7 @@
 #
 
 obj-y                          += bootcount.o
-obj-$(CONFIG_AT91SAM9XE)       += bootcount_at91.o
+obj-$(CONFIG_BOOTCOUNT_AT91)   += bootcount_at91.o
 obj-$(CONFIG_BOOTCOUNT_AM33XX) += bootcount_davinci.o
 obj-$(CONFIG_BOOTCOUNT_RAM)    += bootcount_ram.o
 obj-$(CONFIG_BOOTCOUNT_ENV)    += bootcount_env.o