From 819d8726067462742280c062830e2b5bb8e9c7a2 Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Mon, 18 Mar 2019 11:32:34 +0100 Subject: 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 Signed-off-by: Nico Huber Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/39976 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/mainboard/siemens/chili/mainboard.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/mainboard/siemens/chili/mainboard.c (limited to 'src/mainboard/siemens/chili/mainboard.c') 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 + +#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, +}; -- cgit v1.2.3