Merge "target: fsm9010: Fix address of restart reason"
diff --git a/target/fsm9010/init.c b/target/fsm9010/init.c
index e5c50bb..76382aa 100644
--- a/target/fsm9010/init.c
+++ b/target/fsm9010/init.c
@@ -319,7 +319,7 @@
uint32_t restart_reason = 0;
uint32_t restart_reason_addr;
- restart_reason_addr = RESTART_REASON_ADDR;
+ restart_reason_addr = RESTART_REASON_ADDR_V2;
/* Read reboot reason and scrub it */
restart_reason = readl(restart_reason_addr);
@@ -331,7 +331,7 @@
void reboot_device(unsigned reboot_reason)
{
/* Write the reboot reason */
- writel(reboot_reason, RESTART_REASON_ADDR);
+ writel(reboot_reason, RESTART_REASON_ADDR_V2);
/* Disable Watchdog Debug.
* Required becuase of a H/W bug which causes the system to