Jianeng Ceng has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/81788?usp=email )
Change subject: drivers/i2c/generic: Add i2c_generic_write_gpio for public ......................................................................
drivers/i2c/generic: Add i2c_generic_write_gpio for public
Make sure it can be use for other driver.
BUG=None TEST= Build BIOS FW pass and it can be use for other driver.
Change-Id: Ifb2e60690711b39743afd455c6776c5ace863378 Signed-off-by: Jianeng Ceng cengjianeng@huaqin.corp-partner.google.com --- M src/drivers/i2c/generic/generic.c M src/include/acpi/acpi_device.h 2 files changed, 4 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/88/81788/1
diff --git a/src/drivers/i2c/generic/generic.c b/src/drivers/i2c/generic/generic.c index 03018ee..698effc 100644 --- a/src/drivers/i2c/generic/generic.c +++ b/src/drivers/i2c/generic/generic.c @@ -28,7 +28,7 @@ return true; }
-static int i2c_generic_write_gpio(struct acpi_gpio *gpio, int *curr_index) +int i2c_generic_write_gpio(struct acpi_gpio *gpio, int *curr_index) { int ret = -1;
diff --git a/src/include/acpi/acpi_device.h b/src/include/acpi/acpi_device.h index 9ce5e0a..2efa009 100644 --- a/src/include/acpi/acpi_device.h +++ b/src/include/acpi/acpi_device.h @@ -313,6 +313,9 @@ /* Write I2cSerialBus() descriptor to SSDT AML output */ void acpi_device_write_i2c(const struct acpi_i2c *i2c);
+/* Write I2C GPIO for acpi device */ +int i2c_generic_write_gpio(struct acpi_gpio *gpio, int *curr_index); + /* * ACPI SPI Bus */