summaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake/include
diff options
context:
space:
mode:
authorAndrey Petrov <andrey.petrov@intel.com>2016-06-17 15:30:13 -0700
committerMartin Roth <martinroth@google.com>2016-06-24 20:30:45 +0200
commit0f593c22a8a88068ffdf73f87ee9ce98c343a977 (patch)
tree37baaf714d2dee0fdeaa5bfb5159b76dc09b85d5 /src/soc/intel/apollolake/include
parent43e1bfd13cd067c992009b51cf130c06921092cd (diff)
downloadcoreboot-0f593c22a8a88068ffdf73f87ee9ce98c343a977.tar.xz
soc/intel/apollolake: Add utility functions for global reset
Apollolake defines Global Reset where Host, TXE and PMC are reset. During boot we may need to trigger a global reset as part of platform initialization (or for error handling). Add functions to trigger global reset, enable/disable it and lock global reset bit. BUG=chrome-os-partner:54149 BRANCH=none TEST=none Change-Id: I84296cd1560a0740f33ef6b488f15f99d397998d Signed-off-by: Andrey Petrov <andrey.petrov@intel.com> Reviewed-on: https://review.coreboot.org/15198 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/apollolake/include')
-rw-r--r--src/soc/intel/apollolake/include/soc/pm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/soc/intel/apollolake/include/soc/pm.h b/src/soc/intel/apollolake/include/soc/pm.h
index 856872ed97..8838d1c9f0 100644
--- a/src/soc/intel/apollolake/include/soc/pm.h
+++ b/src/soc/intel/apollolake/include/soc/pm.h
@@ -128,6 +128,10 @@
#define GEN_PMCON2 0x1024
# define RPS (1 << 2)
#define GEN_PMCON3 0x1028
+#define ETR 0x1048
+# define CF9_LOCK (1 << 31)
+# define CF9_GLB_RST (1 << 20)
+
/* Generic sleep state types */
#define SLEEP_STATE_S0 0
@@ -168,4 +172,7 @@ void enable_gpe(uint32_t mask);
void disable_gpe(uint32_t mask);
void disable_all_gpe(void);
+void global_reset_enable(bool enable);
+void global_reset_lock(void);
+
#endif