blob: 1c4d9e07ab05dc0e524ff816c1e3bd86d21c5f57 [file] [log] [blame]
Angel Pons5c596802020-04-03 01:21:01 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Justin TerAvest3fe3f042018-02-14 19:10:15 -07002
3#include <bootblock_common.h>
Elyes Haouas9aebc192023-01-30 20:02:03 +01004#include <gpio.h>
Justin TerAvest3fe3f042018-02-14 19:10:15 -07005#include <soc/southbridge.h>
6
7#include "../gpio.h"
8
Justin TerAvest23cff8b2018-02-28 11:45:02 -07009void bootblock_mainboard_early_init(void)
Justin TerAvest3fe3f042018-02-14 19:10:15 -070010{
11 size_t num_gpios;
Richard Spiegel6fcb9b02018-04-18 08:06:33 -070012 const struct soc_amd_gpio *gpios;
Justin TerAvest3fe3f042018-02-14 19:10:15 -070013 gpios = early_gpio_table(&num_gpios);
Felix Held7011fa12021-09-22 16:36:12 +020014 gpio_configure_pads(gpios, num_gpios);
Justin TerAvest3fe3f042018-02-14 19:10:15 -070015}