mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
driver: net: ldpaa: Use DPMAC as net device
As per current implementation of DPAA2 ethernet driver DPNI is used as net device. DPNI is tangible objects can be multiple connected to same physical lane. Use DPMAC as net device where it represents physical lane. Below modification done in driver - Use global DPNI object - Connect DPMAC to DPNI - Create and destroy DPMAC Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
This commit is contained in:

committed by
York Sun

parent
1730a17db9
commit
c919ab9ee5
@ -13,6 +13,7 @@
|
||||
#include <linux/compat.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <phy.h>
|
||||
|
||||
#include <fsl-mc/fsl_mc_sys.h>
|
||||
#include <fsl-mc/fsl_mc_cmd.h>
|
||||
@ -64,6 +65,6 @@ struct fsl_dpni_obj {
|
||||
extern struct fsl_dpni_obj *dflt_dpni;
|
||||
|
||||
int mc_init(u64 mc_fw_addr, u64 mc_dpc_addr);
|
||||
int ldpaa_eth_init(int dpmac_id);
|
||||
int ldpaa_eth_init(int dpmac_id, phy_interface_t enet_if);
|
||||
int mc_apply_dpl(u64 mc_dpl_addr);
|
||||
#endif /* _FSL_MC_PRIVATE_H_ */
|
||||
|
Reference in New Issue
Block a user