From 07f2a76f6ea97dc9528eb71e3f3331b302c80fe8 Mon Sep 17 00:00:00 2001 From: Michal Lenc Date: Wed, 2 Dec 2020 19:24:57 +0100 Subject: [PATCH] arch/imxrt: Added NETDEV_LATEINIT option for Ethernet Signed-off-by: Michal Lenc --- arch/arm/src/imxrt/imxrt_enet.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/imxrt/imxrt_enet.h b/arch/arm/src/imxrt/imxrt_enet.h index 2b087654f1..f72cd19acc 100644 --- a/arch/arm/src/imxrt/imxrt_enet.h +++ b/arch/arm/src/imxrt/imxrt_enet.h @@ -55,7 +55,7 @@ #define EMAC_INTF 0 /************************************************************************************ - * Public Functions + * Public Functions Prototypes ************************************************************************************/ #ifndef __ASSEMBLY__ @@ -89,7 +89,29 @@ extern "C" * ************************************************************************************/ +#if !defined(CONFIG_NETDEV_LATEINIT) void arm_netinitialize(void); +#else + +/************************************************************************************ + * Function: imxrt_netinitialize + * + * Description: + * Initialize the Ethernet controller and driver + * + * Input Parameters: + * intf - In the case where there are multiple EMACs, this value identifies which + * EMAC is to be initialized. + * + * Returned Value: + * OK on success; Negated errno on failure. + * + * Assumptions: + * + ************************************************************************************/ + +int imxrt_netinitialize(int intf); +#endif /************************************************************************************ * Function: imxrt_phy_boardinitialize