diff options
author | 2023-03-19 12:57:50 +0000 | |
---|---|---|
committer | 2023-03-20 19:48:26 -0700 | |
commit | 4765a9722e09765866e131ec31f7b9cf4c1f4854 (patch) | |
tree | a4ac8d4220944aa44faff89cdfb10dc85b456252 /drivers/net/pcs/Kconfig | |
parent | net: ethernet: mtk_eth_soc: ppe: add support for flow accounting (diff) | |
download | linux-4765a9722e09765866e131ec31f7b9cf4c1f4854.tar.gz linux-4765a9722e09765866e131ec31f7b9cf4c1f4854.tar.bz2 linux-4765a9722e09765866e131ec31f7b9cf4c1f4854.zip |
net: pcs: add driver for MediaTek SGMII PCS
The SGMII core found in several MediaTek SoCs is identical to what can
also be found in MediaTek's MT7531 Ethernet switch IC.
As this has not always been clear, both drivers developed different
implementations to deal with the PCS.
Recently Alexander Couzens pointed out this fact which lead to the
development of this shared driver.
Add a dedicated driver, mostly by copying the code now found in the
Ethernet driver. The now redundant code will be removed by a follow-up
commit.
Suggested-by: Alexander Couzens <lynxis@fe80.eu>
Suggested-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Tested-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/pcs/Kconfig')
-rw-r--r-- | drivers/net/pcs/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/pcs/Kconfig b/drivers/net/pcs/Kconfig index 6e7e6c346a3e..7c34fb7cbf7b 100644 --- a/drivers/net/pcs/Kconfig +++ b/drivers/net/pcs/Kconfig @@ -18,6 +18,13 @@ config PCS_LYNX This module provides helpers to phylink for managing the Lynx PCS which is part of the Layerscape and QorIQ Ethernet SERDES. +config PCS_MTK_LYNXI + tristate + select REGMAP + help + This module provides helpers to phylink for managing the LynxI PCS + which is part of MediaTek's SoC and Ethernet switch ICs. + config PCS_RZN1_MIIC tristate "Renesas RZ/N1 MII converter" depends on OF && (ARCH_RZN1 || COMPILE_TEST) |