From f4bdb7fdccdfe3fa382abe77f72a16c2f2e6add0 Mon Sep 17 00:00:00 2001 From: Birger Koblitz Date: Sat, 11 Dec 2021 20:25:37 +0100 Subject: realtek: Add support for RTL9300/RTL9310 I2C multiplexing The RTL9300/RTL9310 I2C controllers have support for 2 independent I2C masters, each with a fixed SCL pin, that cannot be changed. Each of these masters can use 8 (RTL9300) or 16 (RTL9310) different pins for SDA. This multiplexer directly controls the two masters and their shared IO configuration registers to allow multiplexing between any of these busses. The two masters cannot be used in parallel as the multiplex is protected by a standard multiplex lock. Signed-off-by: Birger Koblitz --- target/linux/realtek/config-5.10 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'target/linux/realtek/config-5.10') diff --git a/target/linux/realtek/config-5.10 b/target/linux/realtek/config-5.10 index b62f7eb30e..3f76f6cfaa 100644 --- a/target/linux/realtek/config-5.10 +++ b/target/linux/realtek/config-5.10 @@ -84,6 +84,8 @@ CONFIG_I2C_ALGOBIT=y CONFIG_I2C_BOARDINFO=y CONFIG_I2C_CHARDEV=y CONFIG_I2C_GPIO=y +CONFIG_I2C_MUX=y +CONFIG_I2C_MUX_RTL9300=y CONFIG_I2C_RTL9300=y CONFIG_INITRAMFS_SOURCE="" CONFIG_IRQCHIP=y -- cgit v1.2.3