u-boot-brain/drivers/net/phy
Dinh Nguyen ff7bd212cb net: phy: micrel: fix divisor value for KSZ9031 phy skew
The picoseconds to register value divisor(ps_to_regval) should be 60 and not
200. Linux has KSZ9031_PS_TO_REG defined to be 60 as well. 60 is the correct
divisor because the 4-bit skew values are defined from 0x0000(-420ps) to
0xffff(480ps), increments of 60.

For example, a DTS skew value of 420, represents 0ps delay, which should be 0x7.
With the previous divisor of 200, it would result in 0x2, which represents a
-300ps delay.

With this patch, ethernet on the SoCFPGA DE0 Atlas is now able to work with
1Gb ethernet.

References:
http://www.micrel.com/_PDF/Ethernet/datasheets/KSZ9031RNX.pdf -> page 26

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2016-01-28 13:20:30 -06:00
..
aquantia.c net: phy: added aquantia PHY AQR405 support 2015-11-30 09:11:13 -08:00
atheros.c phy: atheros: Use ar8035_config for AR8031 2016-01-07 17:46:47 +01:00
broadcom.c net: phy: broadcom: Add BCM Cygnus PHY 2015-08-11 13:49:17 -05:00
cortina.c net/phy/cortina: Fix compilation warning 2015-04-23 08:55:57 -07:00
davicom.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
et1011c.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
generic_10g.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
lxt.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Makefile net: phy: Add support for Texas Instruments DP83867 2015-11-19 13:09:21 +01:00
marvell.c net: Add support for Marvell 88E1510 PHY 2015-08-11 13:29:01 -05:00
micrel.c net: phy: micrel: fix divisor value for KSZ9031 phy skew 2016-01-28 13:20:30 -06:00
miiphybb.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mv88e61xx.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mv88e61xx.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mv88e6352.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
natsemi.c pengwyn: nand and ethernet fixes 2015-11-12 18:13:19 -05:00
phy.c net: phy: Use 'autoneg' flag from phydev 2016-01-28 13:20:29 -06:00
realtek.c net/phy: set led for rtl8211f phy 2015-08-11 13:20:34 -05:00
smsc.c phy: Use general phy code for smsc lan8720a 2013-11-22 17:03:20 -06:00
teranetics.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ti.c net: phy: Add support for Texas Instruments DP83867 2015-11-19 13:09:21 +01:00
vitesse.c net: phy/vitesse: Add support for VSC8584 phy 2015-09-01 21:38:39 -05:00