From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from nasmtp01.atmel.com ([192.199.1.245] helo=DVREDG01.corp.atmel.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YECAo-0007sP-UN for barebox@lists.infradead.org; Thu, 22 Jan 2015 07:27:27 +0000 From: Bo Shen Date: Thu, 22 Jan 2015 15:26:53 +0800 Message-ID: <1421911613-9188-1-git-send-email-voice.shen@atmel.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] ARM: atmel: sama5d3xek: let emac auto detect phy addr To: s.hauer@pengutronix.de, plagnioj@jcrosoft.com Cc: barebox@lists.infradead.org On the SAMA5D35 the EMAC phy addr is 1 while not 0. So, let the EMAC auto detect phy addr, or else hard code to 0, the ethernet can not work on SAMA5D35 board. Signed-off-by: Bo Shen --- arch/arm/boards/sama5d3xek/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boards/sama5d3xek/init.c b/arch/arm/boards/sama5d3xek/init.c index 5cd2f29..3efa506 100644 --- a/arch/arm/boards/sama5d3xek/init.c +++ b/arch/arm/boards/sama5d3xek/init.c @@ -128,7 +128,7 @@ static struct macb_platform_data gmac_pdata = { static struct macb_platform_data macb_pdata = { .phy_interface = PHY_INTERFACE_MODE_RMII, - .phy_addr = 0, + .phy_addr = -1, }; static bool used_23 = false; -- 2.3.0.rc0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox