]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
phy: ti: j721e-wiz: Add SGMII support in WIZ driver for J721E
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Wed, 2 Aug 2023 08:17:28 +0000 (13:47 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 15 Aug 2023 21:46:39 +0000 (17:46 -0400)
Enable full rate divider configuration support for J721E_WIZ_16G for SGMII.

Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
drivers/phy/ti/phy-j721e-wiz.c

index cba87f5093b98182a370ed9ef7dfe1acfe8b04ad..72613399073eea7464a4c716da169f2f55001f2b 100644 (file)
@@ -590,6 +590,8 @@ static int wiz_phy_fullrt_div(struct wiz *wiz, int lane)
                if (wiz->lane_phy_type[lane] == PHY_TYPE_PCIE)
                        return regmap_field_write(wiz->p0_fullrt_div[lane], 0x1);
                break;
+
+       case J721E_WIZ_16G:
        case J721E_WIZ_10G:
                if (wiz->lane_phy_type[lane] == PHY_TYPE_SGMII)
                        return regmap_field_write(wiz->p0_fullrt_div[lane], 0x2);