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>
This commit is contained in:
committed by
Heiko Schocher
parent
7282b4352e
commit
c50b21b705
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user