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

Reply via email to