e6441ca706306c32d19812dbb0047d7e81a6101b
[firefly-linux-kernel-4.4.55.git] / drivers / mmc / host / Kconfig
1 #
2 # MMC/SD host controller drivers
3 #
4
5 comment "MMC/SD/SDIO Host Controller Drivers"
6
7 config EMMC_RK
8         tristate "RK emmc controller suppport"
9         depends on ARCH_RK3188 || ARCH_RK3066B || ARCH_RK3026
10         help
11                 This selects the RK EMMC controller
12
13 config SDMMC_RK29
14         tristate "RK29 SDMMC controller suppport"
15         depends on PLAT_RK
16         help
17                 This selects the RK29 SDMMC controller.
18                 SDMMC0 used for sd/mmc card, and SDMMC1 used for sdio.
19 if SDMMC_RK29
20     comment "Now, there are two SDMMC controllers selected, SDMMC0 and SDMMC1."
21         config SDMMC_RK29_OLD
22                 bool "Old driver (DEPRECATED)"
23                 help
24                          You will select old,origin driver for your project if you say Yes.
25                          It is not good to select the driver.
26
27         config SDMMC0_RK29
28                 tristate "RK29 SDMMC0 controller support(sdmmc)"
29                 default y
30                 help
31                         This supports the use of the SDMMC0 controller on Rk29 processors.
32                         
33         config SDMMC0_RK29_WRITE_PROTECT
34                 bool "Write-protect for SDMMC0"
35                 default n
36                 depends on SDMMC0_RK29
37                 help
38                          You will add the feature of write-protect for sdmmc-card if you say Yes.
39                          Please note that this feature requires hardware support.
40         
41         config SDMMC0_RK29_SDCARD_DET_FROM_GPIO
42         bool "use the gpio-interrupt to detect card"
43         default n
44         depends on SDMMC0_RK29
45             help
46                    You can detect the presence of card by the gpio-interrupt if you say Yes.
47                            Of course, you must define the pin-name for the detect-pin.
48
49                            If you say No, then detect the card by register interrupt.
50
51 #       config USE_SDMMC0_FOR_WIFI_DEVELOP_BOARD
52 #           depends on SDMMC0_RK29
53 #               bool "Switch the driver SDMMC0 for the debug of wifi_develop_board."
54 #               default n
55 #               help
56 #                       In order to debug the Wifi development board using SD interface,
57 #                       we can switch the driver SDMMC0.
58
59
60         config SDMMC1_RK29
61                 tristate "RK29 SDMMC1 controller support(sdio)"
62                 default y
63                 help
64                         This supports the use of the SDMMC1 controller on Rk29 processors.
65         config SDMMC1_RK29_WRITE_PROTECT
66                 bool "Write-protect for SDMMC1"
67                 default n
68                 depends on SDMMC1_RK29
69                 help
70                          You will add the feature of write-protect for sdio-card if you say Yes.
71                          Please note that this feature requires hardware support.
72                         
73        config  RK29_SDIO_IRQ_FROM_GPIO
74          bool "sdio-irq from gpio"
75          default n
76          depends on SDMMC1_RK29 && (BCM_OOB_ENABLED || MT6620)
77          help
78             You will generate sdio interrupt from gpio if you say Yes.
79             Please note that this feature requires hardware support.
80
81
82
83 #       config USE_SDMMC1_FOR_WIFI_DEVELOP_BOARD
84 #         depends on SDMMC1_RK29
85 #               bool "Switch the driver SDMMC1 for the debug of wifi_develop_board."
86 #               default n
87 #               help
88 #                       In order to debug the Wifi development board using SD interface,
89 #                       we can switch the driver SDMMC1.
90
91 endif
92
93 config MMC_ARMMMCI
94         tristate "ARM AMBA Multimedia Card Interface support"
95         depends on ARM_AMBA
96         help
97           This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card
98           Interface (PL180 and PL181) support.  If you have an ARM(R)
99           platform with a Multimedia Card slot, say Y or M here.
100
101           If unsure, say N.
102
103 config MMC_PXA
104         tristate "Intel PXA25x/26x/27x Multimedia Card Interface support"
105         depends on ARCH_PXA
106         help
107           This selects the Intel(R) PXA(R) Multimedia card Interface.
108           If you have a PXA(R) platform with a Multimedia Card slot,
109           say Y or M here.
110
111           If unsure, say N.
112
113 config MMC_SDHCI
114         tristate "Secure Digital Host Controller Interface support"
115         depends on HAS_DMA
116         help
117           This selects the generic Secure Digital Host Controller Interface.
118           It is used by manufacturers such as Texas Instruments(R), Ricoh(R)
119           and Toshiba(R). Most controllers found in laptops are of this type.
120
121           If you have a controller with this interface, say Y or M here. You
122           also need to enable an appropriate bus interface.
123
124           If unsure, say N.
125
126 config MMC_SDHCI_IO_ACCESSORS
127         bool
128         depends on MMC_SDHCI
129         help
130           This is silent Kconfig symbol that is selected by the drivers that
131           need to overwrite SDHCI IO memory accessors.
132
133 config MMC_SDHCI_BIG_ENDIAN_32BIT_BYTE_SWAPPER
134         bool
135         select MMC_SDHCI_IO_ACCESSORS
136         help
137           This option is selected by drivers running on big endian hosts
138           and performing I/O to a SDHCI controller through a bus that
139           implements a hardware byte swapper using a 32-bit datum.
140           This endian mapping mode is called "data invariance" and
141           has the effect of scrambling the addresses and formats of data
142           accessed in sizes other than the datum size.
143
144           This is the case for the Freescale eSDHC and Nintendo Wii SDHCI.
145
146 config MMC_SDHCI_PCI
147         tristate "SDHCI support on PCI bus"
148         depends on MMC_SDHCI && PCI
149         help
150           This selects the PCI Secure Digital Host Controller Interface.
151           Most controllers found today are PCI devices.
152
153           If you have a controller with this interface, say Y or M here.
154
155           If unsure, say N.
156
157 config MMC_RICOH_MMC
158         bool "Ricoh MMC Controller Disabler  (EXPERIMENTAL)"
159         depends on MMC_SDHCI_PCI
160         help
161           This adds a pci quirk to disable Ricoh MMC Controller. This
162           proprietary controller is unnecessary because the SDHCI driver
163           supports MMC cards on the SD controller, but if it is not
164           disabled, it will steal the MMC cards away - rendering them
165           useless. It is safe to select this even if you don't
166           have a Ricoh based card reader.
167
168           If unsure, say Y.
169
170 config MMC_SDHCI_OF
171         tristate "SDHCI support on OpenFirmware platforms"
172         depends on MMC_SDHCI && OF
173         help
174           This selects the OF support for Secure Digital Host Controller
175           Interfaces.
176
177           If unsure, say N.
178
179 config MMC_SDHCI_OF_ESDHC
180         bool "SDHCI OF support for the Freescale eSDHC controller"
181         depends on MMC_SDHCI_OF
182         depends on PPC_OF
183         select MMC_SDHCI_BIG_ENDIAN_32BIT_BYTE_SWAPPER
184         help
185           This selects the Freescale eSDHC controller support.
186
187           If unsure, say N.
188
189 config MMC_SDHCI_OF_HLWD
190         bool "SDHCI OF support for the Nintendo Wii SDHCI controllers"
191         depends on MMC_SDHCI_OF
192         depends on PPC_OF
193         select MMC_SDHCI_BIG_ENDIAN_32BIT_BYTE_SWAPPER
194         help
195           This selects the Secure Digital Host Controller Interface (SDHCI)
196           found in the "Hollywood" chipset of the Nintendo Wii video game
197           console.
198
199           If unsure, say N.
200
201 config MMC_SDHCI_PLTFM
202         tristate "SDHCI support on the platform specific bus"
203         depends on MMC_SDHCI
204         help
205           This selects the platform specific bus support for Secure Digital Host
206           Controller Interface.
207
208           If you have a controller with this interface, say Y or M here.
209
210           If unsure, say N.
211
212 config MMC_SDHCI_CNS3XXX
213         bool "SDHCI support on the Cavium Networks CNS3xxx SoC"
214         depends on ARCH_CNS3XXX
215         depends on MMC_SDHCI_PLTFM
216         help
217           This selects the SDHCI support for CNS3xxx System-on-Chip devices.
218
219           If unsure, say N.
220
221 config MMC_SDHCI_ESDHC_IMX
222         bool "SDHCI platform support for the Freescale eSDHC i.MX controller"
223         depends on MMC_SDHCI_PLTFM && (ARCH_MX25 || ARCH_MX35 || ARCH_MX5)
224         select MMC_SDHCI_IO_ACCESSORS
225         help
226           This selects the Freescale eSDHC controller support on the platform
227           bus, found on platforms like mx35/51.
228
229           If unsure, say N.
230
231 config MMC_SDHCI_DOVE
232         bool "SDHCI support on Marvell's Dove SoC"
233         depends on ARCH_DOVE
234         depends on MMC_SDHCI_PLTFM
235         select MMC_SDHCI_IO_ACCESSORS
236         help
237           This selects the Secure Digital Host Controller Interface in
238           Marvell's Dove SoC.
239
240           If unsure, say N.
241
242 config MMC_SDHCI_TEGRA
243         bool "SDHCI platform support for the Tegra SD/MMC Controller"
244         depends on MMC_SDHCI_PLTFM && ARCH_TEGRA
245         select MMC_SDHCI_IO_ACCESSORS
246         help
247           This selects the Tegra SD/MMC controller. If you have a Tegra
248           platform with SD or MMC devices, say Y or M here.
249
250           If unsure, say N.
251
252 config MMC_SDHCI_S3C
253         tristate "SDHCI support on Samsung S3C SoC"
254         depends on MMC_SDHCI && PLAT_SAMSUNG
255         help
256           This selects the Secure Digital Host Controller Interface (SDHCI)
257           often referrered to as the HSMMC block in some of the Samsung S3C
258           range of SoC.
259
260           Note, due to the problems with DMA, the DMA support is only
261           available with CONFIG_EXPERIMENTAL is selected.
262
263           If you have a controller with this interface, say Y or M here.
264
265           If unsure, say N.
266
267 config MMC_SDHCI_PXA
268         tristate "Marvell PXA168/PXA910/MMP2 SD Host Controller support"
269         depends on ARCH_PXA || ARCH_MMP
270         select MMC_SDHCI
271         select MMC_SDHCI_IO_ACCESSORS
272         help
273           This selects the Marvell(R) PXA168/PXA910/MMP2 SD Host Controller.
274           If you have a PXA168/PXA910/MMP2 platform with SD Host Controller
275           and a card slot, say Y or M here.
276
277           If unsure, say N.
278
279 config MMC_SDHCI_SPEAR
280         tristate "SDHCI support on ST SPEAr platform"
281         depends on MMC_SDHCI && PLAT_SPEAR
282         help
283           This selects the Secure Digital Host Controller Interface (SDHCI)
284           often referrered to as the HSMMC block in some of the ST SPEAR range
285           of SoC
286
287           If you have a controller with this interface, say Y or M here.
288
289           If unsure, say N.
290
291 config MMC_SDHCI_S3C_DMA
292         bool "DMA support on S3C SDHCI"
293         depends on MMC_SDHCI_S3C && EXPERIMENTAL
294         help
295           Enable DMA support on the Samsung S3C SDHCI glue. The DMA
296           has proved to be problematic if the controller encounters
297           certain errors, and thus should be treated with care.
298
299           YMMV.
300
301 config MMC_OMAP
302         tristate "TI OMAP Multimedia Card Interface support"
303         depends on ARCH_OMAP
304         select TPS65010 if MACH_OMAP_H2
305         help
306           This selects the TI OMAP Multimedia card Interface.
307           If you have an OMAP board with a Multimedia Card slot,
308           say Y or M here.
309
310           If unsure, say N.
311
312 config MMC_OMAP_HS
313         tristate "TI OMAP High Speed Multimedia Card Interface support"
314         depends on SOC_OMAP2430 || ARCH_OMAP3 || ARCH_OMAP4
315         help
316           This selects the TI OMAP High Speed Multimedia card Interface.
317           If you have an OMAP2430 or OMAP3 board or OMAP4 board with a
318           Multimedia Card slot, say Y or M here.
319
320           If unsure, say N.
321
322 config MMC_WBSD
323         tristate "Winbond W83L51xD SD/MMC Card Interface support"
324         depends on ISA_DMA_API
325         help
326           This selects the Winbond(R) W83L51xD Secure digital and
327           Multimedia card Interface.
328           If you have a machine with a integrated W83L518D or W83L519D
329           SD/MMC card reader, say Y or M here.
330
331           If unsure, say N.
332
333 config MMC_AU1X
334         tristate "Alchemy AU1XX0 MMC Card Interface support"
335         depends on SOC_AU1200
336         help
337           This selects the AMD Alchemy(R) Multimedia card interface.
338           If you have a Alchemy platform with a MMC slot, say Y or M here.
339
340           If unsure, say N.
341
342 choice
343         prompt "Atmel SD/MMC Driver"
344         depends on AVR32 || ARCH_AT91
345         default MMC_ATMELMCI if AVR32
346         help
347           Choose which driver to use for the Atmel MCI Silicon
348
349 config MMC_AT91
350         tristate "AT91 SD/MMC Card Interface support"
351         depends on ARCH_AT91
352         help
353           This selects the AT91 MCI controller.
354
355           If unsure, say N.
356
357 config MMC_ATMELMCI
358         tristate "Atmel Multimedia Card Interface support"
359         depends on AVR32 || ARCH_AT91
360         help
361           This selects the Atmel Multimedia Card Interface driver. If
362           you have an AT32 (AVR32) or AT91 platform with a Multimedia
363           Card slot, say Y or M here.
364
365           If unsure, say N.
366
367 endchoice
368
369 config MMC_ATMELMCI_DMA
370         bool "Atmel MCI DMA support (EXPERIMENTAL)"
371         depends on MMC_ATMELMCI && (AVR32 || ARCH_AT91SAM9G45) && DMA_ENGINE && EXPERIMENTAL
372         help
373           Say Y here to have the Atmel MCI driver use a DMA engine to
374           do data transfers and thus increase the throughput and
375           reduce the CPU utilization. Note that this is highly
376           experimental and may cause the driver to lock up.
377
378           If unsure, say N.
379
380 config MMC_IMX
381         tristate "Motorola i.MX Multimedia Card Interface support"
382         depends on ARCH_MX1
383         help
384           This selects the Motorola i.MX Multimedia card Interface.
385           If you have a i.MX platform with a Multimedia Card slot,
386           say Y or M here.
387
388           If unsure, say N.
389
390 config MMC_MSM
391         tristate "Qualcomm SDCC Controller Support"
392         depends on MMC && ARCH_MSM
393         help
394           This provides support for the SD/MMC cell found in the
395           MSM and QSD SOCs from Qualcomm. The controller also has
396           support for SDIO devices.
397
398 config MMC_MXC
399         tristate "Freescale i.MX2/3 Multimedia Card Interface support"
400         depends on MACH_MX21 || MACH_MX27 || ARCH_MX31
401         help
402           This selects the Freescale i.MX2/3 Multimedia card Interface.
403           If you have a i.MX platform with a Multimedia Card slot,
404           say Y or M here.
405
406           If unsure, say N.
407
408 config MMC_MXS
409         tristate "Freescale MXS Multimedia Card Interface support"
410         depends on ARCH_MXS && MXS_DMA
411         help
412           This selects the Freescale SSP MMC controller found on MXS based
413           platforms like mx23/28.
414
415           If unsure, say N.
416
417 config MMC_TIFM_SD
418         tristate "TI Flash Media MMC/SD Interface support  (EXPERIMENTAL)"
419         depends on EXPERIMENTAL && PCI
420         select TIFM_CORE
421         help
422           Say Y here if you want to be able to access MMC/SD cards with
423           the Texas Instruments(R) Flash Media card reader, found in many
424           laptops.
425           This option 'selects' (turns on, enables) 'TIFM_CORE', but you
426           probably also need appropriate card reader host adapter, such as
427           'Misc devices: TI Flash Media PCI74xx/PCI76xx host adapter support
428           (TIFM_7XX1)'.
429
430           To compile this driver as a module, choose M here: the
431           module will be called tifm_sd.
432
433 config MMC_MVSDIO
434         tristate "Marvell MMC/SD/SDIO host driver"
435         depends on PLAT_ORION
436         ---help---
437           This selects the Marvell SDIO host driver.
438           SDIO may currently be found on the Kirkwood 88F6281 and 88F6192
439           SoC controllers.
440
441           To compile this driver as a module, choose M here: the
442           module will be called mvsdio.
443
444 config MMC_DAVINCI
445         tristate "TI DAVINCI Multimedia Card Interface support"
446         depends on ARCH_DAVINCI
447         help
448           This selects the TI DAVINCI Multimedia card Interface.
449           If you have an DAVINCI board with a Multimedia Card slot,
450           say Y or M here.  If unsure, say N.
451
452 config MMC_SPI
453         tristate "MMC/SD/SDIO over SPI"
454         depends on SPI_MASTER && !HIGHMEM && HAS_DMA
455         select CRC7
456         select CRC_ITU_T
457         help
458           Some systems access MMC/SD/SDIO cards using a SPI controller
459           instead of using a "native" MMC/SD/SDIO controller.  This has a
460           disadvantage of being relatively high overhead, but a compensating
461           advantage of working on many systems without dedicated MMC/SD/SDIO
462           controllers.
463
464           If unsure, or if your system has no SPI master driver, say N.
465
466 config MMC_S3C
467         tristate "Samsung S3C SD/MMC Card Interface support"
468         depends on ARCH_S3C2410
469         help
470           This selects a driver for the MCI interface found in
471           Samsung's S3C2410, S3C2412, S3C2440, S3C2442 CPUs.
472           If you have a board based on one of those and a MMC/SD
473           slot, say Y or M here.
474
475           If unsure, say N.
476
477 config MMC_S3C_HW_SDIO_IRQ
478        bool "Hardware support for SDIO IRQ"
479        depends on MMC_S3C
480        help
481          Enable the hardware support for SDIO interrupts instead of using
482          the generic polling code.
483
484 choice
485         prompt "Samsung S3C SD/MMC transfer code"
486         depends on MMC_S3C
487
488 config MMC_S3C_PIO
489         bool "Use PIO transfers only"
490         help
491           Use PIO to transfer data between memory and the hardware.
492
493           PIO is slower than DMA as it requires CPU instructions to
494           move the data. This has been the traditional default for
495           the S3C MCI driver.
496
497 config MMC_S3C_DMA
498         bool "Use DMA transfers only (EXPERIMENTAL)"
499         depends on EXPERIMENTAL
500         help
501           Use DMA to transfer data between memory and the hardare.
502
503           Currently, the DMA support in this driver seems to not be
504           working properly and needs to be debugged before this
505           option is useful.
506
507 config MMC_S3C_PIODMA
508         bool "Support for both PIO and DMA (EXPERIMENTAL)"
509         help
510           Compile both the PIO and DMA transfer routines into the
511           driver and let the platform select at run-time which one
512           is best.
513
514           See notes for the DMA option.
515
516 endchoice
517
518 config MMC_SDRICOH_CS
519         tristate "MMC/SD driver for Ricoh Bay1Controllers (EXPERIMENTAL)"
520         depends on EXPERIMENTAL && PCI && PCMCIA
521         help
522           Say Y here if your Notebook reports a Ricoh Bay1Controller PCMCIA
523           card whenever you insert a MMC or SD card into the card slot.
524
525           To compile this driver as a module, choose M here: the
526           module will be called sdricoh_cs.
527
528 config MMC_TMIO_CORE
529         tristate
530
531 config MMC_TMIO
532         tristate "Toshiba Mobile IO Controller (TMIO) MMC/SD function support"
533         depends on MFD_TMIO || MFD_ASIC3
534         select MMC_TMIO_CORE
535         help
536           This provides support for the SD/MMC cell found in TC6393XB,
537           T7L66XB and also HTC ASIC3
538
539 config MMC_SDHI
540         tristate "SH-Mobile SDHI SD/SDIO controller support"
541         depends on SUPERH || ARCH_SHMOBILE
542         select MMC_TMIO_CORE
543         help
544           This provides support for the SDHI SD/SDIO controller found in
545           SuperH and ARM SH-Mobile SoCs
546
547 config MMC_CB710
548         tristate "ENE CB710 MMC/SD Interface support"
549         depends on PCI
550         select MISC_DEVICES
551         select CB710_CORE
552         help
553           This option enables support for MMC/SD part of ENE CB710/720 Flash
554           memory card reader found in some laptops (ie. some versions of
555           HP Compaq nx9500).
556
557           This driver can also be built as a module. If so, the module
558           will be called cb710-mmc.
559
560 config MMC_VIA_SDMMC
561         tristate "VIA SD/MMC Card Reader Driver"
562         depends on PCI
563         help
564           This selects the VIA SD/MMC Card Reader driver, say Y or M here.
565           VIA provides one multi-functional card reader which integrated into
566           some motherboards manufactured by VIA. This card reader supports
567           SD/MMC/SDHC.
568           If you have a controller with this interface, say Y or M here.
569
570           If unsure, say N.
571
572 config SDH_BFIN
573         tristate "Blackfin Secure Digital Host support"
574         depends on (BF54x && !BF544) || (BF51x && !BF512)
575         help
576           If you say yes here you will get support for the Blackfin on-chip
577           Secure Digital Host interface.  This includes support for MMC and
578           SD cards.
579
580           To compile this driver as a module, choose M here: the
581           module will be called bfin_sdh.
582
583           If unsure, say N.
584
585 config SDH_BFIN_MISSING_CMD_PULLUP_WORKAROUND
586         bool "Blackfin EZkit Missing SDH_CMD Pull Up Resistor Workaround"
587         depends on SDH_BFIN
588         help
589           If you say yes here SD-Cards may work on the EZkit.
590
591 config MMC_DW
592         tristate "Synopsys DesignWare Memory Card Interface"
593         depends on ARM
594         help
595           This selects support for the Synopsys DesignWare Mobile Storage IP
596           block, this provides host support for SD and MMC interfaces, in both
597           PIO and external DMA modes.
598
599 config MMC_DW_IDMAC
600         bool "Internal DMAC interface"
601         depends on MMC_DW
602         help
603           This selects support for the internal DMAC block within the Synopsys
604           Designware Mobile Storage IP block. This disables the external DMA
605           interface.
606
607 config MMC_SH_MMCIF
608         tristate "SuperH Internal MMCIF support"
609         depends on MMC_BLOCK && (SUPERH || ARCH_SHMOBILE)
610         help
611           This selects the MMC Host Interface controller (MMCIF).
612
613           This driver supports MMCIF in sh7724/sh7757/sh7372.
614
615 config MMC_JZ4740
616         tristate "JZ4740 SD/Multimedia Card Interface support"
617         depends on MACH_JZ4740
618         help
619           This selects support for the SD/MMC controller on Ingenic JZ4740
620           SoCs.
621           If you have a board based on such a SoC and with a SD/MMC slot,
622           say Y or M here.
623
624 config MMC_VUB300
625         tristate "VUB300 USB to SDIO/SD/MMC Host Controller support"
626         depends on USB
627         help
628           This selects support for Elan Digital Systems' VUB300 chip.
629
630           The VUB300 is a USB-SDIO Host Controller Interface chip
631           that enables the host computer to use SDIO/SD/MMC cards
632           via a USB 2.0 or USB 1.1 host.
633
634           The VUB300 chip will be found in both physically separate
635           USB to SDIO/SD/MMC adapters and embedded on some motherboards.
636
637           The VUB300 chip supports SD and MMC memory cards in addition
638           to single and multifunction SDIO cards.
639
640           Some SDIO cards will need a firmware file to be loaded and
641           sent to VUB300 chip in order to achieve better data throughput.
642           Download these "Offload Pseudocode" from Elan Digital Systems'
643           web-site http://www.elandigitalsystems.com/support/downloads.php
644           and put them in /lib/firmware. Note that without these additional
645           firmware files the VUB300 chip will still function, but not at
646           the best obtainable data rate.
647
648           To compile this mmc host controller driver as a module,
649           choose M here: the module will be called vub300.
650
651           If you have a computer with an embedded VUB300 chip
652           or if you intend connecting a USB adapter based on a
653           VUB300 chip say Y or M here.
654
655 config MMC_USHC
656         tristate "USB SD Host Controller (USHC) support"
657         depends on USB
658         help
659           This selects support for USB SD Host Controllers based on
660           the Cypress Astoria chip with firmware compliant with CSR's
661           USB SD Host Controller specification (CS-118793-SP).
662
663           CSR boards with this device include: USB<>SDIO (M1985v2),
664           and Ultrasira.
665
666           Note: These controllers only support SDIO cards and do not
667           support MMC or SD memory cards.