diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2016-08-05 18:26:17 +0300 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2016-08-15 13:34:47 -0500 |
commit | 5d43feabf3707ae4e879b54450e5a3c3c664b2b9 (patch) | |
tree | b35b359b02db19813abd1d162ffab4113f4b6ed0 /include/dm/platform_data | |
parent | a84a757ae7cf844a5ec3e7c32226b48667dedac2 (diff) |
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>
Diffstat (limited to 'include/dm/platform_data')
-rw-r--r-- | include/dm/platform_data/net_ethoc.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/dm/platform_data/net_ethoc.h b/include/dm/platform_data/net_ethoc.h new file mode 100644 index 0000000000..1d8c73c037 --- /dev/null +++ b/include/dm/platform_data/net_ethoc.h @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2016 Cadence Design Systems Inc. + * + * SPDX-License-Identifier: GPL-2.0 + */ + +#ifndef _ETHOC_H +#define _ETHOC_H + +#include <net.h> + +#ifdef CONFIG_DM_ETH + +struct ethoc_eth_pdata { + struct eth_pdata eth_pdata; +}; + +#endif + +#endif /* _ETHOC_H */ |