Commit 84a10aec authored by Luiz Angelo Daros de Luca's avatar Luiz Angelo Daros de Luca Committed by David S. Miller

net: dsa: realtek: rtl8365mb: add RTL8367RB-VB support

RTL8367RB-VB is a 5+2 port 10/100/1000M Ethernet switch.
It is similar to RTL8367S but in this version, both
external interfaces are RGMII.
Signed-off-by: default avatarLuiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d40f607c
...@@ -108,6 +108,9 @@ ...@@ -108,6 +108,9 @@
#define RTL8365MB_CHIP_ID_8367S 0x6367 #define RTL8365MB_CHIP_ID_8367S 0x6367
#define RTL8365MB_CHIP_VER_8367S 0x00A0 #define RTL8365MB_CHIP_VER_8367S 0x00A0
#define RTL8365MB_CHIP_ID_8367RB 0x6367
#define RTL8365MB_CHIP_VER_8367RB 0x0020
/* Family-specific data and limits */ /* Family-specific data and limits */
#define RTL8365MB_PHYADDRMAX 7 #define RTL8365MB_PHYADDRMAX 7
#define RTL8365MB_NUM_PHYREGS 32 #define RTL8365MB_NUM_PHYREGS 32
...@@ -1979,6 +1982,11 @@ static int rtl8365mb_detect(struct realtek_priv *priv) ...@@ -1979,6 +1982,11 @@ static int rtl8365mb_detect(struct realtek_priv *priv)
"found an RTL8365MB-VC switch (ver=0x%04x)\n", "found an RTL8365MB-VC switch (ver=0x%04x)\n",
chip_ver); chip_ver);
break; break;
case RTL8365MB_CHIP_VER_8367RB:
dev_info(priv->dev,
"found an RTL8367RB-VB switch (ver=0x%04x)\n",
chip_ver);
break;
case RTL8365MB_CHIP_VER_8367S: case RTL8365MB_CHIP_VER_8367S:
dev_info(priv->dev, dev_info(priv->dev,
"found an RTL8367S switch (ver=0x%04x)\n", "found an RTL8367S switch (ver=0x%04x)\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment