]> git.sur5r.net Git - u-boot/commit
net: phy: micrel: Configure KSZ9021/KSZ9031 skew from OF
authorMarek Vasut <marex@denx.de>
Sat, 5 Dec 2015 16:41:58 +0000 (17:41 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 20 Dec 2015 02:36:49 +0000 (03:36 +0100)
commit22854bda8092babd5a8ac2e64a5bbdc90d7b827f
tree0431c3cf9edafafdc850196701fd51d6dde7d6ec
parent4832e17787acb29734d895751bc7a594908aecc6
net: phy: micrel: Configure KSZ9021/KSZ9031 skew from OF

Add code to process the KSZ9021/KSZ9031 OF props if they are present
and configure skew registers based on the information from the OF.
This code is only enabled if the DM support for ethernet is also
enabled.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
V2: - Implement struct ksz90x1_reg_field to describe the skew register
      fields more accurately.
    - Fix RXDV/TXEN skew register default value and offset.
drivers/net/phy/micrel.c