Angel Pons | b5a2a52 | 2020-04-05 13:21:48 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Martin Roth | ac35e62 | 2017-11-07 13:43:02 -0700 | [diff] [blame] | 2 | |
Martin Roth | b77bc6f | 2017-11-11 14:33:47 -0700 | [diff] [blame] | 3 | #include <baseboard/variants.h> |
Martin Roth | 3811591 | 2017-11-20 16:19:00 -0700 | [diff] [blame] | 4 | #include <soc/gpio.h> |
Martin Roth | ac35e62 | 2017-11-07 13:43:02 -0700 | [diff] [blame] | 5 | #include <soc/southbridge.h> |
Daniel Kurtz | d648730 | 2018-04-18 17:57:09 -0600 | [diff] [blame] | 6 | #include <variant/gpio.h> |
Martin Roth | ac35e62 | 2017-11-07 13:43:02 -0700 | [diff] [blame] | 7 | |
Martin Roth | 3811591 | 2017-11-20 16:19:00 -0700 | [diff] [blame] | 8 | /* |
Richard Spiegel | e539c85 | 2017-12-25 18:25:58 -0700 | [diff] [blame] | 9 | * As a rule of thumb, GPIO pins used by coreboot should be initialized at |
| 10 | * bootblock while GPIO pins used only by the OS should be initialized at |
| 11 | * ramstage. |
| 12 | */ |
Richard Spiegel | 6fcb9b0 | 2018-04-18 08:06:33 -0700 | [diff] [blame] | 13 | static const struct soc_amd_gpio gpio_set_stage_reset[] = { |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 14 | /* GPIO_4 - EN_PP3300_WLAN */ |
| 15 | PAD_GPO(GPIO_4, HIGH), |
| 16 | |
Felix Held | 9ef72ca | 2020-12-12 22:28:54 +0100 | [diff] [blame] | 17 | /* GPIO_6 - APU_RST_L / EC_SMI_ODL, SMI gets configured in ramstage */ |
| 18 | PAD_GPI(GPIO_6, PULL_UP), |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 19 | |
Furquan Shaikh | aaff401 | 2020-06-27 15:24:09 -0700 | [diff] [blame] | 20 | /* GPIO_9 - H1_PCH_INT_ODL */ |
Richard Spiegel | 2db06bb | 2018-04-20 16:50:12 -0700 | [diff] [blame] | 21 | PAD_INT(GPIO_9, PULL_UP, EDGE_LOW, STATUS), |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 22 | |
| 23 | /* GPIO_15 - EC_IN_RW_OD */ |
| 24 | PAD_GPI(GPIO_15, PULL_UP), |
| 25 | |
Felix Held | 9ef72ca | 2020-12-12 22:28:54 +0100 | [diff] [blame] | 26 | /* GPIO_22 - EC_SCI_ODL, SCI gets configured in ramstage */ |
| 27 | PAD_GPI(GPIO_22, PULL_UP), |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 28 | |
Felix Held | 9ef72ca | 2020-12-12 22:28:54 +0100 | [diff] [blame] | 29 | /* GPIO_24 - EC_PCH_WAKE_L, SCI gets configured in ramstage */ |
| 30 | PAD_GPI(GPIO_24, PULL_UP), |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 31 | |
| 32 | /* GPIO_26 - APU_PCIE_RST_L */ |
| 33 | PAD_NF(GPIO_26, PCIE_RST_L, PULL_NONE), |
| 34 | |
| 35 | /* GPIO_40 - EMMC_BRIDGE_RST */ |
Martin Roth | c3f5293 | 2018-09-17 09:16:31 -0600 | [diff] [blame] | 36 | PAD_GPO(GPIO_40, LOW), |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 37 | |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 38 | /* GPIO_74 - LPC_CLK0_EC_R */ |
| 39 | PAD_NF(GPIO_74, LPCCLK0, PULL_DOWN), |
| 40 | |
| 41 | /* GPIO_92 - WLAN_PCIE_CLKREQ_3V3_ODL */ |
| 42 | PAD_NF(GPIO_92, CLK_REQ0_L, PULL_UP), |
| 43 | |
Daniel Kurtz | c3e7416 | 2018-05-23 17:58:59 -0600 | [diff] [blame] | 44 | /* GPIO_122 - APU_BIOS_FLASH_WP_L */ |
| 45 | PAD_GPI(GPIO_122, PULL_NONE), |
| 46 | |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 47 | /* GPIO_131 - CONFIG_STRAP3 */ |
| 48 | PAD_GPI(GPIO_131, PULL_NONE), |
| 49 | |
| 50 | /* GPIO_132 - CONFIG_STRAP4 */ |
| 51 | PAD_GPI(GPIO_132, PULL_NONE), |
| 52 | |
| 53 | /* GPIO_136 - UART_PCH_RX_DEBUG_TX */ |
| 54 | PAD_NF(GPIO_136, UART0_RXD, PULL_NONE), |
| 55 | |
| 56 | /* GPIO_138 - UART_PCH_TX_DEBUG_RX */ |
| 57 | PAD_NF(GPIO_138, UART0_TXD, PULL_NONE), |
| 58 | |
| 59 | /* GPIO_139 - CONFIG_STRAP1 */ |
| 60 | PAD_GPI(GPIO_139, PULL_NONE), |
| 61 | |
| 62 | /* GPIO_142 - CONFIG_STRAP2 */ |
| 63 | PAD_GPI(GPIO_142, PULL_NONE), |
| 64 | }; |
| 65 | |
Kevin Chiu | 8c4ad5b | 2020-05-01 20:59:28 +0800 | [diff] [blame] | 66 | static const struct soc_amd_gpio gpio_wlan_rst_early_reset[] = { |
| 67 | /* GPIO_70 - WLAN_PE_RST_L */ |
| 68 | PAD_GPO(GPIO_70, HIGH), |
| 69 | }; |
| 70 | |
Martin Roth | 03f05cf | 2018-12-04 15:16:00 -0700 | [diff] [blame] | 71 | static const struct soc_amd_gpio gpio_set_stage_rom[] = { |
| 72 | /* GPIO_133 - APU_EDP_BKLTEN_L (backlight - Active LOW) */ |
| 73 | PAD_GPO(GPIO_133, HIGH), |
| 74 | }; |
| 75 | |
Richard Spiegel | 6fcb9b0 | 2018-04-18 08:06:33 -0700 | [diff] [blame] | 76 | static const struct soc_amd_gpio gpio_set_stage_ram[] = { |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 77 | /* GPIO_0 - EC_PCH_PWR_BTN_ODL */ |
| 78 | PAD_NF(GPIO_0, PWR_BTN_L, PULL_UP), |
| 79 | |
| 80 | /* GPIO_1 - SYS_RST_ODL */ |
| 81 | PAD_NF(GPIO_1, SYS_RESET_L, PULL_UP), |
| 82 | |
Martin Roth | d0bc79b | 2018-03-19 16:39:19 -0600 | [diff] [blame] | 83 | /* GPIO_2 - WLAN_PCIE_WAKE_3V3_ODL */ |
Felix Held | f8e440c | 2021-03-24 00:17:35 +0100 | [diff] [blame^] | 84 | PAD_NF_SCI(GPIO_2, WAKE_L, PULL_UP, EDGE_LOW), |
Martin Roth | d0bc79b | 2018-03-19 16:39:19 -0600 | [diff] [blame] | 85 | |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 86 | /* GPIO_3 - MEM_VOLT_SEL */ |
| 87 | PAD_GPI(GPIO_3, PULL_UP), |
| 88 | |
| 89 | /* GPIO_5 - PCH_TRACKPAD_INT_3V3_ODL, SCI */ |
Richard Spiegel | 2db06bb | 2018-04-20 16:50:12 -0700 | [diff] [blame] | 90 | PAD_SCI(GPIO_5, PULL_UP, EDGE_LOW), |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 91 | |
Felix Held | 9ef72ca | 2020-12-12 22:28:54 +0100 | [diff] [blame] | 92 | /* GPIO_6 - APU_RST_L / EC_SMI_ODL, SMI */ |
| 93 | PAD_SMI(GPIO_6, PULL_UP, LEVEL_LOW), |
| 94 | |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 95 | /* GPIO_7 - APU_PWROK_OD (currently not used) */ |
| 96 | PAD_GPI(GPIO_7, PULL_UP), |
| 97 | |
| 98 | /* GPIO_8 - DDR_ALERT_3V3_L (currently not used) */ |
| 99 | PAD_GPI(GPIO_8, PULL_UP), |
| 100 | |
Edward Hill | f14445c | 2019-02-04 14:42:03 -0700 | [diff] [blame] | 101 | /* GPIO_10 - SLP_S0_L, EC_SYNC_IRQ */ |
| 102 | PAD_GPI(GPIO_10, PULL_UP), |
Martin Roth | d0bc79b | 2018-03-19 16:39:19 -0600 | [diff] [blame] | 103 | |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 104 | /* GPIO_11 - TOUCHSCREEN_INT_3V3_ODL, SCI */ |
Richard Spiegel | 2db06bb | 2018-04-20 16:50:12 -0700 | [diff] [blame] | 105 | PAD_SCI(GPIO_11, PULL_UP, EDGE_LOW), |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 106 | |
Martin Roth | d0bc79b | 2018-03-19 16:39:19 -0600 | [diff] [blame] | 107 | /* GPIO_12 - EN_PP3300_TRACKPAD */ |
| 108 | PAD_GPO(GPIO_12, HIGH), |
| 109 | |
| 110 | /* GPIO_13 - APU_PEN_PDCT_ODL (currently not used) */ |
| 111 | PAD_GPI(GPIO_13, PULL_UP), |
| 112 | |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 113 | /* GPIO_14 - APU_HP_INT_ODL, SCI */ |
Richard Spiegel | 2db06bb | 2018-04-20 16:50:12 -0700 | [diff] [blame] | 114 | PAD_SCI(GPIO_14, PULL_UP, EDGE_LOW), |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 115 | |
Martin Roth | d0bc79b | 2018-03-19 16:39:19 -0600 | [diff] [blame] | 116 | /* GPIO_16 - USB_C0_OC_L */ |
| 117 | PAD_NF(GPIO_16, USB_OC0_L, PULL_UP), |
| 118 | |
| 119 | /* GPIO_17 - USB_C1_OC_L */ |
| 120 | PAD_NF(GPIO_17, USB_OC1_L, PULL_UP), |
| 121 | |
| 122 | /* GPIO_18 - USB_A0_OC_ODL */ |
| 123 | PAD_NF(GPIO_18, USB_OC2_L, PULL_UP), |
| 124 | |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 125 | /* GPIO_19 - APU_I2C_SCL3 (Touchscreen) */ |
| 126 | PAD_NF(GPIO_19, I2C3_SCL, PULL_UP), |
| 127 | |
| 128 | /* GPIO_20 - APU_I2C_SDA3 (Touchscreen) */ |
| 129 | PAD_NF(GPIO_20, I2C3_SDA, PULL_UP), |
| 130 | |
| 131 | /* GPIO_21 - APU_PEN_INT_ODL, SCI */ |
Richard Spiegel | 2db06bb | 2018-04-20 16:50:12 -0700 | [diff] [blame] | 132 | PAD_SCI(GPIO_21, PULL_UP, EDGE_LOW), |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 133 | |
Felix Held | 9ef72ca | 2020-12-12 22:28:54 +0100 | [diff] [blame] | 134 | /* GPIO_22 - EC_SCI_ODL, SCI */ |
| 135 | PAD_SCI(GPIO_22, PULL_UP, EDGE_LOW), |
| 136 | |
| 137 | /* GPIO_24 - EC_PCH_WAKE_L, SCI */ |
| 138 | PAD_SCI(GPIO_24, PULL_UP, EDGE_LOW), |
| 139 | |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 140 | /* GPIO_25 - SD_CD */ |
| 141 | PAD_NF(GPIO_25, SD0_CD, PULL_UP), |
| 142 | |
| 143 | /* GPIO_42 - S5_MUX_CTRL */ |
| 144 | PAD_NF(GPIO_42, S5_MUX_CTRL, PULL_NONE), |
| 145 | |
Martin Roth | d0bc79b | 2018-03-19 16:39:19 -0600 | [diff] [blame] | 146 | /* GPIO_67 - PEN_RESET */ |
| 147 | PAD_GPO(GPIO_67, LOW), |
| 148 | |
| 149 | /* GPIO_75 - Unused (strap) (R139/R130) */ |
| 150 | PAD_GPI(GPIO_75, PULL_UP), |
| 151 | |
| 152 | /* GPIO_76 - EN_PP3300_TOUCHSCREEN */ |
| 153 | PAD_GPO(GPIO_76, HIGH), |
| 154 | |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 155 | /* GPIO_84 - HUB_RST (Active High) */ |
| 156 | PAD_GPO(GPIO_84, LOW), |
| 157 | |
| 158 | /* GPIO_85 - TOUCHSCREEN_RST (Active High) */ |
| 159 | PAD_GPO(GPIO_85, LOW), |
| 160 | |
Martin Roth | d0bc79b | 2018-03-19 16:39:19 -0600 | [diff] [blame] | 161 | /* GPIO_86 - Unused (TP109) */ |
| 162 | PAD_GPI(GPIO_86, PULL_UP), |
| 163 | |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 164 | /* GPIO_87 - LPC_SERIRQ */ |
| 165 | PAD_NF(GPIO_87, SERIRQ, PULL_NONE), |
| 166 | |
| 167 | /* GPIO_88 - LPC_CLKRUN_L */ |
| 168 | PAD_NF(GPIO_88, LPC_CLKRUN_L, PULL_NONE), |
| 169 | |
Martin Roth | d0bc79b | 2018-03-19 16:39:19 -0600 | [diff] [blame] | 170 | /* GPIO_90 - EN_PP3300_CAMERA */ |
| 171 | PAD_GPO(GPIO_90, HIGH), |
| 172 | |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 173 | /* GPIO_91 - DMIC_CLK1_EN */ |
| 174 | PAD_GPO(GPIO_91, HIGH), |
| 175 | |
| 176 | /* GPIO_93 - EMMC_RST */ |
| 177 | PAD_GPO(GPIO_93, LOW), |
| 178 | |
| 179 | /* GPIO_101 - SD_WP_L */ |
| 180 | PAD_NF(GPIO_101, SD0_WP, PULL_DOWN), |
| 181 | |
Martin Roth | d0bc79b | 2018-03-19 16:39:19 -0600 | [diff] [blame] | 182 | /* GPIO_102 - EN_SD_SOCKET_PWR */ |
| 183 | PAD_NF(GPIO_102, SD0_PWR_CTRL, PULL_DOWN), |
| 184 | |
| 185 | /* GPIO_113 - APU_I2C_SCL2 (Pen & Trackpad) */ |
| 186 | PAD_NF(GPIO_113, I2C2_SCL, PULL_UP), |
| 187 | |
| 188 | /* GPIO_114 - APU_I2C_SDA2 (Pen & Trackpad) */ |
| 189 | PAD_NF(GPIO_114, I2C2_SDA, PULL_UP), |
| 190 | |
| 191 | /* GPIO_115 - Unused (TP127) */ |
| 192 | PAD_GPI(GPIO_115, PULL_UP), |
| 193 | |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 194 | /* GPIO_116 - PCIE_EMMC_CLKREQ_L */ |
| 195 | PAD_NF(GPIO_116, CLK_REQ2_L, PULL_NONE), |
| 196 | |
| 197 | /* GPIO_118 - PCH_SPI_CS0_L */ |
| 198 | PAD_NF(GPIO_118, SPI_CS1_L, PULL_NONE), |
| 199 | |
| 200 | /* GPIO_119 - SPK_PA_EN */ |
Raul E Rangel | deed1e3 | 2018-11-21 15:26:46 -0700 | [diff] [blame] | 201 | PAD_GPO(GPIO_119, LOW), |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 202 | |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 203 | /* GPIO_126 - DMIC_CLK2_EN */ |
| 204 | PAD_GPO(GPIO_126, HIGH), |
| 205 | |
| 206 | /* GPIO_129 - APU_KBRST_L */ |
| 207 | PAD_NF(GPIO_129, KBRST_L, PULL_UP), |
| 208 | |
Martin Roth | d0bc79b | 2018-03-19 16:39:19 -0600 | [diff] [blame] | 209 | /* GPIO_130 - Unused (TP55) */ |
| 210 | PAD_GPI(GPIO_130, PULL_UP), |
| 211 | |
Martin Roth | 11f7298 | 2018-09-04 15:24:59 -0600 | [diff] [blame] | 212 | /* GPIO_135 - BCLK Buffer Enable */ |
| 213 | PAD_GPO(GPIO_135, HIGH), |
Richard Spiegel | e07e4f3 | 2018-03-27 17:41:11 -0700 | [diff] [blame] | 214 | |
| 215 | /* GPIO_137 - Unused (TP27) */ |
| 216 | PAD_GPI(GPIO_137, PULL_UP), |
| 217 | |
| 218 | /* GPIO_140 - I2S_BCLK_R (init to func0, used for I2S) */ |
| 219 | PAD_NF(GPIO_140, UART1_CTS_L, PULL_NONE), |
| 220 | |
| 221 | /* GPIO_141 - I2S2_DATA_MIC2 (init to func0, used for I2S) */ |
| 222 | PAD_NF(GPIO_141, UART1_RXD, PULL_NONE), |
| 223 | |
| 224 | /* GPIO_143 - I2S2_DATA (init to func0, used for I2S) */ |
| 225 | PAD_NF(GPIO_143, UART1_TXD, PULL_NONE), |
| 226 | |
| 227 | /* GPIO_144 - I2S_LR_R (init to func0, used for I2S) */ |
| 228 | PAD_NF(GPIO_144, UART1_INTR, PULL_NONE), |
| 229 | |
| 230 | /* GPIO_145 - PCH_I2C_AUDIO_SCL */ |
| 231 | PAD_NF(GPIO_145, I2C0_SCL, PULL_NONE), |
| 232 | |
| 233 | /* GPIO_146 - PCH_I2C_AUDIO_SDA */ |
| 234 | PAD_NF(GPIO_146, I2C0_SDA, PULL_NONE), |
| 235 | |
| 236 | /* GPIO_147 - PCH_I2C_H1_TPM_SCL */ |
| 237 | PAD_NF(GPIO_147, I2C1_SCL, PULL_NONE), |
| 238 | |
| 239 | /* GPIO_148 - PCH_I2C_H1_TPM_SDA */ |
| 240 | PAD_NF(GPIO_148, I2C1_SDA, PULL_NONE), |
Martin Roth | d0bc79b | 2018-03-19 16:39:19 -0600 | [diff] [blame] | 241 | }; |
| 242 | |
Aaron Durbin | 6403167 | 2018-04-21 14:45:32 -0600 | [diff] [blame] | 243 | const __weak |
Richard Spiegel | 6fcb9b0 | 2018-04-18 08:06:33 -0700 | [diff] [blame] | 244 | struct soc_amd_gpio *variant_early_gpio_table(size_t *size) |
Richard Spiegel | e539c85 | 2017-12-25 18:25:58 -0700 | [diff] [blame] | 245 | { |
Martin Roth | b855f7e | 2018-06-02 21:48:14 -0600 | [diff] [blame] | 246 | *size = ARRAY_SIZE(gpio_set_stage_reset); |
| 247 | return gpio_set_stage_reset; |
Justin TerAvest | 3fe3f04 | 2018-02-14 19:10:15 -0700 | [diff] [blame] | 248 | } |
| 249 | |
Aaron Durbin | 6403167 | 2018-04-21 14:45:32 -0600 | [diff] [blame] | 250 | const __weak |
Kevin Chiu | 8c4ad5b | 2020-05-01 20:59:28 +0800 | [diff] [blame] | 251 | struct soc_amd_gpio *variant_wlan_rst_early_gpio_table(size_t *size) |
| 252 | { |
| 253 | *size = ARRAY_SIZE(gpio_wlan_rst_early_reset); |
| 254 | return gpio_wlan_rst_early_reset; |
| 255 | } |
| 256 | |
| 257 | const __weak |
Martin Roth | 03f05cf | 2018-12-04 15:16:00 -0700 | [diff] [blame] | 258 | struct soc_amd_gpio *variant_romstage_gpio_table(size_t *size) |
| 259 | { |
| 260 | *size = ARRAY_SIZE(gpio_set_stage_rom); |
| 261 | return gpio_set_stage_rom; |
| 262 | } |
| 263 | |
| 264 | const __weak |
Richard Spiegel | 6fcb9b0 | 2018-04-18 08:06:33 -0700 | [diff] [blame] | 265 | struct soc_amd_gpio *variant_gpio_table(size_t *size) |
Justin TerAvest | 3fe3f04 | 2018-02-14 19:10:15 -0700 | [diff] [blame] | 266 | { |
Martin Roth | b855f7e | 2018-06-02 21:48:14 -0600 | [diff] [blame] | 267 | *size = ARRAY_SIZE(gpio_set_stage_ram); |
| 268 | return gpio_set_stage_ram; |
Richard Spiegel | e539c85 | 2017-12-25 18:25:58 -0700 | [diff] [blame] | 269 | } |
| 270 | |
Aaron Durbin | 6403167 | 2018-04-21 14:45:32 -0600 | [diff] [blame] | 271 | int __weak variant_get_xhci_oc_map(uint16_t *map) |
Marc Jones | df6b51b | 2017-11-29 20:07:46 -0700 | [diff] [blame] | 272 | { |
Martin Roth | 96b2de9 | 2017-12-13 20:07:26 -0700 | [diff] [blame] | 273 | *map = USB_OC0 << OC_PORT0_SHIFT; /* USB-C Port0/4 = OC0 */ |
| 274 | *map |= USB_OC1 << OC_PORT1_SHIFT; /* USB-C Port1/5 = OC1 */ |
| 275 | *map |= USB_OC2 << OC_PORT2_SHIFT; /* USB-A HUB Port2/6 = OC2 */ |
Marc Jones | df6b51b | 2017-11-29 20:07:46 -0700 | [diff] [blame] | 276 | *map |= USB_OC_DISABLE << OC_PORT3_SHIFT; |
| 277 | return 0; |
| 278 | } |
| 279 | |
Aaron Durbin | 6403167 | 2018-04-21 14:45:32 -0600 | [diff] [blame] | 280 | int __weak variant_get_ehci_oc_map(uint16_t *map) |
Marc Jones | df6b51b | 2017-11-29 20:07:46 -0700 | [diff] [blame] | 281 | { |
Martin Roth | 96b2de9 | 2017-12-13 20:07:26 -0700 | [diff] [blame] | 282 | *map = USB_OC_DISABLE_ALL; |
Marc Jones | df6b51b | 2017-11-29 20:07:46 -0700 | [diff] [blame] | 283 | return 0; |
| 284 | } |