summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic (Chun-Ju) Yang <victoryang@chromium.org>2013-11-27 12:02:26 +0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-11-27 13:38:30 +0000
commit84db5c754944e3316cd13537c25656afc07603ea (patch)
tree59d715c367aab3cd47b5c94a472cb997a439d2ab
parenta981a1fa1637196f486d2c067722ecc71edeb1b0 (diff)
downloadchrome-ec-84db5c754944e3316cd13537c25656afc07603ea.tar.gz
mec1322: Deassert iRESET_OUT on init
iRESET_OUT must be deasserted before the host can boot, and it's also the gating source of the internal nSIO_RESET signal. There is a delay between deasserting iRESET_OUT and nSIO_RESET inactivated, so let's deassert iRESET_OUT as early as possible. BUG=chrome-os-partner:24107 TEST=Boot EVB and check iRESET_OUT value BRANCH=None Change-Id: I6647da00567e2651c2b49e1e767adee2d5276493 Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/178171 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--chip/mec1322/system.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/mec1322/system.c b/chip/mec1322/system.c
index f86f8e144f..09d3cd1b26 100644
--- a/chip/mec1322/system.c
+++ b/chip/mec1322/system.c
@@ -28,6 +28,9 @@ void system_pre_init(void)
{
/* Enable direct NVIC */
MEC1322_EC_INT_CTRL |= 1;
+
+ /* Deassert nSIO_RESET */
+ MEC1322_PCR_PWR_RST_CTL &= ~(1 << 0);
}
void system_reset(int flags)