Commit bec8c647bc263d80040413a09f54751bc27c9d31
Committed by
Tom Rini
1 parent
8981433f4d
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
Integrate AT91 bootcount driver
Integrate Boot counter for Atmel AT91SAM9XE into Kconfig Reviewed-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Showing 3 changed files with 6 additions and 5 deletions Side-by-side Diff
README
... | ... | @@ -2267,10 +2267,6 @@ |
2267 | 2267 | A better solution is to properly configure the firewall, |
2268 | 2268 | but sometimes that is not allowed. |
2269 | 2269 | |
2270 | -- bootcount support: | |
2271 | - CONFIG_AT91SAM9XE | |
2272 | - enable special bootcounter support on at91sam9xe based boards. | |
2273 | - | |
2274 | 2270 | - Show boot progress: |
2275 | 2271 | CONFIG_SHOW_BOOT_PROGRESS |
2276 | 2272 |
drivers/bootcount/Kconfig
... | ... | @@ -13,6 +13,7 @@ |
13 | 13 | choice |
14 | 14 | prompt "Boot count device" |
15 | 15 | default BOOTCOUNT_AM33XX if AM33XX || SOC_DA8XX |
16 | + default BOOTCOUNT_AT91 if AT91SAM9XE | |
16 | 17 | |
17 | 18 | config BOOTCOUNT_EXT |
18 | 19 | bool "Boot counter on EXT filesystem" |
... | ... | @@ -54,6 +55,10 @@ |
54 | 55 | CONFIG_SYS_BOOTCOUNT_ADDR = i2c addr which is used for |
55 | 56 | the bootcounter. |
56 | 57 | CONFIG_BOOTCOUNT_ALEN = address len |
58 | + | |
59 | +config BOOTCOUNT_AT91 | |
60 | + bool "Boot counter for Atmel AT91SAM9XE" | |
61 | + depends on AT91SAM9XE | |
57 | 62 | |
58 | 63 | endchoice |
59 | 64 |
drivers/bootcount/Makefile
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | # |
4 | 4 | |
5 | 5 | obj-y += bootcount.o |
6 | -obj-$(CONFIG_AT91SAM9XE) += bootcount_at91.o | |
6 | +obj-$(CONFIG_BOOTCOUNT_AT91) += bootcount_at91.o | |
7 | 7 | obj-$(CONFIG_BOOTCOUNT_AM33XX) += bootcount_davinci.o |
8 | 8 | obj-$(CONFIG_BOOTCOUNT_RAM) += bootcount_ram.o |
9 | 9 | obj-$(CONFIG_BOOTCOUNT_ENV) += bootcount_env.o |