mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / octopus / bootblock.c
blob1802695b7d1c0f9fcb658e66baecbbbad17f53c0
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/variants.h>
4 #include <bootblock_common.h>
5 #include <ec/ec.h>
6 #include <soc/gpio.h>
8 void bootblock_mainboard_early_init(void)
10 const struct pad_config *pads;
11 size_t num;
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.
27 mainboard_ec_init();
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);