aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/siemens/chili/mainboard.c
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2019-03-18 11:32:34 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-10-19 07:10:25 +0000
commit819d8726067462742280c062830e2b5bb8e9c7a2 (patch)
tree34b857e5656427145c0064e9a968ce309fd24c78 /src/mainboard/siemens/chili/mainboard.c
parent1d9b059c52e05d2af7b75f93ba74f16ecbfc0da4 (diff)
mb/siemens/chili: Add new mainboard
The Chili base board is a ruggedized laptop with additional industrial interfaces. So far, only booting and basic interfaces (USB, UART, Video) are working with the original model, the "base" variant. No further development is planned for this variant, as our primary target was another one that will be added in a follow-up. Change-Id: I1d3508b615ec877edc8db756e9ad38132b37219c Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Signed-off-by: Nico Huber <nico.huber@secunet.com> Signed-off-by: Felix Singer <felix.singer@secunet.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39976 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/siemens/chili/mainboard.c')
-rw-r--r--src/mainboard/siemens/chili/mainboard.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mainboard/siemens/chili/mainboard.c b/src/mainboard/siemens/chili/mainboard.c
new file mode 100644
index 0000000000..42e132dcf9
--- /dev/null
+++ b/src/mainboard/siemens/chili/mainboard.c
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/device.h>
+
+#include "ec.h"
+
+static void mainboard_dev_init(struct device *dev)
+{
+ const bool enable_usb = CONFIG(BOARD_SIEMENS_CHILI_BASE);
+ ec_enable_devices(enable_usb);
+}
+
+static void mainboard_enable(struct device *dev)
+{
+ dev->ops->init = mainboard_dev_init;
+}
+
+struct chip_operations mainboard_ops = {
+ .enable_dev = mainboard_enable,
+};