diff options
| author | Andy Shevchenko <[email protected]> | 2020-12-08 17:45:31 +0200 |
|---|---|---|
| committer | Andre Przywara <[email protected]> | 2021-01-11 23:19:34 +0000 |
| commit | 92600edb431b03df7149ee30c1508bbc3b5ebb43 (patch) | |
| tree | e94f25656f4a2b8be065b29f2927797d89a94549 | |
| parent | 0e4d5db4e0379da9ca4eee00dbca9773d8718e8e (diff) | |
sunxi: board: Move USB ethernet initialization to board_late_init()
For the sake of consistency (*) and order of initialization, i.e.
after we have got the ethernet address, interrupt and timer initialized,
try to initialize USB ethernet gadget.
*) for example, zynqmp uses same order.
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Andre Przywara <[email protected]>
Tested-by: Andre Przywara <[email protected]>
Signed-off-by: Andre Przywara <[email protected]>
| -rw-r--r-- | arch/arm/Kconfig | 1 | ||||
| -rw-r--r-- | board/sunxi/board.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index fbe90875ae4..54762ce03a6 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1045,6 +1045,7 @@ config ARCH_SUNXI select SPL_USE_TINY_PRINTF select USE_PREBOOT select SYS_RELOC_GD_ENV_ADDR + imply BOARD_LATE_INIT imply CMD_DM imply CMD_GPT imply CMD_UBI if MTD_RAW_NAND diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 708a27ed78e..77e46471884 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -890,6 +890,11 @@ int misc_init_r(void) setup_environment(gd->fdt_blob); + return 0; +} + +int board_late_init(void) +{ #ifdef CONFIG_USB_ETHER usb_ether_init(); #endif |
