x86_64_netinitialize: support CONFIG_NETDEV_LATEINIT for x86_64
Now x86_64 can use config CONFIG_NETDEV_LATEINIT Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
parent
ca22e95577
commit
415f13372d
@ -117,7 +117,9 @@ void up_initialize(void)
|
|||||||
|
|
||||||
/* Initialize the network */
|
/* Initialize the network */
|
||||||
|
|
||||||
|
#ifndef CONFIG_NETDEV_LATEINIT
|
||||||
x86_64_netinitialize();
|
x86_64_netinitialize();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Initialize USB -- device and/or host */
|
/* Initialize USB -- device and/or host */
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ void x86_64_timer_initialize(void);
|
|||||||
|
|
||||||
/* Defined in board/x86_64_network.c */
|
/* Defined in board/x86_64_network.c */
|
||||||
|
|
||||||
#ifdef CONFIG_NET
|
#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT)
|
||||||
void x86_64_netinitialize(void);
|
void x86_64_netinitialize(void);
|
||||||
#else
|
#else
|
||||||
# define x86_64_netinitialize()
|
# define x86_64_netinitialize()
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_NET
|
#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT)
|
||||||
void x86_64_netinitialize(void)
|
void x86_64_netinitialize(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user