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>
This commit is contained in:
parent
3669a06c95
commit
bf7dea0028
|
@ -24,15 +24,16 @@ 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;
|
||||||
|
|
||||||
|
/* Enable the EC as soon as we have visibility */
|
||||||
|
mainboard_ec_init();
|
||||||
|
|
||||||
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)
|
void bootblock_mainboard_init(void)
|
||||||
{
|
{
|
||||||
/* Enable the EC as soon as we have visibility */
|
|
||||||
mainboard_ec_init();
|
|
||||||
|
|
||||||
/* Setup TPM decode before verstage */
|
/* Setup TPM decode before verstage */
|
||||||
sb_tpm_decode_spi();
|
sb_tpm_decode_spi();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue