aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/config-5.10
diff options
context:
space:
mode:
authorBirger Koblitz <git@birger-koblitz.de>2022-01-16 11:18:38 +0100
committerDaniel Golle <daniel@makrotopia.org>2022-02-17 15:21:46 +0000
commit45053b507c66d93c6db70e25f867e19a3af9bad4 (patch)
tree0881c12757650b55bc5591ef6f362f2b8476e69b /target/linux/realtek/config-5.10
parentf4bdb7fdccdfe3fa382abe77f72a16c2f2e6add0 (diff)
downloadupstream-45053b507c66d93c6db70e25f867e19a3af9bad4.tar.gz
upstream-45053b507c66d93c6db70e25f867e19a3af9bad4.tar.bz2
upstream-45053b507c66d93c6db70e25f867e19a3af9bad4.zip
realtek: Add support for SFP EEPROM-access over SMBus
The EEPROMs on SFP modules are compatible both to I2C as well as SMBus. However, the kernel so far only supports I2C access. We add SMBus access routines, because the I2C driver for the RTL9300 HW only supports that protocol. At the same time we disable I2C access to PHYs on SFP modules as otherwise detection of any SFP module would fail. This is not in any way problematic at this point in time since the RTL93XX platform so far does not support PHYs on SFP modules. The patches are copied and rebased version of: https://bootlin.com/blog/sfp-modules-on-a-board-running-linux/ Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
Diffstat (limited to 'target/linux/realtek/config-5.10')
-rw-r--r--target/linux/realtek/config-5.101
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/realtek/config-5.10 b/target/linux/realtek/config-5.10
index 3f76f6cfaa..07907d52b2 100644
--- a/target/linux/realtek/config-5.10
+++ b/target/linux/realtek/config-5.10
@@ -87,6 +87,7 @@ CONFIG_I2C_GPIO=y
CONFIG_I2C_MUX=y
CONFIG_I2C_MUX_RTL9300=y
CONFIG_I2C_RTL9300=y
+CONFIG_I2C_SMBUS=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_IRQCHIP=y
CONFIG_IRQ_DOMAIN=y