2016-01-26 00:02:11 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the coreboot project.
|
|
|
|
*
|
|
|
|
* Copyright 2016 Google Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
2016-07-21 20:17:38 +02:00
|
|
|
#include <bootblock_common.h>
|
2016-01-26 00:02:11 +01:00
|
|
|
#include <soc/gpio.h>
|
|
|
|
#include "gpio.h"
|
|
|
|
|
|
|
|
static void early_config_gpio(void)
|
|
|
|
{
|
|
|
|
/* This is a hack for FSP because it does things in MemoryInit()
|
2016-07-21 20:17:38 +02:00
|
|
|
* which it shouldn't do. We have to prepare certain gpios here
|
2016-01-26 00:02:11 +01:00
|
|
|
* because of the brokenness in FSP. */
|
|
|
|
gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
|
|
|
|
}
|
|
|
|
|
2016-07-21 20:17:38 +02:00
|
|
|
void bootblock_mainboard_init(void)
|
2016-01-26 00:02:11 +01:00
|
|
|
{
|
|
|
|
early_config_gpio();
|
|
|
|
}
|