| 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 fp_disable_pads[] = { |
| 9 |
PAD_NC(GPP_D0, NONE), |
| 10 |
PAD_NC(GPP_D1, NONE), |
| 11 |
PAD_NC(GPP_D2, NONE), |
| 12 |
}; |
| 13 |
|
| 14 |
void fw_config_gpio_padbased_override(struct pad_config *padbased_table) |
| 15 |
{ |
| 16 |
if (fw_config_probe(FW_CONFIG(FP_MCU, FP_ABSENT))) { |
| 17 |
printk(BIOS_INFO, "Configure GPIOs for no FP module.\n"); |
| 18 |
gpio_padbased_override(padbased_table, fp_disable_pads, ARRAY_SIZE(fp_disable_pads)); |
| 19 |
} |
| 20 |
} |