This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 07f2a76 arch/imxrt: Added NETDEV_LATEINIT option for Ethernet 07f2a76 is described below commit 07f2a76f6ea97dc9528eb71e3f3331b302c80fe8 Author: Michal Lenc <lencm...@fel.cvut.cz> AuthorDate: Wed Dec 2 19:24:57 2020 +0100 arch/imxrt: Added NETDEV_LATEINIT option for Ethernet Signed-off-by: Michal Lenc <lencm...@fel.cvut.cz> --- 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 2b08765..f72cd19 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