u-boot/drivers/net/fsl-mc
Bogdan Purcareata 5707dfb02e drivers: net: fsl-mc: Fixup MAC addresses in DPC
Fixup port_mac_address property in MC DPC with values from the u-boot
environment. Since u-boot already reads the environment MAC addresses
when probing the PHYs, use these values.

The u-boot environment MAC addresses take precedence over any eventual
ones defined in the DPC, except for the case where they are randomly
assigned (no u-boot env value declared for port).

The patch assumes the "/board_info/ports/" node is present in the DPC.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
[York S: Fix several indentations]
Reviewed-by: York Sun <york.sun@nxp.com>
2017-01-31 09:25:21 -08:00
..
dpio driver: fsl-mc: qbman: Add QBMAN 4.1 support 2016-12-15 11:57:05 -08:00
dpbp.c driver: net: fsl-mc: Add create, destroy APIs in flibs 2015-11-30 08:53:02 -08:00
dpmac.c driver: net: fsl-mc: Add APIs for DPMAC objects in FLIB 2015-11-30 08:53:02 -08:00
dpmng.c drivers/fsl-mc: flib changes for mc 8.0.0 2015-08-03 12:06:37 -07:00
dpni.c driver: net: fsl-mc: flib changes for MC FW 9.0.0 2016-01-27 08:13:10 -08:00
dprc.c driver: net: fsl-mc: Add create, destroy APIs in flibs 2015-11-30 08:53:02 -08:00
fsl_dpmng_cmd.h driver/fsl-mc: Add support of MC Flibs 2015-04-21 10:27:35 -07:00
Makefile driver: net: fsl-mc: Add APIs for DPMAC objects in FLIB 2015-11-30 08:53:02 -08:00
mc.c drivers: net: fsl-mc: Fixup MAC addresses in DPC 2017-01-31 09:25:21 -08:00
mc_sys.c driver: net: fsl-mc: Increase MC command timeout 2015-11-30 08:53:02 -08:00