arm: dts: socfpga: enforce MMC fifo-mode for high-memory access
PATCH 1/1 arm: dts: socfpga: enforce MMC fifo-mode for high-memory access
From: Dinesh Maniyam <[email protected]>
DMA-based MMC transfers are limited to a 32-bit address space and can fail when buffers are placed outside low memory. Enabling fifo-mode disables DMA and allows U-Boot to reliably access MMC data from both low and high DDR addresses using CPU-driven FIFO transfers.
This avoids future failures as the .wic image size has already reached the current threshold and is expected to grow further, requiring increased use of high-memory load addresses.
Applying this at the SoC DTSI level enforces consistent behavior across all SoCFPGA-based products that uses the dw-mmc driver
and ensures reliable MMC access as image sizes increase
and high-memory buffer usage becomes unavoidable.
--- arch/arm/dts/socfpga-common-u-boot.dtsi | 4 ++++ arch/arm/dts/socfpga_agilex-u-boot.dtsi | 1 + arch/arm/dts/socfpga_arria10-u-boot.dtsi | 4 ++++ arch/arm/dts/socfpga_arria10_chameleonv3.dtsi | 1 + arch/arm/dts/socfpga_arria10_mercury_aa1.dtsi | 1 + arch/arm/dts/socfpga_n5x-u-boot.dtsi | 1 + arch/arm/dts/socfpga_stratix10-u-boot.dtsi | 4 ++++ 7 files changed, 16 insertions(+)
arch/arm/dts/socfpga-common-u-boot.dtsi +4 -0
@@ -33,3 +33,7 @@ &sysmgr { bootph-all; }; + +&mmc { + fifo-mode; +};
arch/arm/dts/socfpga_agilex-u-boot.dtsi +1 -0
@@ -104,6 +104,7 @@ &mmc { resets = <&rst SDMMC_RESET>, <&rst SDMMC_OCP_RESET>; + fifo-mode; }; &porta {
arch/arm/dts/socfpga_arria10-u-boot.dtsi +4 -0
@@ -53,6 +53,10 @@ altr,sysmgr-syscon = <&sysmgr 0x4C 0>; }; +&mmc { + fifo-mode; +}; + &i2c0 { reset-names = "i2c"; };
arch/arm/dts/socfpga_arria10_chameleonv3.dtsi +1 -0
@@ -73,6 +73,7 @@ }; &mmc { + fifo-mode; status = "okay"; };
arch/arm/dts/socfpga_arria10_mercury_aa1.dtsi +1 -0
@@ -65,6 +65,7 @@ cap-sd-highspeed; broken-cd; bus-width = <4>; + fifo-mode; }; &osc1 {
arch/arm/dts/socfpga_n5x-u-boot.dtsi +1 -0
@@ -92,6 +92,7 @@ clocks = <&clkmgr N5X_L4_MP_CLK>, <&clkmgr N5X_SDMMC_CLK>; resets = <&rst SDMMC_RESET>, <&rst SDMMC_OCP_RESET>; + fifo-mode; }; &pdma {
arch/arm/dts/socfpga_stratix10-u-boot.dtsi +4 -0
@@ -6,3 +6,7 @@ */ #include "socfpga_soc64_fit-u-boot.dtsi" + +&mmc { + fifo-mode; +};
base-commit: 70fd0c3bb7c26d42f24d10145dd5f3168ac92eac
Signature · 1 line
2.43.7