risc-v/common: add call to riscv_netinitialize()
This commit is contained in:
parent
8c755c9414
commit
07aeb12b30
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue