summaryrefslogtreecommitdiff
path: root/src/mainboard/google/myst/mainboard.c
diff options
context:
space:
mode:
authorJon Murphy <jpmurphy@google.com>2023-02-23 13:42:52 -0700
committerEric Lai <eric_lai@quanta.corp-partner.google.com>2023-04-10 01:10:13 +0000
commita859057db8d2eaf59a7575e303d7af35979d12d7 (patch)
tree5389d629cdc080ad3d299ebd2b6cfd73e6eac4d7 /src/mainboard/google/myst/mainboard.c
parentaf93336da378fed9b2f15734518a1ca05c7769b7 (diff)
mb/google/myst: Add new mainboard
Myst is a new Google mainboard with an AMD Phoenix SOC. BUG=b:270596106 TEST=util/abuild/abuild -t GOOGLE_MYST --clean Signed-off-by: Jon Murphy <jpmurphy@google.com> Change-Id: Id7d731ce4d6cb6d4e9041f46eb5a799865bb0b9a Reviewed-on: https://review.coreboot.org/c/coreboot/+/74093 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.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/mainboard.c')
-rw-r--r--src/mainboard/google/myst/mainboard.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/mainboard/google/myst/mainboard.c b/src/mainboard/google/myst/mainboard.c
new file mode 100644
index 0000000000..09118d4186
--- /dev/null
+++ b/src/mainboard/google/myst/mainboard.c
@@ -0,0 +1,30 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <amdblocks/amd_pci_util.h>
+#include <baseboard/variants.h>
+#include <device/device.h>
+
+static const struct fch_irq_routing fch_irq_map[] = {
+ { 0, 0x00, 0x00 },
+};
+
+const struct fch_irq_routing *mb_get_fch_irq_mapping(size_t *length)
+{
+ *length = ARRAY_SIZE(fch_irq_map);
+ return fch_irq_map;
+}
+
+static void mainboard_init(void *chip_info)
+{
+ /* TODO(b/270596581): Perform mainboard initialization */
+}
+
+static void mainboard_enable(struct device *dev)
+{
+ /* TODO(b/270618107): Enable mainboard */
+}
+
+struct chip_operations mainboard_ops = {
+ .init = mainboard_init,
+ .enable_dev = mainboard_enable,
+};