From f8c8a8dc5511e91d88d085e105a8ba629ab7bef4 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Sat, 18 Jun 2022 15:30:41 -0500 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/65232 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/soc/amd/common/block/i2c/i2c.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/soc/amd/common/block') 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) -- cgit v1.2.3