summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/i2c
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2022-06-18 15:30:41 -0500
committerFelix Held <felix-coreboot@felixheld.de>2022-06-21 12:28:45 +0000
commitf8c8a8dc5511e91d88d085e105a8ba629ab7bef4 (patch)
tree17f05f9f7403f393ca47f22955e09f69dbe1bc87 /src/soc/amd/common/block/i2c
parent323ca33b204dea9469ea0f81bd2ebedfe61f2b7f (diff)
soc/amd/common/i2c: Add i2c bus ops handler
Without this, calls to i2c_link() and runtime i2c detection fails on AMD common platform boards. Test: Runtime i2c detection of correct touchpad model succeeds on google/zork. Change-Id: I238b680b2afb4b9d3e5ac75fe9e630b2adc74860 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/65232 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc/amd/common/block/i2c')
-rw-r--r--src/soc/amd/common/block/i2c/i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/i2c/i2c.c b/src/soc/amd/common/block/i2c/i2c.c
index 733ad88132..2a81286019 100644
--- a/src/soc/amd/common/block/i2c/i2c.c
+++ b/src/soc/amd/common/block/i2c/i2c.c
@@ -126,6 +126,7 @@ struct device_operations soc_amd_i2c_mmio_ops = {
.scan_bus = scan_smbus,
.acpi_name = i2c_acpi_name,
.acpi_fill_ssdt = dw_i2c_acpi_fill_ssdt,
+ .ops_i2c_bus = &dw_i2c_bus_ops,
};
static void drive_scl(const struct soc_i2c_peripheral_reset_info *reset_info, int val)