1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/variants.h>
4 #include <bootblock_common.h>
8 void bootblock_mainboard_early_init(void)
10 const struct pad_config
*pads
;
13 pads
= mainboard_early_bootblock_gpio_table(&num
);
14 gpio_configure_pads(pads
, num
);
17 void bootblock_mainboard_init(void)
19 const struct pad_config
*pads
, *override_pads
;
20 size_t num
, override_num
;
23 * Perform EC init before configuring GPIOs. This is because variant
24 * might talk to the EC to get board id and hence it will require EC
25 * init to have already performed.
29 pads
= variant_early_gpio_table(&num
);
30 override_pads
= variant_early_override_gpio_table(&override_num
);
31 gpio_configure_pads_with_override(pads
, num
,
32 override_pads
, override_num
);