mb/{amd/gardenia,google/kahlee}: Initialize GPIOs earlier

The GPIOs for PCIe reset and power enable for WLAN must be set up before
amdinitearly for wlan to function.

BUG=b:73898539
TEST=Boot, see WLAN controller in lspci

Change-Id: I568a3240a54817ab6dcf15fe39f7f1336943852b
Signed-off-by: Justin TerAvest <teravest@chromium.org>
Reviewed-on: https://review.coreboot.org/24916
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Justin TerAvest 2018-02-28 11:45:02 -07:00 committed by Martin Roth
parent bb75effd87
commit 23cff8bf50
2 changed files with 5 additions and 2 deletions

View file

@ -18,7 +18,7 @@
#include "../gpio.h"
void bootblock_mainboard_init(void)
void bootblock_mainboard_early_init(void)
{
size_t num_gpios;
const struct soc_amd_stoneyridge_gpio *gpios;

View file

@ -20,13 +20,16 @@
#include <variant/ec.h>
#include <variant/gpio.h>
void bootblock_mainboard_init(void)
void bootblock_mainboard_early_init(void)
{
size_t num_gpios;
const struct soc_amd_stoneyridge_gpio *gpios;
gpios = variant_early_gpio_table(&num_gpios);
sb_program_gpios(gpios, num_gpios);
}
void bootblock_mainboard_init(void)
{
/* Enable the EC as soon as we have visibility */
mainboard_ec_init();