From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 7/7] mips: ath79: ap121: Enable ethernet
Date: Sun, 22 May 2016 13:14:46 +0200 [thread overview]
Message-ID: <574194A6.3060208@denx.de> (raw)
In-Reply-To: <BLU436-SMTP224AA89E76BAF19966ADFDFF4D0@phx.gbl>
On 05/22/2016 05:59 AM, Wills Wang wrote:
> This patch enable network function for ap121 board, it's based on
> the coming ethernet driver ag7xxx.
>
> Signed-off-by: Wills Wang <wills.wang@live.com>
> ---
Acked-by: Marek Vasut <marex@denx.de>
> arch/mips/dts/ap121.dts | 5 +++++
> arch/mips/dts/ar933x.dtsi | 4 ++--
> board/qca/ap121/ap121.c | 2 ++
> configs/ap121_defconfig | 9 +++++++--
> 4 files changed, 16 insertions(+), 4 deletions(-)
>
> diff --git a/arch/mips/dts/ap121.dts b/arch/mips/dts/ap121.dts
> index e31f601..a934a58 100644
> --- a/arch/mips/dts/ap121.dts
> +++ b/arch/mips/dts/ap121.dts
> @@ -41,3 +41,8 @@
> reg = <0>;
> };
> };
> +
> +&gmac0 {
> + phy-mode = "rmii";
> + status = "okay";
> +};
> diff --git a/arch/mips/dts/ar933x.dtsi b/arch/mips/dts/ar933x.dtsi
> index 00896b2..971f13e 100644
> --- a/arch/mips/dts/ar933x.dtsi
> +++ b/arch/mips/dts/ar933x.dtsi
> @@ -75,7 +75,7 @@
> };
>
> gmac0: eth at 0x19000000 {
> - compatible = "qca,ag7240-mac";
> + compatible = "qca,ag933x-mac";
> reg = <0x19000000 0x200>;
> phy = <&phy0>;
> phy-mode = "rmii";
> @@ -92,7 +92,7 @@
> };
>
> gmac1: eth at 0x1a000000 {
> - compatible = "qca,ag7240-mac";
> + compatible = "qca,ag933x-mac";
> reg = <0x1a000000 0x200>;
> phy = <&phy0>;
> phy-mode = "rgmii";
> diff --git a/board/qca/ap121/ap121.c b/board/qca/ap121/ap121.c
> index b0e1993..7b5a4ac 100644
> --- a/board/qca/ap121/ap121.c
> +++ b/board/qca/ap121/ap121.c
> @@ -45,6 +45,8 @@ int board_early_init_f(void)
> #ifdef CONFIG_DEBUG_UART
> debug_uart_init();
> #endif
> +
> ddr_init(400, 400, 200);
> + ath79_eth_reset();
> return 0;
> }
> diff --git a/configs/ap121_defconfig b/configs/ap121_defconfig
> index 7604e2e..91fa734 100644
> --- a/configs/ap121_defconfig
> +++ b/configs/ap121_defconfig
> @@ -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
>
--
Best regards,
Marek Vasut
prev parent reply other threads:[~2016-05-22 11:14 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1463889595-15333-1-git-send-email-wills.wang@live.com>
2016-05-22 3:59 ` [U-Boot] [PATCH V2 2/7] mips: ath79: ar933x: Fix ethernet PHY mismatch Wills Wang
2016-05-22 11:05 ` Marek Vasut
2016-05-22 11:20 ` Wills Wang
2016-05-25 23:29 ` Daniel Schwierzeck
2016-05-22 3:59 ` [U-Boot] [PATCH 3/7] mips: ath79: Use uniform header for reset Wills Wang
2016-05-22 11:08 ` Marek Vasut
2016-05-22 11:29 ` Wills Wang
2016-05-22 11:32 ` Marek Vasut
2016-05-30 10:10 ` Daniel Schwierzeck
2016-05-22 3:59 ` [U-Boot] [PATCH 4/7] mips: ath79: Rename get_bootstrap into ath79_get_bootstrap Wills Wang
2016-05-22 11:09 ` Marek Vasut
2016-05-22 3:59 ` [U-Boot] [PATCH 5/7] mips: ath79: Unify DDR initialization entry for ar934x Wills Wang
2016-05-22 11:13 ` Marek Vasut
2016-05-22 11:35 ` Wills Wang
2016-05-22 12:23 ` Marek Vasut
2016-05-22 3:59 ` [U-Boot] [PATCH 6/7] mips: ath79: Unify PLL initialization entry Wills Wang
2016-05-22 11:14 ` Marek Vasut
2016-05-22 3:59 ` [U-Boot] [PATCH 7/7] mips: ath79: ap121: Enable ethernet Wills Wang
2016-05-22 11:14 ` Marek Vasut [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=574194A6.3060208@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.