diff options
author | Nandor Han <nandor.han@vaisala.com> | 2021-06-10 15:40:38 +0300 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2021-08-22 11:04:52 +0200 |
commit | c50b21b70523939c561d0455a2c423f63a9162ca (patch) | |
tree | 2732f82ac8bb61f20e210eb6c2b4a2f5d432c8ff /drivers/bootcount/Kconfig | |
parent | 7282b4352eba74e134c7ebba945338e418ec7faf (diff) | |
download | u-boot-c50b21b70523939c561d0455a2c423f63a9162ca.tar.gz u-boot-c50b21b70523939c561d0455a2c423f63a9162ca.tar.bz2 u-boot-c50b21b70523939c561d0455a2c423f63a9162ca.zip |
bootcount: add a new driver with syscon as backend
The driver will use a syscon regmap as backend and supports both
16 and 32 size value. The value will be stored in the CPU's endianness.
Signed-off-by: Nandor Han <nandor.han@vaisala.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/bootcount/Kconfig')
-rw-r--r-- | drivers/bootcount/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig index 0de2b7bd78..607027c968 100644 --- a/drivers/bootcount/Kconfig +++ b/drivers/bootcount/Kconfig @@ -144,6 +144,18 @@ config BOOTCOUNT_MEM is not cleared on softreset. compatible = "u-boot,bootcount"; +config DM_BOOTCOUNT_SYSCON + bool "Support SYSCON devices as a backing store for bootcount" + select REGMAP + select SYSCON + help + Enable reading/writing the bootcount value in a DM SYSCON device. + The driver supports a fixed 32 bits size register using the native + endianness. However, this can be controlled from the SYSCON DT node + configuration. + + Accessing the backend is done using the regmap interface. + endmenu endif |