]> git.dujemihanovic.xyz Git - u-boot.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)
commit6ce8b10b873e2c9812e2a82ca534396b9ae4f08b
treec9045994b86e07e8fa559051b4e4e67cae035f53
parente56d9d79e587e945f219e5a98e5ab33680546215
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