reboot-mode: read the boot mode from RTC memory
authorNandor Han <nandor.han@vaisala.com>
Thu, 10 Jun 2021 13:56:45 +0000 (16:56 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jul 2021 14:16:39 +0000 (10:16 -0400)
commitc74675bd904b6ce9d5820a80f27793c0583fd54c
treeb9b6e93ebe0d54334e3bf96b70e6a556a01a0f7c
parentf9db2f16cb6fc7b6d05b0e70de65881bc97ba5c2
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>
arch/sandbox/dts/test.dts
configs/sandbox_defconfig
doc/device-tree-bindings/reboot-mode/reboot-mode-rtc.txt [new file with mode: 0644]
drivers/reboot-mode/Kconfig
drivers/reboot-mode/Makefile
drivers/reboot-mode/reboot-mode-rtc.c [new file with mode: 0644]
include/reboot-mode/reboot-mode-rtc.h [new file with mode: 0644]
test/dm/reboot-mode.c