]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: net: Adjust PHY interface to work with CONFIG_DM_ETH
authorSimon Glass <sjg@chromium.org>
Sun, 5 Apr 2015 22:07:39 +0000 (16:07 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:28:33 +0000 (22:28 +0200)
commit81527c8c1533c4d5e0115fef7e4a47145e1129bd
tree9f4a0c9569f4753414517d7a0eadf76a1ce1209e
parente04b05cd3eb2c92784b47c52ba6c4f2189b4525f
dm: net: Adjust PHY interface to work with CONFIG_DM_ETH

When driver model is used for Ethernet a few functions are passed a udevice
instead of an eth_device. Also add a function to find a PHY type given its
name. This will be used to decode the device tree node.

Finally, put a phy_interface field in struct eth_pdata since this is an
important part of the platform data for Ethernet.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
common/miiphyutil.c
drivers/net/phy/phy.c
include/net.h
include/phy.h