]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: board: Move USB ethernet initialization to board_late_init()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 8 Dec 2020 15:45:31 +0000 (17:45 +0200)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 11 Jan 2021 23:19:34 +0000 (23:19 +0000)
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 <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/Kconfig
board/sunxi/board.c

index fbe90875ae4e25f8d4748a7132dff72b0f954977..54762ce03a66290320109cebff4cc9518716206c 100644 (file)
@@ -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
index 708a27ed78e96f8a6d903839ca7430b94ec11396..77e46471884642d22368de3702d32e6bd945139f 100644 (file)
@@ -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