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