Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <gpio.h> |
| 4 | #include <soc/meminit.h> |
| 5 | #include <soc/romstage.h> |
| 6 | #include <string.h> |
| 7 | #include <variants.h> |
| 8 | #include <types.h> |
| 9 | |
| 10 | /* Early pad configuration in bootblock. */ |
| 11 | const struct pad_config early_gpio_table[] = { |
| 12 | /* GPIO_64: UART2_TXD */ |
| 13 | PAD_CFG_NF_IOSSTATE_IOSTERM(GPIO_64, UP_20K, DEEP, NF1, HIZCRx1, DISPUPD), |
| 14 | /* GPIO_65: UART2_RXD */ |
| 15 | PAD_CFG_NF_IOSSTATE_IOSTERM(GPIO_65, UP_20K, DEEP, NF1, TxLASTRxE, DISPUPD), |
| 16 | }; |
| 17 | |
| 18 | const struct pad_config *variant_early_gpio_table(size_t *num) |
| 19 | { |
| 20 | *num = ARRAY_SIZE(early_gpio_table); |
| 21 | return early_gpio_table; |
| 22 | } |
| 23 | |
| 24 | /* Pad configuration in ramstage. */ |
| 25 | const struct pad_config gpio_table[] = { |
| 26 | /* ------- GPIO Group NorthWest ------- */ |
| 27 | /* GPIO_0: XDP_H_TCK */ |
| 28 | PAD_NC(GPIO_0, DN_20K), |
| 29 | /* GPIO_1: XDP_H_TRST_N */ |
| 30 | PAD_NC(GPIO_1, DN_20K), |
| 31 | /* GPIO_2: XDP_H_TMS */ |
| 32 | PAD_NC(GPIO_2, DN_20K), |
| 33 | /* GPIO_3: XDP_H_TDI */ |
| 34 | PAD_NC(GPIO_3, DN_20K), |
| 35 | /* GPIO_4: XDP_H_TDO */ |
| 36 | PAD_NC(GPIO_4, DN_20K), |
| 37 | /* GPIO_5: Not Connected */ |
| 38 | PAD_NC(GPIO_5, DN_20K), |
| 39 | /* GPIO_6: XDP_H_PREQ_N */ |
| 40 | PAD_NC(GPIO_6, DN_20K), |
| 41 | /* GPIO_7: XDP_H_PRDY_N */ |
| 42 | PAD_NC(GPIO_7, DN_20K), |
| 43 | /* GPIO_8: Not Connected */ |
| 44 | PAD_NC(GPIO_8, DN_20K), |
| 45 | /* GPIO_9: Not Connected */ |
| 46 | PAD_NC(GPIO_9, DN_20K), |
| 47 | /* GPIO_10: Not Connected */ |
| 48 | PAD_NC(GPIO_10, DN_20K), |
| 49 | /* GPIO_11: Not Connected */ |
| 50 | PAD_NC(GPIO_11, DN_20K), |
| 51 | /* GPIO_12: Not Connected */ |
| 52 | PAD_NC(GPIO_12, DN_20K), |
| 53 | /* GPIO_13: Not Connected */ |
| 54 | PAD_NC(GPIO_13, DN_20K), |
| 55 | /* GPIO_14: Not Connected */ |
| 56 | PAD_NC(GPIO_14, DN_20K), |
| 57 | /* GPIO_15: Not Connected */ |
| 58 | PAD_NC(GPIO_15, DN_20K), |
| 59 | /* GPIO_16: Not Connected */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 60 | PAD_NC(GPIO_16, NONE), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 61 | /* GPIO_17: Not Connected */ |
| 62 | PAD_NC(GPIO_17, DN_20K), |
| 63 | /* GPIO_18: Not Connected */ |
| 64 | PAD_NC(GPIO_18, DN_20K), |
| 65 | /* GPIO_19: PMIC_IRQ# */ |
| 66 | _PAD_CFG_STRUCT(GPIO_19, PAD_FUNC(GPIO) | PAD_RESET(DEEP) | PAD_TRIG(EDGE_SINGLE) | |
| 67 | PAD_IRQ_ROUTE(IOAPIC) | PAD_BUF(TX_DISABLE) | (1 << 1), PAD_PULL(UP_20K) | |
| 68 | PAD_IOSSTATE(TxDRxE) | PAD_IOSTERM(ENPU)), |
| 69 | /* GPIO_20: Not Connected */ |
| 70 | PAD_NC(GPIO_20, DN_20K), |
| 71 | /* GPIO_21: Not Connected */ |
| 72 | PAD_NC(GPIO_21, DN_20K), |
| 73 | /* GPIO_22: Not Connected */ |
| 74 | PAD_NC(GPIO_22, DN_20K), |
| 75 | /* GPIO_23: Not Connected */ |
| 76 | PAD_NC(GPIO_23, DN_20K), |
| 77 | /* GPIO_24: Not Connected */ |
| 78 | PAD_NC(GPIO_24, DN_20K), |
| 79 | /* GPIO_25: Not Connected */ |
| 80 | PAD_NC(GPIO_25, DN_20K), |
| 81 | /* GPIO_26: TCH_INT_N */ |
| 82 | PAD_NC(GPIO_26, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 83 | /* GPIO_27: eMMC Strap */ |
| 84 | PAD_NC(GPIO_27, NONE), |
| 85 | /* GPIO_28: SPI Strap */ |
| 86 | PAD_NC(GPIO_28, NONE), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 87 | /* GPIO_29: Not Connected */ |
| 88 | PAD_NC(GPIO_29, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 89 | /* GPIO_30: Not Connected */ |
| 90 | PAD_NC(GPIO_30, DN_20K), |
| 91 | /* GPIO_31: Not Connected */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 92 | PAD_NC(GPIO_31, DN_20K), |
| 93 | /* GPIO_32: SAR_PROX_RST */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 94 | PAD_NC(GPIO_32, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 95 | /* GPIO_33: Not Connected */ |
| 96 | PAD_NC(GPIO_33, DN_20K), |
| 97 | /* GPIO_34: Not Connected */ |
| 98 | PAD_NC(GPIO_34, DN_20K), |
| 99 | /* GPIO_35: Not Connected */ |
| 100 | PAD_NC(GPIO_35, DN_20K), |
| 101 | /* GPIO_36: Not Connected */ |
| 102 | PAD_NC(GPIO_36, DN_20K), |
| 103 | /* GPIO_37: Not Connected */ |
| 104 | PAD_NC(GPIO_37, DN_20K), |
| 105 | /* GPIO_38: WAKE_SCI# */ |
| 106 | _PAD_CFG_STRUCT(GPIO_38, PAD_FUNC(GPIO) | PAD_RESET(DEEP) | PAD_TRIG(EDGE_SINGLE) | |
| 107 | PAD_IRQ_ROUTE(SCI) | PAD_RX_POL(INVERT) | PAD_BUF(TX_DISABLE) | |
| 108 | (1 << 1), PAD_PULL(UP_20K) | PAD_IOSSTATE(IGNORE) | PAD_IOSTERM(ENPU)), |
| 109 | /* GPIO_39: FP_RST# */ |
| 110 | PAD_NC(GPIO_39, DN_20K), |
| 111 | /* GPIO_40: Not Connected */ |
| 112 | PAD_NC(GPIO_40, DN_20K), |
| 113 | /* GPIO_41: Not Connected */ |
| 114 | PAD_NC(GPIO_41, DN_20K), |
| 115 | /* GPIO_42: SECURITY_FLASH */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 116 | PAD_NC(GPIO_42, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 117 | /* GPIO_43: GPIO_43 */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 118 | PAD_NC(GPIO_43, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 119 | /* GPIO_44: GPIO_44 */ |
| 120 | _PAD_CFG_STRUCT(GPIO_44, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 121 | (1 << 1), PAD_PULL(UP_20K) | PAD_IOSTERM(ENPU)), |
| 122 | /* GPIO_45: GPIO_45 */ |
| 123 | _PAD_CFG_STRUCT(GPIO_45, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 124 | (1 << 1), PAD_PULL(UP_20K) | PAD_IOSTERM(ENPU)), |
| 125 | /* GPIO_46: Not Connected */ |
| 126 | PAD_NC(GPIO_46, DN_20K), |
| 127 | /* GPIO_47: Not Connected */ |
| 128 | PAD_NC(GPIO_47, DN_20K), |
| 129 | /* GPIO_48: OZ8283_I2C_SDA */ |
| 130 | _PAD_CFG_STRUCT(GPIO_48, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 131 | (1 << 1), PAD_PULL(UP_1K) | PAD_IOSSTATE(IGNORE) | PAD_IOSTERM(ENPU)), |
| 132 | /* GPIO_49: OZ8283_I2C_SCL */ |
| 133 | _PAD_CFG_STRUCT(GPIO_49, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 134 | (1 << 1), PAD_PULL(UP_1K) | PAD_IOSSTATE(IGNORE) | PAD_IOSTERM(ENPU)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 135 | /* GPIO_50: I2C_0 SDA */ |
| 136 | PAD_NC(GPIO_50, DN_20K), |
| 137 | /* GPIO_51: I2C_0 SDL */ |
| 138 | PAD_NC(GPIO_51, DN_20K), |
| 139 | /* GPIO_52: I2C_1 SDA */ |
| 140 | PAD_NC(GPIO_52, DN_20K), |
| 141 | /* GPIO_53: I2C_1 SDL */ |
| 142 | PAD_NC(GPIO_53, DN_20K), |
| 143 | /* GPIO_54: I2C_2 SDA */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 144 | PAD_NC(GPIO_54, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 145 | /* GPIO_55: I2C_2 SDL */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 146 | PAD_NC(GPIO_55, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 147 | /* GPIO_56: I2C_3 SDA */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 148 | PAD_NC(GPIO_56, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 149 | /* GPIO_57: I2C_3 SDL */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 150 | PAD_NC(GPIO_57, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 151 | /* GPIO_58: I2C4_SDA */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 152 | PAD_NC(GPIO_58, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 153 | /* GPIO_59: I2C4_SCL */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 154 | PAD_NC(GPIO_59, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 155 | /* GPIO_60: UART0 RXD */ |
| 156 | PAD_NC(GPIO_60, DN_20K), |
| 157 | /* GPIO_61: UART0 TXD */ |
| 158 | PAD_NC(GPIO_61, DN_20K), |
| 159 | /* GPIO_62: UART0 RTS */ |
| 160 | PAD_NC(GPIO_62, DN_20K), |
| 161 | /* GPIO_63: UART0 CTS */ |
| 162 | PAD_NC(GPIO_63, DN_20K), |
| 163 | /* GPIO_66: GPIO_66 */ |
| 164 | PAD_NC(GPIO_66, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 165 | /* GPIO_67: EC_SMI_N */ |
| 166 | _PAD_CFG_STRUCT(GPIO_67, PAD_FUNC(GPIO) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 167 | PAD_IRQ_ROUTE(SMI) | PAD_RX_POL(INVERT) | PAD_BUF(TX_DISABLE) | |
| 168 | (1 << 1), PAD_IOSSTATE(HIZCRx1) | PAD_IOSTERM(ENPU)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 169 | /* GPIO_68: Not Connected */ |
| 170 | PAD_NC(GPIO_68, DN_20K), |
| 171 | /* GPIO_69: Not Connected */ |
| 172 | PAD_NC(GPIO_69, DN_20K), |
| 173 | /* GPIO_70: Not Connected */ |
| 174 | PAD_NC(GPIO_70, DN_20K), |
| 175 | /* GPIO_71: Not Connected */ |
| 176 | PAD_NC(GPIO_71, DN_20K), |
| 177 | /* GPIO_72: Not Connected */ |
| 178 | PAD_NC(GPIO_72, DN_20K), |
| 179 | /* GPIO_73: Not Connected */ |
| 180 | PAD_NC(GPIO_73, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 181 | _PAD_CFG_STRUCT(GPIO_74, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 182 | PAD_TRIG(OFF), PAD_PULL(UP_20K) |
| 183 | | PAD_IOSSTATE(IGNORE) | PAD_IOSTERM(ENPU)), |
| 184 | _PAD_CFG_STRUCT(GPIO_75, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 185 | PAD_BUF(TX_RX_DISABLE) | (1 << 1), PAD_PULL(UP_20K)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 186 | /* GPIO_211: EMMC_RST#_CPU */ |
| 187 | PAD_NC(GPIO_211, UP_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 188 | /* GPIO_212: Not Connected */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 189 | PAD_NC(GPIO_212, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 190 | /* GPIO_213: Not Connected */ |
| 191 | PAD_NC(GPIO_213, DN_20K), |
| 192 | /* GPIO_214: Not Connected */ |
| 193 | PAD_NC(GPIO_214, DN_20K), |
| 194 | |
| 195 | /* ------- GPIO Group North ------- */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 196 | /* GPIO_76: Not Connected */ |
| 197 | PAD_NC(GPIO_76, DN_20K), |
| 198 | /* GPIO_77: Not Connected */ |
| 199 | PAD_NC(GPIO_77, DN_20K), |
| 200 | /* GPIO_78: Not Connected */ |
| 201 | PAD_NC(GPIO_78, DN_20K), |
| 202 | /* GPIO_79: GPIO_79 */ |
| 203 | PAD_NC(GPIO_79, DN_20K), |
| 204 | /* GPIO_80: FP_FS0 */ |
| 205 | PAD_NC(GPIO_80, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 206 | /* GPIO_81: GPIO_81 */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 207 | PAD_NC(GPIO_81, DN_20K), |
| 208 | /* GPIO_82: FP_MISO */ |
| 209 | PAD_NC(GPIO_82, DN_20K), |
| 210 | /* GPIO_83: LPC 1.8V/3.3V Select */ |
| 211 | PAD_NC(GPIO_83, DN_20K), |
| 212 | /* GPIO_84: Allow SPI Boot */ |
| 213 | PAD_NC(GPIO_84, UP_20K), |
| 214 | /* GPIO_85: Webcam 5V */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 215 | PAD_CFG_GPO_IOSSTATE_IOSTERM(GPIO_85, 1, DEEP, UP_20K, IGNORE, ENPU), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 216 | /* GPIO_86: GPIO_86 */ |
| 217 | PAD_NC(GPIO_86, DN_20K), |
| 218 | /* GPIO_87: Not Connected */ |
| 219 | PAD_NC(GPIO_87, DN_20K), |
| 220 | /* GPIO_88: Not Connected */ |
| 221 | PAD_NC(GPIO_88, DN_20K), |
| 222 | /* GPIO_89: Not Connected */ |
| 223 | PAD_NC(GPIO_89, DN_20K), |
| 224 | /* GPIO_90: FLASH_SPI_CS0_N */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 225 | _PAD_CFG_STRUCT(GPIO_90, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 226 | PAD_BUF(TX_DISABLE) | (1 << 1), PAD_PULL(NATIVE)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 227 | /* GPIO_91: Not Connected */ |
| 228 | PAD_NC(GPIO_91, DN_20K), |
| 229 | /* GPIO_92: FLASH_SPI_MOSI */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 230 | _PAD_CFG_STRUCT(GPIO_92, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 231 | PAD_BUF(TX_DISABLE), PAD_PULL(NATIVE)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 232 | /* GPIO_93: FLASH_SPI_MISO */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 233 | _PAD_CFG_STRUCT(GPIO_93, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 234 | PAD_BUF(TX_DISABLE) | (1 << 1), PAD_PULL(NATIVE)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 235 | /* GPIO_94: FLASH_SPI_IO2 */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 236 | _PAD_CFG_STRUCT(GPIO_94, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 237 | PAD_BUF(TX_DISABLE) | (1 << 1), PAD_PULL(NATIVE)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 238 | /* GPIO_95: FLASH_SPI_IO3 */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 239 | _PAD_CFG_STRUCT(GPIO_95, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 240 | PAD_BUF(TX_DISABLE) | (1 << 1), PAD_PULL(NATIVE)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 241 | /* GPIO_96: FLASH_SPI_CLK */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 242 | _PAD_CFG_STRUCT(GPIO_96, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 243 | PAD_BUF(TX_DISABLE), PAD_PULL(NATIVE)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 244 | /* GPIO_98: PMU_PLT_RST#_CPU */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 245 | _PAD_CFG_STRUCT(GPIO_98, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 246 | PAD_TRIG(OFF), PAD_IOSSTATE(IGNORE)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 247 | /* GPIO_99: PM_PWRBTN# */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 248 | _PAD_CFG_STRUCT(GPIO_99, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 249 | (1 << 1), PAD_PULL(UP_20K) | PAD_IOSSTATE(IGNORE) | PAD_IOSTERM(ENPU)), |
| 250 | /* GPIO_100: SLP_S0# */ |
| 251 | _PAD_CFG_STRUCT(GPIO_100, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF), |
| 252 | PAD_IOSSTATE(IGNORE)), |
| 253 | /* GPIO_101: SLP_S3# */ |
| 254 | _PAD_CFG_STRUCT(GPIO_101, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF), |
| 255 | PAD_IOSSTATE(IGNORE)), |
| 256 | /* GPIO_102: SLP_S4# */ |
| 257 | _PAD_CFG_STRUCT(GPIO_102, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF), |
| 258 | PAD_IOSSTATE(IGNORE)), |
| 259 | /* GPIO_103: SUSPWRDNACK */ |
| 260 | _PAD_CFG_STRUCT(GPIO_103, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF), |
| 261 | PAD_IOSSTATE(IGNORE)), |
| 262 | /* GPIO_104: Not Connected */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 263 | PAD_NC(GPIO_104, UP_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 264 | /* GPIO_105: GPIO_105 */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 265 | PAD_NC(GPIO_105, UP_20K), |
| 266 | /* GPIO_106: PMU_BATLOW# */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 267 | _PAD_CFG_STRUCT(GPIO_106, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 268 | (1 << 1), PAD_PULL(UP_20K) | PAD_IOSSTATE(IGNORE) | PAD_IOSTERM(ENPU)), |
| 269 | /* GPIO_107: PMU_RSTBTN# */ |
| 270 | _PAD_CFG_STRUCT(GPIO_107, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 271 | (1 << 1), PAD_PULL(UP_20K) | PAD_IOSSTATE(IGNORE) | PAD_IOSTERM(ENPU)), |
| 272 | /* GPIO_108: SUS_CLK */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 273 | PAD_NC(GPIO_108, NONE), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 274 | /* GPIO_109: PMU_SUS_STAT# */ |
| 275 | _PAD_CFG_STRUCT(GPIO_109, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF), |
| 276 | PAD_IOSSTATE(IGNORE)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 277 | /* GPIO_110: I2C_5 SDA */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 278 | PAD_NC(GPIO_110, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 279 | /* GPIO_111: I2C_5 SDL */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 280 | PAD_NC(GPIO_111, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 281 | /* GPIO_112: I2C_6 SDA */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 282 | PAD_NC(GPIO_112, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 283 | /* GPIO_113: I2C_6 SCL */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 284 | PAD_NC(GPIO_113, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 285 | /* GPIO_114: I2C_7 SDA */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 286 | _PAD_CFG_STRUCT(GPIO_114, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 287 | (1 << 1), PAD_PULL(UP_1K) | PAD_IOSSTATE(HIZCRx1) | PAD_IOSTERM(ENPU)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 288 | /* GPIO_115: I2C_7 SCL */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 289 | _PAD_CFG_STRUCT(GPIO_115, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 290 | (1 << 1), PAD_PULL(UP_1K) | PAD_IOSSTATE(HIZCRx1) | PAD_IOSTERM(ENPU)), |
| 291 | /* GPIO_116: WLAN_PCIE_WAKE# */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 292 | PAD_NC(GPIO_116, DN_20K), |
| 293 | /* GPIO_117: Not Connected */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 294 | PAD_NC(GPIO_117, DN_20K), |
| 295 | /* GPIO_118: Not Connected */ |
| 296 | PAD_NC(GPIO_118, DN_20K), |
| 297 | /* GPIO_119: Not Connected */ |
| 298 | PAD_NC(GPIO_119, DN_20K), |
| 299 | /* GPIO_120: WLAN_CLK_REQ# */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 300 | PAD_NC(GPIO_120, DN_20K), |
| 301 | /* GPIO_121: Not Connected */ |
| 302 | PAD_NC(GPIO_121, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 303 | /* GPIO_122: Not Connected */ |
| 304 | PAD_NC(GPIO_122, DN_20K), |
| 305 | /* GPIO_123: Not Connected */ |
| 306 | PAD_NC(GPIO_123, DN_20K), |
| 307 | /* GPIO_124: DDI0_DDC_SDA */ |
| 308 | _PAD_CFG_STRUCT(GPIO_124, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 309 | (1 << 1), PAD_IOSSTATE(HIZCRx0) | PAD_IOSTERM(ENPU)), |
| 310 | /* GPIO_125: DDI0_DDC_SCL */ |
| 311 | _PAD_CFG_STRUCT(GPIO_125, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 312 | (1 << 1), PAD_IOSSTATE(HIZCRx0) | PAD_IOSTERM(ENPU)), |
| 313 | /* GPIO_126: Not Connected */ |
| 314 | PAD_NC(GPIO_126, DN_20K), |
| 315 | /* GPIO_127: Not Connected */ |
| 316 | PAD_NC(GPIO_127, DN_20K), |
| 317 | /* GPIO_128: EDP_VDD_EN */ |
| 318 | _PAD_CFG_STRUCT(GPIO_128, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF), |
| 319 | PAD_PULL(DN_20K) | PAD_IOSSTATE(Tx0RxDCRx0) | PAD_IOSTERM(ENPD)), |
| 320 | /* GPIO_129: EDP_BKLT_EN */ |
| 321 | _PAD_CFG_STRUCT(GPIO_129, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF), |
| 322 | PAD_PULL(DN_20K) | PAD_IOSSTATE(Tx0RxDCRx0) | PAD_IOSTERM(ENPD)), |
| 323 | /* GPIO_130: EDP_BKLT_PWM */ |
| 324 | _PAD_CFG_STRUCT(GPIO_130, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF), |
| 325 | PAD_PULL(DN_20K) | PAD_IOSSTATE(Tx0RxDCRx0) | PAD_IOSTERM(ENPD)), |
| 326 | /* GPIO_131: DDI0_HPD_N */ |
| 327 | _PAD_CFG_STRUCT(GPIO_131, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 328 | (1 << 1), PAD_PULL(UP_20K) | PAD_IOSSTATE(TxDRxE) | PAD_IOSTERM(ENPU)), |
| 329 | /* GPIO_132: DDI0_HPD_SOC */ |
| 330 | _PAD_CFG_STRUCT(GPIO_132, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 331 | PAD_TRIG(OFF), PAD_PULL(UP_20K) | PAD_IOSSTATE(TxDRxE) | PAD_IOSTERM(ENPU)), |
| 332 | /* GPIO_133: EDP_HPD_LS */ |
| 333 | _PAD_CFG_STRUCT(GPIO_133, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 334 | PAD_TRIG(OFF), PAD_IOSSTATE(TxDRxE) | PAD_IOSTERM(ENPU)), |
| 335 | /* GPIO_134: Touch_Panel_RST# */ |
| 336 | PAD_NC(GPIO_134, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 337 | /* GPIO_135: TCH_HOME_KEY */ |
| 338 | PAD_NC(GPIO_135, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 339 | /* GPIO_136: Not Connected */ |
| 340 | PAD_NC(GPIO_136, DN_20K), |
| 341 | /* GPIO_137: Not Connected */ |
| 342 | PAD_NC(GPIO_137, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 343 | /* GPIO_138: Not Connected */ |
| 344 | PAD_NC(GPIO_138, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 345 | /* GPIO_139: Not Connected */ |
| 346 | PAD_NC(GPIO_139, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 347 | /* GPIO_140: Not Connected */ |
| 348 | PAD_NC(GPIO_140, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 349 | /* GPIO_141: Not Connected */ |
| 350 | PAD_NC(GPIO_141, DN_20K), |
| 351 | /* GPIO_142: PMU_WAKE# */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 352 | PAD_CFG_GPI(GPIO_142, UP_20K, DEEP), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 353 | /* GPIO_143: Not Connected */ |
| 354 | PAD_NC(GPIO_143, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 355 | /* GPIO_144: Not Connected */ |
| 356 | PAD_NC(GPIO_144, DN_20K), |
| 357 | /* GPIO_145: Not Connected */ |
| 358 | PAD_NC(GPIO_145, DN_20K), |
| 359 | /* GPIO_146: Not Connected */ |
| 360 | PAD_NC(GPIO_146, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 361 | _PAD_CFG_STRUCT(GPIO_147, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 362 | PAD_BUF(TX_RX_DISABLE) | (1 << 1), PAD_PULL(UP_20K) | PAD_IOSTERM(ENPU)), |
| 363 | _PAD_CFG_STRUCT(GPIO_148, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 364 | PAD_BUF(TX_RX_DISABLE), PAD_IOSSTATE(HIZCRx1)), |
| 365 | _PAD_CFG_STRUCT(GPIO_149, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 366 | PAD_BUF(TX_RX_DISABLE), PAD_IOSSTATE(HIZCRx1)), |
| 367 | _PAD_CFG_STRUCT(GPIO_150, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 368 | PAD_BUF(TX_RX_DISABLE) | (1 << 1), PAD_PULL(UP_20K) | PAD_IOSSTATE(HIZCRx1) | |
| 369 | PAD_IOSTERM(ENPU)), |
| 370 | _PAD_CFG_STRUCT(GPIO_151, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 371 | PAD_BUF(TX_RX_DISABLE) | (1 << 1), PAD_PULL(UP_20K) | PAD_IOSSTATE(HIZCRx1) | |
| 372 | PAD_IOSTERM(ENPU)), |
| 373 | _PAD_CFG_STRUCT(GPIO_152, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 374 | PAD_BUF(TX_RX_DISABLE) | (1 << 1), PAD_PULL(UP_20K) | PAD_IOSSTATE(HIZCRx1) | |
| 375 | PAD_IOSTERM(ENPU)), _PAD_CFG_STRUCT(GPIO_153, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 376 | PAD_TRIG(OFF) | |
| 377 | PAD_BUF(TX_RX_DISABLE) | (1 << 1), PAD_PULL(UP_20K) | PAD_IOSSTATE(HIZCRx1) | |
| 378 | PAD_IOSTERM(ENPU)), _PAD_CFG_STRUCT(GPIO_154, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 379 | PAD_TRIG(OFF) | |
| 380 | PAD_BUF(TX_RX_DISABLE), PAD_PULL(UP_20K)), |
| 381 | _PAD_CFG_STRUCT(GPIO_155, PAD_FUNC(NF1) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 382 | PAD_BUF(TX_RX_DISABLE), PAD_PULL(UP_20K) | PAD_IOSSTATE(HIZCRx1) | |
| 383 | PAD_IOSTERM(ENPU)), |
| 384 | |
| 385 | /* ----- GPIO Group Audio ----- */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 386 | /* GPIO_157: Not Connected */ |
| 387 | PAD_NC(GPIO_157, DN_20K), |
| 388 | /* GPIO_158: Not Connected */ |
| 389 | PAD_NC(GPIO_158, DN_20K), |
| 390 | /* GPIO_159: Not Connected */ |
| 391 | PAD_NC(GPIO_159, DN_20K), |
| 392 | /* GPIO_160: Not Connected */ |
| 393 | PAD_NC(GPIO_160, DN_20K), |
| 394 | /* GPIO_161: GPIO_161 */ |
| 395 | PAD_NC(GPIO_161, DN_20K), |
| 396 | /* GPIO_162: Not Connected */ |
| 397 | PAD_NC(GPIO_162, DN_20K), |
| 398 | /* GPIO_163: GPIO_163 */ |
| 399 | PAD_NC(GPIO_163, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 400 | /* GPIO_164: GPIO_164 */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 401 | PAD_NC(GPIO_164, DN_20K), |
| 402 | /* GPIO_165: GPIO_165 */ |
| 403 | PAD_NC(GPIO_165, DN_20K), |
| 404 | /* GPIO_166: HDA_BCLK_CPU_R */ |
| 405 | /* GPIO_167: HDA_SYNC_CPU_R */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 406 | _PAD_CFG_STRUCT(GPIO_167, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 407 | PAD_TRIG(OFF), PAD_PULL(DN_20K) | PAD_IOSSTATE(HIZCRx1) | PAD_IOSTERM(ENPD)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 408 | /* GPIO_168: GPIO_168 */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 409 | _PAD_CFG_STRUCT(GPIO_168, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 410 | PAD_TRIG(OFF), PAD_IOSSTATE(HIZCRx1)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 411 | /* GPIO_169: HDA_SDATAOUT */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 412 | _PAD_CFG_STRUCT(GPIO_169, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 413 | PAD_TRIG(OFF), PAD_PULL(DN_20K) | PAD_IOSSTATE(HIZCRx1) | PAD_IOSTERM(ENPD)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 414 | /* GPIO_170: HDA_RST# */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 415 | _PAD_CFG_STRUCT(GPIO_170, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 416 | PAD_TRIG(OFF), PAD_PULL(DN_20K) | PAD_IOSSTATE(HIZCRx1) | PAD_IOSTERM(ENPD)), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 417 | /* GPIO_171: Not Connected */ |
| 418 | PAD_NC(GPIO_171, DN_20K), |
| 419 | /* GPIO_172: Not Connected */ |
| 420 | PAD_NC(GPIO_172, DN_20K), |
| 421 | /* GPIO_173: Not Connected */ |
| 422 | PAD_NC(GPIO_173, DN_20K), |
| 423 | /* GPIO_174: VDD2 1.20V / 1.24V Select */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 424 | PAD_CFG_GPO_IOSSTATE_IOSTERM(GPIO_174, 1, DEEP, UP_20K, TxLASTRxE, ENPU), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 425 | /* GPIO_175: GPIO_175 */ |
| 426 | PAD_NC(GPIO_175, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 427 | |
| 428 | /* ----- GPIO Group SCC ----- */ |
| 429 | /* GPIO_176: TP_INT# */ |
| 430 | PAD_CFG_GPI_GPIO_DRIVER(GPIO_176, NONE, PLTRST), |
| 431 | /* GPIO_177: SMB_SOC_CLK */ |
| 432 | _PAD_CFG_STRUCT(GPIO_177, PAD_FUNC(GPIO) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 433 | PAD_BUF(TX_DISABLE) | (1 << 1), PAD_IOSSTATE(IGNORE)), |
| 434 | /* GPIO_178: Not Connected */ |
| 435 | PAD_NC(GPIO_178, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 436 | /* GPIO_187: Not Connected */ |
| 437 | PAD_NC(GPIO_187, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 438 | /* GPIO_179: Not Connected */ |
| 439 | PAD_NC(GPIO_179, DN_20K), |
| 440 | /* GPIO_181: Not Connected */ |
| 441 | PAD_NC(GPIO_181, DN_20K), |
| 442 | /* GPIO_182: Not Connected */ |
| 443 | PAD_NC(GPIO_182, DN_20K), |
| 444 | /* GPIO_183: Not Connected */ |
| 445 | PAD_NC(GPIO_183, DN_20K), |
| 446 | /* GPIO_184: Not Connected */ |
| 447 | PAD_NC(GPIO_184, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 448 | /* GPIO_185: WLAN_RST_N_R */ |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 449 | PAD_NC(GPIO_185, DN_20K), |
| 450 | /* GPIO_186: Not Connected */ |
| 451 | PAD_NC(GPIO_186, DN_20K), |
| 452 | /* GPIO_187: Not Connected */ |
| 453 | PAD_NC(GPIO_187, DN_20K), |
| 454 | /* GPIO_188: SDMMC3_PWR_EN_N */ |
| 455 | _PAD_CFG_STRUCT(GPIO_188, PAD_FUNC(GPIO) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 456 | PAD_BUF(TX_RX_DISABLE), PAD_IOSSTATE(IGNORE)), |
| 457 | /* GPIO_210: GPIO_210 */ |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 458 | PAD_NC(GPIO_210, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 459 | /* GPIO_189: Not Connected */ |
| 460 | PAD_NC(GPIO_189, DN_20K), |
| 461 | /* GPIO_190: Not Connected */ |
| 462 | PAD_NC(GPIO_190, DN_20K), |
Sean Rhodes | 2c6c5f2 | 2022-05-24 22:09:59 +0100 | [diff] [blame^] | 463 | /* GPIO_191: eSPI Flash Sharing */ |
| 464 | PAD_NC(GPIO_191, DN_20K), |
Sean Rhodes | 3252897 | 2022-03-09 09:07:40 +0000 | [diff] [blame] | 465 | _PAD_CFG_STRUCT(GPIO_192, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 466 | PAD_TRIG(OFF) | (1 << 1), PAD_PULL(UP_20K) | PAD_IOSSTATE(IGNORE) | |
| 467 | PAD_IOSTERM(ENPU)), |
| 468 | _PAD_CFG_STRUCT(GPIO_193, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 469 | PAD_TRIG(OFF), PAD_IOSSTATE(IGNORE)), |
| 470 | _PAD_CFG_STRUCT(GPIO_194, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 471 | PAD_TRIG(OFF), PAD_PULL(UP_20K) | PAD_IOSSTATE(IGNORE) | |
| 472 | PAD_IOSTERM(ENPU)), |
| 473 | /* GPIO_195: CNVI_RF_RESET_N */ |
| 474 | _PAD_CFG_STRUCT(GPIO_195, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 475 | PAD_TRIG(OFF), PAD_IOSSTATE(IGNORE)), |
| 476 | |
| 477 | _PAD_CFG_STRUCT(GPIO_196, PAD_FUNC(NF1) | PAD_RESET(DEEP) | |
| 478 | PAD_TRIG(OFF), PAD_IOSSTATE(IGNORE)), |
| 479 | _PAD_CFG_STRUCT(GPIO_197, PAD_FUNC(NF2) | PAD_RESET(DEEP) | PAD_TRIG(OFF) | |
| 480 | PAD_BUF(TX_RX_DISABLE), PAD_PULL(DN_20K) | PAD_IOSTERM(ENPD)), |
| 481 | /* GPIO_198: EMMC_CLK */ |
| 482 | PAD_NC(GPIO_198, DN_20K), |
| 483 | /* GPIO_200: EMMC_DATA_0 */ |
| 484 | PAD_NC(GPIO_200, DN_20K), |
| 485 | /* GPIO_201: EMMC_DATA_1 */ |
| 486 | PAD_NC(GPIO_201, DN_20K), |
| 487 | /* GPIO_202: EMMC_DATA_2 */ |
| 488 | PAD_NC(GPIO_202, DN_20K), |
| 489 | /* GPIO_203: EMMC_DATA_3 */ |
| 490 | PAD_NC(GPIO_203, DN_20K), |
| 491 | /* GPIO_204: EMMC_DATA_4 */ |
| 492 | PAD_NC(GPIO_204, DN_20K), |
| 493 | /* GPIO_205: EMMC_DATA_5 */ |
| 494 | PAD_NC(GPIO_205, DN_20K), |
| 495 | /* GPIO_206: EMMC_DATA_6 */ |
| 496 | PAD_NC(GPIO_206, DN_20K), |
| 497 | /* GPIO_207: EMMC_DATA_7 */ |
| 498 | PAD_NC(GPIO_207, DN_20K), |
| 499 | /* GPIO_208: EMMC_CMD */ |
| 500 | PAD_NC(GPIO_208, DN_20K), |
| 501 | /* GPIO_209: EMMC_STROBE */ |
| 502 | PAD_NC(GPIO_209, DN_20K), |
| 503 | }; |
| 504 | |
| 505 | const struct pad_config *variant_gpio_table(size_t *num) |
| 506 | { |
| 507 | *num = ARRAY_SIZE(gpio_table); |
| 508 | return gpio_table; |
| 509 | } |