diff options
Diffstat (limited to 'src/soc/intel/apollolake/lpc_lib.c')
-rw-r--r-- | src/soc/intel/apollolake/lpc_lib.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/soc/intel/apollolake/lpc_lib.c b/src/soc/intel/apollolake/lpc_lib.c index 14e052eace..654c83e838 100644 --- a/src/soc/intel/apollolake/lpc_lib.c +++ b/src/soc/intel/apollolake/lpc_lib.c @@ -20,6 +20,7 @@ #include <console/console.h> #include <device/pci.h> #include <lib.h> +#include <soc/gpio.h> #include <soc/lpc.h> #include <soc/pci_devs.h> @@ -44,6 +45,21 @@ static const struct lpc_mmio_range { { 0, 0 } }; +static const struct pad_config lpc_gpios[] = { + PAD_CFG_NF(LPC_AD0, NATIVE, DEEP, NF1), + PAD_CFG_NF(LPC_AD1, NATIVE, DEEP, NF1), + PAD_CFG_NF(LPC_AD2, NATIVE, DEEP, NF1), + PAD_CFG_NF(LPC_AD3, NATIVE, DEEP, NF1), + PAD_CFG_NF(LPC_FRAMEB, NATIVE, DEEP, NF1), + PAD_CFG_NF(LPC_CLKOUT0, UP_20K, DEEP, NF1), + PAD_CFG_NF(LPC_CLKOUT1, UP_20K, DEEP, NF1) +}; + +void lpc_configure_pads(void) +{ + gpio_configure_pads(lpc_gpios, ARRAY_SIZE(lpc_gpios)); +} + void lpc_enable_fixed_io_ranges(uint16_t io_enables) { uint16_t reg_io_enables; |