mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
4765a9722e
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>
13 lines
378 B
C
13 lines
378 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LINUX_PCS_MTK_LYNXI_H
|
|
#define __LINUX_PCS_MTK_LYNXI_H
|
|
|
|
#include <linux/phylink.h>
|
|
#include <linux/regmap.h>
|
|
|
|
#define MTK_SGMII_FLAG_PN_SWAP BIT(0)
|
|
struct phylink_pcs *mtk_pcs_lynxi_create(struct device *dev,
|
|
struct regmap *regmap,
|
|
u32 ana_rgc3, u32 flags);
|
|
void mtk_pcs_lynxi_destroy(struct phylink_pcs *pcs);
|
|
#endif
|