diff options
author | Shelley Chen <shchen@google.com> | 2023-10-26 16:45:40 -0700 |
---|---|---|
committer | Shelley Chen <shchen@google.com> | 2023-11-08 17:32:36 +0000 |
commit | f931d620f6e8f6cbd9f4046cdf8498a31aecc01a (patch) | |
tree | 8747edf85885be16d9e15e23dfbd5dbea784fafb /src | |
parent | 52125c7212ee6f254311cb1f3dac5509ac1d2991 (diff) |
mb/google/brox: Correcting GPIOs based on latest schematics
There are some inaccuracies in arbitrage. This is the first pass at
correcting the incorrectly generated configs. I also tried to update
the "No heuristic was found useful" comment generated by arbitrage
into something more useful (ie: the appropriate NFs).
BUG=b:300690448
BRANCH=None
TEST=emerge-brox coreboot
Change-Id: I836565e09a3e0b25746b3e2f9ed6610eaacf7e97
Signed-off-by: Shelley Chen <shchen@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78942
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/brox/variants/baseboard/brox/gpio.c | 271 |
1 files changed, 140 insertions, 131 deletions
diff --git a/src/mainboard/google/brox/variants/baseboard/brox/gpio.c b/src/mainboard/google/brox/variants/baseboard/brox/gpio.c index bb10f9af17..83f3a0af3b 100644 --- a/src/mainboard/google/brox/variants/baseboard/brox/gpio.c +++ b/src/mainboard/google/brox/variants/baseboard/brox/gpio.c @@ -37,25 +37,25 @@ static const struct pad_config gpio_table[] = { PAD_CFG_NF(GPD9, NONE, DEEP, NF1), /* GPD10 : [NF1: SLP_S5#] ==> SLP_S5_L */ PAD_CFG_NF(GPD10, NONE, DEEP, NF1), - /* GPD11 : No heuristic was found useful */ + /* GPD11 : LANPHYPC ==> TP99 */ PAD_NC(GPD11, NONE), /* GPP_A0 : GPP_A0 ==> ESPI_PCH_D0_EC_R configured on reset, do not touch */ /* GPP_A1 : GPP_A1 ==> ESPI_PCH_D1_EC_R configured on reset, do not touch */ /* GPP_A2 : GPP_A2 ==> ESPI_PCH_D2_EC_R configured on reset, do not touch */ /* GPP_A3 : GPP_A3 ==> ESPI_PCH_D3_EC_R configured on reset, do not touch */ /* GPP_A4 : GPP_A4 ==> ESPI_PCH_CS_EC_R_L configured on reset, do not touch */ - /* GPP_A5 : [NF1: ESPI_ALERT0# NF6: USB_C_GPP_A5] ==> SOC_GPP_A5 */ - PAD_CFG_NF(GPP_A5, NONE, DEEP, NF6), - /* GPP_A6 : [NF1: ESPI_ALERT1# NF6: USB_C_GPP_A6] ==> SOC_GPP_A6 */ - PAD_CFG_NF(GPP_A6, NONE, DEEP, NF6), - /* GPP_A7 : No heuristic was found useful */ - PAD_NC(GPP_A7, NONE), - /* GPP_A8 : No heuristic was found useful */ - PAD_NC(GPP_A8, NONE), + /* GPP_A5 : [NF1: ESPI_ALERT0# NF6: USB_C_GPP_A5] ==> TP78 */ + PAD_NC(GPP_A5, NONE), + /* GPP_A6 : [NF1: ESPI_ALERT1# NF6: USB_C_GPP_A6] ==> TP88 */ + PAD_NC(GPP_A6, NONE), + /* GPP_A7 : SRCCLK_OE7_L ==> RAM_TYPE0 */ + PAD_CFG_GPI(GPP_A7, NONE, DEEP), + /* GPP_A8 : SRCCLKREQ7_L ==> RAM_TYPE1 */ + PAD_CFG_GPI(GPP_A8, NONE, DEEP), /* GPP_A9 : GPP_A9 ==> ESPI_PCH_CLK_R configured on reset, do not touch */ /* GPP_A10 : GPP_A10 ==> ESPI_PCH_RST_EC_L configured on reset, do not touch */ - /* GPP_A11 : No heuristic was found useful */ - PAD_NC(GPP_A11, NONE), + /* GPP_A11 : BOARD_ID2 */ + PAD_CFG_GPI(GPP_A11, NONE, DEEP), /* GPP_A12 : [NF1: SATAXPCIE1 NF2: SATAGP1 NF4: SRCCLKREQ9B# NF6: USB_C_GPP_A12] ==> TPM_PWR_EN_L */ PAD_CFG_GPO(GPP_A12, 0, DEEP), /* GPP_A13 : [NF6: USB_C_GPP_A13] ==> BT_DISABLE_L */ @@ -64,10 +64,10 @@ static const struct pad_config gpio_table[] = { PAD_CFG_NF(GPP_A14, NONE, DEEP, NF1), /* GPP_A15 : [NF1: USB_OC2# NF2: DDSP_HPD4 NF4: DISP_MISC4 NF6: USB_C_GPP_A15] ==> USB_A1_OC_ODL */ PAD_CFG_NF(GPP_A15, NONE, DEEP, NF1), - /* GPP_A16 : [NF1: USB_OC3# NF4: ISH_GP5 NF6: USB_C_GPP_A16] ==> SOC_GPP_A16 */ - PAD_CFG_NF(GPP_A16, NONE, DEEP, NF6), + /* GPP_A16 : [NF1: USB_OC3# NF4: ISH_GP5 NF6: USB_C_GPP_A16] ==> TABLET_MODE_ODL */ + PAD_CFG_GPI(GPP_A16, NONE, DEEP), /* GPP_A17 : [NF4: DISP_MISCC NF6: USB_C_GPP_A17] ==> SOC_GPP_A17 */ - PAD_CFG_NF(GPP_A17, NONE, DEEP, NF6), + PAD_NC(GPP_A17, NONE), /* GPP_A18 : [NF1: DDSP_HPDB NF4: DISP_MISCB NF6: USB_C_GPP_A18] ==> HDMI_HPD */ PAD_CFG_NF(GPP_A18, NONE, DEEP, NF1), /* GPP_A19 : [NF1: DDSP_HPD1 NF4: DISP_MISC1 NF6: USB_C_GPP_A19] ==> USB_C2_AUX_DC_P */ @@ -75,11 +75,12 @@ static const struct pad_config gpio_table[] = { /* GPP_A20 : [NF1: DDSP_HPD2 NF4: DISP_MISC2 NF6: USB_C_GPP_A20] ==> USB_C2_AUX_DC_N */ PAD_CFG_NF(GPP_A20, NONE, DEEP, NF6), /* GPP_A21 : [NF1: DDPC_CTRLCLK NF6: USB_C_GPP_A21] ==> SOC_GPP_A21 */ - PAD_CFG_NF(GPP_A21, NONE, DEEP, NF6), - /* GPP_A22 : No heuristic was found useful */ - PAD_NC(GPP_A22, NONE), - /* GPP_A23 : No heuristic was found useful */ - PAD_NC(GPP_A23, NONE), + PAD_NC(GPP_A21, NONE), + /* GPP_A22 : DDPC_CTRLDATA ==> PD_SOC_DBG_L */ + PAD_CFG_GPI(GPP_A22, NONE, DEEP), + /* GPP_A23 : ESPI_CS1_L ==> RAM_INTERLEAVED */ + PAD_CFG_GPI(GPP_A23, NONE, DEEP), + /* GPP_B0 : [NF1: CORE_VID0 NF6: USB_C_GPP_B0] ==> SOC_VID0 */ PAD_CFG_NF(GPP_B0, NONE, DEEP, NF1), /* GPP_B1 : [NF1: CORE_VID1 NF6: USB_C_GPP_B1] ==> SOC_VID1 */ @@ -87,9 +88,9 @@ static const struct pad_config gpio_table[] = { /* GPP_B2 : [NF1: VRALERT# NF6: USB_C_GPP_B2] ==> VRALERT_L */ PAD_CFG_NF(GPP_B2, NONE, DEEP, NF1), /* GPP_B3 : [NF1: PROC_GP2 NF4: ISH_GP4B NF6: USB_C_GPP_B3] ==> WLAN_PCIE_WAKE_ODL */ - PAD_CFG_GPI_IRQ_WAKE(GPP_B3, NONE, PLTRST, LEVEL, INVERT), - /* GPP_B4 : No heuristic was found useful */ - PAD_NC(GPP_B4, NONE), + PAD_CFG_GPI_INT(GPP_B3, NONE, PLTRST, EDGE_SINGLE), + /* GPP_B4 : PROC_GP3/ISH_GP5B ==> BOARD_ID9 */ + PAD_CFG_GPI(GPP_B4, NONE, DEEP), /* GPP_B5 : [NF1: ISH_I2C0_SDA NF2: I2C2_SDA NF6: USB_C_GPP_B5] ==> ISH_I2C_SENSOR_SDA */ PAD_CFG_NF(GPP_B5, NONE, DEEP, NF2), /* GPP_B6 : [NF1: ISH_I2C0_SCL NF2: I2C2_SCL NF6: USB_C_GPP_B6] ==> ISH_I2C_SENSOR_SCL */ @@ -99,55 +100,57 @@ static const struct pad_config gpio_table[] = { /* GPP_B8 : [NF1: ISH_I2C1_SCL NF2: I2C3_SCL NF6: USB_C_GPP_B8] ==> SOC_I2C3_SCL */ PAD_CFG_NF(GPP_B8, NONE, DEEP, NF2), /* GPP_B11 : [NF1: PMCALERT# NF6: USB_C_GPP_B11] ==> SOC_I2C_PD_INT_ODL */ - PAD_CFG_GPI_IRQ_WAKE(GPP_B11, NONE, PLTRST, LEVEL, INVERT), + PAD_CFG_GPI_APIC_LOCK(GPP_B11, NONE, LEVEL, INVERT, LOCK_CONFIG), /* GPP_B12 : [NF1: SLP_S0# NF6: USB_C_GPP_B12] ==> SLP_S0_R_L */ PAD_CFG_NF(GPP_B12, NONE, DEEP, NF1), /* GPP_B13 : [NF1: PLTRST# NF6: USB_C_GPP_B13] ==> PLT_RST_L */ PAD_CFG_NF(GPP_B13, NONE, DEEP, NF1), /* GPP_B14 : [NF1: SPKR NF2: TIME_SYNC1 NF4: SATA_LED# NF5: ISH_GP6 NF6: USB_C_GPP_B14] ==> ACZ_SPKR */ PAD_CFG_NF(GPP_B14, NONE, DEEP, NF1), - /* GPP_B15 : [NF2: TIME_SYNC0 NF5: ISH_GP7 NF6: USB_C_GPP_B15] ==> SOC_GPP_B15 */ - PAD_CFG_NF(GPP_B15, NONE, DEEP, NF6), + /* GPP_B15 : [NF2: TIME_SYNC0 NF5: ISH_GP7 NF6: USB_C_GPP_B15] ==> LID_OPEN_Q */ + PAD_CFG_GPI(GPP_B15, NONE, DEEP), /* GPP_B16 : [NF2: I2C5_SDA NF4: ISH_I2C2_SDA NF6: USB_C_GPP_B16] ==> ISH_I2C_EC_SDA */ PAD_CFG_NF(GPP_B16, NONE, DEEP, NF2), /* GPP_B17 : [NF2: I2C5_SCL NF4: ISH_I2C2_SCL NF6: USB_C_GPP_B17] ==> ISH_I2C_EC_SCL */ PAD_CFG_NF(GPP_B17, NONE, DEEP, NF2), /* GPP_B18 : GPP_B18_STRAP ==> Component NC */ - PAD_NC(GPP_B18, NONE), - /* GPP_B23 : PCHHOT_ODL_STRAP ==> Component NC */ - PAD_NC(GPP_B23, NONE), + PAD_CFG_GPI(GPP_B18, DN_20K, DEEP), + /* GPP_B23 : SML1ALERT_L/PCHHOT_L ==> PCHHOT_ODL_STRAP */ + PAD_CFG_GPI(GPP_B23, DN_20K, DEEP), + /* GPP_C0 : [NF1: SMBCLK NF6: USB_C_GPP_C0] ==> SOC_GPP_C0 */ - PAD_CFG_NF(GPP_C0, NONE, DEEP, NF6), + PAD_NC(GPP_C0, NONE), /* GPP_C1 : [NF1: SMBDATA NF6: USB_C_GPP_C1] ==> SOC_GPP_C1 */ - PAD_CFG_NF(GPP_C1, NONE, DEEP, NF6), - /* GPP_C2 : No heuristic was found useful */ - PAD_NC(GPP_C2, NONE), + PAD_NC(GPP_C1, NONE), + /* GPP_C2 : SMBALAERT_L ==> SOC_GPP_C2_STRAP */ + PAD_CFG_GPI(GPP_C2, DN_20K, DEEP), /* GPP_C3 : [NF1: SML0CLK NF6: USB_C_GPP_C3] ==> SMB_SML0_CLK */ PAD_CFG_NF(GPP_C3, NONE, DEEP, NF1), /* GPP_C4 : [NF1: SML0DATA NF6: USB_C_GPP_C4] ==> SMB_SML0_DAT */ PAD_CFG_NF(GPP_C4, NONE, DEEP, NF1), - /* GPP_C5 : [NF1: SML0ALERT# NF6: USB_C_GPP_C5] ==> SOC_GPP_C5 */ - PAD_CFG_NF(GPP_C5, NONE, DEEP, NF6), - /* GPP_C6 : No heuristic was found useful */ - PAD_NC(GPP_C6, NONE), - /* GPP_C7 : No heuristic was found useful */ + /* GPP_C5 : [NF1: SML0ALERT# NF6: USB_C_GPP_C5] ==> SOC_GPP_C5_BOOT_STRAP0 */ + PAD_CFG_GPI(GPP_C5, NONE, DEEP), + /* GPP_C6 : SML1CLK ==> SOC_I2C_PD_SCL */ + PAD_CFG_NF(GPP_C6, NONE, DEEP, NF1), + /* GPP_C7 : SML1DATA ==> SOC_I2C_PD_SDA */ PAD_NC(GPP_C7, NONE), + /* GPP_D0 : [NF1: ISH_GP0 NF2: BK0 NF5: SBK0 NF6: USB_C_GPP_D0] ==> SENSOR_MODE1_PCH_EC_PCH_WAKE_ODL */ PAD_CFG_GPI_IRQ_WAKE(GPP_D0, NONE, PLTRST, EDGE_SINGLE, INVERT), /* GPP_D1 : [NF1: ISH_GP1 NF2: BK1 NF5: SBK1 NF6: USB_C_GPP_D1] ==> SENSOR_MODE2_PCH_EC_PCH_INT_ODL */ - PAD_CFG_GPI_IRQ_WAKE(GPP_D1, NONE, PLTRST, LEVEL, INVERT), + PAD_CFG_GPI_INT(GPP_D1, NONE, PLTRST, LEVEL), /* GPP_D2 : [NF1: ISH_GP2 NF2: BK2 NF5: SBK2 NF6: USB_C_GPP_D2] ==> ISH_ACCEL_DB_INT_L */ - PAD_CFG_GPI_IRQ_WAKE(GPP_D2, NONE, PLTRST, LEVEL, INVERT), + PAD_CFG_GPI_INT(GPP_D2, NONE, PLTRST, LEVEL), /* GPP_D3 : [NF1: ISH_GP3 NF2: BK3 NF5: SBK3 NF6: USB_C_GPP_D3] ==> ISH_ACCEL_MB_INT_L */ - PAD_CFG_GPI_IRQ_WAKE(GPP_D3, NONE, PLTRST, LEVEL, INVERT), + PAD_CFG_GPI_INT(GPP_D3, NONE, PLTRST, LEVEL), /* GPP_D4 : [NF1: IMGCLKOUT0 NF2: BK4 NF5: SBK4 NF6: USB_C_GPP_D4] ==> SOC_GPP_D4 */ - PAD_CFG_NF(GPP_D4, NONE, DEEP, NF6), - /* GPP_D5 : No heuristic was found useful */ - PAD_NC(GPP_D5, NONE), + PAD_NC(GPP_D4, NONE), + /* GPP_D5 : SRCCLKREQ0_L ==> PCIE_CLKREQ0_ODL */ + PAD_CFG_NF(GPP_D5, NONE, DEEP, NF1), /* GPP_D6 : [NF1: SRCCLKREQ1# NF6: USB_C_GPP_D6] ==> WLAN_CLKREQ_ODL */ PAD_CFG_NF(GPP_D6, NONE, DEEP, NF1), - /* GPP_D7 : No heuristic was found useful */ - PAD_NC(GPP_D7, NONE), + /* GPP_D7 : SRCCLKREQ2_L ==> PCIE_CLKREQ2_ODL */ + PAD_CFG_NF(GPP_D7, NONE, DEEP, NF1), /* GPP_D8 : [NF1: SRCCLKREQ3# NF6: USB_C_GPP_D8] ==> SSD_CLKREQ_ODL */ PAD_CFG_NF(GPP_D8, NONE, DEEP, NF1), /* GPP_D9 : [NF1: ISH_SPI_CS# NF2: DDP3_CTRLCLK NF4: TBT_LSX2_TXD NF5: BSSB_LS2_RX NF6: USB_C_GPP_D9 NF7: GSPI2_CS0#] ==> USB_C2_LSX_TX */ @@ -159,67 +162,69 @@ static const struct pad_config gpio_table[] = { /* GPP_D12 : [NF1: ISH_SPI_MOSI NF2: DDP4_CTRLDATA NF4: TBT_LSX3_RXD NF5: BSSB_LS3_TX NF6: USB_C_GPP_D12 NF7: GSPI2_MOSI] ==> SOC_GPP_D12 */ PAD_CFG_NF(GPP_D12, NONE, DEEP, NF6), /* GPP_D13 : [NF1: ISH_UART0_RXD NF3: I2C6_SDA NF6: USB_C_GPP_D13] ==> UART0_ISH_RX_DBG_TX */ - PAD_CFG_NF(GPP_D13, NONE, DEEP, NF3), + PAD_CFG_NF(GPP_D13, NONE, DEEP, NF1), /* GPP_D14 : [NF1: ISH_UART0_TXD NF3: I2C6_SCL NF6: USB_C_GPP_D14] ==> UART0_ISH_TX_DBG_RX */ - PAD_CFG_NF(GPP_D14, NONE, DEEP, NF3), - /* GPP_D15 : No heuristic was found useful */ - PAD_NC(GPP_D15, NONE), - /* GPP_D16 : No heuristic was found useful */ + PAD_CFG_NF(GPP_D14, NONE, DEEP, NF1), + /* GPP_D15 : ISH_UART0_RTS_L/I2C7B_SDA ==> SOC_ISH_UART0_RTS_L */ + PAD_CFG_NF(GPP_D15, NONE, DEEP, NF1), + /* GPP_D16 : ISH_UART0_CTS_L/I2C7B_SCL ==> SOC_GPP_D16 */ PAD_NC(GPP_D16, NONE), /* GPP_D17 : [NF1: UART1_RXD NF2: ISH_UART1_RXD NF6: USB_C_GPP_D17] ==> SLP_S0_GATE_R */ PAD_CFG_GPO(GPP_D17, 1, DEEP), - /* GPP_D18 : No heuristic was found useful */ - PAD_NC(GPP_D18, NONE), + /* GPP_D18 : UART1_TXD/ISH_UART1_RXD ==> MS_MUTE_DMICLED */ + PAD_CFG_GPO(GPP_D18, 0, DEEP), /* GPP_D19 : [NF1: I2S_MCLK1_OUT NF6: USB_C_GPP_D19] ==> SOC_GPP_D19 */ - PAD_CFG_NF(GPP_D19, NONE, DEEP, NF6), - /* GPP_E0 : No heuristic was found useful */ - PAD_NC(GPP_E0, NONE), + PAD_NC(GPP_D19, NONE), + + /* GPP_E0 : SATAXPCIE0/SATAGPO/SRCCLKREQ9_L ==> BOARD_ID1 */ + PAD_CFG_GPI(GPP_E0, NONE, DEEP), /* GPP_E1 : [NF2: THC0_SPI1_IO2 NF6: USB_C_GPP_E1] ==> WIFI_DISABLE_L */ PAD_CFG_GPO(GPP_E1, 1, DEEP), - /* GPP_E2 : No heuristic was found useful */ - PAD_NC(GPP_E2, NONE), + /* GPP_E2 : THC0_SPI1_IO3 ==> GSC_PCH_INT_ODL */ + PAD_CFG_GPI_APIC_LOCK(GPP_E2, NONE, LEVEL, INVERT, LOCK_CONFIG), /* GPP_E3 : [NF1: PROC_GP0 NF6: USB_C_GPP_E3] ==> TCHPAD_INT_ODL */ PAD_CFG_GPI_IRQ_WAKE(GPP_E3, NONE, PLTRST, LEVEL, INVERT), /* GPP_E4 : [NF1: DEVSLP0 NF6: USB_C_GPP_E4 NF7: SRCCLK_OE9#] ==> USB4_BB_RT_FORCE_PWR */ PAD_CFG_GPO(GPP_E4, 1, DEEP), /* GPP_E5 : [NF1: DEVSLP1 NF6: USB_C_GPP_E5 NF7: SRCCLK_OE6#] ==> SOC_GPP_E5 */ - PAD_CFG_NF(GPP_E5, NONE, DEEP, NF6), - /* GPP_E6 : [NF2: THC0_SPI1_RST# NF6: USB_C_GPP_E6] ==> SOC_GPP_E6 */ - PAD_CFG_NF(GPP_E6, NONE, DEEP, NF6), + PAD_NC(GPP_E5, NONE), + /* GPP_E6 : [NF2: THC0_SPI1_RST# NF6: USB_C_GPP_E6] ==> SOC_GPP_E6_STRAP */ + PAD_CFG_GPI(GPP_E6, NONE, DEEP), /* GPP_E7 : [NF1: PROC_GP1 NF6: USB_C_GPP_E7] ==> EN_UCAM_PWR */ PAD_CFG_GPO(GPP_E7, 0, DEEP), - /* GPP_E8 : No heuristic was found useful */ - PAD_NC(GPP_E8, NONE), + /* GPP_E8 : GPP_E8 ==> PCH_WP_OD */ + PAD_CFG_GPI_LOCK(GPP_E8, NONE, LOCK_CONFIG), /* GPP_E9 : [NF1: USB_OC0# NF2: ISH_GP4 NF6: USB_C_GPP_E9] ==> SOC_GPP_E9 */ - PAD_CFG_NF(GPP_E9, NONE, DEEP, NF6), - /* GPP_E10 : MEM_STRAP_3 ==> Component NC */ - PAD_NC(GPP_E10, NONE), + PAD_NC(GPP_E9, NONE), + /* GPP_E10 : THC0_SPI1_CS_L/GSPI0_CS0_L ==> MEM_STRAP_3 */ + PAD_CFG_GPI(GPP_E10, NONE, DEEP), /* GPP_E11 : [NF2: THC0_SPI1_CLK NF6: USB_C_GPP_E11 NF7: GSPI0_CLK] ==> SOC_GPP_E11 */ - PAD_CFG_NF(GPP_E11, NONE, DEEP, NF6), - /* GPP_E12 : MEM_STRAP_1 ==> Component NC */ - PAD_NC(GPP_E12, NONE), - /* GPP_E13 : MEM_STRAP_2 ==> Component NC */ - PAD_NC(GPP_E13, NONE), + PAD_NC(GPP_E11, NONE), + /* GPP_E12 : THC0_SPI1_IO1/I2C0A_SDA/GSPI0_MISO ==> MEM_STRAP_1 */ + PAD_CFG_GPI(GPP_E12, NONE, DEEP), + /* GPP_E13 : THC0_SPI1_IO0/I2C0A_SCL/GSPI0_MOSI ==> MEM_STRAP_2 */ + PAD_CFG_GPI(GPP_E13, NONE, DEEP), /* GPP_E14 : [NF1: DDSP_HPDA NF2: DISP_MISC_A NF6: USB_C_GPP_E14] ==> SOC_EDP_HPD */ PAD_CFG_NF(GPP_E14, NONE, DEEP, NF1), - /* GPP_E15 : MEM_STRAP_0 ==> Component NC */ - PAD_NC(GPP_E15, NONE), - /* GPP_E16 : No heuristic was found useful */ - PAD_NC(GPP_E16, NONE), + /* GPP_E15 : SRCCLK_OE8_L ==> MEM_STRAP_0 */ + PAD_CFG_GPI(GPP_E15, NONE, DEEP), + /* GPP_E16 : SRCCLKREQ8_L ==> BOARD_ID6 */ + PAD_CFG_GPI(GPP_E16, NONE, DEEP), /* GPP_E17 : [NF2: THC0_SPI1_INT# NF6: USB_C_GPP_E17] ==> SOC_GPP_E17 */ - PAD_CFG_NF(GPP_E17, NONE, DEEP, NF6), + PAD_NC(GPP_E17, NONE), /* GPP_E18 : [NF1: DDP1_CTRLCLK NF4: TBT_LSX0_TXD NF5: BSSB_LS0_RX NF6: USB_C_GPP_E18] ==> USB_C0_LSX_TX */ PAD_CFG_NF(GPP_E18, NONE, DEEP, NF4), /* GPP_E19 : [NF1: DDP1_CTRLDATA NF4: TBT_LSX0_RXD NF5: BSSB_LS0_TX NF6: USB_C_GPP_E19] ==> USB_C0_LSX_RX_STRAP */ PAD_CFG_NF(GPP_E19, NONE, DEEP, NF4), /* GPP_E20 : [NF1: DDP2_CTRLCLK NF4: TBT_LSX1_TXD NF5: BSSB_LS1_RX NF6: USB_C_GPP_E20] ==> SOC_GPP_E20 */ - PAD_CFG_NF(GPP_E20, NONE, DEEP, NF6), - /* GPP_E21 : USB_C1_LSX_RX_STRAP ==> Component NC */ - PAD_NC(GPP_E21, NONE), - /* GPP_E22 : USB_C0_AUX_DC_STRAP_P ==> Component NC */ - PAD_NC(GPP_E22, NONE), + PAD_NC(GPP_E20, NONE), + /* GPP_E21 : DDP2_CTRLDATA/TBT_LSX1_RXD/BSSB_LS1_TX ==> USB_C1_LSX_RX_STRAP */ + PAD_CFG_GPI(GPP_E21, NONE, DEEP), + /* GPP_E22 : DDPA_CTRLCLK/DNX_FORCE_RELOAD ==> USB_C0_AUX_DC_STRAP_P */ + PAD_CFG_GPO(GPP_E22, 0, DEEP), /* GPP_E23 : [NF1: DDPA_CTRLDATA] ==> USB_C0_AUX_DC_N */ PAD_CFG_NF(GPP_E23, NONE, DEEP, NF6), + /* GPP_F0 : [NF1: CNV_BRI_DT NF2: UART2_RTS# NF6: USB_C_GPP_F0] ==> CNV_BRI_DT_STRAP */ PAD_CFG_NF(GPP_F0, NONE, DEEP, NF1), /* GPP_F1 : [NF1: CNV_BRI_RSP NF2: UART2_RXD NF6: USB_C_GPP_F1] ==> CNV_BRI_RSP */ @@ -233,49 +238,50 @@ static const struct pad_config gpio_table[] = { /* GPP_F5 : [NF2: MODEM_CLKREQ NF3: CRF_XTAL_CLKREQ NF6: USB_C_GPP_F5] ==> CNV_CLKREQ0 */ PAD_CFG_NF(GPP_F5, NONE, DEEP, NF2), /* GPP_F6 : [NF1: CNV_PA_BLANKING NF6: USB_C_GPP_F6] ==> SOC_GPP_F6 */ - PAD_CFG_NF(GPP_F6, NONE, DEEP, NF6), + PAD_NC(GPP_F6, NONE), /* GPP_F7 : [NF6: USB_C_GPP_F7] ==> EN_PP3300_TCHSCR */ PAD_CFG_GPO(GPP_F7, 0, DEEP), /* GPP_F9 : [NF1: BOOTMPC NF6: USB_C_GPP_F9] ==> SSD_PERST_L */ PAD_CFG_GPO(GPP_F9, 1, PLTRST), - /* GPP_F10 : GPP_F10_STRAP ==> Component NC */ - PAD_NC(GPP_F10, NONE), + /* GPP_F10 : GPP_F10 ==> GPP_F10_STRAP */ + PAD_CFG_GPI(GPP_F10, DN_20K, DEEP), /* GPP_F11 : [NF3: THC1_SPI2_CLK NF4: GSPI1_CLK NF6: USB_C_GPP_F11] ==> SOC_GPP_F11 */ - PAD_CFG_NF(GPP_F11, NONE, DEEP, NF6), + PAD_NC(GPP_F11, NONE), /* GPP_F12 : [NF1: GSXDOUT NF3: THC1_SPI2_IO0 NF4: GSPI1_MOSI NF5: I2C1A_SCL NF6: USB_C_GPP_F12] ==> SOC_GPP_F12 */ - PAD_CFG_NF(GPP_F12, NONE, DEEP, NF6), + PAD_NC(GPP_F12, NONE), /* GPP_F13 : [NF1: GSXSLOAD NF3: THC1_SPI2_IO1 NF4: GSPI1_MISIO NF5: I2C1A_SDA NF6: USB_C_GPP_F13] ==> SOC_GPP_F13 */ - PAD_CFG_NF(GPP_F13, NONE, DEEP, NF6), + PAD_NC(GPP_F13, NONE), /* GPP_F14 : [NF1: GSXDIN NF3: THC1_SPI2_IO2 NF6: USB_C_GPP_F14] ==> SOC_GPP_F14 */ - PAD_CFG_NF(GPP_F14, NONE, DEEP, NF6), + PAD_NC(GPP_F14, NONE), /* GPP_F15 : [NF1: GSXSRESET# NF3: THC1_SPI2_IO3 NF6: USB_C_GPP_F15] ==> SOC_GPP_F15 */ - PAD_CFG_NF(GPP_F15, NONE, DEEP, NF6), + PAD_NC(GPP_F15, NONE), /* GPP_F16 : [NF1: GSXCLK NF3: THC1_SPI2_CS# NF4: GSPI1_CS0# NF6: USB_C_GPP_F16] ==> PCH_TCHSCR_REPORT_EN */ PAD_CFG_GPO(GPP_F16, 0, DEEP), /* GPP_F17 : [NF3: THC1_SPI2_RST# NF6: USB_C_GPP_F17] ==> TCHSCR_RST_L */ - PAD_CFG_GPO(GPP_F17, 0, DEEP), + PAD_CFG_NF(GPP_F17, NONE, DEEP, NF3), /* GPP_F18 : [NF3: THC1_SPI2_INT# NF6: USB_C_GPP_F18] ==> TCHSCR_INT_ODL */ - PAD_CFG_GPI_APIC(GPP_F18, NONE, PLTRST, LEVEL, INVERT), - /* GPP_F19 : No heuristic was found useful */ - PAD_NC(GPP_F19, NONE), + PAD_CFG_NF(GPP_F18, NONE, DEEP, NF3), + /* GPP_F19 : SRCCLKREQ6 ==> PCIE_CLKREQ5_ODL */ + PAD_CFG_NF(GPP_F19, NONE, DEEP, NF1), /* GPP_F20 : [NF1: Reserved NF6: USB_C_GPP_F20] ==> SOC_GPP_F20 */ - PAD_CFG_NF(GPP_F20, NONE, DEEP, NF6), + PAD_NC(GPP_F20, NONE), /* GPP_F21 : [NF1: Reserved NF6: USB_C_GPP_F21] ==> SOC_GPP_F21 */ - PAD_CFG_NF(GPP_F21, NONE, DEEP, NF6), - /* GPP_F22 : [NF1: VNN_CTRL NF6: USB_C_GPP_F22] ==> GPP_F22 */ - PAD_CFG_NF(GPP_F22, NONE, DEEP, NF6), - /* GPP_F23 : [NF1: V1P05_CTRL NF6: USB_C_GPP_F23] ==> GPP_F23 */ - PAD_CFG_NF(GPP_F23, NONE, DEEP, NF6), + PAD_NC(GPP_F21, NONE), + /* GPP_F22 : [NF1: VNN_CTRL NF6: USB_C_GPP_F22] ==> TP153 */ + PAD_NC(GPP_F22, NONE), + /* GPP_F23 : [NF1: V1P05_CTRL NF6: USB_C_GPP_F23] ==> TP154 */ + PAD_NC(GPP_F23, NONE), + /* GPP_H0 : [NF6: USB_C_GPP_H0] ==> GPP_H0_BOOT_STRAP1 */ - PAD_CFG_NF(GPP_H0, NONE, DEEP, NF6), + PAD_CFG_GPI(GPP_H0, NONE, DEEP), /* GPP_H1 : [NF6: USB_C_GPP_H1] ==> GPP_H1_BOOT_STRAP2 */ - PAD_CFG_NF(GPP_H1, NONE, DEEP, NF6), + PAD_CFG_GPI(GPP_H1, NONE, DEEP), /* GPP_H2 : [NF6: USB_C_GPP_H2] ==> WLAN_PERST_L */ PAD_CFG_GPO(GPP_H2, 1, DEEP), /* GPP_H3 : [NF1: SX_EXIT_HOLDOFF# NF6: USB_C_GPP_H3] ==> WLAN_PCIE_WAKE_ODL */ - PAD_CFG_GPI_IRQ_WAKE(GPP_H3, NONE, PLTRST, LEVEL, INVERT), - /* GPP_H4 : No heuristic was found useful */ - PAD_NC(GPP_H4, NONE), + PAD_CFG_GPI_INT(GPP_H3, NONE, PLTRST, EDGE_SINGLE), + /* GPP_H4 : I2C0_SDA ==> PCH_I2C_TCHPAD_SDA */ + PAD_CFG_NF(GPP_H4, NONE, DEEP, NF1), /* GPP_H5 : [NF1: I2C0_SCL NF6: USB_C_GPP_H5] ==> PCH_I2C_TCHPAD_SCL */ PAD_CFG_NF(GPP_H5, NONE, DEEP, NF1), /* GPP_H6 : [NF1: I2C1_SDA NF6: USB_C_GPP_H6] ==> PCH_I2C_TCHSCR_SDA */ @@ -292,24 +298,25 @@ static const struct pad_config gpio_table[] = { PAD_CFG_NF(GPP_H11, NONE, DEEP, NF2), /* GPP_H12 : [NF1: I2C7_SDA NF2: UART0_RTS# NF3: M2_SKT2_CFG2 NF4: ISH_GP6B NF5: DEVSLP0B NF6: USB_C_GPP_H12] ==> SOC_UART0_RTS_L */ PAD_CFG_NF(GPP_H12, NONE, DEEP, NF2), - /* GPP_H13 : No heuristic was found useful */ - PAD_NC(GPP_H13, NONE), + /* GPP_H13 : I2C7_SCL/UART0_CTS_L/M2_SKT2CFG3/ISH_GP7B/DEVSLK1B ==> BOARD_ID0 */ + PAD_CFG_GPI(GPP_H13, NONE, DEEP), /* GPP_H15 : [NF1: DDPB_CTRLCLK NF3: PCIE_LINK_DOWN NF6: USB_C_GPP_H15] ==> DDIB_HDMI_CTRLCLK */ PAD_CFG_NF(GPP_H15, NONE, DEEP, NF1), /* GPP_H17 : [NF1: DDPB_CTRLDATA NF6: USB_C_GPP_H17] ==> DDIB_HDMI_CTRLDATA */ PAD_CFG_NF(GPP_H17, NONE, DEEP, NF1), /* GPP_H18 : [NF1: PROC_C10_GATE# NF6: USB_C_GPP_H18] ==> CPU_C10_GATE_L */ PAD_CFG_NF(GPP_H18, NONE, DEEP, NF1), - /* GPP_H19 : No heuristic was found useful */ - PAD_NC(GPP_H19, NONE), - /* GPP_H20 : No heuristic was found useful */ - PAD_NC(GPP_H20, NONE), - /* GPP_H21 : [NF1: IMGCLKOUT2 NF6: USB_C_GPP_H21] ==> UCAM_MCLK_R */ - PAD_CFG_NF(GPP_H21, NONE, DEEP, NF1), - /* GPP_H22 : No heuristic was found useful */ - PAD_NC(GPP_H22, NONE), - /* GPP_H23 : No heuristic was found useful */ - PAD_NC(GPP_H23, NONE), + /* GPP_H19 : SRCCLKREQ4_L ==> PCIE_CLKREQ4_ODL */ + PAD_CFG_NF(GPP_H19, NONE, DEEP, NF1), + /* GPP_H20 : IMGCLKOUT1 ==> BOARD_ID7 */ + PAD_CFG_GPI(GPP_H20, NONE, DEEP), + /* GPP_H21 : [NF1: IMGCLKOUT2 NF6: USB_C_GPP_H21] ==> SOC_GPP_H21 */ + PAD_NC(GPP_H21, NONE), + /* GPP_H22 : IMGCLKOUT3 ==> BOARD_ID8 */ + PAD_CFG_GPI(GPP_H22, NONE, DEEP), + /* GPP_H23 : SRCCLKREQ5_L ==> PCIE_CLKREQ5_ODL */ + PAD_CFG_NF(GPP_H23, NONE, DEEP, NF1), + /* GPP_R0 : [NF1: HDA_BCLK NF2: I2S0_SCLK NF3: DMIC_CLK_B0 NF4: HDAPROC_BCLK] ==> HDA_HP_BCLK_R */ PAD_CFG_NF(GPP_R0, NONE, DEEP, NF1), /* GPP_R1 : [NF1: HDA_SYNC NF3: DMIC_CLK_B1] ==> HDA_HP_SYNC_R */ @@ -318,33 +325,35 @@ static const struct pad_config gpio_table[] = { PAD_CFG_NF(GPP_R2, NONE, DEEP, NF1), /* GPP_R3 : [NF1: HDA_SDI0 NF2: I2S0_RXD NF4: HDAPROC_SDI] ==> HDA_HP_SDI0 */ PAD_CFG_NF(GPP_R3, NONE, DEEP, NF1), - /* GPP_R4 : No heuristic was found useful */ + /* GPP_R4 : HDA_RST_L/I2S2_SCLK/DMIC_CLK_A0 ==> SOC_GPP_R4 */ PAD_NC(GPP_R4, NONE), - /* GPP_R5 : No heuristic was found useful */ + /* GPP_R5 : HDA_SDI1/I2S2_SFRM/DMIC_DATA0 ==> SOC_GPP_R4 */ PAD_NC(GPP_R5, NONE), - /* GPP_R6 : No heuristic was found useful */ - PAD_NC(GPP_R6, NONE), - /* GPP_R7 : No heuristic was found useful */ + /* GPP_R6 : I2S2_TXD/DMIC_CLK_A1 ==> BOARD_ID5 */ + PAD_CFG_GPI(GPP_R6, NONE, DEEP), + /* GPP_R7 : I2S2_RXD/DMIC_DATA1 ==> SOC_GPP_R7 */ PAD_NC(GPP_R7, NONE), - /* GPP_S0 : No heuristic was found useful */ - PAD_NC(GPP_S0, NONE), - /* GPP_S1 : No heuristic was found useful */ + + /* GPP_S0 : SNDW0_CLL/I2S1_SCLK ==> MEM_CH_SEL */ + PAD_CFG_GPI(GPP_S0, NONE, DEEP), + /* GPP_S1 : SNDW0_DATA/I2S1_SFRM ==> SOC_GPP_S1 */ PAD_NC(GPP_S1, NONE), /* GPP_S2 : [NF1: SNDW1_CLK NF2: DMIC_CKL_A0 NF4: I2S1_TXD] ==> DMIC_CLK0_R */ PAD_CFG_NF(GPP_S2, NONE, DEEP, NF2), /* GPP_S3 : [NF1: SNDW1_DATA NF2: DMIC_DATA0 NF4: I2S1_RXD] ==> DMIC_DATA0_EDP */ PAD_CFG_NF(GPP_S3, NONE, DEEP, NF2), - /* GPP_S4 : No heuristic was found useful */ + /* GPP_S4 : SNDW2_CLK/DMIC_CLK_B0 ==> SOC_GPP_S3 */ PAD_NC(GPP_S4, NONE), - /* GPP_S5 : No heuristic was found useful */ + /* GPP_S5 : SNDW2_DATA/DMIC_CLK_B1 ==> SOC_GPP_S4 */ PAD_NC(GPP_S5, NONE), - /* GPP_S6 : No heuristic was found useful */ - PAD_NC(GPP_S6, NONE), - /* GPP_S7 : No heuristic was found useful */ - PAD_NC(GPP_S7, NONE), - /* GPP_T2 : No heuristic was found useful */ + /* GPP_S6 : SNDW3_CLK/DMIC_CLK_A1 ==> BOARD_ID3 */ + PAD_CFG_GPI(GPP_S6, NONE, DEEP), + /* GPP_S7 : SNDW3_DATA/DMIC_DATA1 ==> BOARD_ID4 */ + PAD_CFG_GPI(GPP_S7, NONE, DEEP), + + /* GPP_T2 : GPP_T2 ==> TP70 */ PAD_NC(GPP_T2, NONE), - /* GPP_T3 : No heuristic was found useful */ + /* GPP_T3 : GPP_T3 ==> TP71 */ PAD_NC(GPP_T3, NONE), }; |