From e05fe3166e69f8b23eb5a448052cea79e9e6a38a Mon Sep 17 00:00:00 2001 From: Aamir Bohra Date: Wed, 3 Apr 2019 14:42:26 +0530 Subject: [PATCH] soc/intel/cannonlake: Correct the GPE DWx mapping for GPIO groups This implementation corrects the GPE DWx mapping for GPIO groups. The assignments is done in GPIO MISCFG register for all GPIO communities. And configures the which GPIO communities get register as Tier1. BUG=b:121212459 TEST: Verified the GPIO MISCFG is getting set as per updated map. Change-Id: I451997367025a6dc9e5931bd649524e935ad6aca Signed-off-by: Aamir Bohra Reviewed-on: https://review.coreboot.org/c/coreboot/+/32175 Reviewed-by: Rizwan Qureshi Reviewed-by: Furquan Shaikh Reviewed-by: Lijian Zhao Tested-by: build bot (Jenkins) --- .../cannonlake/include/soc/gpio_soc_defs.h | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/soc/intel/cannonlake/include/soc/gpio_soc_defs.h b/src/soc/intel/cannonlake/include/soc/gpio_soc_defs.h index 03f431421f..59901440d9 100644 --- a/src/soc/intel/cannonlake/include/soc/gpio_soc_defs.h +++ b/src/soc/intel/cannonlake/include/soc/gpio_soc_defs.h @@ -22,18 +22,19 @@ * The GPIO groups are accessed through register blocks called * communities. */ -#define GPP_A 0 -#define GPP_B 1 -#define GPP_G 2 -#define GROUP_SPI 3 -#define GPP_D 4 -#define GPP_F 5 -#define GPP_H 6 -#define GROUP_VGPIO 7 -#define GPD 9 -#define GROUP_AZA 0xA -#define GROUP_CPU 0xB -#define GPP_C 0xC +#define GPP_A 0x0 +#define GPP_B 0x1 +#define GPP_G 0x2 +#define GROUP_SPI 0x3 +#define GPP_D 0x5 +#define GPP_F 0x6 +#define GPP_H 0x7 +#define GROUP_VGPIO0 0x8 +#define GROUP_VGPIO1 0x9 +#define GPD 0xA +#define GROUP_AZA 0xB +#define GROUP_CPU 0xC +#define GPP_C 0x4 #define GPP_E 0xD #define GROUP_JTAG 0xE #define GROUP_HVMOS 0xF