From 4f87ae1d4a3a597f1260534001bd99160cc8ca99 Mon Sep 17 00:00:00 2001 From: Karthikeyan Ramasubramanian Date: Thu, 18 Mar 2021 23:16:29 -0600 Subject: soc/amd/common/block/i2c: Move SoC agnostic parts into common The logic behind I2C bus initialization, I2C MMIO base address getter and setter, I2C bus ACPI name resolution are identical for all the AMD SoCs. Hence moving all the SoC agnotic parts of the driver into the common driver and just configure the SoC specific parts into individual I2C drivers. BUG=None TEST=Build Dalboz and Grunt. Boot to OS in Dalboz. Ensure that the I2C peripherals are detected as earlier in Dalboz. Verify some I2C peripheral functionality like trackpad and touchscreen. Change-Id: Ic9c99ec769d7d8ad7e1e566fdf42a5206657183d Signed-off-by: Karthikeyan Ramasubramanian Suggested-by: Kyosti Malkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/51509 Reviewed-by: Furquan Shaikh Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) --- src/mainboard/google/kahlee/mainboard.c | 1 + src/mainboard/google/zork/verstage.c | 1 + 2 files changed, 2 insertions(+) (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/kahlee/mainboard.c b/src/mainboard/google/kahlee/mainboard.c index ad38b2d5b7..c44da75924 100644 --- a/src/mainboard/google/kahlee/mainboard.c +++ b/src/mainboard/google/kahlee/mainboard.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/src/mainboard/google/zork/verstage.c b/src/mainboard/google/zork/verstage.c index bcbf396bcc..dd59e734e3 100644 --- a/src/mainboard/google/zork/verstage.c +++ b/src/mainboard/google/zork/verstage.c @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ #include +#include #include #include #include -- cgit v1.2.3