risc-v/common: add call to riscv_netinitialize()

This commit is contained in:
Janne Rosberg 2022-03-14 13:00:19 +02:00 committed by Petro Karashchenko
parent 8c755c9414
commit 07aeb12b30
2 changed files with 19 additions and 0 deletions

View File

@ -105,5 +105,11 @@ void up_initialize(void)
riscv_serialinit();
#endif
#ifdef CONFIG_NET
/* Initialize the network */
riscv_netinitialize();
#endif
board_autoled_on(LED_IRQSENABLED);
}

View File

@ -237,6 +237,19 @@ void riscv_serialinit(void);
void riscv_earlyserialinit(void);
#endif
/* Networking ***************************************************************/
/* Defined in board/xyz_network.c for board-specific Ethernet
* implementations, or chip/xyx_ethernet.c for chip-specific Ethernet
* implementations.
*/
#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT)
void riscv_netinitialize(void);
#else
# define riscv_netinitialize()
#endif
/* Exception Handler ********************************************************/
void riscv_fault(int irq, uintptr_t *regs);