summaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/common/block/gpmr/Kconfig10
-rw-r--r--src/soc/intel/common/block/include/intelblocks/pcr_gpmr.h6
2 files changed, 16 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/gpmr/Kconfig b/src/soc/intel/common/block/gpmr/Kconfig
index 06ababe50e..313b0ccb53 100644
--- a/src/soc/intel/common/block/gpmr/Kconfig
+++ b/src/soc/intel/common/block/gpmr/Kconfig
@@ -5,3 +5,13 @@ config SOC_INTEL_COMMON_BLOCK_GPMR
select SOC_INTEL_COMMON_BLOCK_PCR
help
Intel Processor common GPMR support
+
+if SOC_INTEL_COMMON_BLOCK_GPMR
+
+config USE_SOC_GPMR_DEFS
+ bool
+ default n
+ help
+ Specify if the SoC have specific GPMR register definitions.
+
+endif
diff --git a/src/soc/intel/common/block/include/intelblocks/pcr_gpmr.h b/src/soc/intel/common/block/include/intelblocks/pcr_gpmr.h
index fb138f91a0..98ee837fd4 100644
--- a/src/soc/intel/common/block/include/intelblocks/pcr_gpmr.h
+++ b/src/soc/intel/common/block/include/intelblocks/pcr_gpmr.h
@@ -3,6 +3,10 @@
#ifndef SOC_INTEL_COMMON_BLOCK_PCR_GPMR_H
#define SOC_INTEL_COMMON_BLOCK_PCR_GPMR_H
+#if CONFIG(USE_SOC_GPMR_DEFS)
+#include <soc/pcr_gpmr.h>
+#else
+
#define GPMR_LPCLGIR1 0x2730
#define GPMR_DMICTL 0x2234
#define GPMR_DMICTL_SRLOCK (1 << 31)
@@ -24,4 +28,6 @@
#define GPMR_DID_OFFSET(x) (0x2780 + (x) * 8)
#define GPMR_EN BIT(31)
+#endif
+
#endif /* SOC_INTEL_COMMON_BLOCK_PCR_GPMR_H */