fec: Move imx_get_mac_from_fuse declare to imx file
authorYe Li <ye.li@nxp.com>
Sun, 3 May 2020 14:41:19 +0000 (22:41 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
imx_get_mac_from_fuse is used to load MAC address from fuse. On imx8mp,
we have two different ENET controllers and both need to call this
function. So decouple its declare from fec driver.

Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/include/asm/mach-imx/sys_proto.h
drivers/net/fec_mxc.h

index b91b21377450df6caa882a7c2ab4b235e4314a3e..927195f87ac1520cef62d057bcb164e8fac235c4 100644 (file)
@@ -198,4 +198,6 @@ unsigned long call_imx_sip(unsigned long id, unsigned long reg0,
 unsigned long call_imx_sip_ret2(unsigned long id, unsigned long reg0,
                                unsigned long *reg1, unsigned long reg2,
                                unsigned long reg3);
+
+void imx_get_mac_from_fuse(int dev_id, unsigned char *mac);
 #endif
index 3c8fdda263804f07dbf3a1c0397b509cde1151f0..0e8f08a51a18d816c7199522ed8a715e0b38201a 100644 (file)
@@ -273,8 +273,6 @@ struct fec_priv {
        u32 clk_rate;
 };
 
-void imx_get_mac_from_fuse(int dev_id, unsigned char *mac);
-
 /**
  * @brief Numbers of buffer descriptors for receiving
  *