2ccc0a4d9f
Lists of changes: 1. Rename MISCCFG_ENABLE_GPIO_PM_CONFIG -> MISCCFG_GPIO_PM_CONFIG_BITS 2. Move MISCCFG_GPIO_PM_CONFIG_BITS definition from intelblock/gpio.h to soc/gpio.h. Refer to detailed description below to understand the motivation behind this change. An advanced GPIO PM capabilities has been introduced since CNP PCH, refer to 'include/intelblock/gpio.h' for detailed GPIO PM bit definitions. Now with TGP PCH, additional bits are defined in the MISCCFG register for GPIO PM control. This results in different SoCs supporting different number of bits. The bits defined in earlier platforms (CNL, CML, ICL) are present on TGL, JSL and ADL too. Hence, refactor the common GPIO code to keep the bit definitions in intelblock/gpio.h, but the definition of MISCCFG_GPIO_PM_CONFIG_BITS is moved to soc/gpio.h so that each SoC can provide this as per hardware support. TEST=On ADL, TGL and JSL platform. Without this CL : GPIO COMM 0 MISCCFG:0xC0 (Bit 6 and 7 enable) With this CL : GPIO COMM 0 MISCCFG: 0x00 (Bit 6 and 7 disable) Change-Id: Ie027cbd7b99b39752941384339a34f8995c10c94 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51767 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> |
||
---|---|---|
.. | ||
acpi | ||
bootblock | ||
include/soc | ||
romstage | ||
acpi.c | ||
chip.c | ||
chip.h | ||
cnl_memcfg_init.c | ||
cpu.c | ||
elog.c | ||
finalize.c | ||
fsp_params.c | ||
gpio.c | ||
gpio_cnp_h.c | ||
gpio_common.c | ||
graphics.c | ||
gspi.c | ||
i2c.c | ||
Kconfig | ||
lockdown.c | ||
lpc.c | ||
Makefile.inc | ||
me.c | ||
nhlt.c | ||
p2sb.c | ||
pmc.c | ||
pmutil.c | ||
reset.c | ||
sd.c | ||
smihandler.c | ||
spi.c | ||
systemagent.c | ||
uart.c | ||
vr_config.c | ||
xhci.c |