Default to CONFIG_LMB_LIMIT_DMA_BELOW_RAM_TOP=y when MEDIATEK_ETH is
enabled. The MediaTek Ethernet controller can only access the first 4GB
of RAM when DMA is used.

Signed-off-by: David Lechner <[email protected]>
---
 drivers/net/mtk_eth/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/mtk_eth/Kconfig b/drivers/net/mtk_eth/Kconfig
index 5d4e54ab90e..7d58f542bde 100644
--- a/drivers/net/mtk_eth/Kconfig
+++ b/drivers/net/mtk_eth/Kconfig
@@ -5,6 +5,7 @@ config MEDIATEK_ETH
        select PHYLIB
        select DM_GPIO
        select DM_RESET
+       select LMB_LIMIT_DMA_BELOW_RAM_TOP
        help
          This Driver support MediaTek Ethernet GMAC
          Say Y to enable support for the MediaTek Ethernet GMAC.

-- 
2.43.0

Reply via email to