aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/guybrush/variants/baseboard/include
diff options
context:
space:
mode:
authorMathew King <mathewk@chromium.org>2021-01-26 16:08:14 -0700
committerPatrick Georgi <pgeorgi@google.com>2021-02-06 09:06:30 +0000
commit10dd775ae3b9fa7c03a267f311bd61288417dc53 (patch)
treeda8cbcb1d2f37b2823d3f1d3c565909c9cc106a4 /src/mainboard/google/guybrush/variants/baseboard/include
parent30cca6ca2ad92c44104fc5a1f261356b038abe20 (diff)
mb/google/guybrush: Add stubs to configure GPIOs
BUG=b:175143925 TEST=builds Signed-off-by: Mathew King <mathewk@chromium.org> Change-Id: I5afd2df396ba41f7d25fa7ff6879b7c1f82f438c Reviewed-on: https://review.coreboot.org/c/coreboot/+/49954 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/google/guybrush/variants/baseboard/include')
-rw-r--r--src/mainboard/google/guybrush/variants/baseboard/include/baseboard/variants.h18
1 files changed, 18 insertions, 0 deletions
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 927af2f913..2946463f4b 100644
--- a/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/variants.h
@@ -3,4 +3,22 @@
#ifndef __BASEBOARD_VARIANTS_H__
#define __BASEBOARD_VARIANTS_H__
+#include <amdblocks/gpio_banks.h>
+
+/*
+ * This function provides base GPIO configuration table. It is typically provided by
+ * baseboard using a weak implementation. If GPIO configuration for a variant differs
+ * significantly from the baseboard, then the variant can also provide a strong implementation
+ * of this function.
+ */
+const struct soc_amd_gpio *variant_base_gpio_table(size_t *size);
+/*
+ * This function allows variant to override any GPIOs that are different than the base GPIO
+ * configuration provided by variant_base_gpio_table().
+ */
+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);
+
#endif /* __BASEBOARD_VARIANTS_H__ */