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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user