diff options
| author | Alex Kiernan <[email protected]> | 2018-02-16 15:50:43 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2018-02-24 08:43:42 -0500 |
| commit | 6cdd70eb52cc597717f549cd1b04bb85cc7a26a5 (patch) | |
| tree | 1d6897e27c3f6000157eaf688bcd86ef86bcfcf3 /drivers | |
| parent | ff5410d34b1ce3fa3785ecfd785704cfccc30938 (diff) | |
Convert CONFIG_BOOTCOUNT_I2C to Kconfig
This converts the following to Kconfig:
CONFIG_BOOTCOUNT_I2C
Signed-off-by: Alex Kiernan <[email protected]>
Reviewed-by: Lukasz Majewski <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/bootcount/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig index eabfd132ad2..8c19ae610bb 100644 --- a/drivers/bootcount/Kconfig +++ b/drivers/bootcount/Kconfig @@ -46,6 +46,15 @@ config BOOTCOUNT_RAM Store the bootcount in DRAM protected against 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_ALEN = address len + endchoice config SYS_BOOTCOUNT_SINGLEWORD |
