Commit dba235fa authored by Grygorii Strashko's avatar Grygorii Strashko Committed by Tony Lindgren

net: ethernet: ti: cpsw: deprecate cpsw-phy-sel driver

Deprecate cpsw-phy-sel driver as it's been replaced with new
TI phy-gmii-sel PHY driver.
Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent bae2bf97
...@@ -49,10 +49,11 @@ config TI_DAVINCI_CPDMA ...@@ -49,10 +49,11 @@ config TI_DAVINCI_CPDMA
will be called davinci_cpdma. This is recommended. will be called davinci_cpdma. This is recommended.
config TI_CPSW_PHY_SEL config TI_CPSW_PHY_SEL
bool bool "TI CPSW Phy mode Selection (DEPRECATED)"
default n
---help--- ---help---
This driver supports configuring of the phy mode connected to This driver supports configuring of the phy mode connected to
the CPSW. the CPSW. DEPRECATED: use PHY_TI_GMII_SEL.
config TI_CPSW_ALE config TI_CPSW_ALE
tristate "TI CPSW ALE Support" tristate "TI CPSW ALE Support"
...@@ -64,7 +65,6 @@ config TI_CPSW ...@@ -64,7 +65,6 @@ config TI_CPSW
depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST
select TI_DAVINCI_CPDMA select TI_DAVINCI_CPDMA
select TI_DAVINCI_MDIO select TI_DAVINCI_MDIO
select TI_CPSW_PHY_SEL
select TI_CPSW_ALE select TI_CPSW_ALE
select MFD_SYSCON select MFD_SYSCON
select REGMAP select REGMAP
......
...@@ -21,7 +21,13 @@ ...@@ -21,7 +21,13 @@
((mac)[2] << 16) | ((mac)[3] << 24)) ((mac)[2] << 16) | ((mac)[3] << 24))
#define mac_lo(mac) (((mac)[4] << 0) | ((mac)[5] << 8)) #define mac_lo(mac) (((mac)[4] << 0) | ((mac)[5] << 8))
#if IS_ENABLED(CONFIG_TI_CPSW_PHY_SEL)
void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave); void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave);
#else
static inline
void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave)
{}
#endif
int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr); int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr);
#endif /* __CPSW_H__ */ #endif /* __CPSW_H__ */
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