From ac41f582351dc2c6aaaf0c1ef662e6d99b67b4ce Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sun, 14 Jun 2020 17:24:12 -0600 Subject: soc/amd/picasso: Allow modification of i2c base addresses in PSP BUG=b:158124527 TEST=Build & boot psp_verstage on trembyle Signed-off-by: Martin Roth Change-Id: I45380e0c61e1bb7a94a96630e5867b7ffca0909c Reviewed-on: https://review.coreboot.org/c/coreboot/+/42064 Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) --- src/soc/amd/picasso/include/soc/i2c.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/soc/amd/picasso/include') diff --git a/src/soc/amd/picasso/include/soc/i2c.h b/src/soc/amd/picasso/include/soc/i2c.h index 34c19aaf29..20084f0eba 100644 --- a/src/soc/amd/picasso/include/soc/i2c.h +++ b/src/soc/amd/picasso/include/soc/i2c.h @@ -22,4 +22,7 @@ struct soc_amd_i2c_save { void sb_reset_i2c_slaves(void); +/* Sets the base address for the specific I2C bus. */ +void i2c_set_bar(unsigned int bus, uintptr_t bar); + #endif /* __PICASSO_I2C_H__ */ -- cgit v1.2.3