summaryrefslogtreecommitdiff
path: root/src/mainboard/google/myst/variants/baseboard/include
diff options
context:
space:
mode:
authorJon Murphy <jpmurphy@google.com>2023-02-23 13:47:44 -0700
committerEric Lai <eric_lai@quanta.corp-partner.google.com>2023-04-10 01:10:46 +0000
commit8d23d46eb7ffe17757b008988b1e1ba09cdaa648 (patch)
tree165345a00c60f50c944b5702088e90adbc4e048d /src/mainboard/google/myst/variants/baseboard/include
parenta859057db8d2eaf59a7575e303d7af35979d12d7 (diff)
mb/google/myst: Add stubs to configure GPIOs
Add configuration stubs for GPIOs to be implemented later. BUG=b:270596581 TEST=builds Signed-off-by: Jon Murphy <jpmurphy@google.com> Change-Id: I3228f857da7c8c76cf32faf4a23418aedaf40875 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74094 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'src/mainboard/google/myst/variants/baseboard/include')
-rw-r--r--src/mainboard/google/myst/variants/baseboard/include/baseboard/gpio.h6
-rw-r--r--src/mainboard/google/myst/variants/baseboard/include/baseboard/variants.h15
2 files changed, 21 insertions, 0 deletions
diff --git a/src/mainboard/google/myst/variants/baseboard/include/baseboard/gpio.h b/src/mainboard/google/myst/variants/baseboard/include/baseboard/gpio.h
new file mode 100644
index 0000000000..b94afac4bf
--- /dev/null
+++ b/src/mainboard/google/myst/variants/baseboard/include/baseboard/gpio.h
@@ -0,0 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#ifndef __BASEBOARD_GPIO_H__
+#define __BASEBOARD_GPIO_H__
+
+#endif /* __BASEBOARD_GPIO_H__ */
diff --git a/src/mainboard/google/myst/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/myst/variants/baseboard/include/baseboard/variants.h
index 927af2f913..3f6954803f 100644
--- a/src/mainboard/google/myst/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/myst/variants/baseboard/include/baseboard/variants.h
@@ -3,4 +3,19 @@
#ifndef __BASEBOARD_VARIANTS_H__
#define __BASEBOARD_VARIANTS_H__
+#include <gpio.h>
+
+
+/* This function provides base GPIO configuration table. */
+void baseboard_gpio_table(const struct soc_amd_gpio **gpio, size_t *size);
+
+/* This function provides GPIO init in bootblock. */
+void variant_bootblock_gpio_table(const struct soc_amd_gpio **gpio, size_t *size);
+
+/*
+ * This function allows variant to override any GPIOs that are different than the base GPIO
+ * configuration provided by baseboard_gpio_table().
+ */
+void variant_override_gpio_table(const struct soc_amd_gpio **gpio, size_t *size);
+
#endif /* __BASEBOARD_VARIANTS_H__ */