Angel Pons | 2712398 | 2020-04-05 13:22:30 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 2 | |
| 3 | #include <baseboard/gpio.h> |
| 4 | #include <baseboard/variants.h> |
| 5 | #include <commonlib/helpers.h> |
| 6 | |
| 7 | /* Pad configuration in ramstage */ |
| 8 | /* Leave eSPI pins untouched from default settings */ |
| 9 | static const struct pad_config gpio_table[] = { |
| 10 | /* A0 : RCIN# ==> NC(TP763) */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 11 | PAD_NC(GPP_A0, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 12 | /* A1 : ESPI_IO0_R */ |
| 13 | /* A2 : ESPI_IO1_R */ |
| 14 | /* A3 : ESPI_IO2_R */ |
| 15 | /* A4 : ESPI_IO3_R */ |
| 16 | /* A5 : ESPI_CS_L_R */ |
| 17 | /* A6 : SERIRQ ==> NC(TP764) */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 18 | PAD_NC(GPP_A6, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 19 | /* A7 : PIRQA# ==> NC(TP703) */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 20 | PAD_NC(GPP_A7, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 21 | /* A8 : CLKRUN# ==> NC(TP758)) */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 22 | PAD_NC(GPP_A8, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 23 | /* A9 : ESPI_CLK_R */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 24 | PAD_CFG_NF(GPP_A9, DN_20K, DEEP, NF3), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 25 | /* A10 : CLKOUT_LPC1 ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 26 | PAD_NC(GPP_A10, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 27 | /* A11 : PCH_FP_PWR_EN */ |
Nick Vaccaro | 4f9ff53 | 2018-07-26 19:28:03 -0700 | [diff] [blame] | 28 | PAD_CFG_GPO(GPP_A11, 1, DEEP), |
Vincent Palatin | 405eb44 | 2018-05-14 12:12:16 +0200 | [diff] [blame] | 29 | /* A12 : ISH_GP6 */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 30 | PAD_NC(GPP_A12, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 31 | /* A13 : SUSWARN# ==> SUSWARN_L */ |
| 32 | PAD_CFG_NF(GPP_A13, NONE, DEEP, NF1), |
| 33 | /* A14 : ESPI_RESET# */ |
| 34 | /* A15 : SUSACK# ==> SUSACK_L */ |
| 35 | PAD_CFG_NF(GPP_A15, NONE, DEEP, NF1), |
| 36 | /* A16 : SD_1P8_SEL ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 37 | PAD_NC(GPP_A16, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 38 | /* A17 : SD_PWR_EN# ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 39 | PAD_NC(GPP_A17, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 40 | /* A18 : ISH_GP0 ==> ISH_GP0 */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 41 | PAD_NC(GPP_A18, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 42 | /* A19 : SPKR_RST_L */ |
Nick Vaccaro | 8c4b526 | 2018-05-16 02:49:50 -0700 | [diff] [blame] | 43 | PAD_CFG_GPO(GPP_A19, 1, PLTRST), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 44 | /* A20 : ISH_GP2 ==> ISH_UART0_RXD */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 45 | PAD_NC(GPP_A20, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 46 | /* A21 : ISH_GP3 */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 47 | PAD_NC(GPP_A21, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 48 | /* A22 : ISH_GP4 */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 49 | PAD_NC(GPP_A22, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 50 | /* A23 : ISH_GP5 */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 51 | PAD_NC(GPP_A23, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 52 | |
| 53 | /* B0 : CORE_VID0 */ |
| 54 | PAD_CFG_NF(GPP_B0, NONE, DEEP, NF1), |
| 55 | /* B1 : CORE_VID1 */ |
| 56 | PAD_CFG_NF(GPP_B1, NONE, DEEP, NF1), |
| 57 | /* B2 : VRALERT# ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 58 | PAD_NC(GPP_B2, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 59 | /* B3 : CPU_GP2 ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 60 | PAD_NC(GPP_B3, NONE), |
Nick Vaccaro | fc7cc42 | 2018-06-11 23:40:27 -0700 | [diff] [blame] | 61 | /* B4 : CPU_GP3 ==> FCAM_PWR_EN */ |
| 62 | PAD_CFG_GPO(GPP_B4, 0, DEEP), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 63 | /* B5 : SRCCLKREQ0# ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 64 | PAD_NC(GPP_B5, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 65 | /* B6 : SRCCLKREQ1# ==> WLAN_PCIE_CLKREQ_L */ |
| 66 | PAD_CFG_GPI_GPIO_DRIVER(GPP_B6, NONE, DEEP), |
Nick Vaccaro | 0a2e39d | 2018-06-06 17:05:15 -0700 | [diff] [blame] | 67 | /* B7 : SRCCLKREQ2# ==> PCIE_NVME_CLKREQ_ODL */ |
| 68 | PAD_CFG_NF(GPP_B7, NONE, DEEP, NF1), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 69 | /* B8 : SRCCLKREQ3# ==> WLAN_PE_RST */ |
| 70 | PAD_CFG_GPO(GPP_B8, 0, RSMRST), |
| 71 | /* B9 : SRCCLKREQ4# ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 72 | PAD_NC(GPP_B9, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 73 | /* B10 : SRCCLKREQ5# ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 74 | PAD_NC(GPP_B10, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 75 | /* B11 : EXT_PWR_GATE# ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 76 | PAD_NC(GPP_B11, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 77 | /* B12 : SLP_S0# ==> SLP_S0_L_G */ |
| 78 | PAD_CFG_NF(GPP_B12, NONE, DEEP, NF1), |
| 79 | /* B13 : PLTRST# ==> PLT_RST_L */ |
| 80 | PAD_CFG_NF(GPP_B13, NONE, DEEP, NF1), |
| 81 | /* B14 : SPKR ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 82 | PAD_NC(GPP_B14, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 83 | /* B15 : GSPI0_CS# ==> H1_SLAVE_SPI_CS_L */ |
| 84 | PAD_CFG_NF(GPP_B15, NONE, DEEP, NF1), |
| 85 | /* B16 : GSPI0_CLK ==> H1_SLAVE_SPI_CLK */ |
| 86 | PAD_CFG_NF(GPP_B16, NONE, DEEP, NF1), |
| 87 | /* B17 : GSPI0_MISO ==> H1_SLAVE_SPI_MISO */ |
| 88 | PAD_CFG_NF(GPP_B17, NONE, DEEP, NF1), |
| 89 | /* B18 : GSPI0_MOSI ==> H1_SLAVE_SPI_MOSI */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 90 | PAD_CFG_NF(GPP_B18, DN_20K, DEEP, NF1), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 91 | /* B19 : GSPI1_CS# ==> PCH_FPMCU_SPI_CS_L_R */ |
| 92 | PAD_CFG_NF(GPP_B19, NONE, DEEP, NF1), |
| 93 | /* B20 : GSPI1_CLK ==> PCH_FPMCU_SPI_CLK_R */ |
| 94 | PAD_CFG_NF(GPP_B20, NONE, DEEP, NF1), |
| 95 | /* B21 : GSPI1_MISO ==> PCH_FPMCU_SPI_MISO_R */ |
| 96 | PAD_CFG_NF(GPP_B21, NONE, DEEP, NF1), |
| 97 | /* B22 : GSPI1_MOSI ==> PCH_FPMCU_SPI_MOSI_R */ |
Vincent Palatin | 405eb44 | 2018-05-14 12:12:16 +0200 | [diff] [blame] | 98 | PAD_CFG_NF(GPP_B22, NONE, DEEP, NF1), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 99 | /* B23 : SM1ALERT# ==> PCHHOT# */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 100 | PAD_CFG_NF(GPP_B23, DN_20K, DEEP, NF2), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 101 | |
| 102 | /* C0 : SMBCLK ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 103 | PAD_NC(GPP_C0, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 104 | /* C1 : SMBDATA ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 105 | PAD_NC(GPP_C1, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 106 | /* C2 : SMBALERT# ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 107 | PAD_NC(GPP_C2, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 108 | /* C3 : SML0CLK ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 109 | PAD_NC(GPP_C3, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 110 | /* C4 : SML0DATA ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 111 | PAD_NC(GPP_C4, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 112 | /* C5 : SML0ALERT# */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 113 | PAD_CFG_NF(GPP_C5, DN_20K, DEEP, NF1), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 114 | /* C6 : SM1CLK ==> EC_IN_RW_OD */ |
| 115 | PAD_CFG_GPI_GPIO_DRIVER(GPP_C6, NONE, DEEP), |
| 116 | /* C7 : SM1DATA ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 117 | PAD_NC(GPP_C7, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 118 | /* C8 : UART0_RXD ==> PCH_FPMCU_BOOT0 */ |
Vincent Palatin | 405eb44 | 2018-05-14 12:12:16 +0200 | [diff] [blame] | 119 | PAD_CFG_GPO(GPP_C8, 0, DEEP), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 120 | /* C9 : UART0_TXD ==> FPMCU_INT */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 121 | PAD_CFG_GPI_SCI(GPP_C9, NONE, DEEP, EDGE_SINGLE, INVERT), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 122 | /* C10 : UART0_RTS# ==> PCH_FPMCU_RST_ODL */ |
Nick Vaccaro | 4f9ff53 | 2018-07-26 19:28:03 -0700 | [diff] [blame] | 123 | PAD_CFG_GPO(GPP_C10, 1, DEEP), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 124 | /* C11 : UART0_CTS# ==> FPMCU_INT */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 125 | PAD_CFG_GPI_APIC_HIGH(GPP_C11, UP_20K, PLTRST), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 126 | /* C12 : UART1_RXD ==> PCH_MEM_CONFIG[0] */ |
| 127 | PAD_CFG_GPI_GPIO_DRIVER(GPP_C12, NONE, DEEP), |
| 128 | /* C13 : UART1_TXD ==> PCH_MEM_CONFIG[1] */ |
| 129 | PAD_CFG_GPI_GPIO_DRIVER(GPP_C13, NONE, DEEP), |
| 130 | /* C14 : UART1_RTS# ==> PCH_MEM_CONFIG[2] */ |
| 131 | PAD_CFG_GPI_GPIO_DRIVER(GPP_C14, NONE, DEEP), |
| 132 | /* C15 : UART1_CTS# ==> PCH_MEM_CONFIG[3] */ |
| 133 | PAD_CFG_GPI_GPIO_DRIVER(GPP_C15, NONE, DEEP), |
| 134 | /* C16 : I2C0_SDA ==> PCH_I2C0_TOUCHSCREEN_SDA */ |
| 135 | PAD_CFG_NF(GPP_C16, NONE, DEEP, NF1), |
| 136 | /* C17 : I2C0_SCL ==> PCH_I2C0_TOUCHSCREEN_SCL */ |
| 137 | PAD_CFG_NF(GPP_C17, NONE, DEEP, NF1), |
| 138 | /* C18 : I2C1_SDA ==> PCH_I2C1_DISPLAY_SAR_SDA */ |
| 139 | PAD_CFG_NF(GPP_C18, NONE, DEEP, NF1), |
| 140 | /* C19 : I2C1_SCL ==> PCH_I2C1_DISPLAY_SAR_SCL */ |
Nick Vaccaro | 6a7f584 | 2018-10-01 17:15:12 -0700 | [diff] [blame] | 141 | PAD_CFG_NF(GPP_C19, NONE, DEEP, NF1), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 142 | /* C20 : UART2_RXD ==> PCHRX_SERVOTX_UART */ |
| 143 | PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1), |
| 144 | /* C21 : UART2_TXD ==> PCHTX_SERVORX_UART */ |
| 145 | PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), |
| 146 | /* C22 : UART2_RTS# ==> EN_PP3300_DX_TOUCHSCREEN */ |
| 147 | PAD_CFG_GPO(GPP_C22, 0, DEEP), |
| 148 | /* C23 : UART2_CTS# ==> PCH_WP_OD */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 149 | PAD_CFG_GPI_GPIO_DRIVER(GPP_C23, UP_20K, DEEP), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 150 | |
| 151 | /* D0 : SPI1_CS# ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 152 | PAD_NC(GPP_D0, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 153 | /* D1 : SPI1_CLK ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 154 | PAD_NC(GPP_D1, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 155 | /* D2 : SPI1_MISO ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 156 | PAD_NC(GPP_D2, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 157 | /* D3 : SPI1_MOSI ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 158 | PAD_NC(GPP_D3, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 159 | /* D4 : FASHTRIG ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 160 | PAD_NC(GPP_D4, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 161 | /* D5 : ISH_I2C0_SDA ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 162 | PAD_NC(GPP_D5, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 163 | /* D6 : ISH_I2C0_SCL ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 164 | PAD_NC(GPP_D6, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 165 | /* D7 : ISH_I2C1_SDA ==> RCAM_PWR_EN */ |
| 166 | PAD_CFG_GPO(GPP_D7, 0, DEEP), |
Ricky Liang | 8d0fd5d | 2018-07-11 17:07:31 +0800 | [diff] [blame] | 167 | /* D8 : ISH_I2C1_SCL ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 168 | PAD_NC(GPP_D8, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 169 | /* D9 : ISH_SPI_CS# ==> PCH_SR1_INT_L */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 170 | PAD_CFG_GPI_APIC_HIGH(GPP_D9, NONE, PLTRST), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 171 | /* D10 : ISH_SPI_CLK ==> PCH_SR0_INT_L */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 172 | PAD_CFG_GPI_APIC_HIGH(GPP_D10, NONE, PLTRST), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 173 | /* D11 : ISH_SPI_MISO ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 174 | PAD_NC(GPP_D11, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 175 | /* D12 : ISH_SPI_MOSI ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 176 | PAD_NC(GPP_D12, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 177 | /* D13 : ISH_UART0_RXD ==> PCH_FCAM_CLK_EN */ |
| 178 | PAD_CFG_GPO(GPP_D13, 0, DEEP), |
| 179 | /* D14 : ISH_UART0_TXD ==> PCH_RCAM_CLK_EN */ |
| 180 | PAD_CFG_GPO(GPP_D14, 0, DEEP), |
| 181 | /* D15 : ISH_UART0_RTS# ==> FCAM_RST_L */ |
| 182 | PAD_CFG_GPO(GPP_D15, 0, DEEP), |
| 183 | /* D16 : ISH_UART0_CTS# ==> RCAM_RST_L */ |
| 184 | PAD_CFG_GPO(GPP_D16, 0, DEEP), |
Nick Vaccaro | d1d3e62 | 2018-09-19 17:16:17 -0700 | [diff] [blame] | 185 | /* D17 : DMIC_CLK1 ==> EC_PCH_ARCORE_INT_L */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 186 | PAD_CFG_GPI_APIC_HIGH(GPP_D17, NONE, PLTRST), |
Nick Vaccaro | d1d3e62 | 2018-09-19 17:16:17 -0700 | [diff] [blame] | 187 | /* D18 : DMIC_DATA1 ==> TP131 */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 188 | PAD_NC(GPP_D18, NONE), |
Sathyanarayana Nujella | 6f70d51 | 2018-09-02 09:11:28 -0700 | [diff] [blame] | 189 | /* D19 : DMIC_CLK0 ==> PCH_DMIC_CLK_OUT */ |
| 190 | PAD_CFG_NF(GPP_D19, NONE, DEEP, NF1), |
| 191 | /* D20 : DMIC_DATA0 ==> PCH_DMIC_DATA_IN */ |
| 192 | PAD_CFG_NF(GPP_D20, NONE, DEEP, NF1), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 193 | /* D21 : SPI1_IO2 ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 194 | PAD_NC(GPP_D21, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 195 | /* D22 : SPI1_IO3 ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 196 | PAD_NC(GPP_D22, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 197 | /* D23 : I2S_MCLK ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 198 | PAD_NC(GPP_D23, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 199 | |
| 200 | /* E0 : SATAXPCI0 ==> H1_PCH_INT_ODL */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 201 | PAD_CFG_GPI_APIC_LOW(GPP_E0, NONE, PLTRST), |
Nick Vaccaro | 49abfca | 2018-11-13 13:39:48 -0800 | [diff] [blame] | 202 | /* E1 : SATAXPCIE1 ==> WLAN_WAKE_L */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 203 | PAD_CFG_GPI_SCI(GPP_E1, NONE, DEEP, EDGE_SINGLE, INVERT), |
Nick Vaccaro | f0afb3e | 2018-06-12 00:09:02 -0700 | [diff] [blame] | 204 | /* E2 : SATAXPCIE2 ==> BT_DISABLE_L */ |
| 205 | PAD_CFG_GPO(GPP_E2, 1, DEEP), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 206 | /* E3 : CPU_GP0 ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 207 | PAD_NC(GPP_E3, NONE), |
Nick Vaccaro | 6a7f584 | 2018-10-01 17:15:12 -0700 | [diff] [blame] | 208 | /* E3 : DEVSLP0 ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 209 | PAD_NC(GPP_E4, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 210 | /* E5 : SATA_DEVSLP1 ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 211 | PAD_NC(GPP_E5, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 212 | /* E6 : SATA_DEVSLP2 ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 213 | PAD_NC(GPP_E6, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 214 | /* E7 : CPU_GP1 ==> TOUCHSCREEN_INT_L */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 215 | PAD_CFG_GPI_APIC_HIGH(GPP_E7, NONE, PLTRST), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 216 | /* E8 : SATALED# ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 217 | PAD_NC(GPP_E8, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 218 | /* E9 : USB2_OCO# ==> USB_C0_OC_ODL */ |
Roy Mingi Park | 9814f8f | 2018-10-10 15:07:59 -0700 | [diff] [blame] | 219 | PAD_CFG_NF(GPP_E9, NONE, DEEP, NF1), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 220 | /* E10 : USB2_OC1# ==> USB_C1_OC_ODL */ |
Roy Mingi Park | 9814f8f | 2018-10-10 15:07:59 -0700 | [diff] [blame] | 221 | PAD_CFG_NF(GPP_E10, NONE, DEEP, NF1), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 222 | /* E11 : USB2_OC2# ==> TOUCHSCREEN_RESET_L */ |
Matt DeVillier | 3d352a7 | 2022-12-21 11:21:49 -0600 | [diff] [blame^] | 223 | PAD_CFG_GPO(GPP_E11, 0, DEEP), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 224 | /* E12 : USB2_OC3# ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 225 | PAD_NC(GPP_E12, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 226 | /* E13 : DDPB_HPD0 ==> USB_C1_DP_HPD */ |
| 227 | PAD_CFG_NF(GPP_E13, NONE, DEEP, NF1), |
| 228 | /* E14 : DDPC_HPD1 ==> USB_C0_DP_HPD */ |
| 229 | PAD_CFG_NF(GPP_E14, NONE, DEEP, NF1), |
| 230 | /* E15 : DDPD_HPD2 ==> EN_PP3300_DX_WLAN */ |
| 231 | PAD_CFG_GPO(GPP_E15, 1, DEEP), |
| 232 | /* E16 : DDPE_HPD3 ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 233 | PAD_NC(GPP_E16, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 234 | /* E17 : EDP_HPD ==> EDP_HPD_3V3 */ |
| 235 | PAD_CFG_NF(GPP_E17, NONE, DEEP, NF1), |
| 236 | /* E18 : DDPB_CTRLCLK ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 237 | PAD_NC(GPP_E18, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 238 | /* E19 : DDPB_CTRLDATA ==> DDPB_CTRLDATA */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 239 | PAD_CFG_NF(GPP_E19, DN_20K, DEEP, NF1), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 240 | /* E20 : DDPC_CTRLCLK ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 241 | PAD_NC(GPP_E20, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 242 | /* E21 : DDPC_CTRLDATA ==> DDPC_CTRLDATA */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 243 | PAD_CFG_NF(GPP_E21, DN_20K, DEEP, NF1), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 244 | /* E22 : DDPD_CTRLCLK ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 245 | PAD_NC(GPP_E22, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 246 | /* E23 : DDPD_CTRLDATA ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 247 | PAD_NC(GPP_E23, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 248 | |
| 249 | /* F0 : I2S2_SCLK ==> BOOT_BEEP_CLK */ |
Sathyanarayana Nujella | 9146ccd | 2018-05-07 16:06:59 -0700 | [diff] [blame] | 250 | PAD_CFG_GPI_GPIO_DRIVER(GPP_F0, NONE, DEEP), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 251 | /* F1 : I2S2_SFRM ==> BOOT_BEEP_BUFFER_OE */ |
Sathyanarayana Nujella | 9146ccd | 2018-05-07 16:06:59 -0700 | [diff] [blame] | 252 | PAD_CFG_GPO(GPP_F1, 1, DEEP), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 253 | /* F2 : I2S2_TXD ==> BOOT_BEEP_SFRM */ |
Sathyanarayana Nujella | 9146ccd | 2018-05-07 16:06:59 -0700 | [diff] [blame] | 254 | PAD_CFG_GPI_GPIO_DRIVER(GPP_F2, NONE, DEEP), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 255 | /* F3 : I2S2_RXD ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 256 | PAD_NC(GPP_F3, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 257 | /* F4 : I2C2_SDA ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 258 | PAD_NC(GPP_F4, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 259 | /* F5 : I2C2_SCL ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 260 | PAD_NC(GPP_F5, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 261 | /* F6 : I2C3_SDA ==> PCH_I2C3_FCAM_1V8_SDA */ |
| 262 | PAD_CFG_NF_1V8(GPP_F6, NONE, DEEP, NF1), |
| 263 | /* F7 : I2C3_SCL ==> PCH_I2C3_FCAM_1V8_SCL */ |
| 264 | PAD_CFG_NF_1V8(GPP_F7, NONE, DEEP, NF1), |
| 265 | /* F8 : I2C4_SDA ==> PCH_I2C4_AUDIO_1V8_SDA */ |
| 266 | PAD_CFG_NF_1V8(GPP_F8, NONE, DEEP, NF1), |
| 267 | /* F9 : I2C4_SCL ==> PCH_I2C4_AUDIO_1V8_SCL */ |
| 268 | PAD_CFG_NF_1V8(GPP_F9, NONE, DEEP, NF1), |
| 269 | /* F10 : I2C5_SDA ==> SOC_RCAM_SAR0_I2C5_SDA */ |
| 270 | PAD_CFG_NF(GPP_F10, NONE, DEEP, NF1), |
| 271 | /* F11 : I2C5_SCL ==> SOC_RCAM_SAR0_I2C5_SCL */ |
| 272 | PAD_CFG_NF(GPP_F11, NONE, DEEP, NF1), |
| 273 | /* F12 : EMMC_CMD */ |
| 274 | PAD_CFG_NF(GPP_F12, NONE, DEEP, NF1), |
| 275 | /* F13 : EMMC_DATA0 */ |
| 276 | PAD_CFG_NF(GPP_F13, NONE, DEEP, NF1), |
| 277 | /* F14 : EMMC_DATA1 */ |
| 278 | PAD_CFG_NF(GPP_F14, NONE, DEEP, NF1), |
| 279 | /* F15 : EMMC_DATA2 */ |
| 280 | PAD_CFG_NF(GPP_F15, NONE, DEEP, NF1), |
| 281 | /* F16 : EMMC_DATA3 */ |
| 282 | PAD_CFG_NF(GPP_F16, NONE, DEEP, NF1), |
| 283 | /* F17 : EMMC_DATA4 */ |
| 284 | PAD_CFG_NF(GPP_F17, NONE, DEEP, NF1), |
| 285 | /* F18 : EMMC_DATA5 */ |
| 286 | PAD_CFG_NF(GPP_F18, NONE, DEEP, NF1), |
| 287 | /* F19 : EMMC_DATA6 */ |
| 288 | PAD_CFG_NF(GPP_F19, NONE, DEEP, NF1), |
| 289 | /* F20 : EMMC_DATA7 */ |
| 290 | PAD_CFG_NF(GPP_F20, NONE, DEEP, NF1), |
| 291 | /* F21 : EMMC_RCLK */ |
| 292 | PAD_CFG_NF(GPP_F21, NONE, DEEP, NF1), |
| 293 | /* F22 : EMMC_CLK */ |
| 294 | PAD_CFG_NF(GPP_F22, NONE, DEEP, NF1), |
| 295 | /* F23 : RSVD ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 296 | PAD_NC(GPP_F23, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 297 | |
| 298 | /* G0 : SD_CMD */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 299 | PAD_NC(GPP_G0, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 300 | /* G1 : SD_DATA0 */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 301 | PAD_NC(GPP_G1, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 302 | /* G2 : SD_DATA1 */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 303 | PAD_NC(GPP_G2, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 304 | /* G3 : SD_DATA2 */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 305 | PAD_NC(GPP_G3, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 306 | /* G4 : SD_DATA3 */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 307 | PAD_NC(GPP_G4, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 308 | /* G5 : SD_CD# */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 309 | PAD_NC(GPP_G5, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 310 | /* G6 : SD_CLK */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 311 | PAD_NC(GPP_G6, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 312 | /* G7 : SD_WP */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 313 | PAD_NC(GPP_G7, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 314 | |
| 315 | /* GPD0: BATLOW# ==> PCH_BATLOW_L */ |
| 316 | PAD_CFG_NF(GPD0, NONE, DEEP, NF1), |
| 317 | /* GPD1: ACPRESENT ==> EC_PCH_ACPRESENT */ |
| 318 | PAD_CFG_NF(GPD1, NONE, DEEP, NF1), |
| 319 | /* GPD2: LAN_WAKE# ==> EC_PCH_WAKE_R_L */ |
| 320 | PAD_CFG_NF(GPD2, NONE, DEEP, NF1), |
| 321 | /* GPD3: PWRBTN# ==> PCH_PWR_BTN_L */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 322 | PAD_CFG_NF(GPD3, UP_20K, DEEP, NF1), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 323 | /* GPD4: SLP_S3# ==> SLP_S3_L */ |
| 324 | PAD_CFG_NF(GPD4, NONE, DEEP, NF1), |
| 325 | /* GPD5: SLP_S4# ==> SLP_S4_L */ |
| 326 | PAD_CFG_NF(GPD5, NONE, DEEP, NF1), |
| 327 | /* GPD6: SLP_A# ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 328 | PAD_NC(GPD6, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 329 | /* GPD7: RSVD ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 330 | PAD_NC(GPD7, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 331 | /* GPD8: SUSCLK ==> PCH_SUSCLK */ |
| 332 | PAD_CFG_NF(GPD8, NONE, DEEP, NF1), |
| 333 | /* GPD9: SLP_WLAN# ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 334 | PAD_NC(GPD9, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 335 | /* GPD10: SLP_S5# ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 336 | PAD_NC(GPD10, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 337 | /* GPD11: LANPHYC ==> NC */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 338 | PAD_NC(GPD11, NONE), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 339 | }; |
| 340 | |
| 341 | /* Early pad configuration in bootblock */ |
| 342 | static const struct pad_config early_gpio_table[] = { |
| 343 | /* B8 : SRCCLKREQ3# ==> WLAN_PE_RST */ |
| 344 | PAD_CFG_GPO(GPP_B8, 0, RSMRST), |
| 345 | |
| 346 | /* B15 : GSPI0_CS# ==> H1_SLAVE_SPI_CS_L */ |
| 347 | PAD_CFG_NF(GPP_B15, NONE, DEEP, NF1), |
| 348 | /* B16 : GSPI0_CLK ==> H1_SLAVE_SPI_CLK */ |
| 349 | PAD_CFG_NF(GPP_B16, NONE, DEEP, NF1), |
| 350 | /* B17 : GSPI0_MISO ==> H1_SLAVE_SPI_MISO */ |
| 351 | PAD_CFG_NF(GPP_B17, NONE, DEEP, NF1), |
| 352 | /* B18 : GSPI0_MOSI ==> H1_SLAVE_SPI_MOSI */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 353 | PAD_CFG_NF(GPP_B18, DN_20K, DEEP, NF1), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 354 | |
Hsuan-ting Chen | 642508a | 2021-10-27 10:59:41 +0000 | [diff] [blame] | 355 | /* C6 : SM1CLK ==> EC_IN_RW_OD */ |
| 356 | PAD_CFG_GPI_GPIO_DRIVER(GPP_C6, UP_20K, DEEP), |
| 357 | |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 358 | /* Ensure UART pins are in native mode for H1. */ |
| 359 | /* C20 : UART2_RXD ==> PCHRX_SERVOTX_UART */ |
| 360 | PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1), |
| 361 | /* C21 : UART2_TXD ==> PCHTX_SERVORX_UART */ |
| 362 | PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), |
| 363 | |
| 364 | /* C23 : UART2_CTS# ==> PCH_WP */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 365 | PAD_CFG_GPI_GPIO_DRIVER(GPP_C23, UP_20K, DEEP), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 366 | |
| 367 | /* E0 : SATAXPCI0 ==> H1_PCH_INT_ODL */ |
Michael Niewöhner | f50ea98 | 2020-10-19 12:31:21 +0200 | [diff] [blame] | 368 | PAD_CFG_GPI_APIC_LOW(GPP_E0, NONE, PLTRST), |
Nick Vaccaro | 1799994 | 2018-04-23 17:13:52 -0700 | [diff] [blame] | 369 | }; |
| 370 | |
| 371 | const struct pad_config *variant_gpio_table(size_t *num) |
| 372 | { |
| 373 | *num = ARRAY_SIZE(gpio_table); |
| 374 | return gpio_table; |
| 375 | } |
| 376 | |
| 377 | const struct pad_config *variant_early_gpio_table(size_t *num) |
| 378 | { |
| 379 | *num = ARRAY_SIZE(early_gpio_table); |
| 380 | return early_gpio_table; |
| 381 | } |