soc/amd/common/block/include/i2c: introduce I2C_RESET_SCL_PIN macro
Add and use the I2C_RESET_SCL_PIN macro for populating the i2c_scl_pins array that is used for the sb_reset_i2c_peripherals call to bring the I2C buses into a defined state. TEST=Timeless build results in identical image for Mandolin. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Suggested-by: Raul E Rangel <rrangel@chromium.org> Change-Id: Ifedc09d0bf745545fa0510df7d5037f02b9012a6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57479 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
|
||||
/* Table to switch SCL pins to outputs to initially reset the I2C peripherals */
|
||||
static const struct soc_i2c_scl_pin i2c_scl_pins[] = {
|
||||
{ PAD_GPO(I2C2_SCL_PIN, HIGH), GPIO_I2C2_SCL },
|
||||
{ PAD_GPO(I2C3_SCL_PIN, HIGH), GPIO_I2C3_SCL },
|
||||
I2C_RESET_SCL_PIN(I2C2_SCL_PIN, GPIO_I2C2_SCL),
|
||||
I2C_RESET_SCL_PIN(I2C3_SCL_PIN, GPIO_I2C3_SCL),
|
||||
/* I2C4 is a peripheral device only */
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user