]> git.sur5r.net Git - u-boot/commitdiff
mips: ath79: ap121: Enable ethernet
authorWills Wang <wills.wang@live.com>
Mon, 30 May 2016 14:54:51 +0000 (22:54 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Tue, 31 May 2016 08:17:54 +0000 (10:17 +0200)
This patch enable network function for ap121 board.

Signed-off-by: Wills Wang <wills.wang@live.com>
Acked-by: Marek Vasut <marex@denx.de>
arch/mips/dts/ap121.dts
arch/mips/dts/ar933x.dtsi
board/qca/ap121/ap121.c
configs/ap121_defconfig

index e31f601d039403c771b56e1b4f0280cea93d6d3e..a934a588ff586ad17e4eb16be63c99a87b6c82cd 100644 (file)
@@ -41,3 +41,8 @@
                reg = <0>;
        };
 };
+
+&gmac0 {
+       phy-mode = "rmii";
+       status = "okay";
+};
index 00896b2be477e483f254decbf070f39d8c58c914..971f13e83de852ace2c55245e6334b436dbb2a94 100644 (file)
@@ -75,7 +75,7 @@
                        };
 
                        gmac0: eth@0x19000000 {
-                               compatible = "qca,ag7240-mac";
+                               compatible = "qca,ag933x-mac";
                                reg = <0x19000000 0x200>;
                                phy = <&phy0>;
                                phy-mode = "rmii";
@@ -92,7 +92,7 @@
                        };
 
                        gmac1: eth@0x1a000000 {
-                               compatible = "qca,ag7240-mac";
+                               compatible = "qca,ag933x-mac";
                                reg = <0x1a000000 0x200>;
                                phy = <&phy0>;
                                phy-mode = "rgmii";
index d6c60fea86d9adf26bbad582056133456c79f628..e245faa5cf86039c0843be9411c52e55bc310920 100644 (file)
@@ -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;
@@ -46,5 +47,6 @@ int board_early_init_f(void)
        debug_uart_init();
 #endif
        ddr_init();
+       ath79_eth_reset();
        return 0;
 }
index 7604e2ee16f16c94ceb447adee8696c34055ec0c..91fa7346915f1da20af457b1240272a856c01e6c 100644 (file)
@@ -19,8 +19,13 @@ CONFIG_SYS_PROMPT="ap121 # "
 CONFIG_CMD_SF=y
 CONFIG_CMD_SPI=y
 # CONFIG_CMD_FPGA is not set
-# CONFIG_CMD_NET is not set
-# CONFIG_CMD_NFS is not set
+CONFIG_CMD_NET=y
+CONFIG_CMD_NFS=y
+CONFIG_CMD_DHCP=y
+CONFIG_CMD_PING=y
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_DM_ETH=y
+CONFIG_AG7XXX=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_BAR=y
 CONFIG_SPI_FLASH_ATMEL=y