[][kernel][mt7988][eth][Add FE_CDM7_FSM and FE_GDM3_FSM to the dbg_regs command]
[Description]
Add FE_CDM7_FSM and FE_GDM3_FSM to the dbg_regs command.
Without this patch, users are unable to retrieve the values of
FE_CDM7_FSM and FE_GDM3_FSM using the dbg_regs command.
[Release-log]
N/A
Change-Id: Ib0a42f49e11c2e9cc7966d67f33b755dc6b5af3d
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8456056
diff --git a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_dbg.c b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_dbg.c
index e50e1ac..487fbd1 100755
--- a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_dbg.c
+++ b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_dbg.c
@@ -1093,10 +1093,14 @@
mtk_r32(eth, MTK_FE_CDM5_FSM));
seq_printf(seq, "| FE_CDM6_FSM : %08x |\n",
mtk_r32(eth, MTK_FE_CDM6_FSM));
+ seq_printf(seq, "| FE_CDM7_FSM : %08x |\n",
+ mtk_r32(eth, MTK_FE_CDM7_FSM));
seq_printf(seq, "| FE_GDM1_FSM : %08x |\n",
mtk_r32(eth, MTK_FE_GDM1_FSM));
seq_printf(seq, "| FE_GDM2_FSM : %08x |\n",
mtk_r32(eth, MTK_FE_GDM2_FSM));
+ seq_printf(seq, "| FE_GDM3_FSM : %08x |\n",
+ mtk_r32(eth, MTK_FE_GDM3_FSM));
seq_printf(seq, "| SGMII_EFUSE : %08x |\n",
mtk_dbg_r32(MTK_SGMII_EFUSE));
seq_printf(seq, "| SGMII0_RX_CNT : %08x |\n",
diff --git a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_dbg.h b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_dbg.h
index 3e7c137..8875f82 100755
--- a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_dbg.h
+++ b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_dbg.h
@@ -26,6 +26,7 @@
#define MTK_FE_CDM4_FSM 0x298
#define MTK_FE_CDM5_FSM 0x318
#define MTK_FE_CDM6_FSM 0x328
+#define MTK_FE_CDM7_FSM 0x338
#define MTK_FE_GDM1_FSM 0x228
#define MTK_FE_GDM2_FSM 0x22C
#define MTK_FE_GDM3_FSM 0x23C