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>
This commit is contained in:
Frank Wu 2022-10-17 10:29:06 +08:00 committed by Karthik Ramasubramanian
parent a6065ec328
commit 6d87ac57e2
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
subdirs-y += ./memory subdirs-y += ./memory
ramstage-y += gpio.c

View File

@ -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;
}