blob: c5e1a1b098176d9a1a1f96890bfcaa43c8e0285b [file] [log] [blame]
Nobuhiro Iwamatsu3ec5f862014-12-17 08:03:00 +09001menu "MMC Host controller Support"
2
Maxime Ripard4f780742015-10-15 22:04:05 +02003config MMC
Masahiro Yamadaa5ed4be2016-12-07 22:10:26 +09004 bool "MMC/SD/SDIO card support"
5 default ARM || PPC || SANDBOX
Adam Fordb10ba902018-02-06 12:43:56 -06006 select HAVE_BLOCK_DEVICE
Tom Rini9b384002021-04-21 15:32:27 -04007 select DM_MMC if DM
Maxime Ripard4f780742015-10-15 22:04:05 +02008 help
Masahiro Yamadaa5ed4be2016-12-07 22:10:26 +09009 This selects MultiMediaCard, Secure Digital and Secure
10 Digital I/O support.
11
12 If you want MMC/SD/SDIO support, you should say Y here and
13 also to your specific host controller driver.
Maxime Ripard4f780742015-10-15 22:04:05 +020014
Jean-Jacques Hiblotd0531672018-01-04 15:23:32 +010015config MMC_WRITE
16 bool "support for MMC/SD write operations"
17 depends on MMC
18 default y
19 help
20 Enable write access to MMC and SD Cards
21
Jaehoon Chung48ad8272021-02-16 10:16:52 +090022config MMC_PWRSEQ
23 bool "HW reset support for eMMC"
24 depends on PWRSEQ
25 help
26 Ths select Hardware reset support aka pwrseq-emmc for eMMC
27 devices.
28
Jun Nieb4f4f6e2018-01-02 12:25:57 +080029config MMC_BROKEN_CD
30 bool "Poll for broken card detection case"
31 help
32 If card detection feature is broken, just poll to detect.
33
Simon Glass1e8eb1b2015-06-23 15:38:48 -060034config DM_MMC
35 bool "Enable MMC controllers using Driver Model"
36 depends on DM
Tom Rini9b384002021-04-21 15:32:27 -040037 select BLK
Simon Glass1e8eb1b2015-06-23 15:38:48 -060038 help
Robert P. J. Day8d56db92016-07-15 13:44:45 -040039 This enables the MultiMediaCard (MMC) uclass which supports MMC and
Simon Glass1e8eb1b2015-06-23 15:38:48 -060040 Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
41 and non-removable (e.g. eMMC chip) devices are supported. These
42 appear as block devices in U-Boot and can support filesystems such
43 as EXT4 and FAT.
44
Simon Glass5f4bd8c2017-07-04 13:31:19 -060045config SPL_DM_MMC
46 bool "Enable MMC controllers using Driver Model in SPL"
47 depends on SPL_DM && DM_MMC
Pali Rohár3c5ce032022-05-24 10:58:42 +020048 default n if ARCH_MVEBU && !MVEBU_SPL_BOOT_DEVICE_MMC
Simon Glass5f4bd8c2017-07-04 13:31:19 -060049 default y
50 help
51 This enables the MultiMediaCard (MMC) uclass which supports MMC and
52 Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
53 and non-removable (e.g. eMMC chip) devices are supported. These
54 appear as block devices in U-Boot and can support filesystems such
55 as EXT4 and FAT.
56
Masahiro Yamadae8b99722016-12-07 22:10:27 +090057if MMC
58
Michael Walle02016c62020-09-23 12:42:51 +020059config MMC_SDHCI_ADMA_HELPERS
60 bool
61
Bhargav Shaha1afe252019-07-08 04:10:48 +000062config MMC_SPI
63 bool "Support for SPI-based MMC controller"
64 depends on DM_MMC && DM_SPI
65 help
66 This selects SPI-based MMC controllers.
67 If you have an MMC controller on a SPI bus, say Y here.
68
69 If unsure, say N.
70
71config MMC_SPI_CRC_ON
72 bool "Support CRC for SPI-based MMC controller"
73 depends on MMC_SPI
74 default y
75 help
76 This enables CRC for SPI-based MMC controllers.
77
78 If unsure, say N.
79
Patrice Chotardfcce4202017-10-23 10:57:31 +020080config ARM_PL180_MMCI
81 bool "ARM AMBA Multimedia Card Interface and compatible support"
Patrice Chotardfcce4202017-10-23 10:57:31 +020082 help
83 This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card
84 Interface (PL180, PL181 and compatible) support.
85 If you have an ARM(R) platform with a Multimedia Card slot,
86 say Y or M here.
87
Kishon Vijay Abraham I07baaa62017-09-21 16:30:10 +020088config MMC_QUIRKS
89 bool "Enable quirks"
90 default y
91 help
92 Some cards and hosts may sometimes behave unexpectedly (quirks).
93 This option enable workarounds to handle those quirks. Some of them
Joel Johnson9cbee2c2020-01-11 09:08:15 -070094 are enabled by default, other may require additional flags or are
Kishon Vijay Abraham I07baaa62017-09-21 16:30:10 +020095 enabled by the host driver.
96
Jean-Jacques Hiblot1d7769a2017-11-30 17:44:02 +010097config MMC_HW_PARTITIONING
98 bool "Support for HW partitioning command(eMMC)"
99 default y
100 help
101 This adds a command and an API to do hardware partitioning on eMMC
102 devices.
103
Alex Kiernan60e0f612018-05-08 04:43:31 +0000104config SUPPORT_EMMC_RPMB
105 bool "Support eMMC replay protected memory block (RPMB)"
106 imply CMD_MMC_RPMB
107 help
108 Enable support for reading, writing and programming the
109 key for the Replay Protection Memory Block partition in eMMC.
110
Alex Kiernan00848772019-05-01 07:58:27 +0000111config SUPPORT_EMMC_BOOT
112 bool "Support some additional features of the eMMC boot partitions"
113 help
114 Enable support for eMMC boot partitions. This also enables
115 extensions within the mmc command.
116
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100117config MMC_IO_VOLTAGE
118 bool "Support IO voltage configuration"
119 help
120 IO voltage configuration allows selecting the voltage level of the IO
121 lines (not the level of main supply). This is required for UHS
122 support. For eMMC this not mandatory, but not enabling this option may
123 prevent the driver of using the faster modes.
124
125config SPL_MMC_IO_VOLTAGE
126 bool "Support IO voltage configuration in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400127 depends on SPL_MMC
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100128 help
129 IO voltage configuration allows selecting the voltage level of the IO
130 lines (not the level of main supply). This is required for UHS
131 support. For eMMC this not mandatory, but not enabling this option may
132 prevent the driver of using the faster modes.
133
134config MMC_UHS_SUPPORT
135 bool "enable UHS support"
136 depends on MMC_IO_VOLTAGE
137 help
138 The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
139 cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
140 frequency can go up to 208MHz (SDR104)
141
142config SPL_MMC_UHS_SUPPORT
143 bool "enable UHS support in SPL"
144 depends on SPL_MMC_IO_VOLTAGE
145 help
146 The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
147 cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
148 frequency can go up to 208MHz (SDR104)
149
Peng Faneede83b2019-07-10 14:43:07 +0800150config MMC_HS400_ES_SUPPORT
151 bool "enable HS400 Enhanced Strobe support"
152 help
153 The HS400 Enhanced Strobe mode is support by some eMMC. The bus
154 frequency is up to 200MHz. This mode does not tune the IO.
155
156config SPL_MMC_HS400_ES_SUPPORT
157 bool "enable HS400 Enhanced Strobe support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400158 depends on SPL_MMC
Peng Faneede83b2019-07-10 14:43:07 +0800159 help
160 The HS400 Enhanced Strobe mode is support by some eMMC. The bus
161 frequency is up to 200MHz. This mode does not tune the IO.
162
Peng Fan46801252018-08-10 14:07:54 +0800163config MMC_HS400_SUPPORT
164 bool "enable HS400 support"
165 select MMC_HS200_SUPPORT
166 help
167 The HS400 mode is support by some eMMC. The bus frequency is up to
168 200MHz. This mode requires tuning the IO.
169
170config SPL_MMC_HS400_SUPPORT
171 bool "enable HS400 support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400172 depends on SPL_MMC
Faiz Abbas373954e2019-08-01 16:33:36 +0530173 select SPL_MMC_HS200_SUPPORT
Peng Fan46801252018-08-10 14:07:54 +0800174 help
175 The HS400 mode is support by some eMMC. The bus frequency is up to
176 200MHz. This mode requires tuning the IO.
177
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100178config MMC_HS200_SUPPORT
179 bool "enable HS200 support"
180 help
181 The HS200 mode is support by some eMMC. The bus frequency is up to
182 200MHz. This mode requires tuning the IO.
183
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100184config SPL_MMC_HS200_SUPPORT
185 bool "enable HS200 support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400186 depends on SPL_MMC
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100187 help
188 The HS200 mode is support by some eMMC. The bus frequency is up to
189 200MHz. This mode requires tuning the IO.
190
Jean-Jacques Hiblota94fb412017-09-21 16:29:53 +0200191config MMC_VERBOSE
192 bool "Output more information about the MMC"
193 default y
194 help
195 Enable the output of more information about the card such as the
196 operating mode.
197
Jaehoon Chunge2bf5802018-01-26 19:25:31 +0900198config MMC_TRACE
199 bool "MMC debugging"
Jaehoon Chunge2bf5802018-01-26 19:25:31 +0900200 help
201 This is an option for use by developer. Enable MMC core debugging.
202
203 If you need to see the MMC core message, say Y.
204
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900205config MMC_DAVINCI
206 bool "TI DAVINCI Multimedia Card Interface support"
207 depends on ARCH_DAVINCI
208 default y
209 help
210 This selects the TI DAVINCI Multimedia card Interface.
211 If you have an DAVINCI board with a Multimedia Card slot,
212 say Y here. If unsure, say N.
213
Masahiro Yamada7942e912017-01-10 13:32:04 +0900214config MMC_DW
215 bool "Synopsys DesignWare Memory Card Interface"
Philipp Tomsichb3027472018-11-30 22:13:25 +0100216 select BOUNCE_BUFFER
Masahiro Yamada7942e912017-01-10 13:32:04 +0900217 help
218 This selects support for the Synopsys DesignWare Mobile Storage IP
219 block, this provides host support for SD and MMC interfaces, in both
220 PIO, internal DMA mode and external DMA mode.
221
Arthur Li055e18e2020-02-20 18:19:35 -0800222config MMC_DW_CORTINA
223 bool "Cortina specific extensions for Synopsys DW Memory Card Interface"
224 depends on DM_MMC
225 depends on MMC_DW
226 depends on BLK
Arthur Li055e18e2020-02-20 18:19:35 -0800227 help
228 This selects support for Cortina SoC specific extensions to the
229 Synopsys DesignWare Memory Card Interface driver. Select this option
230 for platforms based on Cortina CAxxxx Soc's.
231
Masahiro Yamadaf1ad7282017-01-10 13:32:05 +0900232config MMC_DW_EXYNOS
233 bool "Exynos specific extensions for Synopsys DW Memory Card Interface"
234 depends on ARCH_EXYNOS
235 depends on MMC_DW
236 default y
237 help
238 This selects support for Samsung Exynos SoC specific extensions to the
239 Synopsys DesignWare Memory Card Interface driver. Select this option
240 for platforms based on Exynos4 and Exynos5 SoC's.
241
242config MMC_DW_K3
243 bool "K3 specific extensions for Synopsys DW Memory Card Interface"
244 depends on MMC_DW
245 help
246 This selects support for Hisilicon K3 SoC specific extensions to the
247 Synopsys DesignWare Memory Card Interface driver. Select this option
248 for platforms based on Hisilicon K3 SoC's.
249
Masahiro Yamadadc607f82017-01-10 13:32:03 +0900250config MMC_DW_ROCKCHIP
Simon Glass4ecaa6d2015-08-30 16:55:37 -0600251 bool "Rockchip SD/MMC controller support"
252 depends on DM_MMC && OF_CONTROL
Masahiro Yamada7942e912017-01-10 13:32:04 +0900253 depends on MMC_DW
Simon Glass4ecaa6d2015-08-30 16:55:37 -0600254 help
255 This enables support for the Rockchip SD/MMM controller, which is
256 based on Designware IP. The device is compatible with at least
257 SD 3.0, SDIO 3.0 and MMC 4.5 and supports common eMMC chips as well
258 as removeable SD and micro-SD cards.
259
Masahiro Yamadaf1ad7282017-01-10 13:32:05 +0900260config MMC_DW_SOCFPGA
261 bool "SOCFPGA specific extensions for Synopsys DW Memory Card Interface"
262 depends on ARCH_SOCFPGA
263 depends on MMC_DW
264 default y
265 help
266 This selects support for Altera SOCFPGA specific extensions to the
267 Synopsys DesignWare Memory Card Interface driver. Select this option
268 for platforms based on Altera SOCFPGA.
269
Eugeniy Paltsevb050c2c2019-02-25 18:35:28 +0300270config MMC_DW_SNPS
271 bool "Extensions for DW Memory Card Interface used in Synopsys ARC devboards"
272 depends on MMC_DW
273 depends on DM_MMC
274 depends on OF_CONTROL
275 depends on CLK
276 help
277 This selects support for Synopsys DesignWare Memory Card Interface driver
278 extensions used in various Synopsys ARC devboards.
279
Stefan Bosch22c12f72020-07-10 19:07:29 +0200280config NEXELL_DWMMC
281 bool "Nexell SD/MMC controller support"
282 depends on ARCH_NEXELL
283 depends on MMC_DW
284 depends on DM_MMC
285 depends on PINCTRL_NEXELL
286 default y
287
Carlo Caione20cab782017-04-12 20:30:42 +0200288config MMC_MESON_GX
289 bool "Meson GX EMMC controller support"
Simon Glasseba48f92017-07-29 11:35:31 -0600290 depends on DM_MMC && BLK && ARCH_MESON
Carlo Caione20cab782017-04-12 20:30:42 +0200291 help
292 Support for EMMC host controller on Meson GX ARM SoCs platform (S905)
293
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900294config MMC_MXC
295 bool "Freescale i.MX21/27/31 or MPC512x Multimedia Card support"
296 help
297 This selects the Freescale i.MX21, i.MX27, i.MX31 or MPC512x
298 Multimedia Card Interface. If you have an i.MX or MPC512x platform
299 with a Multimedia Card slot, say Y here.
300
301 If unsure, say N.
302
Amit Singh Tomar347494c2021-11-28 17:02:24 +0530303config MMC_OWL
304 bool "Actions OWL Multimedia Card Interface support"
305 depends on ARCH_OWL && DM_MMC && BLK
306 help
307 This selects the OWL SD/MMC host controller found on board
308 based on Actions S700/S900 SoC.
309
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900310config MMC_MXS
311 bool "Freescale MXS Multimedia Card Interface support"
Adam Forda456d562018-02-06 08:34:45 -0600312 depends on MX23 || MX28 || MX6 || MX7
Philipp Tomsichb3027472018-11-30 22:13:25 +0100313 select BOUNCE_BUFFER
Adam Forda456d562018-02-06 08:34:45 -0600314 select APBH_DMA
315 select APBH_DMA_BURST if ARCH_MX6 || ARCH_MX7
316 select APBH_DMA_BURST8 if ARCH_MX6 || ARCH_MX7
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900317 help
318 This selects the Freescale SSP MMC controller found on MXS based
319 platforms like mx23/28.
320
321 If unsure, say N.
322
Felipe Balbiecf7dfd2017-02-20 14:24:13 +0300323config MMC_PCI
324 bool "Support for MMC controllers on PCI"
Bin Meng3d81f022021-02-15 20:01:44 +0800325 depends on MMC_SDHCI
Felipe Balbiecf7dfd2017-02-20 14:24:13 +0300326 help
327 This selects PCI-based MMC controllers.
328 If you have an MMC controller on a PCI bus, say Y here.
329
Suneel Garapati40e61332019-10-19 18:03:01 -0700330config MMC_OCTEONTX
Stefan Roesee06f5522021-03-12 09:48:25 +0100331 bool "Marvell Octeon Multimedia Card Interface support"
332 depends on (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2)
Suneel Garapati40e61332019-10-19 18:03:01 -0700333 depends on DM_MMC
334 help
Stefan Roesee06f5522021-03-12 09:48:25 +0100335 This selects the Octeon Multimedia card Interface.
336 If you have an OcteonTX/TX2 or MIPS Octeon board with a
337 Multimedia Card slot, say Y here.
Suneel Garapati40e61332019-10-19 18:03:01 -0700338
Felipe Balbiecf7dfd2017-02-20 14:24:13 +0300339 If unsure, say N.
340
Harm Berntsen7b9e5af2021-03-30 10:19:41 +0200341config MVEBU_MMC
342 bool "Kirkwood MMC controller support"
343 depends on DM_MMC && BLK && ARCH_KIRKWOOD
344 help
345 Support for MMC host controller on Kirkwood SoCs.
346 If you are on a Kirkwood architecture, say Y here.
347
348 If unsure, say N.
349
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900350config MMC_OMAP_HS
351 bool "TI OMAP High Speed Multimedia Card Interface support"
Simon Glasseba48f92017-07-29 11:35:31 -0600352 select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
Jean-Jacques Hiblot4612bdd2017-09-21 17:03:10 +0200353 select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900354 help
355 This selects the TI OMAP High Speed Multimedia card Interface.
356 If you have an omap2plus board with a Multimedia Card slot,
357 say Y here.
358
359 If unsure, say N.
360
Jean-Jacques Hiblotcebf0592018-02-23 10:40:18 +0100361config MMC_OMAP_HS_ADMA
362 bool "ADMA support for OMAP HS MMC"
363 depends on MMC_OMAP_HS && !OMAP34XX
364 default y if !AM33XX
365 help
366 This enables support for the ADMA2 controller (SDA3.00 Part A2 DMA
367 controller). If supported by the hardware, selecting this option will
368 increase performances.
369
Adam Fordef354962017-02-06 11:31:43 -0600370config MMC_OMAP36XX_PINS
371 bool "Enable MMC1 on OMAP36xx/37xx"
372 depends on OMAP34XX && MMC_OMAP_HS
373 help
374 This enables extended-drain in the MMC/SD/SDIO1I/O and
375 GPIO-associated I/O cells (gpio_126, gpio_127, and gpio_129)
376 specific to the OMAP36xx/37xx using MMC1
377
378 If you have a controller with this interface, say Y here.
379
380 If unsure, say N.
381
Nobuhiro Iwamatsu3ec5f862014-12-17 08:03:00 +0900382config SH_SDHI
383 bool "SuperH/Renesas ARM SoCs on-chip SDHI host controller support"
Marek Vasut1c5a5a92017-05-13 15:51:14 +0200384 depends on ARCH_RMOBILE
Nobuhiro Iwamatsu3ec5f862014-12-17 08:03:00 +0900385 help
386 Support for the on-chip SDHI host controller on SuperH/Renesas ARM SoCs platform
387
Marek Vasuta8624ac2018-04-21 17:40:20 +0200388config SH_MMCIF
389 bool "SuperH/Renesas ARM SoCs on-chip MMCIF host controller support"
390 depends on ARCH_RMOBILE || SH
391 help
392 Support for the on-chip MMCIF host controller on SuperH/Renesas ARM SoCs platform
393
Masahiro Yamadaa0cfcc02016-02-18 19:52:48 +0900394config MMC_UNIPHIER
Marek Vasut2883f742017-09-23 13:30:30 +0200395 bool "UniPhier SD/MMC Host Controller support"
396 depends on ARCH_UNIPHIER
Simon Glasseba48f92017-07-29 11:35:31 -0600397 depends on BLK && DM_MMC
Masahiro Yamadac2326532016-12-30 23:20:14 +0900398 depends on OF_CONTROL
Masahiro Yamadaa0cfcc02016-02-18 19:52:48 +0900399 help
Marek Vasut847ee0c2017-07-21 23:24:36 +0200400 This selects support for the Matsushita SD/MMC Host Controller on
Marek Vasut2883f742017-09-23 13:30:30 +0200401 SocioNext UniPhier SoCs.
402
403config RENESAS_SDHI
404 bool "Renesas R-Car SD/MMC Host Controller support"
405 depends on ARCH_RMOBILE
406 depends on BLK && DM_MMC
407 depends on OF_CONTROL
Marek Vasut9f7baeb2020-04-04 12:45:04 +0200408 select BOUNCE_BUFFER
Marek Vasut2883f742017-09-23 13:30:30 +0200409 help
410 This selects support for the Matsushita SD/MMC Host Controller on
411 Renesas R-Car SoCs.
Masahiro Yamadaa0cfcc02016-02-18 19:52:48 +0900412
Alexander Graf044725f2018-01-23 18:05:22 +0100413config MMC_BCM2835
414 bool "BCM2835 family custom SD/MMC Host Controller support"
415 depends on ARCH_BCM283X
416 depends on BLK && DM_MMC
417 depends on OF_CONTROL
418 default y
419 help
420 This selects support for the custom SD host controller in the BCM2835
421 family of devices.
422
423 If you have a BCM2835 platform with SD or MMC devices, say Y here.
424
425 If unsure, say N.
426
Paul Burton8e142842018-12-16 19:25:20 -0300427config JZ47XX_MMC
428 bool "Ingenic JZ47xx SD/MMC Host Controller support"
429 depends on ARCH_JZ47XX
430 help
431 This selects support for the SD Card Controller on Ingenic JZ47xx SoCs.
432
Masahiro Yamada54f7cfc2017-01-30 19:46:50 +0900433config MMC_SANDBOX
Simon Glassf9eebac2016-05-01 13:52:42 -0600434 bool "Sandbox MMC support"
Masahiro Yamada54f7cfc2017-01-30 19:46:50 +0900435 depends on SANDBOX
Simon Glasseba48f92017-07-29 11:35:31 -0600436 depends on BLK && DM_MMC && OF_CONTROL
Simon Glassf9eebac2016-05-01 13:52:42 -0600437 help
438 This select a dummy sandbox MMC driver. At present this does nothing
439 other than allow sandbox to be build with MMC support. This
440 improves build coverage for sandbox and makes it easier to detect
441 MMC build errors with sandbox.
442
Masahiro Yamada7db8c172016-12-07 22:10:28 +0900443config MMC_SDHCI
444 bool "Secure Digital Host Controller Interface support"
445 help
446 This selects the generic Secure Digital Host Controller Interface.
447 It is used by manufacturers such as Texas Instruments(R), Ricoh(R)
448 and Toshiba(R). Most controllers found in laptops are of this type.
449
450 If you have a controller with this interface, say Y here.
451
452 If unsure, say N.
453
Masahiro Yamadabfd110f2016-12-07 22:10:30 +0900454config MMC_SDHCI_IO_ACCESSORS
455 bool
456 depends on MMC_SDHCI
457 help
458 This is silent Kconfig symbol that is selected by the drivers that
459 need to overwrite SDHCI IO memory accessors.
460
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900461config MMC_SDHCI_SDMA
462 bool "Support SDHCI SDMA"
463 depends on MMC_SDHCI
464 help
465 This enables support for the SDMA (Single Operation DMA) defined
466 in the SD Host Controller Standard Specification Version 1.00 .
467
Faiz Abbas4c082a62019-04-16 23:06:58 +0530468config MMC_SDHCI_ADMA
469 bool "Support SDHCI ADMA2"
470 depends on MMC_SDHCI
Michael Walle02016c62020-09-23 12:42:51 +0200471 select MMC_SDHCI_ADMA_HELPERS
Faiz Abbas4c082a62019-04-16 23:06:58 +0530472 help
473 This enables support for the ADMA (Advanced DMA) defined
474 in the SD Host Controller Standard Specification Version 3.00
475
476config SPL_MMC_SDHCI_ADMA
477 bool "Support SDHCI ADMA2 in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400478 depends on SPL_MMC && MMC_SDHCI
Michael Walle02016c62020-09-23 12:42:51 +0200479 select MMC_SDHCI_ADMA_HELPERS
Faiz Abbas4c082a62019-04-16 23:06:58 +0530480 help
481 This enables support for the ADMA (Advanced DMA) defined
482 in the SD Host Controller Standard Specification Version 3.00 in SPL.
483
Chris Packham7d5d5912022-05-29 11:13:17 +1200484config FIXED_SDHCI_ALIGNED_BUFFER
485 hex "SDRAM address for fixed buffer"
486 depends on SPL && MVEBU_SPL_BOOT_DEVICE_MMC
487 default 0x00180000
488 help
489 On the Marvell Armada 38x when the SPL runs it located in internal
490 SRAM which is the L2 cache locked to memory. When the MMC buffers
491 are located on the stack (or bss), the SDIO controller (SDHCI) can't
492 write into this L2 cache memory.
493
494 This specifies the address of a fixed buffer located in SDRAM that
495 will be used for all SDHCI transfers in the SPL.
496
Eddie Jamesc8a65812019-08-27 09:48:03 -0500497config MMC_SDHCI_ASPEED
498 bool "Aspeed SDHCI controller"
499 depends on ARCH_ASPEED
500 depends on DM_MMC
501 depends on MMC_SDHCI
Joel Stanley818a6b52022-06-23 18:35:34 +0930502 select MISC
Eddie Jamesc8a65812019-08-27 09:48:03 -0500503 help
504 Enables support for the Aspeed SDHCI 2.0 controller present on Aspeed
505 SoCs. This device is compatible with SD 3.0 and/or MMC 4.3
506 specifications. On the AST2600, the device is also compatible with
507 MMC 5.1 and eMMC 3.0.
508
Masahiro Yamada8c1a1322017-01-30 19:46:55 +0900509config MMC_SDHCI_ATMEL
510 bool "Atmel SDHCI controller support"
511 depends on ARCH_AT91
Simon Glasseba48f92017-07-29 11:35:31 -0600512 depends on DM_MMC && BLK && ARCH_AT91
Masahiro Yamada8c1a1322017-01-30 19:46:55 +0900513 depends on MMC_SDHCI
514 help
515 This enables support for the Atmel SDHCI controller, which supports
516 the embedded MultiMedia Card (e.MMC) Specification V4.51, the SD
517 Memory Card Specification V3.0, and the SDIO V3.0 specification.
518 It is compliant with the SD Host Controller Standard V3.0
519 specification.
520
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900521config MMC_SDHCI_BCM2835
522 tristate "SDHCI support for the BCM2835 SD/MMC Controller"
523 depends on ARCH_BCM283X
524 depends on MMC_SDHCI
Masahiro Yamadabfd110f2016-12-07 22:10:30 +0900525 select MMC_SDHCI_IO_ACCESSORS
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900526 help
527 This selects the BCM2835 SD/MMC controller.
528
529 If you have a BCM2835 platform with SD or MMC devices,
530 say Y here.
531
532 If unsure, say N.
533
Thomas Fitzsimmons919646d2018-06-08 17:59:45 -0400534config MMC_SDHCI_BCMSTB
535 tristate "SDHCI support for the BCMSTB SD/MMC Controller"
536 depends on MMC_SDHCI
537 help
538 This selects the Broadcom set-top box SD/MMC controller.
539
540 If you have a BCMSTB platform with SD or MMC devices,
541 say Y here.
542
543 If unsure, say N.
544
Masahiro Yamadadcbc4432016-12-30 22:41:46 +0900545config MMC_SDHCI_CADENCE
546 bool "SDHCI support for the Cadence SD/SDIO/eMMC controller"
Simon Glasseba48f92017-07-29 11:35:31 -0600547 depends on BLK && DM_MMC
Masahiro Yamadadcbc4432016-12-30 22:41:46 +0900548 depends on MMC_SDHCI
549 depends on OF_CONTROL
550 help
551 This selects the Cadence SD/SDIO/eMMC driver.
552
553 If you have a controller with this interface, say Y here.
554
555 If unsure, say N.
556
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530557config MMC_SDHCI_AM654
558 bool "SDHCI Controller on TI's Am654 devices"
Lokesh Vutlabc9979f2018-08-27 15:57:54 +0530559 depends on ARCH_K3
560 depends on MMC_SDHCI
561 depends on DM_MMC && OF_CONTROL && BLK
Faiz Abbase9aed582019-06-11 00:43:38 +0530562 depends on REGMAP
Faiz Abbas36c8c5c2021-02-04 15:10:54 +0530563 select MMC_SDHCI_IO_ACCESSORS
Lokesh Vutlabc9979f2018-08-27 15:57:54 +0530564 help
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530565 Support for Secure Digital Host Controller Interface (SDHCI)
566 controllers present on TI's AM654 SOCs.
Lokesh Vutlabc9979f2018-08-27 15:57:54 +0530567
Arun Parameswaran2f4f34a2019-09-12 11:06:08 -0700568config MMC_SDHCI_IPROC
569 bool "SDHCI support for the iProc SD/MMC Controller"
570 depends on MMC_SDHCI
571 help
572 This selects the iProc SD/MMC controller.
573
574 If you have a Broadcom IPROC platform with SD or MMC devices,
575 say Y or M here.
576
577 If unsure, say N.
578
Jassi Brar8188bda2021-06-04 18:44:16 +0900579config MMC_SDHCI_F_SDH30
580 bool "SDHCI support for Fujitsu Semiconductor F_SDH30"
581 depends on BLK && DM_MMC
582 depends on MMC_SDHCI
583 help
584 This selects the Secure Digital Host Controller Interface (SDHCI)
585 Needed by some Fujitsu SoC for MMC / SD / SDIO support.
586 If you have a controller with this interface, say Y or M here.
587 If unsure, say N.
588
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900589config MMC_SDHCI_KONA
590 bool "SDHCI support on Broadcom KONA platform"
591 depends on MMC_SDHCI
592 help
593 This selects the Broadcom Kona Secure Digital Host Controller
594 Interface(SDHCI) support.
595 This is used in Broadcom mobile SoCs.
596
597 If you have a controller with this interface, say Y here.
598
Masahiro Yamadaa1262eb2017-01-30 19:46:53 +0900599config MMC_SDHCI_MSM
600 bool "Qualcomm SDHCI controller"
Simon Glasseba48f92017-07-29 11:35:31 -0600601 depends on BLK && DM_MMC
Masahiro Yamadaa1262eb2017-01-30 19:46:53 +0900602 depends on MMC_SDHCI
603 help
604 Enables support for SDHCI 2.0 controller present on some Qualcomm
605 Snapdragon devices. This device is compatible with eMMC v4.5 and
606 SD 3.0 specifications. Both SD and eMMC devices are supported.
607 Card-detect gpios are not supported.
608
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900609config MMC_SDHCI_MV
610 bool "SDHCI support on Marvell platform"
611 depends on ARCH_MVEBU
612 depends on MMC_SDHCI
613 help
614 This selects the Secure Digital Host Controller Interface on
615 Marvell platform.
616
617 If you have a controller with this interface, say Y here.
618
619 If unsure, say N.
620
Jim Liu29cf22c2022-05-24 16:55:33 +0800621config MMC_SDHCI_NPCM
622 bool "SDHCI support on Nuvoton NPCM device"
623 depends on MMC_SDHCI
624 depends on DM_MMC
625 help
626 This selects the Secure Digital Host Controller Interface (SDHCI)
627 on Nuvoton NPCM device.
628
629 If you have a controller with this interface, say Y here.
630
631 If unsure, say N.
632
Masahiro Yamadaf79df032017-01-30 19:46:54 +0900633config MMC_SDHCI_PIC32
634 bool "Microchip PIC32 on-chip SDHCI support"
635 depends on DM_MMC && MACH_PIC32
636 depends on MMC_SDHCI
637 help
638 Support for Microchip PIC32 SDHCI controller.
639
Masahiro Yamadababe0262017-01-30 19:46:52 +0900640config MMC_SDHCI_ROCKCHIP
641 bool "Arasan SDHCI controller for Rockchip support"
642 depends on ARCH_ROCKCHIP
Simon Glasseba48f92017-07-29 11:35:31 -0600643 depends on DM_MMC && BLK
Masahiro Yamadababe0262017-01-30 19:46:52 +0900644 depends on MMC_SDHCI
645 help
646 Support for Arasan SDHCI host controller on Rockchip ARM SoCs platform
647
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900648config MMC_SDHCI_S5P
649 bool "SDHCI support on Samsung S5P SoC"
650 depends on MMC_SDHCI
651 help
652 This selects the Secure Digital Host Controller Interface (SDHCI)
653 on Samsung S5P SoCs.
654
655 If you have a controller with this interface, say Y here.
656
657 If unsure, say N.
658
659config MMC_SDHCI_SPEAR
660 bool "SDHCI support on ST SPEAr platform"
661 depends on MMC_SDHCI
662 help
663 This selects the Secure Digital Host Controller Interface (SDHCI)
664 often referrered to as the HSMMC block in some of the ST SPEAR range
665 of SoC
666
667 If you have a controller with this interface, say Y here.
668
669 If unsure, say N.
670
Patrice Chotard2eea7d82017-02-21 13:37:09 +0100671config MMC_SDHCI_STI
672 bool "SDHCI support for STMicroelectronics SoC"
Patrice Chotardcdf6b572017-02-21 13:37:11 +0100673 depends on MMC_SDHCI && OF_CONTROL
Patrice Chotard2eea7d82017-02-21 13:37:09 +0100674 help
675 This selects the Secure Digital Host Controller Interface (SDHCI)
676 on STMicroelectronics STiH410 SoC.
677
Stefan Roese121fc562016-12-09 15:03:28 +0100678config MMC_SDHCI_XENON
679 bool "SDHCI support for the Xenon SDHCI controller"
680 depends on MMC_SDHCI && DM_MMC && OF_CONTROL
681 help
682 Support for Xenon SDHCI host controller on Marvell Armada 3700
683 7k/8k ARM SoCs platforms
684
685 If you have a controller with this interface, say Y here.
686
687 If unsure, say N.
688
Felipe Balbib7567602017-02-20 14:24:14 +0300689config MMC_SDHCI_TANGIER
690 bool "Tangier SDHCI controller support"
691 depends on DM_MMC && BLK
692 depends on MMC_SDHCI
693 help
694 This selects support for SDHCI controller on Tanginer
695 SoC. Note that this controller does not sit on PCI bus and,
696 hence, cannot be enumerated by standard PCI means.
697
698 If you're using an Intel Tangier SoC (available on Intel
699 Edison board), say Y here.
700
701 If unsure, say N.
702
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900703config MMC_SDHCI_TEGRA
704 bool "SDHCI platform support for the Tegra SD/MMC Controller"
Trevor Woerner513f6402020-05-06 08:02:41 -0400705 depends on ARCH_TEGRA
Philipp Tomsichb3027472018-11-30 22:13:25 +0100706 select BOUNCE_BUFFER
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900707 default y
708 help
709 This selects the Tegra SD/MMC controller. If you have a Tegra
710 platform with SD or MMC devices, say Y here.
711
712 If unsure, say N.
713
Trent Piepho1bf56c32019-04-01 23:05:49 +0000714config TEGRA124_MMC_DISABLE_EXT_LOOPBACK
715 bool "Disable external clock loopback"
716 depends on MMC_SDHCI_TEGRA && TEGRA124
717 help
718 Disable the external clock loopback and use the internal one on SDMMC3
719 as per the SDMMC_VENDOR_MISC_CNTRL_0 register's SDMMC_SPARE1 bits
720 being set to 0xfffd according to the TRM.
721
722 TODO(marcel.ziswiler@toradex.com): Move to device tree controlled
723 approach once proper kernel integration made it mainline.
724
Masahiro Yamada168c57d2017-01-30 19:46:51 +0900725config MMC_SDHCI_ZYNQ
726 bool "Arasan SDHCI controller support"
Simon Glasseba48f92017-07-29 11:35:31 -0600727 depends on DM_MMC && OF_CONTROL && BLK
Masahiro Yamada168c57d2017-01-30 19:46:51 +0900728 depends on MMC_SDHCI
729 help
730 Support for Arasan SDHCI host controller on Zynq/ZynqMP ARM SoCs platform
731
Vipul Kumar62548002018-02-28 15:53:28 +0530732config ZYNQ_SDHCI_MAX_FREQ
733 int "Set the maximum frequency of the controller"
734 depends on MMC_SDHCI_ZYNQ
735 help
736 Set the maximum frequency of the controller.
737
Vipul Kumardcc14e32018-02-28 15:53:29 +0530738config ZYNQ_SDHCI_MIN_FREQ
739 int "Set the minimum frequency of the controller"
740 depends on MMC_SDHCI_ZYNQ
741 default 0
742 help
743 Set the minimum frequency of the controller.
744
Siva Durga Prasad Paladugua9a3d002019-05-27 14:33:14 +0530745config ZYNQ_HISPD_BROKEN
746 bool "High speed broken for Zynq SDHCI controller"
747 depends on MMC_SDHCI_ZYNQ
748 help
749 Set if high speed mode is broken.
750
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900751config MMC_SUNXI
752 bool "Allwinner sunxi SD/MMC Host Controller support"
Samuel Holland6b0d0bc2022-04-10 00:13:34 -0500753 depends on ARCH_SUNXI
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900754 default y
755 help
756 This selects support for the SD/MMC Host Controller on
757 Allwinner sunxi SoCs.
758
Maxime Ripard95e34702017-08-23 12:03:41 +0200759config MMC_SUNXI_HAS_NEW_MODE
760 bool
761 depends on MMC_SUNXI
762
Vasily Khoruzhickb198e2c2018-11-09 20:41:44 -0800763config MMC_SUNXI_HAS_MODE_SWITCH
764 bool
765 depends on MMC_SUNXI
766
Tianrui Wei8cfc7c52021-07-01 12:54:20 +0800767config MMC_PITON
768 bool "MMC support for OpenPiton SoC"
769 depends on DM_MMC && BLK
770 help
771 This selects support for the SD host controller on OpenPiton SoC.
772 Note that this SD controller directly exposes the contents of the
773 SD card as memory mapped, so there is no manual configuration
774 required
775
Wenyou Yang7a7a64c2017-04-13 10:29:22 +0800776config GENERIC_ATMEL_MCI
777 bool "Atmel Multimedia Card Interface support"
Simon Glasseba48f92017-07-29 11:35:31 -0600778 depends on DM_MMC && BLK && ARCH_AT91
Wenyou Yang7a7a64c2017-04-13 10:29:22 +0800779 help
780 This enables support for Atmel High Speed Multimedia Card Interface
781 (HSMCI), which supports the MultiMedia Card (MMC) Specification V4.3,
782 the SD Memory Card Specification V2.0, the SDIO V2.0 specification
783 and CE-ATA V1.1.
784
Patrice Chotardae19b812017-09-04 17:56:22 +0200785config STM32_SDMMC2
786 bool "STMicroelectronics STM32H7 SD/MMC Host Controller support"
Patrice Chotard4cb0ac92017-10-03 15:54:58 +0200787 depends on DM_MMC && BLK && OF_CONTROL
Patrice Chotardae19b812017-09-04 17:56:22 +0200788 help
789 This selects support for the SD/MMC controller on STM32H7 SoCs.
790 If you have a board based on such a SoC and with a SD/MMC slot,
791 say Y or M here.
792
Rick Chencbb52972017-11-14 14:47:09 +0800793config FTSDC010
794 bool "Ftsdc010 SD/MMC controller Support"
795 help
796 This SD/MMC controller is present in Andestech SoCs which is based on Faraday IP.
797
Rick Chenc59a6fb2018-03-20 15:10:49 +0800798config FTSDC010_SDIO
799 bool "Support ftsdc010 sdio"
Rick Chenc59a6fb2018-03-20 15:10:49 +0800800 depends on FTSDC010
801 help
802 This can enable ftsdc010 sdio function.
803
developerdc5a9aa2018-11-15 10:08:04 +0800804config MMC_MTK
805 bool "MediaTek SD/MMC Card Interface support"
developer607faf72019-09-25 17:45:37 +0800806 depends on ARCH_MEDIATEK || ARCH_MTMIPS
developerdc5a9aa2018-11-15 10:08:04 +0800807 depends on BLK && DM_MMC
808 depends on OF_CONTROL
809 help
810 This selects the MediaTek(R) Secure digital and Multimedia card Interface.
811 If you have a machine with a integrated SD/MMC card reader, say Y or M here.
812 This is needed if support for any SD/SDIO/MMC devices is required.
813 If unsure, say N.
814
Masahiro Yamadae8b99722016-12-07 22:10:27 +0900815endif
816
Mario Six41d7d972018-03-28 14:38:19 +0200817config FSL_ESDHC
818 bool "Freescale/NXP eSDHC controller support"
819 help
Yangbo Lu982f4252019-06-21 11:42:27 +0800820 This selects support for the eSDHC (Enhanced Secure Digital Host
821 Controller) found on numerous Freescale/NXP SoCs.
822
Michael Walle081d4012020-10-12 10:07:14 +0200823config FSL_ESDHC_SUPPORT_ADMA2
824 bool "enable ADMA2 support"
825 depends on FSL_ESDHC
826 select MMC_SDHCI_ADMA_HELPERS
827 help
828 This enables support for the ADMA2 transfer mode. If supported by the
829 eSDHC it will allow 64bit DMA addresses.
830
Yangbo Luce884022020-05-19 11:06:44 +0800831config FSL_ESDHC_33V_IO_RELIABILITY_WORKAROUND
832 bool "enable eSDHC workaround for 3.3v IO reliability issue"
833 depends on FSL_ESDHC && DM_MMC
Yangbo Luce884022020-05-19 11:06:44 +0800834 help
835 When eSDHC operates at 3.3v, damage can accumulate in an internal
836 level shifter at a higher than expected rate. The faster the interface
837 runs, the more damage accumulates. This issue now is found on LX2160A
838 eSDHC1 for only SD card. The hardware workaround is recommended to use
839 an on-board level shifter that is 1.8v on SoC side and 3.3v on SD card
840 side. For boards without hardware workaround, this option could be
841 enabled, ensuring 1.8v IO voltage and disabling eSDHC if no card.
842 This option assumes no hotplug, and u-boot has to make all the way to
843 to linux to use 1.8v UHS-I speed mode if has card.
844
Yangbo Lue087cd62021-06-03 10:51:17 +0800845config FSL_ESDHC_VS33_NOT_SUPPORT
846 bool "3.3V power supply not supported"
847 depends on FSL_ESDHC
848 help
849 For eSDHC, power supply is through peripheral circuit. 3.3V support is
850 common. Select this if 3.3V power supply not supported.
851
Pali Rohár3a672d62022-05-11 20:27:13 +0200852config SYS_FSL_ESDHC_DEFAULT_BUS_WIDTH
853 int
854 depends on FSL_ESDHC
855 default 1
856
Tom Rinibdd47f32022-06-16 14:04:38 -0400857config ESDHC_DETECT_QUIRK
858 bool "QIXIS-based eSDHC quirk detection"
859 depends on FSL_ESDHC && FSL_QIXIS
860
Yangbo Lu982f4252019-06-21 11:42:27 +0800861config FSL_ESDHC_IMX
862 bool "Freescale/NXP i.MX eSDHC controller support"
863 help
864 This selects support for the i.MX eSDHC (Enhanced Secure Digital Host
865 Controller) found on numerous Freescale/NXP SoCs.
Mario Six41d7d972018-03-28 14:38:19 +0200866
Adam Ford01836582019-08-14 07:23:43 -0500867config FSL_USDHC
868 bool "Freescale/NXP i.MX uSDHC controller support"
Peng Fan29b31a52022-07-26 16:40:44 +0800869 depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMX8ULP || IMX9 || IMXRT
Adam Ford01836582019-08-14 07:23:43 -0500870 select FSL_ESDHC_IMX
871 help
872 This enables the Ultra Secured Digital Host Controller enhancements
873
Nobuhiro Iwamatsu3ec5f862014-12-17 08:03:00 +0900874endmenu
York Sun097e3602016-12-28 08:43:42 -0800875
876config SYS_FSL_ERRATUM_ESDHC111
877 bool
878
879config SYS_FSL_ERRATUM_ESDHC13
880 bool
881
882config SYS_FSL_ERRATUM_ESDHC135
883 bool
884
885config SYS_FSL_ERRATUM_ESDHC_A001
886 bool
Michael Walle148dc612021-03-17 15:01:36 +0100887
888config SYS_FSL_ERRATUM_A011334
889 bool
Michael Walle7259dc52021-03-17 15:01:37 +0100890
891config SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
892 bool