@@ -322,6 +322,7 @@ enum wiz_type {
322
322
AM64_WIZ_10G ,
323
323
J7200_WIZ_10G , /* J7200 SR2.0 */
324
324
J784S4_WIZ_10G ,
325
+ J721S2_WIZ_10G ,
325
326
};
326
327
327
328
struct wiz_data {
@@ -1000,6 +1001,7 @@ static void wiz_clock_cleanup(struct wiz *wiz, struct device_node *node)
1000
1001
case AM64_WIZ_10G :
1001
1002
case J7200_WIZ_10G :
1002
1003
case J784S4_WIZ_10G :
1004
+ case J721S2_WIZ_10G :
1003
1005
of_clk_del_provider (dev -> of_node );
1004
1006
return ;
1005
1007
default :
@@ -1132,6 +1134,7 @@ static int wiz_clock_init(struct wiz *wiz, struct device_node *node)
1132
1134
case AM64_WIZ_10G :
1133
1135
case J7200_WIZ_10G :
1134
1136
case J784S4_WIZ_10G :
1137
+ case J721S2_WIZ_10G :
1135
1138
ret = wiz_clock_register (wiz );
1136
1139
if (ret )
1137
1140
dev_err (dev , "Failed to register wiz clocks\n" );
@@ -1214,6 +1217,7 @@ static int wiz_phy_fullrt_div(struct wiz *wiz, int lane)
1214
1217
break ;
1215
1218
case J721E_WIZ_10G :
1216
1219
case J7200_WIZ_10G :
1220
+ case J721S2_WIZ_10G :
1217
1221
if (wiz -> lane_phy_type [lane ] == PHY_TYPE_SGMII )
1218
1222
return regmap_field_write (wiz -> p0_fullrt_div [lane ], 0x2 );
1219
1223
break ;
@@ -1318,6 +1322,15 @@ static struct wiz_data j784s4_10g_data = {
1318
1322
.clk_div_sel_num = WIZ_DIV_NUM_CLOCKS_10G ,
1319
1323
};
1320
1324
1325
+ static struct wiz_data j721s2_10g_data = {
1326
+ .type = J721S2_WIZ_10G ,
1327
+ .pll0_refclk_mux_sel = & pll0_refclk_mux_sel ,
1328
+ .pll1_refclk_mux_sel = & pll1_refclk_mux_sel ,
1329
+ .refclk_dig_sel = & refclk_dig_sel_10g ,
1330
+ .clk_mux_sel = clk_mux_sel_10g ,
1331
+ .clk_div_sel_num = WIZ_DIV_NUM_CLOCKS_10G ,
1332
+ };
1333
+
1321
1334
static const struct of_device_id wiz_id_table [] = {
1322
1335
{
1323
1336
.compatible = "ti,j721e-wiz-16g" , .data = & j721e_16g_data ,
@@ -1334,6 +1347,9 @@ static const struct of_device_id wiz_id_table[] = {
1334
1347
{
1335
1348
.compatible = "ti,j784s4-wiz-10g" , .data = & j784s4_10g_data ,
1336
1349
},
1350
+ {
1351
+ .compatible = "ti,j721s2-wiz-10g" , .data = & j721s2_10g_data ,
1352
+ },
1337
1353
{}
1338
1354
};
1339
1355
MODULE_DEVICE_TABLE (of , wiz_id_table );
0 commit comments