1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/gpio.h>
4 #include <baseboard/variants.h>
5 #include <device/device.h>
9 static void mainboard_init(void *chip_info
)
11 const struct pad_config
*base_pads
;
12 const struct pad_config
*override_pads
;
13 size_t base_num
, override_num
;
15 base_pads
= variant_base_gpio_table(&base_num
);
16 override_pads
= variant_override_gpio_table(&override_num
);
18 gpio_configure_pads_with_override(base_pads
, base_num
, override_pads
, override_num
);
23 struct chip_operations mainboard_ops
= {
24 .init
= mainboard_init
,