diff options
author | Peter Griffin <peter.griffin@linaro.org> | 2016-04-20 17:14:00 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-04-25 15:10:34 -0400 |
commit | 9261f8b1809d6bf2075cfc97bbd0cac23e086716 (patch) | |
tree | c26b0f0d0243259f665d5f549c665f991d0d35e4 /board/hisilicon | |
parent | cd593ed6999970cc705571332f0f3be7e40d1a96 (diff) | |
download | u-boot-imx-9261f8b1809d6bf2075cfc97bbd0cac23e086716.zip u-boot-imx-9261f8b1809d6bf2075cfc97bbd0cac23e086716.tar.gz u-boot-imx-9261f8b1809d6bf2075cfc97bbd0cac23e086716.tar.bz2 |
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: Peter Griffin <peter.griffin@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/hisilicon')
-rw-r--r-- | board/hisilicon/hikey/hikey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/hisilicon/hikey/hikey.c b/board/hisilicon/hikey/hikey.c index 3f0a0cc..752ee6f 100644 --- a/board/hisilicon/hikey/hikey.c +++ b/board/hisilicon/hikey/hikey.c @@ -414,8 +414,8 @@ void dram_init_banksize(void) gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; } -/* Use the Watchdog to cause reset */ void reset_cpu(ulong addr) { - /* TODO program the watchdog */ + writel(0x48698284, &ao_sc->stat0); + wfi(); } |