From 9b18e5199ec42f9dc62c0da7f4fe7554e199980d Mon Sep 17 00:00:00 2001 From: Shengzhou Liu Date: Mon, 10 Nov 2014 18:32:29 +0800 Subject: net/phy: Add support for CS4315/CS4340 PHY Add support for Cortina CS4315/CS4340 10G PHY. - This driver loads CS43xx firmware from NOR/NAND/SPI/SD device to initialize Cortina PHY. - Cortina PHY has non-standard offset of PHY ID registers, thus we define own get_phy_id() to override default get_phy_id(). - To define macro CONFIG_PHY_CORTINA will enable this driver. Signed-off-by: Shengzhou Liu Reviewed-by: York Sun --- include/phy.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/phy.h') diff --git a/include/phy.h b/include/phy.h index d430ed0e32..1e282e2964 100644 --- a/include/phy.h +++ b/include/phy.h @@ -227,6 +227,7 @@ int gen10g_discover_mmds(struct phy_device *phydev); int phy_atheros_init(void); int phy_broadcom_init(void); +int phy_cortina_init(void); int phy_davicom_init(void); int phy_et1011c_init(void); int phy_lxt_init(void); @@ -241,6 +242,7 @@ int phy_vitesse_init(void); int board_phy_config(struct phy_device *phydev); /* PHY UIDs for various PHYs that are referenced in external code */ +#define PHY_UID_CS4340 0x13e51002 #define PHY_UID_TN2020 0x00a19410 #endif -- cgit v1.2.3