From 23cff8bf50c696c2dde812d4be7fa0ebfb3892ed Mon Sep 17 00:00:00 2001 From: Justin TerAvest Date: Wed, 28 Feb 2018 11:45:02 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/24916 Reviewed-by: Martin Roth Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/mainboard/google/kahlee/bootblock/bootblock.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mainboard/google/kahlee/bootblock/bootblock.c') diff --git a/src/mainboard/google/kahlee/bootblock/bootblock.c b/src/mainboard/google/kahlee/bootblock/bootblock.c index 4a65d8f4fc..acdffe584a 100644 --- a/src/mainboard/google/kahlee/bootblock/bootblock.c +++ b/src/mainboard/google/kahlee/bootblock/bootblock.c @@ -20,13 +20,16 @@ #include #include -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(); -- cgit v1.2.3