summaryrefslogtreecommitdiff
path: root/src/mainboard/google/volteer/variants/trondo/gpio.c
diff options
context:
space:
mode:
authorDavid Wu <david_wu@quanta.corp-partner.google.com>2020-04-24 16:13:07 +0800
committerPaul Fagerburg <pfagerburg@chromium.org>2020-04-30 15:08:04 +0000
commit4cea00a64f6e2080556a63863d1b792654c01cd8 (patch)
tree64c01872302c0dd13b529914d1d72f73c7833736 /src/mainboard/google/volteer/variants/trondo/gpio.c
parentc7f473642a35a18a014e57290e462e23d3771056 (diff)
downloadcoreboot-4cea00a64f6e2080556a63863d1b792654c01cd8.tar.xz
mb/google/volteer: Create trondo variant
Create the trondo variant of the volteer reference board by copying the template files to a new directory named for the variant. BUG=b:154678884 BRANCH=None TEST=util/abuild/abuild -p none -t google/volteer -x -a make sure the build includes GOOGLE_TRONDO Change-Id: Ie4f9bfe4798e14f91c6cb439f5c5ab2b9ea52b51 Signed-off-by: David Wu <david_wu@quanta.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40686 Reviewed-by: Caveh Jalali <caveh@chromium.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/volteer/variants/trondo/gpio.c')
-rw-r--r--src/mainboard/google/volteer/variants/trondo/gpio.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/mainboard/google/volteer/variants/trondo/gpio.c b/src/mainboard/google/volteer/variants/trondo/gpio.c
new file mode 100644
index 0000000000..6c4fb52f01
--- /dev/null
+++ b/src/mainboard/google/volteer/variants/trondo/gpio.c
@@ -0,0 +1,37 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/* This file is part of the coreboot project. */
+
+#include <baseboard/gpio.h>
+#include <baseboard/variants.h>
+#include <commonlib/helpers.h>
+
+/* Pad configuration in ramstage */
+static const struct pad_config gpio_table[] = {
+
+};
+
+const struct pad_config *variant_base_gpio_table(size_t *num)
+{
+ *num = ARRAY_SIZE(gpio_table);
+ return gpio_table;
+}
+
+/* Early pad configuration in bootblock */
+static const struct pad_config early_gpio_table[] = {
+
+};
+
+const struct pad_config *variant_early_gpio_table(size_t *num)
+{
+ *num = ARRAY_SIZE(early_gpio_table);
+ return early_gpio_table;
+}
+
+static const struct cros_gpio cros_gpios[] = {
+};
+
+const struct cros_gpio *variant_cros_gpios(size_t *num)
+{
+ *num = ARRAY_SIZE(cros_gpios);
+ return cros_gpios;
+}