/* SPDX-License-Identifier: GPL-2.0-or-later */ | |
#include <amdblocks/gpio.h> | |
#include <baseboard/variants.h> | |
#include <security/vboot/vboot_common.h> | |
static void setup_gpio(void) | |
{ | |
const struct soc_amd_gpio *gpios; | |
size_t num_gpios; | |
printk(BIOS_DEBUG, "Setting GPIOs\n"); | |
gpios = variant_early_gpio_table(&num_gpios); | |
gpio_configure_pads(gpios, num_gpios); | |
printk(BIOS_DEBUG, "GPIOs setup\n"); | |
} | |
void verstage_mainboard_early_init(void) | |
{ | |
setup_gpio(); | |
} |