mb/google/skyrim/var/markarth: Update GPIO settings

Configure GPIOs based on b/263534907#comment4 from EE.

BUG=b:263534907, b:263216451
BRANCH=None
TEST=FW_NAME=markarth emerge-skyrim coreboot

Signed-off-by: John Su <john_su@compal.corp-partner.google.com>
Change-Id: I5346a4322a6538d69d3482948166cfb5bd182021
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71635
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
John Su 2023-01-03 15:41:57 +08:00 committed by Martin L Roth
parent 692fc58a6f
commit 2819edb497
2 changed files with 28 additions and 0 deletions

View File

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

View File

@ -0,0 +1,27 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include <baseboard/gpio.h>
#include <baseboard/variants.h>
#include <gpio.h>
/* GPIO configuration in ramstage */
static const struct soc_amd_gpio override_gpio_table[] = {
/* SOC_PEN_DETECT_ODL => Unused */
PAD_NC(GPIO_3),
/* EN_PWR_FP => Unused */
PAD_NC(GPIO_4),
/* EN_PWR_WWAN_X => Unused */
PAD_NC(GPIO_8),
/* SOC_FP_INT_L => Unused */
PAD_NC(GPIO_24),
/* SD_AUX_RST_SOC_L => Unused */
PAD_NC(GPIO_27),
/* 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;
}