]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: gateworks: venice: enable XWAY PHY support
authorTim Harvey <tharvey@gateworks.com>
Tue, 7 Feb 2023 23:44:21 +0000 (15:44 -0800)
committerStefano Babic <sbabic@denx.de>
Wed, 29 Mar 2023 22:45:39 +0000 (00:45 +0200)
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>
board/gateworks/venice/venice.c
configs/imx8mm_venice_defconfig
configs/imx8mn_venice_defconfig
configs/imx8mp_venice_defconfig

index e6fa7eb3d73f561b0d6974bfd6e1e6b9830e39b1..58736c680eb236af2e576b3eddd31db815fe6f9d 100644 (file)
@@ -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)
index 6b673b80c19830e3e2d41c06cef333ccd20348b9..db2da79ab1099c687b420b1140906fec53b362f9 100644 (file)
@@ -104,6 +104,7 @@ CONFIG_SPL_MMC_HS400_SUPPORT=y
 CONFIG_FSL_USDHC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_TI_DP83867=y
+CONFIG_PHY_XWAY=y
 CONFIG_PHY_FIXED=y
 CONFIG_DM_MDIO=y
 CONFIG_DM_DSA=y
index 9a14f214d64b5439f5c109baf1e0ecea779bf002..e9cb26495075143a44ea9e1b7b14170b43d65aaa 100644 (file)
@@ -105,6 +105,7 @@ CONFIG_SPL_MMC_HS400_SUPPORT=y
 CONFIG_FSL_USDHC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_TI_DP83867=y
+CONFIG_PHY_XWAY=y
 CONFIG_PHY_FIXED=y
 CONFIG_DM_MDIO=y
 CONFIG_DM_DSA=y
index ee488b1c565cc95a002c4d4d8acf3975c366a79e..4d0432078d56cee24bc045c4c059f30dee565076 100644 (file)
@@ -98,6 +98,7 @@ CONFIG_MMC_HS400_ES_SUPPORT=y
 CONFIG_MMC_HS400_SUPPORT=y
 CONFIG_FSL_USDHC=y
 CONFIG_PHY_TI_DP83867=y
+CONFIG_PHY_XWAY=y
 CONFIG_PHY_FIXED=y
 CONFIG_DM_MDIO=y
 CONFIG_DM_DSA=y