summaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2021-03-25 11:05:14 +0530
committerSubrata Banik <subrata.banik@intel.com>2021-03-27 04:22:11 +0000
commit5558f7ba0f35b79772beeb3649a33012b7d13a3f (patch)
tree852359c00997cca0ae1dfc5d9fee8dddb299c17d /src/soc/intel
parent6efc764c045d28d433b39e44c850605b7ed1f4a8 (diff)
soc/intel/alderlake: Correct GPE DWx assignment as per EDS
List of changes: 1. Update GPIO Group to GPE DWx assignment encoding as per MISCCFG register per GPIO Community. 2. PMC_GPP_* macros are also updated as per GPIO_CFG register in PMC space. BUG=b:183464235 TEST=Able to fix the TPM IRQ issue on SM. Change-Id: Id9f57b0b5726315f5ebba013f11d52ed3ee34484 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51789 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/alderlake/gpio.c2
-rw-r--r--src/soc/intel/alderlake/include/soc/gpio_soc_defs.h26
-rw-r--r--src/soc/intel/alderlake/include/soc/pmc.h18
3 files changed, 19 insertions, 27 deletions
diff --git a/src/soc/intel/alderlake/gpio.c b/src/soc/intel/alderlake/gpio.c
index f0db5e996b..1f96179cd0 100644
--- a/src/soc/intel/alderlake/gpio.c
+++ b/src/soc/intel/alderlake/gpio.c
@@ -178,10 +178,8 @@ const struct pmc_to_gpio_route *soc_pmc_gpio_routes(size_t *num)
{ PMC_GPD, GPD },
{ PMC_GPP_C, GPP_C },
{ PMC_GPP_F, GPP_F },
- { PMC_GPP_HVMOS, GPP_HVMOS },
{ PMC_GPP_E, GPP_E },
{ PMC_GPP_R, GPP_R },
- { PMC_GPP_SPI0, GPP_SPI0 },
};
*num = ARRAY_SIZE(routes);
return routes;
diff --git a/src/soc/intel/alderlake/include/soc/gpio_soc_defs.h b/src/soc/intel/alderlake/include/soc/gpio_soc_defs.h
index bf95716a5d..5035718d07 100644
--- a/src/soc/intel/alderlake/include/soc/gpio_soc_defs.h
+++ b/src/soc/intel/alderlake/include/soc/gpio_soc_defs.h
@@ -6,25 +6,21 @@
* Most of the fixed numbers and macros are based on the GPP groups.
* The GPIO groups are accessed through register blocks called
* communities.
+ *
+ * Refer to Alder Lake PCH EDS Chapter 27, MISCCFG register offset 0x10
+ * for each GPIO community to get GPIO group to GPE_DWx assignment.
*/
-/* GPIO COMM 0 */
#define GPP_B 0x0
#define GPP_T 0x1
#define GPP_A 0x2
-/* GPIO COMM 1 */
-#define GPP_S 0x3
-#define GPP_H 0x4
-#define GPP_D 0x5
-/* GPIO COMM 2 */
-#define GPD 0x6
-/* GPIO COMM 4 */
-#define GPP_C 0x7
-#define GPP_F 0x8
-#define GPP_HVMOS 0x9
-#define GPP_E 0xA
-/* GPIO COMM 5 */
-#define GPP_R 0xB
-#define GPP_SPI0 0xC
+#define GPP_R 0x3
+#define GPD 0x4
+#define GPP_S 0x5
+#define GPP_H 0x6
+#define GPP_D 0x7
+#define GPP_F 0xA
+#define GPP_C 0xB
+#define GPP_E 0xC
#define GPIO_MAX_NUM_PER_GROUP 26
diff --git a/src/soc/intel/alderlake/include/soc/pmc.h b/src/soc/intel/alderlake/include/soc/pmc.h
index 8887d9bd1c..a2a75407f0 100644
--- a/src/soc/intel/alderlake/include/soc/pmc.h
+++ b/src/soc/intel/alderlake/include/soc/pmc.h
@@ -133,16 +133,14 @@ enum pch_pmc_xtal pmc_get_xtal_freq(void);
#define PMC_GPP_B 0x0
#define PMC_GPP_T 0x1
#define PMC_GPP_A 0x2
-#define PMC_GPP_S 0x3
-#define PMC_GPP_H 0x4
-#define PMC_GPP_D 0x5
-#define PMC_GPD 0x6
-#define PMC_GPP_C 0x7
-#define PMC_GPP_F 0x8
-#define PMC_GPP_HVMOS 0x9
-#define PMC_GPP_E 0xA
-#define PMC_GPP_R 0xB
-#define PMC_GPP_SPI0 0xC
+#define PMC_GPP_R 0x3
+#define PMC_GPD 0x4
+#define PMC_GPP_S 0x5
+#define PMC_GPP_H 0x6
+#define PMC_GPP_D 0x7
+#define PMC_GPP_F 0xA
+#define PMC_GPP_C 0xB
+#define PMC_GPP_E 0xC
#define GBLRST_CAUSE0 0x1924
#define GBLRST_CAUSE0_THERMTRIP (1 << 5)