1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <amdblocks/espi.h>
4 #include <bootblock_common.h>
5 #include <baseboard/variants.h>
6 #include <console/console.h>
10 void mb_set_up_early_espi(void)
13 const struct soc_amd_gpio
*gpios
;
15 variant_espi_gpio_table(&gpios
, &num_gpios
);
16 gpio_configure_pads(gpios
, num_gpios
);
18 espi_switch_to_spi1_pads();
21 void bootblock_mainboard_early_init(void)
24 const struct soc_amd_gpio
*gpios
;
26 variant_tpm_gpio_table(&gpios
, &num_gpios
);
27 gpio_configure_pads(gpios
, num_gpios
);
29 variant_early_gpio_table(&gpios
, &num_gpios
);
30 gpio_configure_pads(gpios
, num_gpios
);
33 void bootblock_mainboard_init(void)
36 const struct soc_amd_gpio
*gpios
;
38 variant_bootblock_gpio_table(&gpios
, &num_gpios
);
39 gpio_configure_pads(gpios
, num_gpios
);
41 // TODO: b:285110121 - temp workaround is to add a dummy flash call
42 const struct spi_flash
*spi
= boot_device_spi_flash();
43 printk(BIOS_DEBUG
, "Initialized spi flash %p\n", spi
);