• 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
..
bios_emulator Loading commit data...
block Loading commit data...
bootcount Loading commit data...
core Loading commit data...
cpu Loading commit data...
crypto Loading commit data...
ddr Loading commit data...
demo Loading commit data...
dfu Loading commit data...
dma Loading commit data...
fpga Loading commit data...
gpio Loading commit data...
hwmon Loading commit data...
i2c Loading commit data...
input Loading commit data...
memory Loading commit data...
misc Loading commit data...
mmc Loading commit data...
mtd Loading commit data...
net Loading commit data...
pci Loading commit data...
pcmcia Loading commit data...
power Loading commit data...
pwm Loading commit data...
qe Loading commit data...
rtc Loading commit data...
serial Loading commit data...
soc Loading commit data...
sound Loading commit data...
spi Loading commit data...
thermal Loading commit data...
tpm Loading commit data...
twserial Loading commit data...
usb Loading commit data...
video Loading commit data...
watchdog Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...