summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/guybrush/variants/dewatt/Makefile.inc5
-rw-r--r--src/mainboard/google/guybrush/variants/dewatt/gpio.c91
-rw-r--r--src/mainboard/google/guybrush/variants/dewatt/overridetree.cb3
3 files changed, 98 insertions, 1 deletions
diff --git a/src/mainboard/google/guybrush/variants/dewatt/Makefile.inc b/src/mainboard/google/guybrush/variants/dewatt/Makefile.inc
index 88e75bde52..becdf6a365 100644
--- a/src/mainboard/google/guybrush/variants/dewatt/Makefile.inc
+++ b/src/mainboard/google/guybrush/variants/dewatt/Makefile.inc
@@ -1,3 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-or-later
+bootblock-y += gpio.c
+romstage-y += gpio.c
+ramstage-y += gpio.c
+verstage-y += gpio.c
+
subdirs-y += ./memory
diff --git a/src/mainboard/google/guybrush/variants/dewatt/gpio.c b/src/mainboard/google/guybrush/variants/dewatt/gpio.c
new file mode 100644
index 0000000000..28215fdf31
--- /dev/null
+++ b/src/mainboard/google/guybrush/variants/dewatt/gpio.c
@@ -0,0 +1,91 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <baseboard/gpio.h>
+#include <baseboard/variants.h>
+#include <boardid.h>
+#include <gpio.h>
+#include <soc/gpio.h>
+#include <baseboard/variants.h>
+
+/* This table is used by guybrush variant */
+static const struct soc_amd_gpio override_ramstage_gpio_table[] = {
+ /* Unused TP247*/
+ PAD_NC(GPIO_3),
+ /* Unused TP218*/
+ PAD_NC(GPIO_4),
+ /* Unused TP245*/
+ PAD_NC(GPIO_8),
+ /* Unused TP244*/
+ PAD_NC(GPIO_11),
+ /* Unused TP194*/
+ PAD_NC(GPIO_17),
+ /* Unused TP195*/
+ PAD_NC(GPIO_18),
+ /* Unused TP243*/
+ PAD_NC(GPIO_21),
+ /* Unused TP196*/
+ PAD_NC(GPIO_24),
+ /* Unused TP219*/
+ PAD_NC(GPIO_42),
+ /* Unused TP217*/
+ PAD_NC(GPIO_69),
+ /* Unused TP235*/
+ PAD_NC(GPIO_115),
+ /* Unused TP205*/
+ PAD_NC(GPIO_116),
+ /* Unused TP226*/
+ PAD_NC(GPIO_140),
+ /* Unused TP225*/
+ PAD_NC(GPIO_142),
+ /* Unused TP227*/
+ PAD_NC(GPIO_144),
+};
+
+static const struct soc_amd_gpio override_early_gpio_table[] = {
+ /* Unused TP245*/
+ PAD_NC(GPIO_8),
+ /* Unused TP195*/
+ PAD_NC(GPIO_18),
+ /* Unused TP196*/
+ PAD_NC(GPIO_24),
+ /* Unused TP217*/
+ PAD_NC(GPIO_69),
+};
+
+/* This table is used by guybrush variant */
+static const struct soc_amd_gpio override_pcie_gpio_table[] = {
+ /* Unused TP195*/
+ PAD_NC(GPIO_18),
+ /* Unused TP217*/
+ PAD_NC(GPIO_69),
+};
+
+
+static const struct soc_amd_gpio override_bootblock_gpio_table[] = {
+ /* Unused TP196*/
+ PAD_NC(GPIO_24),
+};
+
+const struct soc_amd_gpio *variant_override_gpio_table(size_t *size)
+{
+ *size = ARRAY_SIZE(override_ramstage_gpio_table);
+ return override_ramstage_gpio_table;
+}
+
+const struct soc_amd_gpio *variant_early_override_gpio_table(size_t *size)
+{
+ *size = ARRAY_SIZE(override_early_gpio_table);
+ return override_early_gpio_table;
+}
+
+const struct soc_amd_gpio *variant_pcie_override_gpio_table(size_t *size)
+{
+ *size = ARRAY_SIZE(override_pcie_gpio_table);
+ return override_pcie_gpio_table;
+}
+
+const struct soc_amd_gpio *variant_bootblock_override_gpio_table(size_t *size)
+{
+ *size = ARRAY_SIZE(override_bootblock_gpio_table);
+ return override_bootblock_gpio_table;
+}
diff --git a/src/mainboard/google/guybrush/variants/dewatt/overridetree.cb b/src/mainboard/google/guybrush/variants/dewatt/overridetree.cb
index 5303cbc1a6..7fd72d0073 100644
--- a/src/mainboard/google/guybrush/variants/dewatt/overridetree.cb
+++ b/src/mainboard/google/guybrush/variants/dewatt/overridetree.cb
@@ -2,7 +2,8 @@
chip soc/amd/cezanne
device domain 0 on
-
+ device ref gpp_bridge_1 off end # no SD
+ device ref gpp_bridge_2 off end # no WWAN
end # domain
register "slow_ppt_limit_mW" = "25000"