Skip to content
Snippets Groups Projects
Commit 9261f8b1 authored by Peter Griffin's avatar Peter Griffin Committed by Tom Rini
Browse files

ARM: hisilicon: hikey: Implement reset_cpu() for hikey.


This allows the reset command to reset the board from
u-boot.

=> reset
resetting ...
INFO:    BL1: 0xf9810000 - 0xf9818000 [size = 32768]
NOTICE:  Booting Trusted Firmware
NOTICE:  BL1: v1.1(debug):7fb9b0e
NOTICE:  BL1: Built : 17:06:41, Apr 19 2016

Signed-off-by: default avatarPeter Griffin <peter.griffin@linaro.org>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent cd593ed6
No related branches found
No related tags found
No related merge requests found
...@@ -414,8 +414,8 @@ void dram_init_banksize(void) ...@@ -414,8 +414,8 @@ void dram_init_banksize(void)
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
} }
/* Use the Watchdog to cause reset */
void reset_cpu(ulong addr) void reset_cpu(ulong addr)
{ {
/* TODO program the watchdog */ writel(0x48698284, &ao_sc->stat0);
wfi();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment