summaryrefslogtreecommitdiff
path: root/src/mainboard/starlabs/lite/mainboard.c
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2022-01-10 21:58:04 +0000
committerFelix Held <felix-coreboot@felixheld.de>2022-03-01 11:56:26 +0000
commit5da05b6e35f49a83f5b3610d2b41931f7d703da5 (patch)
treeffa69e665f368ea19adc1089eb70377d156e0f34 /src/mainboard/starlabs/lite/mainboard.c
parentc64626c9d90b4b2eb0a6c959f5af5303bf048d78 (diff)
mb/starlabs/lite: Add StarLite Mk III
Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: Iddbf2022d03735d6a0e6d098c21643f5fdc875f6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60980 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/starlabs/lite/mainboard.c')
-rw-r--r--src/mainboard/starlabs/lite/mainboard.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mainboard/starlabs/lite/mainboard.c b/src/mainboard/starlabs/lite/mainboard.c
new file mode 100644
index 0000000000..60e65ee8c4
--- /dev/null
+++ b/src/mainboard/starlabs/lite/mainboard.c
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/device.h>
+#include <soc/ramstage.h>
+#include <option.h>
+#include <variants.h>
+
+static void init_mainboard(void *chip_info)
+{
+ const struct pad_config *pads;
+ size_t num;
+
+ pads = variant_gpio_table(&num);
+ gpio_configure_pads(pads, num);
+
+ devtree_update();
+}
+
+struct chip_operations mainboard_ops = {
+ .init = init_mainboard,
+};