summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/guybrush/variants/baseboard/gpio.c4
-rw-r--r--src/mainboard/google/guybrush/variants/guybrush/gpio.c11
-rw-r--r--src/mainboard/google/guybrush/variants/nipperkin/gpio.c2
3 files changed, 14 insertions, 3 deletions
diff --git a/src/mainboard/google/guybrush/variants/baseboard/gpio.c b/src/mainboard/google/guybrush/variants/baseboard/gpio.c
index 2fa525486e..376cf4ab0d 100644
--- a/src/mainboard/google/guybrush/variants/baseboard/gpio.c
+++ b/src/mainboard/google/guybrush/variants/baseboard/gpio.c
@@ -21,8 +21,8 @@ static const struct soc_amd_gpio base_gpio_table[] = {
PAD_INT(GPIO_3, PULL_NONE, EDGE_LOW, STATUS_DELIVERY),
/* SOC_PEN_DETECT_ODL */
PAD_WAKE(GPIO_4, PULL_NONE, EDGE_HIGH, S0i3),
- /* EN_PP5000_PEN */
- PAD_GPO(GPIO_5, HIGH),
+ /* Unused */
+ PAD_NC(GPIO_5),
/* EN_PP3300_WLAN */
PAD_GPO(GPIO_6, HIGH),
/* EN_PP3300_TCHPAD */
diff --git a/src/mainboard/google/guybrush/variants/guybrush/gpio.c b/src/mainboard/google/guybrush/variants/guybrush/gpio.c
index 08289c8bc9..fa3a8226f9 100644
--- a/src/mainboard/google/guybrush/variants/guybrush/gpio.c
+++ b/src/mainboard/google/guybrush/variants/guybrush/gpio.c
@@ -17,6 +17,14 @@ static const struct soc_amd_gpio bid1_ramstage_gpio_table[] = {
PAD_GPO(GPIO_70, HIGH),
/* RAM_ID_CHAN_SEL */
PAD_GPI(GPIO_74, PULL_NONE),
+ /* EN_PP5000_PEN */
+ PAD_GPO(GPIO_5, HIGH),
+};
+
+/* This table is used by guybrush variant with board version >= 2. */
+static const struct soc_amd_gpio bid2_ramstage_gpio_table[] = {
+ /* EN_PP5000_PEN */
+ PAD_GPO(GPIO_5, HIGH),
};
/* This table is used by guybrush variant with board version < 2. */
@@ -42,7 +50,8 @@ const struct soc_amd_gpio *variant_override_gpio_table(size_t *size)
return bid1_ramstage_gpio_table;
}
- return NULL;
+ *size = ARRAY_SIZE(bid2_ramstage_gpio_table);
+ return bid2_ramstage_gpio_table;
}
const struct soc_amd_gpio *variant_early_override_gpio_table(size_t *size)
diff --git a/src/mainboard/google/guybrush/variants/nipperkin/gpio.c b/src/mainboard/google/guybrush/variants/nipperkin/gpio.c
index acdcc4f7f3..31fedad66a 100644
--- a/src/mainboard/google/guybrush/variants/nipperkin/gpio.c
+++ b/src/mainboard/google/guybrush/variants/nipperkin/gpio.c
@@ -12,6 +12,8 @@ static const struct soc_amd_gpio override_gpio_table[] = {
/* Unused TP1063 */
PAD_NC(GPIO_17),
PAD_NC(GPIO_18),
+ /* LCD_PRIVACY_PCH */
+ PAD_GPO(GPIO_5, HIGH),
};
static const struct soc_amd_gpio override_early_gpio_table[] = {