]> git.dujemihanovic.xyz Git - u-boot.git/commit
net/ethoc: add CONFIG_DM_ETH support
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 5 Aug 2016 15:26:17 +0000 (18:26 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 15 Aug 2016 18:34:47 +0000 (13:34 -0500)
commit5d43feabf3707ae4e879b54450e5a3c3c664b2b9
treeb35b359b02db19813abd1d162ffab4113f4b6ed0
parenta84a757ae7cf844a5ec3e7c32226b48667dedac2
net/ethoc: add CONFIG_DM_ETH support

Extract reusable parts from ethoc_init, ethoc_set_mac_address,
ethoc_send and ethoc_receive, move the rest under #ifdef CONFIG_DM_ETH.
Add U_BOOT_DRIVER, eth_ops structure and implement required methods.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/ethoc.c
include/dm/platform_data/net_ethoc.h [new file with mode: 0644]