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:
Bowen Wang 2024-01-26 17:35:17 +08:00 committed by Xiang Xiao
parent ca22e95577
commit 415f13372d
3 changed files with 4 additions and 2 deletions

View file

@ -117,7 +117,9 @@ void up_initialize(void)
/* Initialize the network */
#ifndef CONFIG_NETDEV_LATEINIT
x86_64_netinitialize();
#endif
/* Initialize USB -- device and/or host */

View file

@ -221,7 +221,7 @@ void x86_64_timer_initialize(void);
/* Defined in board/x86_64_network.c */
#ifdef CONFIG_NET
#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT)
void x86_64_netinitialize(void);
#else
# define x86_64_netinitialize()

View file

@ -49,7 +49,7 @@
*
****************************************************************************/
#ifdef CONFIG_NET
#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT)
void x86_64_netinitialize(void)
{
}