[PATCH 2/3] net: dwc_eth_qos_mtk: add mt8366 support

David Lechner <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <20260806-mtk-net-mt8366-support-v1-2-5eb259ff69dd__16571.1173134454$1786032954$gmane$org@baylibre.com>
Add a compatible string match and new PERI_ETH_BASE address for MT8366
targets.

Signed-off-by: David Lechner <[email protected]>
---
 drivers/net/dwc_eth_qos_mtk.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/dwc_eth_qos_mtk.c b/drivers/net/dwc_eth_qos_mtk.c
index a113870dc8a..b4ee9c12404 100644
--- a/drivers/net/dwc_eth_qos_mtk.c
+++ b/drivers/net/dwc_eth_qos_mtk.c
@@ -19,6 +19,7 @@
  * so add a SoC specific prefix.
  */
 #define MT8189_PERI_ETH_BASE		0x270
+#define MT8366_PERI_ETH_BASE		0x60
 
 #define MTK_PERI_ETH_CTRL0(base)	((base) + 0x0)
 #define MTK_PERI_ETH_CTRL1(base)	((base) + 0x4)
@@ -76,6 +77,10 @@ static const struct eqos_mtk_soc_data eqos_mtk_soc_data[] = {
 		.compatible = "mediatek,mt8189-gmac",
 		.peri_eth_base = MT8189_PERI_ETH_BASE,
 	},
+	{
+		.compatible = "mediatek,mt8366-gmac",
+		.peri_eth_base = MT8366_PERI_ETH_BASE,
+	},
 	{ }
 };
 

-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.