Commit 619ce62d2ddb3af64240451d571e93a356767357
Committed by
Tom Rini
1 parent
9cb9f3331b
Exists in
v2017.01-smarct4x
and in
40 other branches
board: ti: am43xx: add AM437x SK PHY Address
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>
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
board/ti/am43xx/board.c
... | ... | @@ -594,6 +594,11 @@ |
594 | 594 | writel(RMII_MODE_ENABLE | RMII_CHIPCKL_ENABLE, &cdev->miisel); |
595 | 595 | cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RMII; |
596 | 596 | cpsw_slaves[0].phy_addr = 16; |
597 | + } else if (board_is_sk()) { | |
598 | + writel(RGMII_MODE_ENABLE, &cdev->miisel); | |
599 | + cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RGMII; | |
600 | + cpsw_slaves[0].phy_addr = 4; | |
601 | + cpsw_slaves[1].phy_addr = 5; | |
597 | 602 | } else { |
598 | 603 | writel(RGMII_MODE_ENABLE, &cdev->miisel); |
599 | 604 | cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RGMII; |