diff mbox

[v2,4/5] board: ti: am43xx: add AM437x SK PHY Address

Message ID 1402430482-2676-5-git-send-email-balbi@ti.com
State Accepted
Commit 619ce62d2ddb3af64240451d571e93a356767357
Headers show

Commit Message

Felipe Balbi June 10, 2014, 8:01 p.m. UTC
pass correct PHY Address when running on SK
so that we have working ethernet with this board
too.

Signed-off-by: Felipe Balbi <balbi@ti.com>
---
 board/ti/am43xx/board.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Tom Rini June 19, 2014, 10:02 p.m. UTC | #1
On Tue, Jun 10, 2014 at 03:01:21PM -0500, Felipe Balbi wrote:

> pass correct PHY Address when running on SK
> so that we have working ethernet with this board
> too.
> 
> Signed-off-by: Felipe Balbi <balbi@ti.com>

Applied to u-boot-ti/master, thanks!
diff mbox

Patch

diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c
index 6379cef..054a452 100644
--- a/board/ti/am43xx/board.c
+++ b/board/ti/am43xx/board.c
@@ -594,6 +594,11 @@  int board_eth_init(bd_t *bis)
 		writel(RMII_MODE_ENABLE | RMII_CHIPCKL_ENABLE, &cdev->miisel);
 		cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RMII;
 		cpsw_slaves[0].phy_addr = 16;
+	} else if (board_is_sk()) {
+		writel(RGMII_MODE_ENABLE, &cdev->miisel);
+		cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RGMII;
+		cpsw_slaves[0].phy_addr = 4;
+		cpsw_slaves[1].phy_addr = 5;
 	} else {
 		writel(RGMII_MODE_ENABLE, &cdev->miisel);
 		cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RGMII;