diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/skyrim/variants/frostflow/Makefile.inc | 2 | ||||
-rw-r--r-- | src/mainboard/google/skyrim/variants/frostflow/gpio.c | 22 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/mainboard/google/skyrim/variants/frostflow/Makefile.inc b/src/mainboard/google/skyrim/variants/frostflow/Makefile.inc index 88e75bde52..db72b152a7 100644 --- a/src/mainboard/google/skyrim/variants/frostflow/Makefile.inc +++ b/src/mainboard/google/skyrim/variants/frostflow/Makefile.inc @@ -1,3 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-or-later subdirs-y += ./memory + +ramstage-y += gpio.c diff --git a/src/mainboard/google/skyrim/variants/frostflow/gpio.c b/src/mainboard/google/skyrim/variants/frostflow/gpio.c new file mode 100644 index 0000000000..a80693fac6 --- /dev/null +++ b/src/mainboard/google/skyrim/variants/frostflow/gpio.c @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <baseboard/gpio.h> +#include <baseboard/variants.h> +#include <commonlib/helpers.h> +#include <soc/gpio.h> + +/* GPIO configuration in ramstage */ +static const struct soc_amd_gpio override_gpio_table[] = { + /* EN_PWR_WWAN_X => CAM_PSW_L */ + PAD_INT(GPIO_8, PULL_NONE, BOTH_EDGES, STATUS_DELIVERY), + /* SOC_SAR_INT_L => Unused */ + PAD_NC(GPIO_17), + /* WWAN_RST_L => Unused */ + PAD_NC(GPIO_42), +}; + +void variant_override_gpio_table(const struct soc_amd_gpio **gpio, size_t *size) +{ + *size = ARRAY_SIZE(override_gpio_table); + *gpio = override_gpio_table; +} |