[][kernel][mt7988][eth][Update USXGMII PHYA setting for the SFP+]
[Description]
Change USXGMII PHYA setting for the SFP+.
If without this patch, the USXGMII may not achieve optimal performance.
[Release-log]
N/A
Change-Id: I15d3d92bcf2f9b6cccfd9f56b017233a52fee961
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7514397
diff --git a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_usxgmii.c b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_usxgmii.c
index fe06c2e..1bc4912 100644
--- a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_usxgmii.c
+++ b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_usxgmii.c
@@ -489,13 +489,16 @@
regmap_update_bits(mpcs->regmap_pextp, 0x50B4, GENMASK(31, 0),
0x06100600);
regmap_update_bits(mpcs->regmap_pextp, 0x3048, GENMASK(31, 0),
- 0x49664100);
+ 0x47684100);
regmap_update_bits(mpcs->regmap_pextp, 0x3050, GENMASK(31, 0),
0x00000000);
regmap_update_bits(mpcs->regmap_pextp, 0x3054, GENMASK(31, 0),
0x00000000);
regmap_update_bits(mpcs->regmap_pextp, 0x306C, GENMASK(31, 0),
0x00000F00);
+ if (mpcs->id == 0)
+ regmap_update_bits(mpcs->regmap_pextp, 0xA008, GENMASK(31, 0),
+ 0x0007B400);
regmap_update_bits(mpcs->regmap_pextp, 0xA060, GENMASK(31, 0),
0x00040000);
regmap_update_bits(mpcs->regmap_pextp, 0x90D0, GENMASK(31, 0),