mb/google/octopus: Perform EC init before bootblock gpio configuration

A variant might talk to the EC to get board id in order to identify the
right GPIO configuration. Thus it is important to ensure that the LPC IO
windows are configured before this. This change moves the call to
perform EC init before configuring bootblock GPIOs.

BUG=b:111933657
TEST=Verified that reading board id does not fail on phaser.

Change-Id: Ic23c6fd7597a314e0b6421be39ccc0b1dfb46567
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/27671
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Furquan Shaikh 2018-07-27 14:14:27 -07:00
parent df1a065215
commit 4dc6646f53
1 changed files with 8 additions and 1 deletions

View File

@ -25,7 +25,14 @@ void bootblock_mainboard_init(void)
size_t num; size_t num;
lpc_configure_pads(); lpc_configure_pads();
/*
* Perform EC init before configuring GPIOs. This is because variant
* might talk to the EC to get board id and hence it will require EC
* init to have already performed.
*/
mainboard_ec_init();
pads = variant_early_gpio_table(&num); pads = variant_early_gpio_table(&num);
gpio_configure_pads(pads, num); gpio_configure_pads(pads, num);
mainboard_ec_init();
} }