Eric Lai | 5c02779 | 2022-05-23 16:21:36 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
Kevin Chowski | 34aa639 | 2022-08-17 14:55:49 -0600 | [diff] [blame] | 3 | /* This header block is used to supply information to arbitrage, a |
| 4 | * google-internal tool. Updating it incorrectly will lead to issues, |
| 5 | * so please don't update it unless a change is specifically required. |
| 6 | * BaseID: 3EC4CE58201758F4 |
| 7 | * Overrides: c826ba419f06f9df9cded8e60633253ddc7b60ff |
| 8 | */ |
| 9 | |
Eric Lai | 5c02779 | 2022-05-23 16:21:36 +0800 | [diff] [blame] | 10 | #include <baseboard/gpio.h> |
| 11 | #include <baseboard/variants.h> |
| 12 | #include <soc/gpio.h> |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 13 | #include <console/console.h> |
| 14 | #include <boardid.h> |
Eric Lai | 5c02779 | 2022-05-23 16:21:36 +0800 | [diff] [blame] | 15 | |
| 16 | /* Pad configuration in ramstage */ |
Subrata Banik | 8ca7d26 | 2022-12-01 17:26:35 +0530 | [diff] [blame] | 17 | static const struct pad_config gpio_table[] = { |
Bora Guvendik | 5e6319b | 2023-05-31 11:10:42 -0700 | [diff] [blame] | 18 | /* GPP_A00 : GPP_A00 ==> ESPI_SOC_IO0_R */ |
| 19 | PAD_CFG_NF_IOSSTATE(GPP_A00, UP_20K, DEEP, NF1, IGNORE), |
| 20 | /* GPP_A01 : GPP_A01 ==> ESPI_SOC_IO1_R */ |
| 21 | PAD_CFG_NF_IOSSTATE(GPP_A01, UP_20K, DEEP, NF1, IGNORE), |
| 22 | /* GPP_A02 : GPP_A02 ==> ESPI_SOC_IO2_R */ |
| 23 | PAD_CFG_NF_IOSSTATE(GPP_A02, UP_20K, DEEP, NF1, IGNORE), |
| 24 | /* GPP_A03 : GPP_A03 ==> ESPI_SOC_IO3_R */ |
| 25 | PAD_CFG_NF_IOSSTATE(GPP_A03, UP_20K, DEEP, NF1, IGNORE), |
| 26 | /* GPP_A04 : GPP_A04 ==> ESPI_SOC_CS0_L */ |
| 27 | PAD_CFG_NF_IOSSTATE(GPP_A04, UP_20K, DEEP, NF1, IGNORE), |
| 28 | /* GPP_A05 : GPP_A05 ==> ESPI_SOC_CLK_R */ |
| 29 | PAD_CFG_NF_IOSSTATE(GPP_A05, UP_20K, DEEP, NF1, IGNORE), |
| 30 | /* GPP_A06 : GPP_A06 ==> ESPI_SOC_RESET_L */ |
| 31 | PAD_CFG_NF_IOSSTATE(GPP_A06, UP_20K, DEEP, NF1, IGNORE), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 32 | /* GPP_A11 : [] ==> EN_UCAM_SENR_PWR */ |
| 33 | PAD_CFG_GPO(GPP_A11, 0, DEEP), |
| 34 | /* GPP_A12 : [] ==> EN_UCAM_PWR */ |
| 35 | PAD_CFG_GPO(GPP_A12, 0, DEEP), |
| 36 | /* GPP_A13 : [] ==> SD_PE_LS_PRSNT_L */ |
| 37 | PAD_CFG_GPI_LOCK(GPP_A13, NONE, LOCK_CONFIG), |
| 38 | /* GPP_A14 : [] ==> WWAN_RF_DISABLE_ODL */ |
Tarun Tuli | b775d9e | 2023-05-11 15:25:16 +0000 | [diff] [blame] | 39 | PAD_NC_LOCK(GPP_A14, NONE, LOCK_CONFIG), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 40 | /* GPP_A15 : [] ==> WWAN_RST_L */ |
| 41 | PAD_CFG_GPO(GPP_A15, 1, DEEP), |
Bora Guvendik | 5e6319b | 2023-05-31 11:10:42 -0700 | [diff] [blame] | 42 | /* GPP_A16 : GPP_A16 ==> ESPI_SOC_ALERT_L */ |
| 43 | PAD_CFG_NF_IOSSTATE(GPP_A16, UP_20K, DEEP, NF1, IGNORE), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 44 | /* GPP_A17 : [] ==> EC_SOC_INT_ODL */ |
Tarun Tuli | da70cb5 | 2022-08-29 15:43:21 -0400 | [diff] [blame] | 45 | PAD_CFG_GPI_APIC_LOCK(GPP_A17, NONE, LEVEL, INVERT, LOCK_CONFIG), |
| 46 | |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 47 | /* GPP_A18 : [] ==> CAM_PSW_L */ |
| 48 | PAD_CFG_GPI_INT_LOCK(GPP_A18, NONE, EDGE_BOTH, LOCK_CONFIG), |
| 49 | /* GPP_A19 : [] ==> EN_PP3300_SSD */ |
| 50 | PAD_CFG_GPO(GPP_A19, 1, DEEP), |
| 51 | /* GPP_A20 : [] ==> SSD_PERST_L */ |
| 52 | PAD_CFG_GPO_LOCK(GPP_A20, 1, LOCK_CONFIG), |
| 53 | /* GPP_A21 : [] ==> WWAN_CONFIG2 */ |
| 54 | PAD_CFG_GPI(GPP_A21, NONE, DEEP), |
| 55 | |
| 56 | /* GPP_B00 : [] ==> TCHPAD_INT_ODL_LS */ |
| 57 | PAD_CFG_GPI_IRQ_WAKE_LOCK(GPP_B00, NONE, LEVEL, INVERT, LOCK_CONFIG), |
| 58 | /* GPP_B01 : [] ==> BT_DISABLE_L */ |
| 59 | PAD_CFG_GPO(GPP_B01, 1, DEEP), |
| 60 | /* GPP_B02 : net NC is not present in the given design */ |
| 61 | PAD_NC(GPP_B02, NONE), |
| 62 | /* GPP_B03 : net NC is not present in the given design */ |
| 63 | PAD_NC(GPP_B03, NONE), |
| 64 | /* GPP_B04 : GPP_B04_STRAP ==> Component NC */ |
| 65 | PAD_NC(GPP_B04, NONE), |
Tarun Tuli | 14bed61 | 2022-09-08 12:37:57 -0400 | [diff] [blame] | 66 | /* GPP_B05 : [] ==> SPKR_INT_L_R */ |
| 67 | PAD_CFG_GPI(GPP_B05, NONE, DEEP), |
| 68 | /* GPP_B06 : [] ==> HP_INT_L_R */ |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 69 | PAD_CFG_GPI_INT(GPP_B06, NONE, PLTRST, EDGE_BOTH), |
Tarun Tuli | 14bed61 | 2022-09-08 12:37:57 -0400 | [diff] [blame] | 70 | /* GPP_B07 : [] ==> RST_HP_L */ |
| 71 | PAD_CFG_GPO(GPP_B07, 1, DEEP), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 72 | /* GPP_B08 : net NC is not present in the given design */ |
| 73 | PAD_NC(GPP_B08, NONE), |
| 74 | /* GPP_B09 : [] ==> EN_FCAM_PWR */ |
| 75 | PAD_CFG_GPO(GPP_B09, 0, DEEP), |
| 76 | /* GPP_B10 : [] ==> WIFI_DISABLE_L */ |
| 77 | PAD_CFG_GPO(GPP_B10, 1, DEEP), |
| 78 | /* GPP_B11 : [] ==> EN_FP_PWR */ |
| 79 | PAD_CFG_GPO_LOCK(GPP_B11, 1, LOCK_CONFIG), |
| 80 | /* GPP_B12 : [] ==> SLP_SO_R_L */ |
| 81 | PAD_CFG_NF(GPP_B12, NONE, DEEP, NF1), |
| 82 | /* GPP_B13 : [] ==> PLT_RST_L */ |
| 83 | PAD_CFG_NF(GPP_B13, NONE, DEEP, NF1), |
| 84 | /* GPP_B14 : GPP_B14_STRAP ==> Component NC */ |
| 85 | PAD_NC(GPP_B14, NONE), |
| 86 | /* GPP_B15 : [] ==> USB_OC3# */ |
| 87 | PAD_CFG_NF_LOCK(GPP_B15, NONE, NF1, LOCK_CONFIG), |
Tarun Tuli | 14bed61 | 2022-09-08 12:37:57 -0400 | [diff] [blame] | 88 | /* GPP_B16 : [] ==> SOC_HDMI_HPD_L */ |
| 89 | PAD_CFG_NF(GPP_B16, NONE, DEEP, NF2), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 90 | /* GPP_B17 : [] ==> EN_WWAN_PWR */ |
| 91 | PAD_CFG_GPO(GPP_B17, 1, DEEP), |
| 92 | /* GPP_B18 : [] ==> SOC_I2C_TPM_SDA */ |
| 93 | PAD_CFG_NF_LOCK(GPP_B18, NONE, NF2, LOCK_CONFIG), |
| 94 | /* GPP_B19 : [] ==> SOC_I2C_TPM_SCL */ |
| 95 | PAD_CFG_NF_LOCK(GPP_B19, NONE, NF2, LOCK_CONFIG), |
| 96 | /* GPP_B20 : [] ==> SOC_I2C_MISC_SDA */ |
| 97 | PAD_CFG_NF_LOCK(GPP_B20, NONE, NF2, LOCK_CONFIG), |
| 98 | /* GPP_B21 : [] ==> SOC_I2C_MISC_SCL */ |
| 99 | PAD_CFG_NF_LOCK(GPP_B21, NONE, NF2, LOCK_CONFIG), |
| 100 | /* GPP_B22 : [] ==> USB4_RT_FORCE_PWR */ |
| 101 | PAD_CFG_GPO(GPP_B22, 0, DEEP), |
| 102 | /* GPP_B23 : [] ==> WWAN_CONFIG0 */ |
| 103 | PAD_CFG_GPI_LOCK(GPP_B23, NONE, LOCK_CONFIG), |
| 104 | |
Eran Mitrani | 04c3b32 | 2023-01-10 17:00:11 -0800 | [diff] [blame] | 105 | /* GPP_C00 : [] ==> EN_TCHSCR_PWR */ |
Subrata Banik | e8097f7 | 2022-09-15 00:17:20 -0700 | [diff] [blame] | 106 | PAD_CFG_GPO(GPP_C00, 0, DEEP), |
Subrata Banik | 6e827a8 | 2023-05-24 15:18:48 +0530 | [diff] [blame] | 107 | /* GPP_C01 : [] ==> SOC_TCHSCR_RST_R_L */ |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 108 | PAD_CFG_GPO(GPP_C01, 0, DEEP), |
Subrata Banik | bc6a305 | 2022-12-14 14:52:31 +0530 | [diff] [blame] | 109 | /* GPP_C02 : SOC_TCHSCR_SPI_INT_STRAP ==> Component NC */ |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 110 | PAD_NC(GPP_C02, NONE), |
| 111 | /* GPP_C03 : [] ==> EN_WCAM_SENR_PWR */ |
| 112 | PAD_CFG_GPO_LOCK(GPP_C03, 0, LOCK_CONFIG), |
| 113 | /* GPP_C04 : [] ==> EN_WCAM_PWR */ |
| 114 | PAD_CFG_GPO_LOCK(GPP_C04, 0, LOCK_CONFIG), |
| 115 | /* GPP_C05 : [] ==> WWAN_PERST_L_STRAP */ |
Ivy Jian | 66757b1 | 2022-09-05 11:30:48 +0800 | [diff] [blame] | 116 | PAD_CFG_GPO(GPP_C05, 1, PLTRST), |
Subrata Banik | bc6a305 | 2022-12-14 14:52:31 +0530 | [diff] [blame] | 117 | /* GPP_C06 : [] ==> SOC_TCHSCR_RPT_EN */ |
Ivy Jian | c8e0f16 | 2023-02-02 10:29:45 +0800 | [diff] [blame] | 118 | PAD_CFG_GPO(GPP_C06, 0, DEEP), |
Tarun Tuli | 14bed61 | 2022-09-08 12:37:57 -0400 | [diff] [blame] | 119 | /* GPP_C08 : [] ==> SOCHOT_ODL */ |
| 120 | PAD_CFG_NF(GPP_C08, NONE, DEEP, NF2), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 121 | /* GPP_C09 : net NC is not present in the given design */ |
| 122 | PAD_NC(GPP_C09, NONE), |
| 123 | /* GPP_C10 : net NC is not present in the given design */ |
| 124 | PAD_NC(GPP_C10, NONE), |
| 125 | /* GPP_C11 : [] ==> SD_CLKREQ_ODL */ |
| 126 | PAD_CFG_NF(GPP_C11, NONE, DEEP, NF1), |
| 127 | /* GPP_C12 : [] ==> WWAN_CLKREQ_ODL */ |
| 128 | PAD_CFG_NF(GPP_C12, NONE, DEEP, NF1), |
| 129 | /* GPP_C13 : [] ==> SSD_CLKREQ_ODL */ |
| 130 | PAD_CFG_NF(GPP_C13, NONE, DEEP, NF1), |
Subrata Banik | 7c55aab | 2022-12-22 17:22:40 +0530 | [diff] [blame] | 131 | /* GPP_C15 : [] ==> WWAN_DPR_SAR_ODL */ |
| 132 | PAD_CFG_GPO(GPP_C15, 1, DEEP), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 133 | /* GPP_C16 : [] ==> USB_C0_LSX_TX */ |
| 134 | PAD_CFG_NF(GPP_C16, NONE, DEEP, NF1), |
| 135 | /* GPP_C17 : [] ==> USB_C0_LSX_RX */ |
| 136 | PAD_CFG_NF(GPP_C17, NONE, DEEP, NF1), |
| 137 | /* GPP_C18 : [] ==> USB_C0_AUX_DC_P */ |
| 138 | PAD_CFG_NF(GPP_C18, NONE, DEEP, NF6), |
| 139 | /* GPP_C19 : [] ==> USB_C0_AUX_DC_N */ |
| 140 | PAD_CFG_NF(GPP_C19, NONE, DEEP, NF6), |
| 141 | /* GPP_C20 : [] ==> USB_C1_LSX_TX */ |
| 142 | PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1), |
| 143 | /* GPP_C21 : [] ==> USB_C1_LSX_RX */ |
| 144 | PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), |
| 145 | /* GPP_C22 : [] ==> SOC_FP_BOOT0 */ |
| 146 | PAD_CFG_GPO_LOCK(GPP_C22, 0, LOCK_CONFIG), |
| 147 | /* GPP_C23 : [] ==> FP_RST_ODL */ |
| 148 | PAD_CFG_GPO_LOCK(GPP_C23, 1, LOCK_CONFIG), |
| 149 | |
| 150 | /* GPP_D00 : WCAM_MCLK_R */ |
| 151 | PAD_CFG_NF(GPP_D00, NONE, DEEP, NF1), |
| 152 | /* GPP_D01 : [] ==> SD_PE_WAKE_ODL */ |
| 153 | PAD_CFG_GPI_LOCK(GPP_D01, NONE, LOCK_CONFIG), |
| 154 | /* GPP_D02 : [] ==> SD_PERST_L */ |
| 155 | PAD_CFG_GPO_LOCK(GPP_D02, 1, LOCK_CONFIG), |
| 156 | /* GPP_D03 : [] ==> EN_PP3300_SD */ |
| 157 | PAD_CFG_GPO_LOCK(GPP_D03, 1, LOCK_CONFIG), |
| 158 | /* GPP_D04 : [] ==> EN_SPKR */ |
| 159 | PAD_CFG_GPO(GPP_D04, 1, DEEP), |
| 160 | /* GPP_D05 : net NC. Test pad. */ |
| 161 | PAD_NC(GPP_D05, NONE), |
| 162 | /* GPP_D06 : net NC. Test pad.*/ |
| 163 | PAD_NC(GPP_D06, NONE), |
Subrata Banik | 9a97df3 | 2022-12-22 16:32:41 +0530 | [diff] [blame] | 164 | /* GPP_D07 : [] ==> FPMCU_UWB_MUX_SEL */ |
| 165 | PAD_CFG_GPO_LOCK(GPP_D07, 1, LOCK_CONFIG), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 166 | /* GPP_D08 : net NC. Test pad. */ |
| 167 | PAD_NC(GPP_D08, NONE), |
| 168 | /* GPP_D09 : [] ==> I2S_MCLK_R */ |
| 169 | PAD_CFG_NF(GPP_D09, NONE, DEEP, NF2), |
| 170 | /* GPP_D10 : [] ==> I2S_SPKR_SCLK_R */ |
| 171 | PAD_CFG_NF(GPP_D10, NONE, DEEP, NF2), |
| 172 | /* GPP_D11 : [] ==> I2S_SPKR_SFRM_R */ |
| 173 | PAD_CFG_NF(GPP_D11, NONE, DEEP, NF2), |
| 174 | /* GPP_D12 : [] ==> I2S_SOC_TX_SPKR_RX_R_STRAP */ |
| 175 | PAD_CFG_NF(GPP_D12, DN_20K, DEEP, NF2), |
| 176 | /* GPP_D13 : [] ==> I2S_SOC_RX_SPKR_TX */ |
| 177 | PAD_CFG_NF(GPP_D13, NONE, DEEP, NF2), |
| 178 | /* GPP_D14 : [] ==> I2S_HP_SCLK_R */ |
| 179 | PAD_CFG_NF(GPP_D14, NONE, DEEP, NF2), |
| 180 | /* GPP_D15 : [] ==> I2S_HP_SFRM_R */ |
| 181 | PAD_CFG_NF(GPP_D15, NONE, DEEP, NF2), |
| 182 | /* GPP_D16 : [] ==> I2S_SOC_TX_HP_RX_R */ |
| 183 | PAD_CFG_NF(GPP_D16, NONE, DEEP, NF2), |
| 184 | /* GPP_D17 : [] ==> I2S_SOC_RX_HP_TX */ |
| 185 | PAD_CFG_NF(GPP_D17, NONE, DEEP, NF2), |
| 186 | /* GPP_D18 : net NC is not present in the given design */ |
| 187 | PAD_NC(GPP_D18, NONE), |
Subrata Banik | 6e827a8 | 2023-05-24 15:18:48 +0530 | [diff] [blame] | 188 | /* GPP_D19 : [] ==> EC_SOC_REC_SWITCH_ODL */ |
| 189 | PAD_CFG_GPI_LOCK(GPP_D19, NONE, LOCK_CONFIG), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 190 | /* GPP_D20 : net NC is not present in the given design */ |
| 191 | PAD_NC(GPP_D20, NONE), |
| 192 | /* GPP_D21 : [] ==> WLAN_CLKREQ_ODLl */ |
| 193 | PAD_CFG_NF(GPP_D21, NONE, DEEP, NF2), |
| 194 | /* GPP_D22 : net NC is not present in the given design */ |
| 195 | PAD_NC(GPP_D22, NONE), |
| 196 | /* GPP_D23 : net NC is not present in the given design */ |
| 197 | PAD_NC(GPP_D23, NONE), |
| 198 | |
| 199 | /* GPP_E00 : [] ==> SAR1_INT_L */ |
| 200 | PAD_CFG_GPI_APIC(GPP_E00, NONE, PLTRST, LEVEL, NONE), |
| 201 | /* GPP_E01 : MEM_STRAP_2 ==> Component NC */ |
| 202 | PAD_CFG_GPI_LOCK(GPP_E01, NONE, LOCK_CONFIG), |
| 203 | /* GPP_E02 : MEM_STRAP_1 ==> Component NC */ |
| 204 | PAD_CFG_GPI_LOCK(GPP_E02, NONE, LOCK_CONFIG), |
| 205 | /* GPP_E03 : [] ==> GSC_SOC_INT_ODL */ |
| 206 | PAD_CFG_GPI_APIC_LOCK(GPP_E03, NONE, LEVEL, INVERT, LOCK_CONFIG), |
Subrata Banik | 6e827a8 | 2023-05-24 15:18:48 +0530 | [diff] [blame] | 207 | /* GPP_E04 : [] ==> SOC_PEN_DETECT */ |
Dinesh Gehlot | 6930b95 | 2023-01-11 06:50:37 +0000 | [diff] [blame] | 208 | PAD_CFG_GPI_IRQ_WAKE(GPP_E04, NONE, PLTRST, LEVEL, INVERT), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 209 | /* GPP_E05 : [] ==> USB_A0_RT_RST_ODL */ |
| 210 | PAD_CFG_GPO(GPP_E05, 1, DEEP), |
| 211 | /* GPP_E06 : GPP_E06_STRAP ==> Component NC */ |
| 212 | PAD_NC(GPP_E06, NONE), |
| 213 | /* GPP_E07 : [] ==> WWAN_FCPO_L */ |
| 214 | PAD_CFG_GPO(GPP_E07, 1, DEEP), |
| 215 | /* GPP_E08 : [] ==> SAR2_INT_L */ |
| 216 | PAD_CFG_GPI_APIC_LOCK(GPP_E08, NONE, LEVEL, NONE, LOCK_CONFIG), |
| 217 | /* GPP_E09 : No heuristic was found useful */ |
| 218 | PAD_CFG_NF_LOCK(GPP_E09, NONE, NF1, LOCK_CONFIG), |
Tarun Tuli | 14bed61 | 2022-09-08 12:37:57 -0400 | [diff] [blame] | 219 | /* GPP_E10 : [] ==> SOC_FPMCU_INT_L */ |
| 220 | PAD_CFG_GPI_IRQ_WAKE_LOCK(GPP_E10, NONE, LEVEL, INVERT, LOCK_CONFIG), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 221 | /* GPP_E11 : [] ==> MEM_STRAP_0 */ |
| 222 | PAD_CFG_GPI_LOCK(GPP_E11, NONE, LOCK_CONFIG), |
| 223 | /* GPP_E12 : [] ==> MEM_STRAP_3 */ |
| 224 | PAD_CFG_GPI_LOCK(GPP_E12, NONE, LOCK_CONFIG), |
| 225 | /* GPP_E13 : [] ==> MEM_CH_SEL */ |
| 226 | PAD_CFG_GPI_LOCK(GPP_E13, NONE, LOCK_CONFIG), |
| 227 | /* GPP_E14 : [] ==> SOC_EDP_HPD_L */ |
| 228 | PAD_CFG_NF(GPP_E14, NONE, DEEP, NF1), |
| 229 | /* GPP_E15 : net NC is not present in the given design */ |
| 230 | PAD_NC(GPP_E15, NONE), |
| 231 | /* GPP_E16 : net NC. Test pad. */ |
| 232 | PAD_NC(GPP_E16, NONE), |
Subrata Banik | 6e827a8 | 2023-05-24 15:18:48 +0530 | [diff] [blame] | 233 | /* GPP_E17 : net NC is not present in the given design */ |
| 234 | PAD_NC(GPP_E17, NONE), |
Kapil Porwal | 0f15030 | 2022-12-07 13:53:43 +0530 | [diff] [blame] | 235 | /* GPP_E22 : [] ==> EN_PP3300_WLAN */ |
| 236 | PAD_CFG_GPO(GPP_E22, 1, DEEP), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 237 | |
| 238 | /* GPP_F00 : [] ==> CNV_BRI_DT_R */ |
Jamie Ryu | 382645d | 2023-07-05 20:33:07 -0700 | [diff] [blame] | 239 | PAD_CFG_NF_IOSTANDBY_IGNORE(GPP_F00, NONE, DEEP, NF1), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 240 | /* GPP_F01 : [] ==> CNV_BRI_RSP */ |
Jamie Ryu | 382645d | 2023-07-05 20:33:07 -0700 | [diff] [blame] | 241 | PAD_CFG_NF_IOSTANDBY_IGNORE(GPP_F01, UP_20K, DEEP, NF1), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 242 | /* GPP_F02 : [] ==> CNV_RGI_DT_Rl */ |
Jamie Ryu | 382645d | 2023-07-05 20:33:07 -0700 | [diff] [blame] | 243 | PAD_CFG_NF_IOSTANDBY_IGNORE(GPP_F02, NONE, DEEP, NF1), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 244 | /* GPP_F03 : [] ==> CNV_RGI_RSP */ |
Jamie Ryu | 382645d | 2023-07-05 20:33:07 -0700 | [diff] [blame] | 245 | PAD_CFG_NF_IOSTANDBY_IGNORE(GPP_F03, UP_20K, DEEP, NF1), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 246 | /* GPP_F04 : [] ==> CNV_RF_RST_L */ |
Jamie Ryu | 382645d | 2023-07-05 20:33:07 -0700 | [diff] [blame] | 247 | PAD_CFG_NF_IOSTANDBY_IGNORE(GPP_F04, NONE, DEEP, NF1), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 248 | /* GPP_F05 : [] ==> CNV_CLKREQ */ |
Jamie Ryu | 382645d | 2023-07-05 20:33:07 -0700 | [diff] [blame] | 249 | PAD_CFG_NF_IOSTANDBY_IGNORE(GPP_F05, NONE, DEEP, NF3), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 250 | /* GPP_F06 : [] ==> WWAN_WLAN_COEX3 */ |
| 251 | PAD_CFG_NF(GPP_F06, NONE, DEEP, NF1), |
| 252 | /* GPP_F07 : [] ==> UCAM_MCLK_R */ |
| 253 | PAD_CFG_GPO(GPP_F07, 0, DEEP), |
| 254 | /* GPP_F08 : [] ==> WLAN_PERST_L */ |
| 255 | PAD_CFG_GPO(GPP_F08, 1, DEEP), |
Kapil Porwal | 0f15030 | 2022-12-07 13:53:43 +0530 | [diff] [blame] | 256 | /* GPP_F09 : [] ==> WLAN_PE_WAKE_ODL */ |
| 257 | PAD_CFG_GPI_IRQ_WAKE(GPP_F09, NONE, PLTRST, LEVEL, INVERT), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 258 | /* GPP_F10 : [] ==> WWAN_PCIE_WAKE_ODL */ |
| 259 | PAD_CFG_GPI_IRQ_WAKE(GPP_F10, NONE, PLTRST, LEVEL, INVERT), |
| 260 | /* GPP_F11 : GSP1_SOC_CLK_R */ |
| 261 | PAD_CFG_NF(GPP_F11, NONE, DEEP, NF5), |
| 262 | /* GPP_F12 : GSPI1_SOC_DO_FPMCU_DI_R */ |
| 263 | PAD_CFG_NF(GPP_F12, NONE, DEEP, NF5), |
Subrata Banik | 6e827a8 | 2023-05-24 15:18:48 +0530 | [diff] [blame] | 264 | /* GPP_F13 : GSPI1_SOC_DI_FPMCU_DO_LS_R */ |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 265 | PAD_CFG_NF(GPP_F13, NONE, DEEP, NF5), |
Eran Mitrani | 04c3b32 | 2023-01-10 17:00:11 -0800 | [diff] [blame] | 266 | /* GPP_F14 : GSPI0_SOC_DO_TCHSCR_DI */ |
Tarun Tuli | 218fac1 | 2022-09-02 15:20:22 -0400 | [diff] [blame] | 267 | PAD_CFG_NF(GPP_F14, NONE, DEEP, NF8), |
Eran Mitrani | 04c3b32 | 2023-01-10 17:00:11 -0800 | [diff] [blame] | 268 | /* GPP_F15 : [] ==> GSPI0_SOC_DI_TCHSCR_DO */ |
Tarun Tuli | 218fac1 | 2022-09-02 15:20:22 -0400 | [diff] [blame] | 269 | PAD_CFG_NF(GPP_F15, NONE, DEEP, NF8), |
Eran Mitrani | 04c3b32 | 2023-01-10 17:00:11 -0800 | [diff] [blame] | 270 | /* GPP_F16 : [] ==> GSPI0_SOC_TCHSCR_CLK */ |
Tarun Tuli | 218fac1 | 2022-09-02 15:20:22 -0400 | [diff] [blame] | 271 | PAD_CFG_NF(GPP_F16, NONE, DEEP, NF8), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 272 | /* GPP_F17 : [] ==> GSPI1_SOC_CS_L */ |
| 273 | PAD_CFG_NF(GPP_F17, NONE, DEEP, NF5), |
Eran Mitrani | 04c3b32 | 2023-01-10 17:00:11 -0800 | [diff] [blame] | 274 | /* GPP_F18 : [] ==> GSPI0_SOC_TCHSCR_CS_L */ |
Tarun Tuli | 218fac1 | 2022-09-02 15:20:22 -0400 | [diff] [blame] | 275 | PAD_CFG_NF(GPP_F18, NONE, DEEP, NF8), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 276 | /* GPP_F19 : [] ==> GPP_F19_STRAP */ |
| 277 | PAD_NC(GPP_F19, NONE), |
| 278 | /* GPP_F20 : [] ==> GPP_F20_STRAP */ |
| 279 | PAD_NC(GPP_F20, NONE), |
Subrata Banik | 6e827a8 | 2023-05-24 15:18:48 +0530 | [diff] [blame] | 280 | /* GPP_F21 : [] ==> SPI_SOC_CS_UWB_L_STRAP */ |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 281 | PAD_NC(GPP_F21, NONE), |
| 282 | /* GPP_F22 : net NC is not present in the given design */ |
| 283 | PAD_NC(GPP_F22, NONE), |
| 284 | /* GPP_F23 : net NC is not present in the given design */ |
| 285 | PAD_NC(GPP_F23, NONE), |
| 286 | |
Subrata Banik | 6e827a8 | 2023-05-24 15:18:48 +0530 | [diff] [blame] | 287 | /* GPP_H00 : SPI_SOC_CLK_UWB_STRAP_R ==> Component NC */ |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 288 | PAD_NC(GPP_H00, NONE), |
Subrata Banik | 6e827a8 | 2023-05-24 15:18:48 +0530 | [diff] [blame] | 289 | /* GPP_H01 : SPI_SOC_DO_UWB_DI_STRAP_R ==> Component NC */ |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 290 | PAD_NC(GPP_H01, NONE), |
Subrata Banik | 6e827a8 | 2023-05-24 15:18:48 +0530 | [diff] [blame] | 291 | /* GPP_H02 : SPI_SOC_DI_UWB_DO_STRAP ==> Component NC */ |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 292 | PAD_NC(GPP_H02, NONE), |
| 293 | /* GPP_H04 : [] ==> WWAN_WLAN_COEX1 */ |
| 294 | PAD_CFG_NF(GPP_H04, NONE, DEEP, NF2), |
| 295 | /* GPP_H05 : [] ==> WWAN_WLAN_COEX2 */ |
| 296 | PAD_CFG_NF(GPP_H05, NONE, DEEP, NF2), |
| 297 | /* GPP_H06 : [] ==> SOC_I2C_TCHPAD_SDA */ |
| 298 | PAD_CFG_NF_LOCK(GPP_H06, NONE, NF1, LOCK_CONFIG), |
| 299 | /* GPP_H07 : [] ==> SOC_I2C_TCHPAD_SCL */ |
| 300 | PAD_CFG_NF_LOCK(GPP_H07, NONE, NF1, LOCK_CONFIG), |
| 301 | /* GPP_H08 : [] ==> UART_DBG_TX_SOC_RX_R */ |
Kapil Porwal | 7581730 | 2022-07-08 14:37:05 +0000 | [diff] [blame] | 302 | PAD_CFG_NF(GPP_H08, NONE, DEEP, NF1), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 303 | /* GPP_H09 : [] ==> UART_SOC_TX_DBG_RX_R */ |
Kapil Porwal | 7581730 | 2022-07-08 14:37:05 +0000 | [diff] [blame] | 304 | PAD_CFG_NF(GPP_H09, NONE, DEEP, NF1), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 305 | /* GPP_H10 : [] ==> SOC_WP_OD */ |
| 306 | PAD_CFG_GPI_GPIO_DRIVER_LOCK(GPP_H10, NONE, LOCK_CONFIG), |
| 307 | /* GPP_H11 : net NC is not present in the given design */ |
| 308 | PAD_NC(GPP_H11, NONE), |
| 309 | /* GPP_H13 : [] ==> CPU_C10_GATE_L */ |
| 310 | PAD_CFG_NF(GPP_H13, NONE, DEEP, NF1), |
| 311 | /* GPP_H14 : [] ==> SLP_S0_GATE_R */ |
| 312 | PAD_CFG_GPO(GPP_H14, 1, PLTRST), |
Subrata Banik | 6f5be8f | 2023-01-03 12:03:40 +0530 | [diff] [blame] | 313 | /* GPP_H15 : [] ==> EN_DMIC_SOC_DATA */ |
| 314 | PAD_CFG_GPO(GPP_H15, 0, PLTRST), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 315 | /* GPP_H16 : [] ==> DDIB_HDMI_CTRLCLK*/ |
| 316 | PAD_CFG_NF(GPP_H16, NONE, DEEP, NF1), |
| 317 | /* GPP_H17 : [] ==> DDIB_HDMI_CTRLDATA */ |
| 318 | PAD_CFG_NF(GPP_H17, NONE, DEEP, NF1), |
| 319 | /* GPP_H19 : [] ==> SOC_I2C_AUD_WFC_SDA */ |
| 320 | PAD_CFG_NF(GPP_H19, NONE, DEEP, NF1), |
| 321 | /* GPP_H20 : [] ==> SOC_I2C_AUD_WFC_SCL */ |
| 322 | PAD_CFG_NF(GPP_H20, NONE, DEEP, NF1), |
| 323 | /* GPP_H21 : [] ==> SOC_I2C_TCHSCR_SDA */ |
| 324 | PAD_CFG_NF(GPP_H21, NONE, DEEP, NF1), |
| 325 | /* GPP_H22 : [] ==> SOC_I2C_TCHSCR_SCL */ |
| 326 | PAD_CFG_NF(GPP_H22, NONE, DEEP, NF1), |
| 327 | |
Subrata Banik | 6e827a8 | 2023-05-24 15:18:48 +0530 | [diff] [blame] | 328 | /* GPP_S00 : [] ==> SDW_HP_CLK_WLAN_PCM_CLK */ |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 329 | PAD_CFG_NF(GPP_S00, NONE, DEEP, NF1), |
Subrata Banik | 6e827a8 | 2023-05-24 15:18:48 +0530 | [diff] [blame] | 330 | /* GPP_S01 : [] ==> SDW_HP_DATA_WLAN_PCM_SYNC */ |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 331 | PAD_CFG_NF(GPP_S01, NONE, DEEP, NF1), |
Subrata Banik | 6e827a8 | 2023-05-24 15:18:48 +0530 | [diff] [blame] | 332 | /* GPP_S02 : [] ==> DMIC_SOC_CLK0_WLAN_PCM_OUT */ |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 333 | PAD_CFG_NF(GPP_S02, NONE, DEEP, NF3), |
Subrata Banik | 6e827a8 | 2023-05-24 15:18:48 +0530 | [diff] [blame] | 334 | /* GPP_S03 : [] ==> DMIC_SOC_DATA0_WLAN_PCM_IN */ |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 335 | PAD_CFG_NF(GPP_S03, NONE, DEEP, NF3), |
| 336 | /* GPP_S04 : [] ==> SDW_SPKR_CLK */ |
| 337 | PAD_CFG_NF(GPP_S04, NONE, DEEP, NF1), |
| 338 | /* GPP_S05 : [] ==> SDW_SPKR_DATA */ |
| 339 | PAD_CFG_NF(GPP_S05, NONE, DEEP, NF1), |
| 340 | /* GPP_S06 : [] ==> DMIC_SOC_CLK1_DB_RC */ |
| 341 | PAD_CFG_NF(GPP_S06, NONE, DEEP, NF3), |
| 342 | /* GPP_S07 : [] ==> DMIC_SOC_DATA1_DB */ |
| 343 | PAD_CFG_NF(GPP_S07, NONE, DEEP, NF3), |
| 344 | |
| 345 | /* GPP_V00 : [] ==> BATLOW_L */ |
| 346 | PAD_CFG_NF(GPP_V00, NONE, DEEP, NF1), |
| 347 | /* GPP_V01 : [] ==> ACPRESENT */ |
| 348 | PAD_CFG_NF(GPP_V01, NONE, DEEP, NF1), |
| 349 | /* GPP_V02 : [] ==> EC_SOC_WAKE_ODL */ |
| 350 | PAD_CFG_NF(GPP_V02, NONE, DEEP, NF1), |
| 351 | /* GPP_V03 : [] ==> EC_SOC_PWR_BTN_ODL */ |
| 352 | PAD_CFG_NF(GPP_V03, NONE, DEEP, NF1), |
| 353 | /* GPP_V04 : [] ==> SLP_S3_L */ |
| 354 | PAD_CFG_NF(GPP_V04, NONE, DEEP, NF1), |
| 355 | /* GPP_V05 : [] ==> SLP_S4_L */ |
| 356 | PAD_CFG_NF(GPP_V05, NONE, DEEP, NF1), |
| 357 | /* GPP_V06 : [] ==> SOC_SLP_A_L */ |
| 358 | PAD_CFG_NF(GPP_V06, NONE, DEEP, NF1), |
| 359 | /* GPP_V08 : [] ==> SOC_SUSCLK */ |
| 360 | PAD_CFG_NF(GPP_V08, NONE, DEEP, NF1), |
| 361 | /* GPP_V09 : [] ==> SOC_SLP_WLAN_L */ |
| 362 | PAD_CFG_NF(GPP_V09, NONE, DEEP, NF1), |
| 363 | /* GPP_V10 : [] ==> SLP_S5_L */ |
| 364 | PAD_CFG_NF(GPP_V10, NONE, DEEP, NF1), |
| 365 | /* GPP_V11 : [] ==> SOC_GPP_V11 testpoint*/ |
| 366 | PAD_NC(GPP_V11, NONE), |
| 367 | /* GPP_V12 : [] ==> SOC_SLP_LAN_L */ |
| 368 | PAD_CFG_NF(GPP_V12, NONE, DEEP, NF1), |
| 369 | /* GPP_V14 : [] ==> SOC_WAKE_L */ |
| 370 | PAD_CFG_NF(GPP_V14, NONE, DEEP, NF1), |
| 371 | /* GPP_V22 : [] ==> WCAM_RST_L */ |
| 372 | PAD_CFG_GPO(GPP_V22, 0, DEEP), |
| 373 | /* GPP_V23 : [] ==> UCAM_RST_L */ |
| 374 | PAD_CFG_GPO(GPP_V23, 0, DEEP), |
Eric Lai | 5c02779 | 2022-05-23 16:21:36 +0800 | [diff] [blame] | 375 | }; |
| 376 | |
| 377 | /* Early pad configuration in bootblock */ |
Subrata Banik | 8ca7d26 | 2022-12-01 17:26:35 +0530 | [diff] [blame] | 378 | static const struct pad_config early_gpio_table[] = { |
Ivy Jian | 66757b1 | 2022-09-05 11:30:48 +0800 | [diff] [blame] | 379 | /* GPP_B17 : [] ==> EN_WWAN_PWR */ |
| 380 | PAD_CFG_GPO(GPP_B17, 1, DEEP), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 381 | /* GPP_B18 : [] ==> SOC_I2C_TPM_SDA */ |
| 382 | PAD_CFG_NF(GPP_B18, NONE, DEEP, NF2), |
| 383 | /* GPP_B19 : [] ==> SOC_I2C_TPM_SCL */ |
| 384 | PAD_CFG_NF(GPP_B19, NONE, DEEP, NF2), |
Ivy Jian | 66757b1 | 2022-09-05 11:30:48 +0800 | [diff] [blame] | 385 | /* GPP_C05 : [] ==> WWAN_PERST_L_STRAP (updated in ramstage) */ |
| 386 | PAD_CFG_GPO(GPP_C05, 0, DEEP), |
| 387 | /* GPP_A15 : [] ==> WWAN_RST_L (updated in ramstage) */ |
| 388 | PAD_CFG_GPO(GPP_A15, 0, DEEP), |
Kapil Porwal | 2c822ab | 2022-08-24 12:53:44 +0000 | [diff] [blame] | 389 | /* GPP_E03 : [] ==> GSC_SOC_INT_ODL */ |
| 390 | PAD_CFG_GPI_APIC(GPP_E03, NONE, PLTRST, LEVEL, INVERT), |
| 391 | |
Ivy Jian | 66757b1 | 2022-09-05 11:30:48 +0800 | [diff] [blame] | 392 | /* GPP_E07 : [] ==> WWAN_FCPO_L (updated in romstage) */ |
| 393 | PAD_CFG_GPO(GPP_E07, 0, DEEP), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 394 | /* GPP_H08 : [] ==> UART_DBG_TX_SOC_RX_R */ |
Kapil Porwal | 7581730 | 2022-07-08 14:37:05 +0000 | [diff] [blame] | 395 | PAD_CFG_NF(GPP_H08, NONE, DEEP, NF1), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 396 | /* GPP_H09 : [] ==> UART_SOC_TX_DBG_RX_R */ |
Kapil Porwal | 7581730 | 2022-07-08 14:37:05 +0000 | [diff] [blame] | 397 | PAD_CFG_NF(GPP_H09, NONE, DEEP, NF1), |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 398 | |
| 399 | /* GPP_D03 : [] ==> EN_PP3300_SD */ |
| 400 | PAD_CFG_GPO(GPP_D03, 1, DEEP), |
| 401 | |
| 402 | /* GPP_E13 : [] ==> MEM_CH_SEL */ |
| 403 | PAD_CFG_GPI(GPP_E13, NONE, DEEP), |
| 404 | |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 405 | /* GPP_A20 : [] ==> SSD_PERST_L */ |
| 406 | PAD_CFG_GPO(GPP_A20, 0, DEEP), |
| 407 | |
| 408 | /* GPP_H10 : [] ==> SOC_WP_OD */ |
| 409 | PAD_CFG_GPI_GPIO_DRIVER_LOCK(GPP_H10, NONE, LOCK_CONFIG), |
Eric Lai | 5c02779 | 2022-05-23 16:21:36 +0800 | [diff] [blame] | 410 | }; |
| 411 | |
Subrata Banik | 8ca7d26 | 2022-12-01 17:26:35 +0530 | [diff] [blame] | 412 | static const struct pad_config romstage_gpio_table[] = { |
Eran Mitrani | b4d71e1 | 2022-08-23 14:42:24 -0700 | [diff] [blame] | 413 | /* GPP_B11 : [] ==> EN_FP_PWR */ |
| 414 | PAD_CFG_GPO(GPP_B11, 0, DEEP), |
| 415 | /* A20 : [] ==> SSD_PERST_L */ |
Tarun Tuli | 646802c | 2022-07-20 12:35:37 -0400 | [diff] [blame] | 416 | PAD_CFG_GPO(GPP_A20, 0, DEEP), |
Eran Mitrani | b4d71e1 | 2022-08-23 14:42:24 -0700 | [diff] [blame] | 417 | /* GPP_C23 : [] ==> FP_RST_ODL */ |
| 418 | PAD_CFG_GPO(GPP_C23, 0, DEEP), |
Ivy Jian | 66757b1 | 2022-09-05 11:30:48 +0800 | [diff] [blame] | 419 | /* GPP_E07 : [] ==> WWAN_FCPO_L */ |
| 420 | PAD_CFG_GPO(GPP_E07, 1, DEEP), |
Subrata Banik | cd6a450 | 2022-11-28 17:51:49 +0530 | [diff] [blame] | 421 | /* GPP_D02 : [] ==> SD_PERST_L */ |
| 422 | PAD_CFG_GPO(GPP_D02, 1, DEEP), |
Subrata Banik | 7c5a9c7 | 2022-07-06 08:58:21 +0000 | [diff] [blame] | 423 | }; |
| 424 | |
| 425 | const struct pad_config *variant_gpio_table(size_t *num) |
Eric Lai | 5c02779 | 2022-05-23 16:21:36 +0800 | [diff] [blame] | 426 | { |
Subrata Banik | 8ca7d26 | 2022-12-01 17:26:35 +0530 | [diff] [blame] | 427 | *num = ARRAY_SIZE(gpio_table); |
| 428 | return gpio_table; |
Eric Lai | 5c02779 | 2022-05-23 16:21:36 +0800 | [diff] [blame] | 429 | } |
| 430 | |
Subrata Banik | 7c5a9c7 | 2022-07-06 08:58:21 +0000 | [diff] [blame] | 431 | const struct pad_config *variant_early_gpio_table(size_t *num) |
Eric Lai | 5c02779 | 2022-05-23 16:21:36 +0800 | [diff] [blame] | 432 | { |
Subrata Banik | 8ca7d26 | 2022-12-01 17:26:35 +0530 | [diff] [blame] | 433 | *num = ARRAY_SIZE(early_gpio_table); |
| 434 | return early_gpio_table; |
Eric Lai | 5c02779 | 2022-05-23 16:21:36 +0800 | [diff] [blame] | 435 | } |
| 436 | |
| 437 | /* Create the stub for romstage gpio, typically use for power sequence */ |
Subrata Banik | 7c5a9c7 | 2022-07-06 08:58:21 +0000 | [diff] [blame] | 438 | const struct pad_config *variant_romstage_gpio_table(size_t *num) |
Eric Lai | 5c02779 | 2022-05-23 16:21:36 +0800 | [diff] [blame] | 439 | { |
Subrata Banik | 8ca7d26 | 2022-12-01 17:26:35 +0530 | [diff] [blame] | 440 | *num = ARRAY_SIZE(romstage_gpio_table); |
| 441 | return romstage_gpio_table; |
Eric Lai | 5c02779 | 2022-05-23 16:21:36 +0800 | [diff] [blame] | 442 | } |
Eric Lai | 366fba2 | 2022-05-24 09:25:57 +0800 | [diff] [blame] | 443 | |
Ivy Jian | 06eb694 | 2022-11-11 15:57:49 +0800 | [diff] [blame] | 444 | static const struct cros_gpio cros_gpios[] = { |
Ivy Jian | 461f2a9 | 2022-11-23 11:50:26 +0800 | [diff] [blame] | 445 | CROS_GPIO_REC_AL(CROS_GPIO_VIRTUAL, CROS_GPIO_DEVICE_NAME), |
Ivy Jian | 06eb694 | 2022-11-11 15:57:49 +0800 | [diff] [blame] | 446 | CROS_GPIO_WP_AH(GPIO_PCH_WP, CROS_GPIO_DEVICE_NAME), |
| 447 | }; |
Eric Lai | 366fba2 | 2022-05-24 09:25:57 +0800 | [diff] [blame] | 448 | |
Eric Lai | 0c06dbb | 2023-04-11 14:29:41 +0800 | [diff] [blame] | 449 | DECLARE_CROS_GPIOS(cros_gpios); |