[PATCH 2/3] board: mediatek: mt8516: init USB Ether for pumpkin board

Fabien Parent fparent at baylibre.com
Mon Feb 15 19:07:45 CET 2021


Init USB Ether if CONFIG_USB_ETHER is enabled.

Signed-off-by: Fabien Parent <fparent at baylibre.com>
---
 board/mediatek/mt8516/mt8516_pumpkin.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/board/mediatek/mt8516/mt8516_pumpkin.c b/board/mediatek/mt8516/mt8516_pumpkin.c
index 37daf1c51b92..42f3863b92c3 100644
--- a/board/mediatek/mt8516/mt8516_pumpkin.c
+++ b/board/mediatek/mt8516/mt8516_pumpkin.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <net.h>
 
 int board_init(void)
 {
@@ -24,5 +25,8 @@ int board_late_init(void)
 		}
 	}
 
+	if (CONFIG_IS_ENABLED(USB_ETHER))
+		usb_ether_init();
+
 	return 0;
 }
-- 
2.30.0



More information about the U-Boot mailing list