soc/amd/picasso: Map AOAC registers to enable i2c after S3

When entering S3, zork shuts down the i2c controllers to save power.
On resume, we need to re-enable i2c before accessing them, so we need
to map the AOAC registers in verstage.

BUG=b:160834101
TEST=psp_verstage works after resume.

Signed-off-by: Martin Roth <martinroth@chromium.org>
Change-Id: Ia8aa4923898a50f2202b6ca8434cee61a5918e91
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43333
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Martin Roth 2020-07-09 15:55:15 -06:00 committed by Aaron Durbin
parent 3b5e196e67
commit 853c6237cb
1 changed files with 6 additions and 0 deletions

View File

@ -63,6 +63,11 @@ void io_write8(u16 reg, u8 value)
write8((void *)(io_bar + reg), value);
}
static void aoac_set_bar(void *bar)
{
acpimmio_aoac = bar;
}
static struct {
const char *name;
struct {
@ -79,6 +84,7 @@ static struct {
{"eSPI", {FCH_IO_DEVICE_ESPI}, espi_set_bar},
{"I2C2", {FCH_IO_DEVICE_I2C, 2}, i2c2_set_bar},
{"I2C3", {FCH_IO_DEVICE_I2C, 3}, i2c3_set_bar},
{"AOAC", {FCH_IO_DEVICE_AOAC}, aoac_set_bar},
};
uintptr_t *map_spi_rom(void)