blob: ae4e26c63d3de9c1d1f3fa069b39cb6a7864f93e [file] [log] [blame]
Angel Pons60ec3652020-04-03 01:22:13 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Aaron Durbin849e4f52016-01-25 17:02:11 -06002
Subrata Banik50b92582016-07-21 23:47:38 +05303#include <bootblock_common.h>
Aaron Durbin849e4f52016-01-25 17:02:11 -06004#include <soc/gpio.h>
5#include "gpio.h"
6
7static void early_config_gpio(void)
8{
9 /* This is a hack for FSP because it does things in MemoryInit()
Subrata Banik50b92582016-07-21 23:47:38 +053010 * which it shouldn't do. We have to prepare certain gpios here
Aaron Durbin849e4f52016-01-25 17:02:11 -060011 * because of the brokenness in FSP. */
12 gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
13}
14
Subrata Banik50b92582016-07-21 23:47:38 +053015void bootblock_mainboard_init(void)
Aaron Durbin849e4f52016-01-25 17:02:11 -060016{
Aaron Durbin849e4f52016-01-25 17:02:11 -060017 early_config_gpio();
18}