mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
reboot-mode: read the boot mode from RTC memory
RTC devices could provide battery-backed memory that can be used for storing the reboot mode magic value. Add a new reboot-mode back-end that uses RTC to store the reboot-mode magic value. The driver also supports both endianness modes. Signed-off-by: Nandor Han <nandor.han@vaisala.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -67,6 +67,16 @@
|
||||
mode-download = <0x03>;
|
||||
};
|
||||
|
||||
reboot_mode1: reboot-mode@14 {
|
||||
compatible = "reboot-mode-rtc";
|
||||
rtc = <&rtc_0>;
|
||||
reg = <0x30 4>;
|
||||
u-boot,env-variable = "bootstatus";
|
||||
big-endian;
|
||||
mode-test = <0x21969147>;
|
||||
mode-download = <0x51939147>;
|
||||
};
|
||||
|
||||
audio: audio-codec {
|
||||
compatible = "sandbox,audio-codec";
|
||||
#sound-dai-cells = <1>;
|
||||
|
||||
Reference in New Issue
Block a user