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>
Showing
- arch/sandbox/dts/test.dts 10 additions, 0 deletionsarch/sandbox/dts/test.dts
- configs/sandbox_defconfig 1 addition, 0 deletionsconfigs/sandbox_defconfig
- doc/device-tree-bindings/reboot-mode/reboot-mode-rtc.txt 22 additions, 0 deletionsdoc/device-tree-bindings/reboot-mode/reboot-mode-rtc.txt
- drivers/reboot-mode/Kconfig 9 additions, 0 deletionsdrivers/reboot-mode/Kconfig
- drivers/reboot-mode/Makefile 1 addition, 0 deletionsdrivers/reboot-mode/Makefile
- drivers/reboot-mode/reboot-mode-rtc.c 127 additions, 0 deletionsdrivers/reboot-mode/reboot-mode-rtc.c
- include/reboot-mode/reboot-mode-rtc.h 16 additions, 0 deletionsinclude/reboot-mode/reboot-mode-rtc.h
- test/dm/reboot-mode.c 29 additions, 0 deletionstest/dm/reboot-mode.c
drivers/reboot-mode/reboot-mode-rtc.c
0 → 100644
include/reboot-mode/reboot-mode-rtc.h
0 → 100644
Please register or sign in to comment