summaryrefslogtreecommitdiff
path: root/src/mainboard/google/guybrush/variants
diff options
context:
space:
mode:
authorMathew King <mathewk@chromium.org>2021-03-04 15:34:37 -0700
committerFelix Held <felix-coreboot@felixheld.de>2021-03-10 00:38:23 +0000
commitee10ce6268fc2c605df96966158a11cf2b79ee3d (patch)
tree120a5b3ff589f7f527a18f7b5294657c17358aaa /src/mainboard/google/guybrush/variants
parentad830234251146d7538d4851f5a6b6eed3b40b37 (diff)
mb/google/guybrush: Add smihandler
BUG=b:180507707 TEST=builds Signed-off-by: Mathew King <mathewk@chromium.org> Change-Id: I25ce0ca869ca854ff33242d2c416319e9688cc6f Reviewed-on: https://review.coreboot.org/c/coreboot/+/51264 Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com> Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/guybrush/variants')
-rw-r--r--src/mainboard/google/guybrush/variants/baseboard/Makefile.inc2
-rw-r--r--src/mainboard/google/guybrush/variants/baseboard/gpio.c11
-rw-r--r--src/mainboard/google/guybrush/variants/baseboard/include/baseboard/variants.h3
3 files changed, 16 insertions, 0 deletions
diff --git a/src/mainboard/google/guybrush/variants/baseboard/Makefile.inc b/src/mainboard/google/guybrush/variants/baseboard/Makefile.inc
index 9fb63f5f43..7c092e44c2 100644
--- a/src/mainboard/google/guybrush/variants/baseboard/Makefile.inc
+++ b/src/mainboard/google/guybrush/variants/baseboard/Makefile.inc
@@ -1,3 +1,5 @@
bootblock-y += gpio.c
ramstage-y += gpio.c
+
+smm-y += gpio.c
diff --git a/src/mainboard/google/guybrush/variants/baseboard/gpio.c b/src/mainboard/google/guybrush/variants/baseboard/gpio.c
index 6d5788d858..68c7d290ef 100644
--- a/src/mainboard/google/guybrush/variants/baseboard/gpio.c
+++ b/src/mainboard/google/guybrush/variants/baseboard/gpio.c
@@ -168,6 +168,11 @@ static const struct soc_amd_gpio bootblock_gpio_table[] = {
/* TODO: Fill bootblock gpio configuration */
};
+/* GPIO configuration for sleep */
+static const struct soc_amd_gpio sleep_gpio_table[] = {
+ /* TODO: Fill sleep gpio configuration */
+};
+
const struct soc_amd_gpio *__weak variant_base_gpio_table(size_t *size)
{
*size = ARRAY_SIZE(base_gpio_table);
@@ -184,3 +189,9 @@ const struct soc_amd_gpio *__weak variant_bootblock_gpio_table(size_t *size)
*size = ARRAY_SIZE(bootblock_gpio_table);
return bootblock_gpio_table;
}
+
+const __weak struct soc_amd_gpio *variant_sleep_gpio_table(size_t *size)
+{
+ *size = ARRAY_SIZE(sleep_gpio_table);
+ return sleep_gpio_table;
+}
diff --git a/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/variants.h
index 2946463f4b..91a2f147d2 100644
--- a/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/variants.h
@@ -21,4 +21,7 @@ const struct soc_amd_gpio *variant_override_gpio_table(size_t *size);
/* This function provides GPIO init in bootblock. */
const struct soc_amd_gpio *variant_bootblock_gpio_table(size_t *size);
+/* This function provides GPIO settings before entering sleep. */
+const struct soc_amd_gpio *variant_sleep_gpio_table(size_t *size);
+
#endif /* __BASEBOARD_VARIANTS_H__ */