]> git.baikalelectronics.ru Git - uboot.git/commit
imx: refactor imx_get_mac_from_fuse
authorPeng Fan <peng.fan@nxp.com>
Wed, 10 Jan 2018 05:20:31 +0000 (13:20 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 4 Feb 2018 11:00:58 +0000 (12:00 +0100)
commit741cc74b2561280ee4f6f92c6174a1a4e343cd13
treec9045994b86e07e8fa559051b4e4e67cae035f53
parent33d6a51d47a39b51eceff7c1900f5bbdcd74a422
imx: refactor imx_get_mac_from_fuse

Move imx_get_mac_from_fuse to a new mac.c for i.MX6/7.
Since fuse regs structure are different for i.MX6/7, use mac
address offset in code and define a new local struture
imx_mac_fuse.

Also sort the config order.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/mac.c [new file with mode: 0644]
arch/arm/mach-imx/mx6/soc.c
arch/arm/mach-imx/mx7/soc.c