phy: ti: j721e-wiz: Add SGMII support in WIZ driver for J784S4
authorChintan Vankar <c-vankar@ti.com>
Thu, 21 Dec 2023 10:29:56 +0000 (15:59 +0530)
committerVinod Koul <vkoul@kernel.org>
Fri, 22 Dec 2023 15:50:08 +0000 (21:20 +0530)
Enable full rate divider configuration support for J784S4_WIZ_10G
for SGMII.

Signed-off-by: Chintan Vankar <c-vankar@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20231221102956.754617-2-c-vankar@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-j721e-wiz.c

index fc3cd98c60ff42e1a0aa30698e68319b49009063..00d7e6a6de03a2cb85c26eeba29f90d57096f592 100644 (file)
@@ -1240,6 +1240,7 @@ static int wiz_phy_fullrt_div(struct wiz *wiz, int lane)
        case J721E_WIZ_10G:
        case J7200_WIZ_10G:
        case J721S2_WIZ_10G:
+       case J784S4_WIZ_10G:
                if (wiz->lane_phy_type[lane] == PHY_TYPE_SGMII)
                        return regmap_field_write(wiz->p0_fullrt_div[lane], 0x2);
                break;