Commit 2725fc2e authored by Huacai Chen's avatar Huacai Chen Committed by Jakub Kicinski
Browse files

net: stmmac: dwmac-loongson: Add new multi-chan IP core support



Add a new multi-chan IP core (0x12) support which is used in Loongson-
2K3000/Loongson-3B6000M. Compared with the 0x10 core, the new 0x12 core
reduces channel numbers from 8 to 4, but checksum is supported for all
channels.

Add a "multichan" flag to loongson_data, so that we can simply use a
"if (ld->multichan)" condition rather than the complicated condition
"if (ld->loongson_id == DWMAC_CORE_MULTICHAN_V1 || ld->loongson_id ==
DWMAC_CORE_MULTICHAN_V2)".

Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Tested-by: default avatarHenry Chen <chenx97@aosc.io>
Tested-by: default avatarBiao Dong <dongbiao@loongson.cn>
Signed-off-by: default avatarBaoqi Zhang <zhangbaoqi@loongson.cn>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
Reviewed-by: default avatarYanteng Si <si.yanteng@linux.dev>
Link: https://patch.msgid.link/20250424072209.3134762-3-chenhuacai@loongson.cn


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent e527e891
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment