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 <fugang.duan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Ye Li 2020-05-03 22:41:19 +08:00 committed by Stefano Babic
parent 0e9d23945c
commit 9d4194f179
2 changed files with 2 additions and 2 deletions

View 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 call_imx_sip_ret2(unsigned long id, unsigned long reg0,
unsigned long *reg1, unsigned long reg2, unsigned long *reg1, unsigned long reg2,
unsigned long reg3); unsigned long reg3);
void imx_get_mac_from_fuse(int dev_id, unsigned char *mac);
#endif #endif

View file

@ -273,8 +273,6 @@ struct fec_priv {
u32 clk_rate; u32 clk_rate;
}; };
void imx_get_mac_from_fuse(int dev_id, unsigned char *mac);
/** /**
* @brief Numbers of buffer descriptors for receiving * @brief Numbers of buffer descriptors for receiving
* *