From: Ye Li Date: Sun, 3 May 2020 14:41:19 +0000 (+0800) Subject: fec: Move imx_get_mac_from_fuse declare to imx file X-Git-Tag: v2020.07-rc2~3^2~54 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9d4194f179b2c19c6732b9e2794a3d5153144492;p=oweals%2Fu-boot.git fec: Move imx_get_mac_from_fuse declare to imx file 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 Signed-off-by: Ye Li Signed-off-by: Peng Fan --- diff --git a/arch/arm/include/asm/mach-imx/sys_proto.h b/arch/arm/include/asm/mach-imx/sys_proto.h index b91b213774..927195f87a 100644 --- a/arch/arm/include/asm/mach-imx/sys_proto.h +++ b/arch/arm/include/asm/mach-imx/sys_proto.h @@ -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 diff --git a/drivers/net/fec_mxc.h b/drivers/net/fec_mxc.h index 3c8fdda263..0e8f08a51a 100644 --- a/drivers/net/fec_mxc.h +++ b/drivers/net/fec_mxc.h @@ -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 *