summaryrefslogtreecommitdiff
path: root/src/mainboard/siemens/chili/mainboard.c
blob: c1d1a1d94167dc6a8032db2e35b645aba120a5f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0-only */

#include <device/device.h>
#include <mainboard/ec.h>

static void mainboard_dev_init(struct device *dev)
{
	const bool enable_usb =
		CONFIG(BOARD_SIEMENS_CHILI_BASE) || CONFIG(SIEMENS_CHILI_DEBUG_USB);
	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,
};