]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: lpc32xx: add RMII phy mode support
authorVladimir Zapolskiy <vz@mleia.com>
Mon, 6 Jul 2015 04:22:11 +0000 (07:22 +0300)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:41 +0000 (08:17 +0200)
commitb932a466c67afe9799081b3d0aec62fe4dc1a04c
tree432bb715bb099d9959cab85d79a7fea3c0872a5e
parente34b012165ab449d34b31f276a24137227443b53
net: lpc32xx: add RMII phy mode support

LPC32xx MAC and clock control configuration requires some minor quirks
to deal with a phy connected by RMII.

It's worth to mention that the kernel and legacy BSP from NXP sets
SUPP_RESET_RMII == (1 << 11) bit, however the description of this bit is
missing in shared LPC32x0 User Manual UM10326 Rev. 3, July 22, 2011
and in LPC32x0 Draft User Mannual Rev. 00.27, November 20, 2008, also
in my tests an SMSC LAN8700 phy device connected over RMII seems to
work correctly without touching this bit.

Add support of RMII, if CONFIG_RMII is defined, this option is aligned
with a number of boards, which already define the same config value.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Tested-by: Sylvain Lemieux <slemieux@tycoint.com>
arch/arm/cpu/arm926ejs/lpc32xx/devices.c
drivers/net/lpc32xx_eth.c