aboutsummaryrefslogtreecommitdiff
path: root/board/gateworks
diff options
context:
space:
mode:
authorTim Harvey2023-02-07 15:44:21 -0800
committerStefano Babic2023-03-30 00:45:39 +0200
commit7e32871ce4d17aa549d44f0e50434b5c6454d184 (patch)
tree7e9490bb1dc9f2ab2c86fc1d9c1e03263f64b5f3 /board/gateworks
parent69c573ca899dec2a58b9d5d3e45177f3be2eba18 (diff)
board: gateworks: venice: enable XWAY PHY support
Enable XWAY PHY driver and remove board specific config from board_phy_config weak override. Signed-off-by: Tim Harvey <tharvey@gateworks.com> Reviewed-by: Fabio Estevam <festevam@denx.de>
Diffstat (limited to 'board/gateworks')
-rw-r--r--board/gateworks/venice/venice.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/board/gateworks/venice/venice.c b/board/gateworks/venice/venice.c
index e6fa7eb3d73..58736c680eb 100644
--- a/board/gateworks/venice/venice.c
+++ b/board/gateworks/venice/venice.c
@@ -74,7 +74,6 @@ static int __maybe_unused setup_eqos(void)
int board_phy_config(struct phy_device *phydev)
{
unsigned short val;
- ofnode node;
switch (phydev->phy_id) {
case 0x2000a231: /* TI DP83867 GbE PHY */
@@ -85,21 +84,6 @@ int board_phy_config(struct phy_device *phydev)
val |= 0xb << 8; /* LED2(Green;Link/Act): blink for TX/RX act */
phy_write(phydev, MDIO_DEVAD_NONE, 24, val);
break;
- case 0xd565a401: /* MaxLinear GPY111 */
- puts("GPY111 ");
- node = phy_get_ofnode(phydev);
- if (ofnode_valid(node)) {
- u32 rx_delay, tx_delay;
-
- rx_delay = ofnode_read_u32_default(node, "rx-internal-delay-ps", 2000);
- tx_delay = ofnode_read_u32_default(node, "tx-internal-delay-ps", 2000);
- val = phy_read(phydev, MDIO_DEVAD_NONE, 0x17);
- val &= ~((0x7 << 12) | (0x7 << 8));
- val |= (rx_delay / 500) << 12;
- val |= (tx_delay / 500) << 8;
- phy_write(phydev, MDIO_DEVAD_NONE, 0x17, val);
- }
- break;
}
if (phydev->drv->config)