summaryrefslogtreecommitdiff
path: root/chip/mec1322/registers.h
diff options
context:
space:
mode:
authorDivya Jyothi <divya.jyothi@intel.com>2015-06-19 14:04:04 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-24 00:04:48 +0000
commit4fcc233c0fcd97a2851f7f4ebf6fd4058fb0f8c4 (patch)
treeb00e4ebb2c921fc28bcbd91e44ddab940174d681 /chip/mec1322/registers.h
parent5aadcd90d8ecb79d15dae6d5f0b4567a678e8d8c (diff)
downloadchrome-ec-4fcc233c0fcd97a2851f7f4ebf6fd4058fb0f8c4.tar.gz
mec1322: Correctly get reset cause
Since the reset cause was not recorded correctly recovery mode(Esc+Refresh+Power) was not working. With this change power-on reset state and VCC1_RST# only state are distinguinshed. BUG=chrome-os-partner:41479 BRANCH=none TEST=Esc+Refresh+Power boots to recovery screen Refresh+Power reboots the system Change-Id: I63eff488c970302e7afe8a677a57ad27d4d9918e Signed-off-by: Divya Jyothi <divya.jyothi@intel.com> Signed-off-by: Freddy Paul <freddy.paul@intel.com> Reviewed-on: https://chromium-review.googlesource.com/280782 Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'chip/mec1322/registers.h')
-rw-r--r--chip/mec1322/registers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/mec1322/registers.h b/chip/mec1322/registers.h
index b7a8612f83..d31b66584b 100644
--- a/chip/mec1322/registers.h
+++ b/chip/mec1322/registers.h
@@ -41,6 +41,9 @@
#define MEC1322_PCR_EC_RST_EN2 REG32(MEC1322_PCR_BASE + 0x44)
#define MEC1322_PCR_PWR_RST_CTL REG32(MEC1322_PCR_BASE + 0x48)
+/* Bit defines for MEC1322_PCR_CHIP_PWR_RST */
+#define MEC1322_PWR_RST_STS_VCC1 (1 << 6)
+#define MEC1322_PWR_RST_STS_VBAT (1 << 5)
/* EC Subsystem */
#define MEC1322_EC_BASE 0x4000fc00