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:
parent
bb75effd87
commit
23cff8bf50
2 changed files with 5 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
#include "../gpio.h"
|
#include "../gpio.h"
|
||||||
|
|
||||||
void bootblock_mainboard_init(void)
|
void bootblock_mainboard_early_init(void)
|
||||||
{
|
{
|
||||||
size_t num_gpios;
|
size_t num_gpios;
|
||||||
const struct soc_amd_stoneyridge_gpio *gpios;
|
const struct soc_amd_stoneyridge_gpio *gpios;
|
||||||
|
|
|
@ -20,13 +20,16 @@
|
||||||
#include <variant/ec.h>
|
#include <variant/ec.h>
|
||||||
#include <variant/gpio.h>
|
#include <variant/gpio.h>
|
||||||
|
|
||||||
void bootblock_mainboard_init(void)
|
void bootblock_mainboard_early_init(void)
|
||||||
{
|
{
|
||||||
size_t num_gpios;
|
size_t num_gpios;
|
||||||
const struct soc_amd_stoneyridge_gpio *gpios;
|
const struct soc_amd_stoneyridge_gpio *gpios;
|
||||||
gpios = variant_early_gpio_table(&num_gpios);
|
gpios = variant_early_gpio_table(&num_gpios);
|
||||||
sb_program_gpios(gpios, num_gpios);
|
sb_program_gpios(gpios, num_gpios);
|
||||||
|
}
|
||||||
|
|
||||||
|
void bootblock_mainboard_init(void)
|
||||||
|
{
|
||||||
/* Enable the EC as soon as we have visibility */
|
/* Enable the EC as soon as we have visibility */
|
||||||
mainboard_ec_init();
|
mainboard_ec_init();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue