Eric Lai | f6c52f4 | 2022-05-23 15:47:20 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
Eric Lai | 5c02779 | 2022-05-23 16:21:36 +0800 | [diff] [blame^] | 3 | #include <baseboard/variants.h> |
Eric Lai | f6c52f4 | 2022-05-23 15:47:20 +0800 | [diff] [blame] | 4 | #include <device/device.h> |
| 5 | |
| 6 | static void mainboard_init(void *chip_info) |
| 7 | { |
Eric Lai | 5c02779 | 2022-05-23 16:21:36 +0800 | [diff] [blame^] | 8 | const struct pad_config *pads; |
| 9 | size_t num; |
| 10 | pads = variant_gpio_table(&num); |
| 11 | gpio_configure_pads(pads, num); |
Eric Lai | f6c52f4 | 2022-05-23 15:47:20 +0800 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | static void mainboard_enable(struct device *dev) |
| 15 | { |
| 16 | /* TODO: Enable mainboard */ |
| 17 | } |
| 18 | |
| 19 | struct chip_operations mainboard_ops = { |
| 20 | .init = mainboard_init, |
| 21 | .enable_dev = mainboard_enable, |
| 22 | }; |