
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.
cheers,m -roger
Changelog: v2: - removed unnecessary patch 1.
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
board/ti/am335x/board.c | 154 +++++++++++++++++++++++++++++++++++++---------- drivers/net/cpsw.c | 157 +++++++++++++++++++++++++++++++++++++++++++----- include/cpsw.h | 1 + 3 files changed, 265 insertions(+), 47 deletions(-)