drivers: net: cpsw-phy-sel: Add new driver for phy mode selection for cpsw
authorMugunthan V N <mugunthanvnm@ti.com>
Fri, 20 Sep 2013 19:20:39 +0000 (00:50 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Sep 2013 14:33:07 +0000 (10:33 -0400)
commit5892cd135e166c425c992c437a2944534b663a24
tree53d678d3cd3591f90daa85c1adefc9c0e9971efd
parentaa1a15e2d9199711cdcc9399fdb22544ab835a83
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 <mugunthanvnm@ti.com>
Tested-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/cpsw-phy-sel.txt [new file with mode: 0644]
drivers/net/ethernet/ti/Kconfig
drivers/net/ethernet/ti/Makefile
drivers/net/ethernet/ti/cpsw-phy-sel.c [new file with mode: 0644]
drivers/net/ethernet/ti/cpsw.h