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>
This commit is contained in:
parent
6efc764c04
commit
5558f7ba0f
3 changed files with 19 additions and 27 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue