1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/device.h>
4 #include <mainboard/ec.h>
6 static void mainboard_dev_init(struct device
*dev
)
8 const bool enable_usb
=
9 CONFIG(BOARD_SIEMENS_CHILI_BASE
) || CONFIG(SIEMENS_CHILI_DEBUG_USB
);
10 ec_enable_devices(enable_usb
);
13 static void mainboard_enable(struct device
*dev
)
15 dev
->ops
->init
= mainboard_dev_init
;
18 struct chip_operations mainboard_ops
= {
19 .enable_dev
= mainboard_enable
,