aboutsummaryrefslogtreecommitdiff
path: root/board/gateworks/gw_ventana
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2021-06-11 12:46:25 -0700
committerStefano Babic <sbabic@denx.de>2021-07-10 16:53:33 +0200
commit9634c748b14444f6b274521fb2da30f28d310997 (patch)
tree39098a0e0eff2d9a104aed6b528ae203dd929c0c /board/gateworks/gw_ventana
parent0545b17b695e03ad5ea7bd9736b9cdfc49530af5 (diff)
downloadu-boot-9634c748b14444f6b274521fb2da30f28d310997.zip
u-boot-9634c748b14444f6b274521fb2da30f28d310997.tar.gz
u-boot-9634c748b14444f6b274521fb2da30f28d310997.tar.bz2
imx: ventana: add DP83867 PHY LED configuration
Add DP83867 PHY LED configuration. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board/gateworks/gw_ventana')
-rw-r--r--board/gateworks/gw_ventana/gw_ventana.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
index 4a6b1dc..860342d 100644
--- a/board/gateworks/gw_ventana/gw_ventana.c
+++ b/board/gateworks/gw_ventana/gw_ventana.c
@@ -96,6 +96,12 @@ int board_phy_config(struct phy_device *phydev)
/* TI DP83867 */
else if (phydev->phy_id == 0x2000a231) {
+ /* LED configuration */
+ val = 0;
+ val |= 0x5 << 4; /* LED1(Amber;Speed) : 1000BT link */
+ val |= 0xb << 8; /* LED2(Green;Link/Act): blink for TX/RX act */
+ phy_write(phydev, MDIO_DEVAD_NONE, 24, val);
+
/* configure register 0x170 for ref CLKOUT */
phy_write(phydev, MDIO_DEVAD_NONE, 13, 0x001f);
phy_write(phydev, MDIO_DEVAD_NONE, 14, 0x0170);