Skip to content

Commit 296c912

Browse files
stroesedavem330
authored andcommitted
net: ethernet: mediatek: Add MT7628/88 SoC support
This patch adds support for the MediaTek MT7628/88 SoCs to the common MediaTek ethernet driver. Some minor changes are needed for this and a bigger change, as the MT7628 does not support QDMA (only PDMA). Signed-off-by: Stefan Roese <[email protected]> Cc: René van Dorst <[email protected]> Cc: Daniel Golle <[email protected]> Cc: Sean Wang <[email protected]> Cc: John Crispin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 08df5fa commit 296c912

File tree

4 files changed

+425
-112
lines changed

4 files changed

+425
-112
lines changed

drivers/net/ethernet/mediatek/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
config NET_VENDOR_MEDIATEK
33
bool "MediaTek ethernet driver"
4-
depends on ARCH_MEDIATEK || SOC_MT7621
4+
depends on ARCH_MEDIATEK || SOC_MT7621 || SOC_MT7620
55
---help---
66
If you have a Mediatek SoC with ethernet, say Y.
77

drivers/net/ethernet/mediatek/mtk_eth_path.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ int mtk_setup_hw_path(struct mtk_eth *eth, int mac_id, int phymode)
315315
{
316316
int err;
317317

318+
/* No mux'ing for MT7628/88 */
319+
if (MTK_HAS_CAPS(eth->soc->caps, MTK_SOC_MT7628))
320+
return 0;
321+
318322
switch (phymode) {
319323
case PHY_INTERFACE_MODE_TRGMII:
320324
case PHY_INTERFACE_MODE_RGMII_TXID:

0 commit comments

Comments
 (0)