Maxim Polyakov has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43571 )
Change subject: mb/system76/lemp9/gpio: 2/2 Convert field macros to PAD_CFG ......................................................................
mb/system76/lemp9/gpio: 2/2 Convert field macros to PAD_CFG
Converts bit field macros to target PAD_CFG_*() macros. To do this, the following command was used:
./intelp2m -n -t 1 -file ../../src/mainboard/system76/lemp9/gpio.h
This is part of the patch set "system76/lemp9/gpio: Convert raw DW0/1 regs to macro using intelp2m"
CB: - 1/2 Decode raw register values CB: - 2/2 Convert field macros to PAD_CFG
Change-Id: I0225cff1ecac8c2ba181239e924ff508add94ad6 Signed-off-by: Maxim Polyakov max.senia.poliak@gmail.com --- M src/mainboard/system76/lemp9/Kconfig M src/mainboard/system76/lemp9/gpio.h 2 files changed, 6 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/43571/1
diff --git a/src/mainboard/system76/lemp9/Kconfig b/src/mainboard/system76/lemp9/Kconfig index 0fe5e8d..21b0233 100644 --- a/src/mainboard/system76/lemp9/Kconfig +++ b/src/mainboard/system76/lemp9/Kconfig @@ -17,6 +17,7 @@ select SOC_INTEL_COMETLAKE select SOC_INTEL_COMMON_BLOCK_HDA select SOC_INTEL_COMMON_BLOCK_HDA_VERB + select SOC_INTEL_COMMON_BLOCK_GPIO_LEGACY_MACROS select SPD_READ_BY_WORD select SYSTEM_TYPE_LAPTOP select USE_LEGACY_8254_TIMER # Fix failure to boot GRUB diff --git a/src/mainboard/system76/lemp9/gpio.h b/src/mainboard/system76/lemp9/gpio.h index 4a67927..748a310 100644 --- a/src/mainboard/system76/lemp9/gpio.h +++ b/src/mainboard/system76/lemp9/gpio.h @@ -89,7 +89,7 @@
// GSPI1 // INTP_OUT - _PAD_CFG_STRUCT(GPP_A11, PAD_RESET(PLTRST) | PAD_IRQ_ROUTE(IOAPIC) | PAD_BUF(TX_DISABLE), 0), + PAD_CFG_GPI_APIC(GPP_A11, NONE, PLTRST),
// ISH_GP // PCH_GPP_A12 @@ -140,7 +140,7 @@
// CPU Misc // GPP_B3 - _PAD_CFG_STRUCT(GPP_B3, PAD_RESET(PLTRST) | PAD_IRQ_ROUTE(IOAPIC) | PAD_BUF(TX_DISABLE), 0), + PAD_CFG_GPI_APIC(GPP_B3, NONE, PLTRST), // NC PAD_CFG_NC(GPP_B4),
@@ -280,7 +280,7 @@
// GSPI2 // SWI# - _PAD_CFG_STRUCT(GPP_D9, PAD_RESET(DEEP) | PAD_IRQ_ROUTE(SCI) | PAD_RX_POL(INVERT) | PAD_BUF(TX_DISABLE), 0), + PAD_CFG_GPI_SCI(GPP_D9, NONE, DEEP, LEVEL, INVERT), // NC PAD_CFG_NC(GPP_D10), // BOARD_ID @@ -363,9 +363,9 @@ // HDMI_HPD PAD_CFG_NF(GPP_E14, NONE, DEEP, NF1), // SMI# - _PAD_CFG_STRUCT(GPP_E15, PAD_RESET(DEEP) | PAD_TRIG(EDGE_SINGLE) | PAD_IRQ_ROUTE(SMI) | PAD_RX_POL(INVERT) | PAD_BUF(TX_DISABLE), 0), + PAD_CFG_GPI_ACPI_SMI(GPP_E15, NONE, DEEP, INVERT), // SCI# - _PAD_CFG_STRUCT(GPP_E16, PAD_RESET(PLTRST) | PAD_IRQ_ROUTE(SCI) | PAD_RX_POL(INVERT) | PAD_BUF(TX_DISABLE), 0), + PAD_CFG_GPI_SCI(GPP_E16, NONE, PLTRST, LEVEL, INVERT), // EDP_HPD PAD_CFG_NF(GPP_E17, NONE, DEEP, NF1), // MDP_CTRLCLK