diff options
author | Michael Niewöhner <foss@mniewoehner.de> | 2020-10-19 12:31:21 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-10-21 07:16:01 +0000 |
commit | f50ea988b09e7201e129848ab64e6e0e69bf56c4 (patch) | |
tree | e7cf17631d7c3cd41fa3c68a4c578d4ee7e36b8a /src/mainboard/facebook/monolith/gpio.h | |
parent | dadcbfbe8c682c89b277fdbdfdd26cabd15fc20a (diff) |
soc/intel,mb/*: get rid of legacy pad macros
Get rid of legacy pad macros by replacing them with their newer
equivalents.
TEST: TIMELESS-built board images match
Change-Id: I078f9bb3c78f642afc6dcfd64d77be823a4485c2
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46567
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Frans Hendriks <fhendriks@eltan.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/facebook/monolith/gpio.h')
-rw-r--r-- | src/mainboard/facebook/monolith/gpio.h | 190 |
1 files changed, 95 insertions, 95 deletions
diff --git a/src/mainboard/facebook/monolith/gpio.h b/src/mainboard/facebook/monolith/gpio.h index f0f6eef49d..69ffc6bce0 100644 --- a/src/mainboard/facebook/monolith/gpio.h +++ b/src/mainboard/facebook/monolith/gpio.h @@ -10,52 +10,52 @@ /* Pad configuration in ramstage. */ static const struct pad_config gpio_table[] = { /* PCH_RCIN# */ PAD_CFG_NF(GPP_A0, NONE, DEEP, NF1), -/* LAD_0 */ PAD_CFG_NF(GPP_A1, 20K_PD, DEEP, NF1), -/* LAD_1 */ PAD_CFG_NF(GPP_A2, 20K_PD, DEEP, NF1), -/* LAD_2 */ PAD_CFG_NF(GPP_A3, 20K_PD, DEEP, NF1), -/* LAD_3 */ PAD_CFG_NF(GPP_A4, 20K_PD, DEEP, NF1), +/* LAD_0 */ PAD_CFG_NF(GPP_A1, DN_20K, DEEP, NF1), +/* LAD_1 */ PAD_CFG_NF(GPP_A2, DN_20K, DEEP, NF1), +/* LAD_2 */ PAD_CFG_NF(GPP_A3, DN_20K, DEEP, NF1), +/* LAD_3 */ PAD_CFG_NF(GPP_A4, DN_20K, DEEP, NF1), /* LFRAME# */ PAD_CFG_NF(GPP_A5, NONE, DEEP, NF1), /* PCH_SERIRQ */ PAD_CFG_NF(GPP_A6, NONE, DEEP, NF1), /* PIRQA# */ PAD_CFG_GPO(GPP_A7, 1, DEEP), /* PM_CLKRUN_N */ PAD_CFG_NF(GPP_A8, NONE, DEEP, NF1), -/* CLK_LPC_EC */ PAD_CFG_NF(GPP_A9, 20K_PD, DEEP, NF1), -/* CLKOUT_LPC_CN */ PAD_CFG_NF(GPP_A10, 20K_PD, DEEP, NF1), -/* SLEEP */ PAD_CFG_NC(GPP_A11), /* available on the module not used here */ -/* NC */ PAD_CFG_NC(GPP_A12), +/* CLK_LPC_EC */ PAD_CFG_NF(GPP_A9, DN_20K, DEEP, NF1), +/* CLKOUT_LPC_CN */ PAD_CFG_NF(GPP_A10, DN_20K, DEEP, NF1), +/* SLEEP */ PAD_NC(GPP_A11, NONE), /* available on the module not used here */ +/* NC */ PAD_NC(GPP_A12, NONE), /* PCH_SYSWARN */ PAD_CFG_NF(GPP_A13, NONE, DEEP, NF1), /* PM_SUS_STAT */ PAD_CFG_NF(GPP_A14, NONE, DEEP, NF1), -/* KBC_SUSACK */ PAD_CFG_NF(GPP_A15, 20K_PD, DEEP, NF1), +/* KBC_SUSACK */ PAD_CFG_NF(GPP_A15, DN_20K, DEEP, NF1), /* SD_1P8_SEL */ PAD_CFG_NF(GPP_A16, NONE, DEEP, NF1), /* SD_PWR_EN */ PAD_CFG_NF(GPP_A17, NONE, DEEP, NF1), -/* NC */ PAD_CFG_NC(GPP_A18), -/* NC */ PAD_CFG_NC(GPP_A19), -/* NC */ PAD_CFG_NC(GPP_A20), -/* NC */ PAD_CFG_NC(GPP_A21), -/* NC */ PAD_CFG_NC(GPP_A22), -/* NC */ PAD_CFG_NC(GPP_A23), -/* CORE_VID0 */ PAD_CFG_NC(GPP_B0), -/* CORE_VID1 */ PAD_CFG_NC(GPP_B1), +/* NC */ PAD_NC(GPP_A18, NONE), +/* NC */ PAD_NC(GPP_A19, NONE), +/* NC */ PAD_NC(GPP_A20, NONE), +/* NC */ PAD_NC(GPP_A21, NONE), +/* NC */ PAD_NC(GPP_A22, NONE), +/* NC */ PAD_NC(GPP_A23, NONE), +/* CORE_VID0 */ PAD_NC(GPP_B0, NONE), +/* CORE_VID1 */ PAD_NC(GPP_B1, NONE), /* VRALERT# */ PAD_CFG_NF(GPP_B2, NONE, DEEP, NF1), -/* NC */ PAD_CFG_NC(GPP_B3), -/* NC */ PAD_CFG_NC(GPP_B4), -/* SRCCLKREQ0 */ PAD_CFG_NC(GPP_B5), -/* SRCCLKREQ1 */ PAD_CFG_NC(GPP_B6), -/* SRCCLKREQ2 */ PAD_CFG_NC(GPP_B7), -/* SRCCLKREQ3 */ PAD_CFG_NC(GPP_B8), -/* SRCCLKREQ4 */ PAD_CFG_NC(GPP_B9), -/* SRCCLKREQ5 */ PAD_CFG_NC(GPP_B10), +/* NC */ PAD_NC(GPP_B3, NONE), +/* NC */ PAD_NC(GPP_B4, NONE), +/* SRCCLKREQ0 */ PAD_NC(GPP_B5, NONE), +/* SRCCLKREQ1 */ PAD_NC(GPP_B6, NONE), +/* SRCCLKREQ2 */ PAD_NC(GPP_B7, NONE), +/* SRCCLKREQ3 */ PAD_NC(GPP_B8, NONE), +/* SRCCLKREQ4 */ PAD_NC(GPP_B9, NONE), +/* SRCCLKREQ5 */ PAD_NC(GPP_B10, NONE), /* EXT_PWR_GATE */ PAD_CFG_NF(GPP_B11, NONE, DEEP, NF1), /* SLP_S0 */ PAD_CFG_NF(GPP_B12, NONE, DEEP, NF1), /* PCH_PLTRST */ PAD_CFG_NF(GPP_B13, NONE, DEEP, NF1), /* PCH_SPKR */ PAD_CFG_NF(GPP_B14, NONE, DEEP, NF1), -/* NC */ PAD_CFG_NC(GPP_B15), -/* NC */ PAD_CFG_NC(GPP_B16), -/* NC */ PAD_CFG_NC(GPP_B17), -/* GSPI0_MOSI */ PAD_CFG_NC(GPP_B18), -/* NC */ PAD_CFG_NC(GPP_B19), -/* NC */ PAD_CFG_NC(GPP_B20), -/* NC */ PAD_CFG_NC(GPP_B21), -/* BIOS_SEL */ PAD_CFG_NC(GPP_B22), +/* NC */ PAD_NC(GPP_B15, NONE), +/* NC */ PAD_NC(GPP_B16, NONE), +/* NC */ PAD_NC(GPP_B17, NONE), +/* GSPI0_MOSI */ PAD_NC(GPP_B18, NONE), +/* NC */ PAD_NC(GPP_B19, NONE), +/* NC */ PAD_NC(GPP_B20, NONE), +/* NC */ PAD_NC(GPP_B21, NONE), +/* BIOS_SEL */ PAD_NC(GPP_B22, NONE), /* CB_OVT# */ PAD_CFG_GPO(GPP_B23, 1, DEEP), /* SMB_SCL */ PAD_CFG_NF(GPP_C0, NONE, DEEP, NF1), @@ -63,56 +63,56 @@ static const struct pad_config gpio_table[] = { /* SMBALERT# */ PAD_CFG_GPO(GPP_C2, 1, DEEP), /* SML0_CLK */ PAD_CFG_NF(GPP_C3, NONE, DEEP, NF1), /* SML0_SDA */ PAD_CFG_NF(GPP_C4, NONE, DEEP, NF1), -/* SML0_ALERT */ PAD_CFG_NC(GPP_C5), +/* SML0_ALERT */ PAD_NC(GPP_C5, NONE), /* GPP_C6 - RESERVED */ /* GPP_C7 - RESERVED */ /* CPU_UART0_RXD */ PAD_CFG_NF(GPP_C8, NONE, DEEP, NF1), /* CPU_UART0_TXD */ PAD_CFG_NF(GPP_C9, NONE, DEEP, NF1), /* CPU_UART0_RTS */ PAD_CFG_NF(GPP_C10, NONE, DEEP, NF1), /* CPU_UART0_CTS */ PAD_CFG_NF(GPP_C11, NONE, DEEP, NF1), -/* NC */ PAD_CFG_NC(GPP_C12), -/* NC */ PAD_CFG_NC(GPP_C13), -/* NC */ PAD_CFG_NC(GPP_C14), -/* NC */ PAD_CFG_NC(GPP_C15), +/* NC */ PAD_NC(GPP_C12, NONE), +/* NC */ PAD_NC(GPP_C13, NONE), +/* NC */ PAD_NC(GPP_C14, NONE), +/* NC */ PAD_NC(GPP_C15, NONE), /* I2C0_SDA */ PAD_CFG_NF(GPP_C16, NONE, DEEP, NF1), /* I2C0_SCL */ PAD_CFG_NF(GPP_C17, NONE, DEEP, NF1), -/* NC */ PAD_CFG_NC(GPP_C18), -/* NC */ PAD_CFG_NC(GPP_C19), -/* NC */ PAD_CFG_NC(GPP_C20), -/* NC */ PAD_CFG_NC(GPP_C21), -/* EC_SCI# NOT USED */ PAD_CFG_NC(GPP_C22), -/* EC_SMI# NOT USED */ PAD_CFG_NC(GPP_C23), -/* TOUCH_SPI1_CS */ PAD_CFG_NC(GPP_D0), -/* TPM_PIRQ_N NOT USED */ PAD_CFG_NC(GPP_D1), -/* NC */ PAD_CFG_NC(GPP_D2), -/* NC */ PAD_CFG_NC(GPP_D3), -/* NC */ PAD_CFG_NC(GPP_D4), -/* NC */ PAD_CFG_NC(GPP_D5), -/* NC */ PAD_CFG_NC(GPP_D6), -/* NC */ PAD_CFG_NC(GPP_D7), -/* NC */ PAD_CFG_NC(GPP_D8), -/* NC */ PAD_CFG_NC(GPP_D9), -/* NC */ PAD_CFG_NC(GPP_D11), -/* NC */ PAD_CFG_NC(GPP_D12), -/* NC */ PAD_CFG_NC(GPP_D13), -/* NC */ PAD_CFG_NC(GPP_D14), -/* NC */ PAD_CFG_NC(GPP_D15), -/* NC */ PAD_CFG_NC(GPP_D16), -/* NC */ PAD_CFG_NC(GPP_D17), -/* NC */ PAD_CFG_NC(GPP_D18), -/* NC */ PAD_CFG_NC(GPP_D19), -/* NC */ PAD_CFG_NC(GPP_D20), -/* LID# NOT USED */ PAD_CFG_NC(GPP_D21), -/* NC */ PAD_CFG_NC(GPP_D22), -/* NC */ PAD_CFG_NC(GPP_D23), -/* NC */ PAD_CFG_NC(GPP_E0), -/* NC */ PAD_CFG_NC(GPP_E1), -/* NC */ PAD_CFG_NC(GPP_E2), -/* NC */ PAD_CFG_NC(GPP_E3), -/* DEVSLP0 TP */ PAD_CFG_NC(GPP_E4), -/* DEVSLP0 TP */ PAD_CFG_NC(GPP_E5), -/* DEVSLP1 TP */ PAD_CFG_NC(GPP_E6), -/* NC */ PAD_CFG_NC(GPP_E7), +/* NC */ PAD_NC(GPP_C18, NONE), +/* NC */ PAD_NC(GPP_C19, NONE), +/* NC */ PAD_NC(GPP_C20, NONE), +/* NC */ PAD_NC(GPP_C21, NONE), +/* EC_SCI# NOT USED */ PAD_NC(GPP_C22, NONE), +/* EC_SMI# NOT USED */ PAD_NC(GPP_C23, NONE), +/* TOUCH_SPI1_CS */ PAD_NC(GPP_D0, NONE), +/* TPM_PIRQ_N NOT USED */ PAD_NC(GPP_D1, NONE), +/* NC */ PAD_NC(GPP_D2, NONE), +/* NC */ PAD_NC(GPP_D3, NONE), +/* NC */ PAD_NC(GPP_D4, NONE), +/* NC */ PAD_NC(GPP_D5, NONE), +/* NC */ PAD_NC(GPP_D6, NONE), +/* NC */ PAD_NC(GPP_D7, NONE), +/* NC */ PAD_NC(GPP_D8, NONE), +/* NC */ PAD_NC(GPP_D9, NONE), +/* NC */ PAD_NC(GPP_D11, NONE), +/* NC */ PAD_NC(GPP_D12, NONE), +/* NC */ PAD_NC(GPP_D13, NONE), +/* NC */ PAD_NC(GPP_D14, NONE), +/* NC */ PAD_NC(GPP_D15, NONE), +/* NC */ PAD_NC(GPP_D16, NONE), +/* NC */ PAD_NC(GPP_D17, NONE), +/* NC */ PAD_NC(GPP_D18, NONE), +/* NC */ PAD_NC(GPP_D19, NONE), +/* NC */ PAD_NC(GPP_D20, NONE), +/* LID# NOT USED */ PAD_NC(GPP_D21, NONE), +/* NC */ PAD_NC(GPP_D22, NONE), +/* NC */ PAD_NC(GPP_D23, NONE), +/* NC */ PAD_NC(GPP_E0, NONE), +/* NC */ PAD_NC(GPP_E1, NONE), +/* NC */ PAD_NC(GPP_E2, NONE), +/* NC */ PAD_NC(GPP_E3, NONE), +/* DEVSLP0 TP */ PAD_NC(GPP_E4, NONE), +/* DEVSLP0 TP */ PAD_NC(GPP_E5, NONE), +/* DEVSLP1 TP */ PAD_NC(GPP_E6, NONE), +/* NC */ PAD_NC(GPP_E7, NONE), /* SATA_LED_N */ PAD_CFG_NF(GPP_E8, NONE, DEEP, NF1), /* USB2_OC0_1 */ PAD_CFG_NF(GPP_E9, NONE, DEEP, NF1), /* USB2_OC2_3 */ PAD_CFG_NF(GPP_E10, NONE, DEEP, NF1), @@ -120,27 +120,27 @@ static const struct pad_config gpio_table[] = { /* USB2_OC6_7 */ PAD_CFG_NF(GPP_E11, NONE, DEEP, NF1), /* DDPB_HPD0_C */ PAD_CFG_NF(GPP_E13, NONE, DEEP, NF1), /* DDPC_HPD1_C */ PAD_CFG_NF(GPP_E14, NONE, DEEP, NF1), -/* DDPD_HPD2_C NC */ PAD_CFG_NC(GPP_E15), -/* DDPE_HPD3_C NC */ PAD_CFG_NC(GPP_E16), +/* DDPD_HPD2_C NC */ PAD_NC(GPP_E15, NONE), +/* DDPE_HPD3_C NC */ PAD_NC(GPP_E16, NONE), /* EDP_HPD_C */ PAD_CFG_NF(GPP_E17, NONE, DEEP, NF1), /* DDPB_CTRLCLK */ PAD_CFG_NF(GPP_E18, NONE, DEEP, NF1), -/* DDPB_CTRLDAT */ PAD_CFG_NF(GPP_E19, 20K_PD, DEEP, NF1), +/* DDPB_CTRLDAT */ PAD_CFG_NF(GPP_E19, DN_20K, DEEP, NF1), /* DDI2_DDC_SCL_L */ PAD_CFG_NF(GPP_E20, NONE, DEEP, NF1), -/* DDI2_DDC_SDA_L */ PAD_CFG_NF(GPP_E21, 20K_PD, DEEP, NF1), -/* DDPD_CTRLCLK NC */ PAD_CFG_NC(GPP_E22), -/* DDPD_CTRLDAT NC */ PAD_CFG_NC(GPP_E23), -/* NC */ PAD_CFG_NC(GPP_F0), -/* NC */ PAD_CFG_NC(GPP_F1), -/* NC */ PAD_CFG_NC(GPP_F2), -/* NC */ PAD_CFG_NC(GPP_F3), -/* NC */ PAD_CFG_NC(GPP_F4), -/* NC */ PAD_CFG_NC(GPP_F5), -/* NC */ PAD_CFG_NC(GPP_F6), -/* NC */ PAD_CFG_NC(GPP_F7), -/* NC */ PAD_CFG_NC(GPP_F8), -/* NC */ PAD_CFG_NC(GPP_F9), -/* NC */ PAD_CFG_NC(GPP_F10), -/* NC */ PAD_CFG_NC(GPP_F11), +/* DDI2_DDC_SDA_L */ PAD_CFG_NF(GPP_E21, DN_20K, DEEP, NF1), +/* DDPD_CTRLCLK NC */ PAD_NC(GPP_E22, NONE), +/* DDPD_CTRLDAT NC */ PAD_NC(GPP_E23, NONE), +/* NC */ PAD_NC(GPP_F0, NONE), +/* NC */ PAD_NC(GPP_F1, NONE), +/* NC */ PAD_NC(GPP_F2, NONE), +/* NC */ PAD_NC(GPP_F3, NONE), +/* NC */ PAD_NC(GPP_F4, NONE), +/* NC */ PAD_NC(GPP_F5, NONE), +/* NC */ PAD_NC(GPP_F6, NONE), +/* NC */ PAD_NC(GPP_F7, NONE), +/* NC */ PAD_NC(GPP_F8, NONE), +/* NC */ PAD_NC(GPP_F9, NONE), +/* NC */ PAD_NC(GPP_F10, NONE), +/* NC */ PAD_NC(GPP_F11, NONE), /* EMMC_CMD */ PAD_CFG_NF(GPP_F12, NONE, DEEP, NF1), /* EMMC_DATA0 */ PAD_CFG_NF(GPP_F13, NONE, DEEP, NF1), /* EMMC_DATA1 */ PAD_CFG_NF(GPP_F14, NONE, DEEP, NF1), @@ -152,7 +152,7 @@ static const struct pad_config gpio_table[] = { /* EMMC_DATA7 */ PAD_CFG_NF(GPP_F20, NONE, DEEP, NF1), /* EMMC_STROBE */ PAD_CFG_NF(GPP_F21, NONE, DEEP, NF1), /* EMMC_CLK */ PAD_CFG_NF(GPP_F22, NONE, DEEP, NF1), -/* GPP_F23 */ PAD_CFG_NC(GPP_F23), +/* GPP_F23 */ PAD_NC(GPP_F23, NONE), /* SD_CMD */ PAD_CFG_NF(GPP_G0, NONE, DEEP, NF1), /* SD_D0 */ PAD_CFG_NF(GPP_G1, NONE, DEEP, NF1), /* SD_D1 */ PAD_CFG_NF(GPP_G2, NONE, DEEP, NF1), @@ -168,7 +168,7 @@ static const struct pad_config gpio_table[] = { /* SLP_S3# */ PAD_CFG_NF(GPD4, NONE, DEEP, NF1), /* SLP_S4# */ PAD_CFG_NF(GPD5, NONE, DEEP, NF1), /* PM_SLP_M_N */ PAD_CFG_NF(GPD6, NONE, DEEP, NF1), -/* BIOS_RECOVERY NOT USED */ PAD_CFG_NC(GPD7), +/* BIOS_RECOVERY NOT USED */ PAD_NC(GPD7, NONE), /* CPU_SUSCLK */ PAD_CFG_NF(GPD8, NONE, DEEP, NF1), /* SLP_WLAN# */ PAD_CFG_NF(GPD9, NONE, DEEP, NF1), /* SLP_S5# */ PAD_CFG_NF(GPD10, NONE, DEEP, NF1), |