Skip to content

Commit e2f64db

Browse files
Sujuan ChenPaolo Abeni
authored andcommitted
net: ethernet: mtk_wed: introduce WED support for MT7988
Similar to MT7986 and MT7622, enable Wireless Ethernet Ditpatcher for MT7988 in order to offload traffic forwarded from LAN/WLAN to WLAN/LAN Co-developed-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Sujuan Chen <sujuan.chen@mediatek.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 9ae7eca commit e2f64db

File tree

9 files changed

+603
-140
lines changed

9 files changed

+603
-140
lines changed

drivers/net/ethernet/mediatek/mtk_eth_soc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ static const struct mtk_reg_map mt7988_reg_map = {
197197
.wdma_base = {
198198
[0] = 0x4800,
199199
[1] = 0x4c00,
200+
[2] = 0x5000,
200201
},
201202
.pse_iq_sta = 0x0180,
202203
.pse_oq_sta = 0x01a0,

drivers/net/ethernet/mediatek/mtk_eth_soc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ struct mtk_reg_map {
11321132
u32 gdm1_cnt;
11331133
u32 gdma_to_ppe;
11341134
u32 ppe_base;
1135-
u32 wdma_base[2];
1135+
u32 wdma_base[3];
11361136
u32 pse_iq_sta;
11371137
u32 pse_oq_sta;
11381138
};

drivers/net/ethernet/mediatek/mtk_ppe_offload.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ mtk_flow_set_output_device(struct mtk_eth *eth, struct mtk_foe_entry *foe,
201201
case 1:
202202
pse_port = PSE_WDMA1_PORT;
203203
break;
204+
case 2:
205+
pse_port = PSE_WDMA2_PORT;
206+
break;
204207
default:
205208
return -EINVAL;
206209
}

0 commit comments

Comments
 (0)