diff mbox series

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

Message ID 20210215180746.2382067-2-fparent@baylibre.com
State Accepted
Commit 4e828d9c75f1770223f23a5f660da6f7317c4c25
Delegated to: Tom Rini
Headers show
Series [1/3] board: mediatek: rename pumpkin board into mt8516 | expand

Commit Message

Fabien Parent Feb. 15, 2021, 6:07 p.m. UTC
Init USB Ether if CONFIG_USB_ETHER is enabled.

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

Comments

Tom Rini March 20, 2021, 11:36 p.m. UTC | #1
On Mon, Feb 15, 2021 at 07:07:45PM +0100, Fabien Parent wrote:

> Init USB Ether if CONFIG_USB_ETHER is enabled.
> 
> Signed-off-by: Fabien Parent <fparent@baylibre.com>

Applied to u-boot/next, thanks!
diff mbox series

Patch

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;
 }