|author||Mugunthan V N <firstname.lastname@example.org>||2013-09-21 00:50:39 +0530|
|committer||David S. Miller <email@example.com>||2013-09-24 10:33:07 -0400|
|parent||net: ethernet: cpsw: switch to devres allocations (diff)|
drivers: net: cpsw-phy-sel: Add new driver for phy mode selection for cpsw
The cpsw currently lacks code to properly set up the hardware interface mode on AM33xx. Other platforms might be equally affected. Usually, the bootloader will configure the control module register, so probably that's why such support wasn't needed in the past. In suspend mode though, this register is modified, and so it needs reprogramming after resume. This patch adds a new driver in which hardware interface can configure correct register bits when the slave is opened. The AM33xx also has a bit for each slave to configure the RMII reference clock direction. Setting it is now supported by a per-slave DT property. This code path introducted by this patch is currently exclusive for am33xx and same can be extened to various platforms via the DT compatibility property. Signed-off-by: Mugunthan V N <firstname.lastname@example.org> Tested-by: Daniel Mack <email@example.com> Signed-off-by: David S. Miller <firstname.lastname@example.org>
Diffstat (limited to 'drivers/net/ethernet/ti/Kconfig')
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/Kconfig b/drivers/net/ethernet/ti/Kconfig
index de71b1ec4625..53150c25a96b 100644
@@ -49,11 +49,19 @@ config TI_DAVINCI_CPDMA
To compile this driver as a module, choose M here: the module
will be called davinci_cpdma. This is recommended.
+ boolean "TI CPSW Switch Phy sel Support"
+ depends on TI_CPSW
+ This driver supports configuring of the phy mode connected to
+ the CPSW.
tristate "TI CPSW Switch Support"
depends on ARM && (ARCH_DAVINCI || SOC_AM33XX)
+ select TI_CPSW_PHY_SEL
This driver supports TI's CPSW Ethernet Switch.