mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / zork / bootblock.c
blob202b9577793faefe942a0347e4806f6448cf4573
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <bootblock_common.h>
4 #include <baseboard/variants.h>
5 #include <acpi/acpi.h>
6 #include <amdblocks/espi.h>
8 void mb_set_up_early_espi(void)
10 size_t num_gpios;
11 const struct soc_amd_gpio *gpios;
13 gpios = variant_espi_gpio_table(&num_gpios);
14 gpio_configure_pads(gpios, num_gpios);
17 void bootblock_mainboard_early_init(void)
19 size_t num_gpios;
20 const struct soc_amd_gpio *gpios;
23 * The GPIOs below would normally be programmed in verstage, but
24 * if we're not using PSP verstage, need to set them up here instead.
26 if (!CONFIG(VBOOT_STARTS_BEFORE_BOOTBLOCK)) {
27 gpios = variant_early_gpio_table(&num_gpios);
28 gpio_configure_pads(gpios, num_gpios);
30 gpios = variant_tpm_gpio_table(&num_gpios);
31 gpio_configure_pads(gpios, num_gpios);
35 gpios = variant_bootblock_gpio_table(&num_gpios, acpi_get_sleep_type());
36 gpio_configure_pads(gpios, num_gpios);
38 baseboard_pcie_gpio_configure();