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 /arch/sandbox | |
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 'arch/sandbox')
-rw-r--r-- | arch/sandbox/dts/test.dts | 14 |
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>; |