
Hi,
am335x-icev2 has 2 Ethernet ports that can be used either as CPSW ethernet (RMII mode) or PRUSS ethernet (MII mode) using jumpers placed next to the port on the board.
As a different PHY clock is required for RMII mode vs MII mode, we detect the jumper setting and set the PHY clock frequency accordingly.
Tested with CPSW in RMII mode.
cheersm -roger
Lokesh Vutla (1): net: enable chip clk for RMII mode.
Mugunthan V N (1): driver: net: cpsw: add support for RGMII id mode support and RMII clock source selection
Roger Quadros (2): board: am335x-icev2: add ethernet phy mode detection logic board: am335x: Always set eth/eth1addr environment variable
arch/arm/include/asm/arch-omap5/cpu.h | 3 + board/ti/am335x/board.c | 154 ++++++++++++++++++++++++++------- drivers/net/cpsw.c | 157 +++++++++++++++++++++++++++++++--- include/cpsw.h | 1 + 4 files changed, 268 insertions(+), 47 deletions(-)