realtek: replace RTL93xx GPIO patches
[openwrt/openwrt.git] / target / linux / realtek / patches-5.10 / 310-add-i2c-rtl9300-support.patch
1 --- a/drivers/i2c/busses/Kconfig
2 +++ b/drivers/i2c/busses/Kconfig
3 @@ -954,6 +954,16 @@ config I2C_RK3X
4 This driver can also be built as a module. If so, the module will
5 be called i2c-rk3x.
6
7 +config I2C_RTL9300
8 + tristate "Realtek RTL9300 I2C adapter"
9 + depends on OF
10 + help
11 + Say Y here to include support for the I2C adapter in Realtek RTL9300
12 + and RTL9310 SoCs.
13 +
14 + This driver can also be built as a module. If so, the module will
15 + be called i2c-rtl9300.
16 +
17 config HAVE_S3C2410_I2C
18 bool
19 help
20 --- a/drivers/i2c/busses/Makefile
21 +++ b/drivers/i2c/busses/Makefile
22 @@ -95,6 +95,7 @@ obj-$(CONFIG_I2C_QCOM_GENI) += i2c-qcom-
23 obj-$(CONFIG_I2C_QUP) += i2c-qup.o
24 obj-$(CONFIG_I2C_RIIC) += i2c-riic.o
25 obj-$(CONFIG_I2C_RK3X) += i2c-rk3x.o
26 +obj-$(CONFIG_I2C_RTL9300) += i2c-rtl9300.o
27 obj-$(CONFIG_I2C_S3C2410) += i2c-s3c2410.o
28 obj-$(CONFIG_I2C_SH7760) += i2c-sh7760.o
29 obj-$(CONFIG_I2C_SH_MOBILE) += i2c-sh_mobile.o