]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
mmc: sdhci.c: Add config option to use a fixed buffer for transfers
authorStefan Roese <sr@denx.de>
Mon, 29 Jun 2015 12:58:09 +0000 (14:58 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:29:20 +0000 (13:29 +0200)
commit510478d8f08adbbaba05432234db572030552448
treeaf357801d94203c6129cc177359e1f730e09bd71
parentb2175df29c444b23eb56114eaca5f9fbfde4eebc
mmc: sdhci.c: Add config option to use a fixed buffer for transfers

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: Stefan Roese <sr@denx.de>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Luka Perkov <luka.perkov@sartura.hr>
drivers/mmc/sdhci.c