arch/imxrt: Added NETDEV_LATEINIT option for Ethernet

Signed-off-by: Michal Lenc <lencmich@fel.cvut.cz>
This commit is contained in:
Michal Lenc 2020-12-02 19:24:57 +01:00 committed by Xiang Xiao
parent 117947b5a1
commit 07f2a76f6e

View File

@ -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