mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
mips: ath79: ap121: Enable ethernet
This patch enable network function for ap121 board. Signed-off-by: Wills Wang <wills.wang@live.com> Acked-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
375239174c
commit
04583c686e
4 changed files with 16 additions and 4 deletions
|
@ -41,3 +41,8 @@
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac0 {
|
||||||
|
phy-mode = "rmii";
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
gmac0: eth@0x19000000 {
|
gmac0: eth@0x19000000 {
|
||||||
compatible = "qca,ag7240-mac";
|
compatible = "qca,ag933x-mac";
|
||||||
reg = <0x19000000 0x200>;
|
reg = <0x19000000 0x200>;
|
||||||
phy = <&phy0>;
|
phy = <&phy0>;
|
||||||
phy-mode = "rmii";
|
phy-mode = "rmii";
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
gmac1: eth@0x1a000000 {
|
gmac1: eth@0x1a000000 {
|
||||||
compatible = "qca,ag7240-mac";
|
compatible = "qca,ag933x-mac";
|
||||||
reg = <0x1a000000 0x200>;
|
reg = <0x1a000000 0x200>;
|
||||||
phy = <&phy0>;
|
phy = <&phy0>;
|
||||||
phy-mode = "rgmii";
|
phy-mode = "rgmii";
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#include <asm/types.h>
|
#include <asm/types.h>
|
||||||
#include <mach/ar71xx_regs.h>
|
#include <mach/ar71xx_regs.h>
|
||||||
#include <mach/ddr.h>
|
#include <mach/ddr.h>
|
||||||
|
#include <mach/ath79.h>
|
||||||
#include <debug_uart.h>
|
#include <debug_uart.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
@ -46,5 +47,6 @@ int board_early_init_f(void)
|
||||||
debug_uart_init();
|
debug_uart_init();
|
||||||
#endif
|
#endif
|
||||||
ddr_init();
|
ddr_init();
|
||||||
|
ath79_eth_reset();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,8 +19,13 @@ CONFIG_SYS_PROMPT="ap121 # "
|
||||||
CONFIG_CMD_SF=y
|
CONFIG_CMD_SF=y
|
||||||
CONFIG_CMD_SPI=y
|
CONFIG_CMD_SPI=y
|
||||||
# CONFIG_CMD_FPGA is not set
|
# CONFIG_CMD_FPGA is not set
|
||||||
# CONFIG_CMD_NET is not set
|
CONFIG_CMD_NET=y
|
||||||
# CONFIG_CMD_NFS is not set
|
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=y
|
||||||
CONFIG_SPI_FLASH_BAR=y
|
CONFIG_SPI_FLASH_BAR=y
|
||||||
CONFIG_SPI_FLASH_ATMEL=y
|
CONFIG_SPI_FLASH_ATMEL=y
|
||||||
|
|
Loading…
Reference in a new issue