summaryrefslogtreecommitdiff
path: root/src/mainboard/google/skyrim/mainboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/skyrim/mainboard.c')
-rw-r--r--src/mainboard/google/skyrim/mainboard.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mainboard/google/skyrim/mainboard.c b/src/mainboard/google/skyrim/mainboard.c
index 3dc2c41d69..1ed5006ec4 100644
--- a/src/mainboard/google/skyrim/mainboard.c
+++ b/src/mainboard/google/skyrim/mainboard.c
@@ -1,10 +1,23 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
+#include <baseboard/variants.h>
#include <device/device.h>
+static void mainboard_configure_gpios(void)
+{
+ size_t base_num_gpios, override_num_gpios;
+ const struct soc_amd_gpio *base_gpios, *override_gpios;
+
+ variant_base_gpio_table(&base_gpios, &base_num_gpios);
+ variant_override_gpio_table(&override_gpios, &override_num_gpios);
+
+ gpio_configure_pads_with_override(base_gpios, base_num_gpios,
+ override_gpios, override_num_gpios);
+}
+
static void mainboard_init(void *chip_info)
{
- /* TODO: Perform mainboard initialization */
+ mainboard_configure_gpios();
}
static void mainboard_enable(struct device *dev)