u-boot/drivers
Stephen Warren 84d35b2863 common: rework bouncebuf implementation
The current bouncebuf API requires all parameters to be passed to both
bounce_buffer_start() and bounce_buffer_stop(). Modify the bouncebuf
start function to accept a state structure as a parameter, and only
require that state struct to be passed to the stop function. This
simplifies usage of the bounce buffer by clients.

Don't modify the data pointer, but rather store the temporary buffer in
this state struct. The bouncebuf code ensures that client code can
always use a single buffer pointer in the state structure, irrespective
of whether a bounce buffer actually had to be allocated.

Move cache management logic into the bounce buffer code, so that each
client doesn't have to duplicate this. I believe there's no need to
invalidate the buffer before a DMA operation, since flushing the cache
should prevent any write-backs.

Update the MXS MMC driver for this change.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Andy Fleming <afleming@freescale.com>
2012-11-27 17:26:48 -06:00
..
bios_emulator Add abs() macro to return absolute value 2012-05-15 08:31:37 +02:00
block drivers/block/: sparse fixes 2012-11-04 11:00:37 -07:00
bootcount Consolidate bootcount code into drivers/bootcount 2012-09-01 14:26:02 +02:00
dfu dfu:usb:fix: Read the "filesize" environment variable only when file read 2012-09-21 00:05:00 +02:00
dma MX28: DMA: Prolong the DMA timeout 2012-09-01 14:58:29 +02:00
fpga FPGA: Cyclon II: Correctly reset the FPGA before configuration 2012-10-29 14:21:20 -07:00
gpio drivers/gpio/mpc83xx_gpio.c: sparse fixes 2012-11-04 11:00:37 -07:00
hwmon hwmon: do not init sensors on startup 2011-08-04 23:30:38 +02:00
i2c Merge branch 'master' of git://git.denx.de/u-boot-arm 2012-10-26 15:44:31 -07:00
input drivers/input/input.c: sparse fix 2012-11-04 11:00:37 -07:00
misc powerpc/mpc8xxx: move LAW code into arch/powerpc/cpu/mpc8xxx 2012-11-26 15:41:22 -06:00
mmc common: rework bouncebuf implementation 2012-11-27 17:26:48 -06:00
mtd nand: Add torture feature 2012-11-26 15:41:29 -06:00
net drivers/net/: sparse fixes 2012-11-04 11:00:36 -07:00
pci powerpc/boot: Change the compile macro for SRIO & PCIE boot master module 2012-10-22 15:52:46 -05:00
pcmcia PXA: Remove PXA PCMCIA support 2012-03-26 23:09:23 +02:00
power power:pmic: Rename CONFIG_DIALOG_PMIC defines to CONFIG_DIALOG_POWER 2012-11-14 11:21:12 +01:00
qe mpc83xx: add support for mpc8309 2012-10-23 15:23:26 -05:00
rtc pmic: Extend PMIC framework to support multiple instances of PMIC devices 2012-11-14 11:21:09 +01:00
serial serial/ns16550: wait for TEMT before initializing 2012-11-26 15:41:20 -06:00
spi Merge remote-tracking branch 'u-boot-ti/master' 2012-10-26 07:00:28 +02:00
tpm Introduce generic TPM support in u-boot 2011-12-07 08:45:51 +01:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb Remove obsolete header file 2012-11-27 09:41:10 -07:00
video Video: fix compiler warnings in bus_vcxk 2012-11-14 12:27:49 +01:00
watchdog dm: wdt: arm: Move tnetv107x into drivers/watchdog/ 2012-10-18 06:52:02 +02:00