aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/Kconfig
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2009-10-01 18:44:18 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-10-01 19:11:15 -0400
commit26f14947dbf31d60d1a67eee837a6d28c1e8830d (patch)
treee54c009f30d9df49bb2c421eeafec266d67be720 /drivers/mmc/host/Kconfig
parentc225889375fea2a542f1c9dedffec4c7b8ebc9ab (diff)
s3cmci: Kconfig selection for PIO/DMA/Both
Add a selection for the data transfer mode of the s3cmci driver, allowing for either a configuration or rumtime selection of the use of the DMA or PIO transfer code. The PIO only mode is 476 bytes smaller than the driver with both methods compiled in. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Cc: <linux-mmc@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mmc/host/Kconfig')
-rw-r--r--drivers/mmc/host/Kconfig34
1 files changed, 34 insertions, 0 deletions
diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
index 7cb057f3f883..cf6a6545240b 100644
--- a/drivers/mmc/host/Kconfig
+++ b/drivers/mmc/host/Kconfig
@@ -276,6 +276,40 @@ config MMC_S3C
276 276
277 If unsure, say N. 277 If unsure, say N.
278 278
279choice
280 prompt "Samsung S3C SD/MMC transfer code"
281 depends on MMC_S3C
282
283config MMC_S3C_PIO
284 bool "Use PIO transfers only"
285 help
286 Use PIO to transfer data between memory and the hardware.
287
288 PIO is slower than DMA as it requires CPU instructions to
289 move the data. This has been the traditional default for
290 the S3C MCI driver.
291
292config MMC_S3C_DMA
293 bool "Use DMA transfers only (EXPERIMENTAL)"
294 depends on EXPERIMENTAL
295 help
296 Use DMA to transfer data between memory and the hardare.
297
298 Currently, the DMA support in this driver seems to not be
299 working properly and needs to be debugged before this
300 option is useful.
301
302config MMC_S3C_PIODMA
303 bool "Support for both PIO and DMA (EXPERIMENTAL)"
304 help
305 Compile both the PIO and DMA transfer routines into the
306 driver and let the platform select at run-time which one
307 is best.
308
309 See notes for the DMA option.
310
311endchoice
312
279config MMC_SDRICOH_CS 313config MMC_SDRICOH_CS
280 tristate "MMC/SD driver for Ricoh Bay1Controllers (EXPERIMENTAL)" 314 tristate "MMC/SD driver for Ricoh Bay1Controllers (EXPERIMENTAL)"
281 depends on EXPERIMENTAL && PCI && PCMCIA 315 depends on EXPERIMENTAL && PCI && PCMCIA