From ead0a99fa9c33a9cbfc36d397d5f2d18c4fbe062 Mon Sep 17 00:00:00 2001 From: smuthayy Date: Sat, 27 May 2017 13:15:29 -0700 Subject: [PATCH] ipq807x: Added reset support Change-Id: If603ee62167fbbd284090d8e7412263e0d73b363 Signed-off-by: smuthayy --- board/qca/arm/ipq807x/ipq807x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/qca/arm/ipq807x/ipq807x.c b/board/qca/arm/ipq807x/ipq807x.c index 65e89be2a2..ef6d6b6bc1 100644 --- a/board/qca/arm/ipq807x/ipq807x.c +++ b/board/qca/arm/ipq807x/ipq807x.c @@ -25,6 +25,7 @@ DECLARE_GLOBAL_DATA_PTR; +#define GCNT_PSHOLD 0x004AB000 qca_mmc mmc_host; extern loff_t board_env_offset; @@ -67,6 +68,7 @@ unsigned long timer_read_counter(void) void reset_cpu(unsigned long a) { + writel(0, GCNT_PSHOLD); while(1); }