bootcount: add a new driver with syscon as backend
authorNandor Han <nandor.han@vaisala.com>
Thu, 10 Jun 2021 12:40:38 +0000 (15:40 +0300)
committerHeiko Schocher <hs@denx.de>
Sun, 22 Aug 2021 09:04:52 +0000 (11:04 +0200)
commitc50b21b70523939c561d0455a2c423f63a9162ca
tree2732f82ac8bb61f20e210eb6c2b4a2f5d432c8ff
parent7282b4352eba74e134c7ebba945338e418ec7faf
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>
arch/sandbox/dts/test.dts
configs/sandbox_defconfig
doc/device-tree-bindings/bootcount-syscon.txt [new file with mode: 0644]
drivers/bootcount/Kconfig
drivers/bootcount/Makefile
drivers/bootcount/bootcount_syscon.c [new file with mode: 0644]
test/dm/bootcount.c