[U-Boot] [PATCH 3/7] net/ethoc: add CONFIG_DM_ETH support

Simon Glass sjg at chromium.org
Thu Aug 4 03:16:43 CEST 2016


On 2 August 2016 at 05:31, Max Filippov <jcmvbkbc at gmail.com> wrote:
> 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 at gmail.com>
> ---
>  drivers/net/ethoc.c                  | 221 +++++++++++++++++++++++++++--------
>  include/dm/platform_data/net_ethoc.h |  20 ++++
>  2 files changed, 194 insertions(+), 47 deletions(-)
>  create mode 100644 include/dm/platform_data/net_ethoc.h

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list