• Stefan Roese's avatar
    mmc: sdhci.c: Add config option to use a fixed buffer for transfers · 492d3223
    Stefan Roese authored
    While implementing SDIO/MMC SPL booting for the Marvell Armada 38x, the
    following problem occured. The SPL runs in internal SRAM which is
    the L2 cache locked to memory. When the MMC buffers now are located
    on the stack (or bss), the SDIO controller (SDHCI) can't write into
    this L2 cache memory.
    
    This patch introduces a method to use a fixed buffer that will be
    used for all transfers by defining CONFIG_FIXED_SDHCI_ALIGNED_BUFFER.
    This way, the board can use this buffer address located in SDRAM
    for all transfers. This solves this SPL problem on the A38x and
    should only be used in the SPL U-Boot version.
    
    Tested for SPL booting on Marvell Armada 38x DB-88F6820-GP board.
    Signed-off-by: default avatarStefan Roese <sr@denx.de>
    Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
    Cc: Luka Perkov <luka.perkov@sartura.hr>
    492d3223
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
arm_pl180_mmci.c Loading commit data...
arm_pl180_mmci.h Loading commit data...
bcm2835_sdhci.c Loading commit data...
bfin_sdh.c Loading commit data...
davinci_mmc.c Loading commit data...
dw_mmc.c Loading commit data...
exynos_dw_mmc.c Loading commit data...
fsl_esdhc.c Loading commit data...
fsl_esdhc_spl.c Loading commit data...
ftsdc010_mci.c Loading commit data...
ftsdc021_sdhci.c Loading commit data...
gen_atmel_mci.c Loading commit data...
kona_sdhci.c Loading commit data...
mmc.c Loading commit data...
mmc_private.h Loading commit data...
mmc_spi.c Loading commit data...
mmc_write.c Loading commit data...
mv_sdhci.c Loading commit data...
mvebu_mmc.c Loading commit data...
mxcmmc.c Loading commit data...
mxsmmc.c Loading commit data...
omap_hsmmc.c Loading commit data...
pci_mmc.c Loading commit data...
pxa_mmc_gen.c Loading commit data...
rpmb.c Loading commit data...
s3c_sdi.c Loading commit data...
s5p_sdhci.c Loading commit data...
sdhci.c Loading commit data...
sh_mmcif.c Loading commit data...
sh_mmcif.h Loading commit data...
sh_sdhi.c Loading commit data...
socfpga_dw_mmc.c Loading commit data...
spear_sdhci.c Loading commit data...
sunxi_mmc.c Loading commit data...
tegra_mmc.c Loading commit data...
zynq_sdhci.c Loading commit data...