summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorNandor Han <nandor.han@vaisala.com>2021-06-10 15:40:38 +0300
committerHeiko Schocher <hs@denx.de>2021-08-22 12:04:52 +0300
commitc50b21b70523939c561d0455a2c423f63a9162ca (patch)
tree2732f82ac8bb61f20e210eb6c2b4a2f5d432c8ff /arch
parent7282b4352eba74e134c7ebba945338e418ec7faf (diff)
downloadu-boot-c50b21b70523939c561d0455a2c423f63a9162ca.tar.xz
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 'arch')
-rw-r--r--arch/sandbox/dts/test.dts14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index d5976318d1..962bdbe556 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -731,6 +731,20 @@
i2c-eeprom = <&bootcount_i2c>;
};
+ bootcount_4@0 {
+ compatible = "u-boot,bootcount-syscon";
+ syscon = <&syscon0>;
+ reg = <0x0 0x04>, <0x0 0x04>;
+ reg-names = "syscon_reg", "offset";
+ };
+
+ bootcount_2@0 {
+ compatible = "u-boot,bootcount-syscon";
+ syscon = <&syscon0>;
+ reg = <0x0 0x04>, <0x0 0x02> ;
+ reg-names = "syscon_reg", "offset";
+ };
+
adc: adc@0 {
compatible = "sandbox,adc";
#io-channel-cells = <1>;