diff options
author | Nandor Han <nandor.han@vaisala.com> | 2021-06-10 16:56:45 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-23 17:16:39 +0300 |
commit | c74675bd904b6ce9d5820a80f27793c0583fd54c (patch) | |
tree | b9b6e93ebe0d54334e3bf96b70e6a556a01a0f7c /arch | |
parent | f9db2f16cb6fc7b6d05b0e70de65881bc97ba5c2 (diff) | |
download | u-boot-c74675bd904b6ce9d5820a80f27793c0583fd54c.tar.xz |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sandbox/dts/test.dts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 2347f4cbe4..d5976318d1 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -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>; |