]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mmc: mtk-sd: select LMB_LIMIT_DMA_BELOW_RAM_TOP
authorDavid Lechner <dlechner@baylibre.com>
Mon, 15 Jun 2026 19:23:31 +0000 (14:23 -0500)
committerDavid Lechner <dlechner@baylibre.com>
Wed, 24 Jun 2026 15:06:16 +0000 (10:06 -0500)
Default to CONFIG_LMB_LIMIT_DMA_BELOW_RAM_TOP=y when CONFIG_MTK_SD is
enabled. The MediaTek SD controller can only access the first 4GB of RAM
when DMA is used. "imply" is used rather than "select" in case someone
want's to turn off the option when DMA is not used.

Link: https://patch.msgid.link/20260615-mtk-fix-ram-size-v2-1-f72cfc52ce58@baylibre.com
Signed-off-by: David Lechner <dlechner@baylibre.com>
drivers/mmc/Kconfig

index 24bd16ad5f3d1d93caef946b82ddfa476068bda0..6c513328de24e3d6340913b353ab41970a2df8e1 100644 (file)
@@ -858,6 +858,7 @@ config MMC_MTK
        bool "MediaTek SD/MMC Card Interface support"
        depends on ARCH_MEDIATEK || ARCH_MTMIPS || ARCH_AIROHA
        depends on OF_CONTROL
+       imply LMB_LIMIT_DMA_BELOW_RAM_TOP
        help
          This selects the MediaTek(R) Secure digital and Multimedia card Interface.
          If you have a machine with a integrated SD/MMC card reader, say Y here.