[U-Boot] [PATCH 6/6] mips: ath79: ap143: Reset ethernet on boot

Wills Wang wills.wang at live.com
Mon May 30 16:54:55 CEST 2016


This patch reset the ethernet controller for ap143 board

Signed-off-by: Wills Wang <wills.wang at live.com>
---

 board/qca/ap143/ap143.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/qca/ap143/ap143.c b/board/qca/ap143/ap143.c
index 1572472..e921ea5 100644
--- a/board/qca/ap143/ap143.c
+++ b/board/qca/ap143/ap143.c
@@ -10,6 +10,7 @@
 #include <asm/types.h>
 #include <mach/ar71xx_regs.h>
 #include <mach/ddr.h>
+#include <mach/ath79.h>
 #include <debug_uart.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -62,5 +63,6 @@ int board_early_init_f(void)
 	debug_uart_init();
 #endif
 	ddr_init();
+	ath79_eth_reset();
 	return 0;
 }
-- 
1.9.1



More information about the U-Boot mailing list