diff options
author | Martin Roth <martinroth@chromium.org> | 2018-03-19 16:31:33 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-03-20 22:44:57 +0000 |
commit | bf7dea00280b78e5261774958ab04ff45bbbec90 (patch) | |
tree | 59e366ba8a4b53e2cb2aa6e550fe2ede895ef455 /src | |
parent | 3669a06c95aac12bde82bab8300dfdd11cc3e142 (diff) |
mainboard/google/kahlee: Initialize EC earlier in the bootblock
Set up the EC communication a little earlier so we can read the board
ID before programming GPIOS.
BUG=b:73078053
TEST=Build & Boot grunt, board_id() now gets ID correctly
Change-Id: Icf3f598824cfed69fa03ba2bb86503bb3c3699a5
Signed-off-by: Martin Roth <martinroth@chromium.org>
Reviewed-on: https://review.coreboot.org/25286
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/kahlee/bootblock/bootblock.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mainboard/google/kahlee/bootblock/bootblock.c b/src/mainboard/google/kahlee/bootblock/bootblock.c index acdffe584a..1eb18f1667 100644 --- a/src/mainboard/google/kahlee/bootblock/bootblock.c +++ b/src/mainboard/google/kahlee/bootblock/bootblock.c @@ -24,15 +24,16 @@ void bootblock_mainboard_early_init(void) { size_t num_gpios; const struct soc_amd_stoneyridge_gpio *gpios; + + /* Enable the EC as soon as we have visibility */ + mainboard_ec_init(); + 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(); - /* Setup TPM decode before verstage */ sb_tpm_decode_spi(); |