diff mbox

[2/2] dts: hikey: Add reboot reason support

Message ID 1450218361-9144-2-git-send-email-john.stultz@linaro.org
State New
Headers show

Commit Message

John Stultz Dec. 15, 2015, 10:26 p.m. UTC
Add support in the DT to enable the reboot reason support
for "adb reboot bootloader" functionality.

Cc: Vishal Bhoj <vishal.bhoj@linaro.org>
Cc: haojian.zhuang@linaro.org
Cc: guodong.xu@linaro.org
Signed-off-by: John Stultz <john.stultz@lianro.org>

---
 arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

-- 
1.9.1
diff mbox

Patch

diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
index 3c13965..f0cd5fa 100644
--- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
@@ -52,12 +52,26 @@ 
 			      <0x0 0x0740f000 0x0 0x00001000>;	/* MCU firmware section */
 		};
 
+		reboot-reason@05f01000 {
+			no-map;
+			reg = <0x0 0x05f01000 0x0 0x00001000>;
+		};
+
 		mbox-buf@06dff000 {
 			no-map;
 			reg = <0x0 0x06dff000 0x0 0x00001000>;	/* Mailbox message buf */
 		};
 	};
 
+	reboot_reason: reboot-reason@05f01000 {
+			compatible		= "linux,reboot-reason-sram";
+			reg			= <0x0 0x05F01000 0x0 0x4>;
+			reason,none		= <0x77665501>;
+			reason,bootloader	= <0x77665500>;
+			reason,recovery		= <0x77665502>;
+			reason,oem		= <0x6f656d00>;
+	};
+
 	smb {
 		uart0: uart@f8015000 {	/* console */
 			status = "ok";