Karthik Ramasubramanian has submitted this change. ( https://review.coreboot.org/c/coreboot/+/68481 )
Change subject: mb/google/skyrim/var/frostflow: Update GPIO settings ......................................................................
mb/google/skyrim/var/frostflow: Update GPIO settings
Configure GPIOs based on GPIO_20221014.xlsx of frostflow.
BUG=b:253506651, b:251367588 BRANCH=None TEST=FW_NAME=frostflow emerge-skyrim coreboot
Signed-off-by: Frank Wu frank_wu@compal.corp-partner.google.com Change-Id: I02272801c85a7c30d24c834a840e026225956fb8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68481 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Jon Murphy jpmurphy@google.com Reviewed-by: Karthik Ramasubramanian kramasub@google.com --- M src/mainboard/google/skyrim/variants/frostflow/Makefile.inc A src/mainboard/google/skyrim/variants/frostflow/gpio.c 2 files changed, 44 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Karthik Ramasubramanian: Looks good to me, approved Jon Murphy: Looks good to me, approved
diff --git a/src/mainboard/google/skyrim/variants/frostflow/Makefile.inc b/src/mainboard/google/skyrim/variants/frostflow/Makefile.inc index 88e75bd..db72b15 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 0000000..a80693f --- /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; +}