aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/trogdor/mainboard.c
diff options
context:
space:
mode:
authorT Michael Turney <mturney@codeaurora.org>2019-10-10 12:19:51 -0700
committerJulius Werner <jwerner@chromium.org>2019-10-25 23:38:44 +0000
commitfda6cd6d28ee5e314639f02cf79d6b00a27f249e (patch)
tree2d1d39b96724f974a61134d141d1929ec8a1c204 /src/mainboard/google/trogdor/mainboard.c
parent0cd098e4e41d6bb3b27327d4a6526bd7004bfc77 (diff)
trogdor: Provide initial mainboard support
Change-Id: Ic2f0944b92dcad7048a0c38720d2ef3c855ef007 Signed-off-by: T Michael Turney <mturney@codeaurora.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35495 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/mainboard/google/trogdor/mainboard.c')
-rw-r--r--src/mainboard/google/trogdor/mainboard.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/mainboard/google/trogdor/mainboard.c b/src/mainboard/google/trogdor/mainboard.c
new file mode 100644
index 0000000000..ce03ce1421
--- /dev/null
+++ b/src/mainboard/google/trogdor/mainboard.c
@@ -0,0 +1,35 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2018-2019, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#include <device/device.h>
+#include <bootblock_common.h>
+#include <arch/mmio.h>
+#include <gpio.h>
+#include <timestamp.h>
+
+static void mainboard_init(struct device *dev)
+{
+
+}
+
+static void mainboard_enable(struct device *dev)
+{
+ dev->ops->init = &mainboard_init;
+}
+
+struct chip_operations mainboard_ops = {
+ .name = CONFIG_MAINBOARD_PART_NUMBER,
+ .enable_dev = mainboard_enable,
+};