summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Roth <martinroth@chromium.org>2018-03-19 16:31:33 -0600
committerMartin Roth <martinroth@google.com>2018-03-20 22:44:57 +0000
commitbf7dea00280b78e5261774958ab04ff45bbbec90 (patch)
tree59e366ba8a4b53e2cb2aa6e550fe2ede895ef455
parent3669a06c95aac12bde82bab8300dfdd11cc3e142 (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>
-rw-r--r--src/mainboard/google/kahlee/bootblock/bootblock.c7
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();