| 1 |
|
| 2 |
|
| 3 |
#include <baseboard/gpio.h> |
| 4 |
#include <baseboard/variants.h> |
| 5 |
#include <console/console.h> |
| 6 |
#include <fw_config.h> |
| 7 |
|
| 8 |
static const struct pad_config wwan_disable_pads[] = { |
| 9 |
|
| 10 |
PAD_NC(GPP_A8, NONE), |
| 11 |
|
| 12 |
PAD_NC(GPP_A12, NONE), |
| 13 |
|
| 14 |
PAD_NC(GPP_D5, NONE), |
| 15 |
|
| 16 |
PAD_NC(GPP_D6, NONE), |
| 17 |
|
| 18 |
PAD_NC(GPP_D15, NONE), |
| 19 |
|
| 20 |
PAD_NC_LOCK(GPP_F12, NONE, LOCK_CONFIG), |
| 21 |
|
| 22 |
PAD_NC(GPP_H19, NONE), |
| 23 |
|
| 24 |
PAD_NC_LOCK(GPP_H21, NONE, LOCK_CONFIG), |
| 25 |
|
| 26 |
PAD_NC(GPP_H23, NONE), |
| 27 |
}; |
| 28 |
|
| 29 |
void fw_config_gpio_padbased_override(struct pad_config *padbased_table) |
| 30 |
{ |
| 31 |
if (fw_config_probe(FW_CONFIG(WWAN, WWAN_ABSENT))) { |
| 32 |
printk(BIOS_INFO, "Disable WWAN-related GPIO pins.\n"); |
| 33 |
gpio_padbased_override(padbased_table, wwan_disable_pads, |
| 34 |
ARRAY_SIZE(wwan_disable_pads)); |
| 35 |
} |
| 36 |
} |