soc/intel/apollolake: Initialize GPEs in bootblock

Initialize the GPEs from mainboard config in bootblock, so they
can be used in verstage to query latched interrupt status.

I still left it called in ramstage just to be sure that the
configuration was not overwritten in FSP stages.

Tested by reading and reporting GPE status in a loop in verstage
and manually triggering an interrupt on EC console.

BUG=chrome-os-partner:53336

Change-Id: I1af3e9ac1e5c59b9ebb5c6dd1599309c1f036581
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
Duncan Laurie
2016-09-19 12:02:54 -07:00
parent 884dfe6329
commit 5e3dad6622
4 changed files with 63 additions and 59 deletions

View File

@@ -182,4 +182,7 @@ void bootblock_soc_early_init(void)
enable_spibar();
cache_bios_region();
/* Initialize GPE for use as interrupt status */
pmc_gpe_init();
}