Now that Andy's reboot reason core driver has landed, I wanted to resubmit a reworked version of my SRAM based reboot reason driver.
This allows the kernel to communicate to the bootloader what mode it should reboot to using some reserved memory. Feedback would be very much appreciated! thanks -john Cc: Andy Yan <[email protected]> Cc: Rob Herring <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Heiko Stübner <[email protected]> Cc: Caesar Wang <[email protected]> Cc: Kees Cook <[email protected]> Cc: Guodong Xu <[email protected]> Cc: Haojian Zhuang <[email protected]> Cc: Vishal Bhoj <[email protected]> Cc: Bjorn Andersson <[email protected]> Cc: [email protected] Cc: Android Kernel Team <[email protected]> John Stultz (4): drivers: sram: Have sram driver probe children nodes dt-bindings: power: reset: Add document for sram-reboot-mode driver power: reset: Add sram-reboot-mode driver dts: hikey: Add hikey support for sram-reboot-mode .../bindings/power/reset/sram-reboot-mode.txt | 35 ++++++++ arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 22 ++++- drivers/misc/sram.c | 3 + drivers/power/reset/Kconfig | 10 +++ drivers/power/reset/Makefile | 1 + drivers/power/reset/sram-reboot-mode.c | 95 ++++++++++++++++++++++ 6 files changed, 165 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/power/reset/sram-reboot-mode.txt create mode 100644 drivers/power/reset/sram-reboot-mode.c -- 1.9.1

