blob: 6e9fcf57510cc96b49f43177f8bed4cba4c83538 [file] [log] [blame]
Nobuhiro Iwamatsu72d42ba2014-12-17 08:03:00 +09001menu "MMC Host controller Support"
2
Maxime Ripard7a777f62015-10-15 22:04:05 +02003config MMC
Masahiro Yamadac2726992016-12-07 22:10:26 +09004 bool "MMC/SD/SDIO card support"
5 default ARM || PPC || SANDBOX
Adam Ford1811a922018-02-06 12:43:56 -06006 select HAVE_BLOCK_DEVICE
Tom Rinif7173fc2021-04-21 15:32:27 -04007 select DM_MMC if DM
Maxime Ripard7a777f62015-10-15 22:04:05 +02008 help
Masahiro Yamadac2726992016-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 Ripard7a777f62015-10-15 22:04:05 +020014
Jean-Jacques Hiblotd6400c32018-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 Chungcaee38a2021-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 Nie2f516e42018-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 Glasse7ecf7c2015-06-23 15:38:48 -060034config DM_MMC
35 bool "Enable MMC controllers using Driver Model"
36 depends on DM
Tom Rinif7173fc2021-04-21 15:32:27 -040037 select BLK
Simon Glasse7ecf7c2015-06-23 15:38:48 -060038 help
Robert P. J. Day62a3b7d2016-07-15 13:44:45 -040039 This enables the MultiMediaCard (MMC) uclass which supports MMC and
Simon Glasse7ecf7c2015-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 Glassc4d660d2017-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ár35ed1762022-05-24 10:58:42 +020048 default n if ARCH_MVEBU && !MVEBU_SPL_BOOT_DEVICE_MMC
Simon Glassc4d660d2017-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 Yamadae298c462016-12-07 22:10:27 +090057if MMC
58
Michael Walle4d6a7732020-09-23 12:42:51 +020059config MMC_SDHCI_ADMA_HELPERS
60 bool
61
Bhargav Shah05e35d42019-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 Chotard3c0dbed2017-10-23 10:57:31 +020080config ARM_PL180_MMCI
81 bool "ARM AMBA Multimedia Card Interface and compatible support"
Patrice Chotard3c0dbed2017-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 I83dc4222017-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 Johnson26632b72020-01-11 09:08:15 -070094 are enabled by default, other may require additional flags or are
Kishon Vijay Abraham I83dc4222017-09-21 16:30:10 +020095 enabled by the host driver.
96
Jean-Jacques Hiblotcf177892017-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 Kiernan5a7b11e2018-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 Kiernan623de3f2019-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 Hiblotf99c2ef2017-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 Rinib3401992022-06-10 23:03:09 -0400127 depends on SPL_MMC
Jean-Jacques Hiblotf99c2ef2017-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 Fan44acd492019-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 Rinib3401992022-06-10 23:03:09 -0400158 depends on SPL_MMC
Peng Fan44acd492019-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 Fan3dd26262018-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 Rinib3401992022-06-10 23:03:09 -0400172 depends on SPL_MMC
Faiz Abbas68b3e8b2019-08-01 16:33:36 +0530173 select SPL_MMC_HS200_SUPPORT
Peng Fan3dd26262018-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 Hiblotf99c2ef2017-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 Hiblotf99c2ef2017-11-30 17:44:01 +0100184config SPL_MMC_HS200_SUPPORT
185 bool "enable HS200 support in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400186 depends on SPL_MMC
Jean-Jacques Hiblotf99c2ef2017-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 Hiblot35f9e192017-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 Chung72b5a032018-01-26 19:25:31 +0900198config MMC_TRACE
199 bool "MMC debugging"
Jaehoon Chung72b5a032018-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 Yamada1d2c0502017-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 Yamada55ed3b42017-01-10 13:32:04 +0900214config MMC_DW
215 bool "Synopsys DesignWare Memory Card Interface"
Philipp Tomsich2acc24f2018-11-30 22:13:25 +0100216 select BOUNCE_BUFFER
Masahiro Yamada55ed3b42017-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 Lid55e4e72020-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 Lid55e4e72020-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 Yamadaae4c81e2017-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 Yamadafed44082017-01-10 13:32:03 +0900250config MMC_DW_ROCKCHIP
Simon Glassa8cb4fb2015-08-30 16:55:37 -0600251 bool "Rockchip SD/MMC controller support"
252 depends on DM_MMC && OF_CONTROL
Masahiro Yamada55ed3b42017-01-10 13:32:04 +0900253 depends on MMC_DW
Simon Glassa8cb4fb2015-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 Yamadaae4c81e2017-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 Paltsev15736e22019-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 Bosch84083182020-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 Caione93738622017-04-12 20:30:42 +0200288config MMC_MESON_GX
289 bool "Meson GX EMMC controller support"
Simon Glasse7881d82017-07-29 11:35:31 -0600290 depends on DM_MMC && BLK && ARCH_MESON
Carlo Caione93738622017-04-12 20:30:42 +0200291 help
292 Support for EMMC host controller on Meson GX ARM SoCs platform (S905)
293
Masahiro Yamada1d2c0502017-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 Tomar57a91c32021-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 Yamada1d2c0502017-01-10 13:32:07 +0900310config MMC_MXS
311 bool "Freescale MXS Multimedia Card Interface support"
Adam Ford99bec1a2018-02-06 08:34:45 -0600312 depends on MX23 || MX28 || MX6 || MX7
Philipp Tomsich2acc24f2018-11-30 22:13:25 +0100313 select BOUNCE_BUFFER
Adam Ford99bec1a2018-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 Yamada1d2c0502017-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 Balbib706b1c2017-02-20 14:24:13 +0300323config MMC_PCI
324 bool "Support for MMC controllers on PCI"
Bin Meng511dcc32021-02-15 20:01:44 +0800325 depends on MMC_SDHCI
Felipe Balbib706b1c2017-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 Garapati70859892019-10-19 18:03:01 -0700330config MMC_OCTEONTX
Stefan Roesef9bb0ba2021-03-12 09:48:25 +0100331 bool "Marvell Octeon Multimedia Card Interface support"
332 depends on (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2)
Suneel Garapati70859892019-10-19 18:03:01 -0700333 depends on DM_MMC
334 help
Stefan Roesef9bb0ba2021-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 Garapati70859892019-10-19 18:03:01 -0700338
Felipe Balbib706b1c2017-02-20 14:24:13 +0300339 If unsure, say N.
340
Harm Berntsenc689ae02021-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 Yamada1d2c0502017-01-10 13:32:07 +0900350config MMC_OMAP_HS
351 bool "TI OMAP High Speed Multimedia Card Interface support"
Simon Glasse7881d82017-07-29 11:35:31 -0600352 select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
Jean-Jacques Hiblot8ff77632017-09-21 17:03:10 +0200353 select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
Masahiro Yamada1d2c0502017-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 Hiblot27a4b3b2018-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 Ford6aca17c2017-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 Iwamatsu72d42ba2014-12-17 08:03:00 +0900382config SH_SDHI
383 bool "SuperH/Renesas ARM SoCs on-chip SDHI host controller support"
Marek Vasut0f531182017-05-13 15:51:14 +0200384 depends on ARCH_RMOBILE
Nobuhiro Iwamatsu72d42ba2014-12-17 08:03:00 +0900385 help
386 Support for the on-chip SDHI host controller on SuperH/Renesas ARM SoCs platform
387
Marek Vasutf3dca4a2018-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 Yamadaa111bfb2016-02-18 19:52:48 +0900394config MMC_UNIPHIER
Marek Vasut7dfddc02017-09-23 13:30:30 +0200395 bool "UniPhier SD/MMC Host Controller support"
396 depends on ARCH_UNIPHIER
Simon Glasse7881d82017-07-29 11:35:31 -0600397 depends on BLK && DM_MMC
Masahiro Yamada9c720c82016-12-30 23:20:14 +0900398 depends on OF_CONTROL
Masahiro Yamadaa111bfb2016-02-18 19:52:48 +0900399 help
Marek Vasutb24633d2017-07-21 23:24:36 +0200400 This selects support for the Matsushita SD/MMC Host Controller on
Marek Vasut7dfddc02017-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 Vasutd2661d82020-04-04 12:45:04 +0200408 select BOUNCE_BUFFER
Marek Vasut7dfddc02017-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 Yamadaa111bfb2016-02-18 19:52:48 +0900412
Alexander Grafc8a73a22018-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 Burtond7727132018-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 Yamadaa5995a52017-01-30 19:46:50 +0900433config MMC_SANDBOX
Simon Glassf376a3c2016-05-01 13:52:42 -0600434 bool "Sandbox MMC support"
Masahiro Yamadaa5995a52017-01-30 19:46:50 +0900435 depends on SANDBOX
Simon Glasse7881d82017-07-29 11:35:31 -0600436 depends on BLK && DM_MMC && OF_CONTROL
Simon Glassf376a3c2016-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 Yamadae1ce61f2016-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 Yamada3d3a74c2016-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 Yamada45a68fe2016-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 Abbas37cb6262019-04-16 23:06:58 +0530468config MMC_SDHCI_ADMA
469 bool "Support SDHCI ADMA2"
470 depends on MMC_SDHCI
Michael Walle4d6a7732020-09-23 12:42:51 +0200471 select MMC_SDHCI_ADMA_HELPERS
Faiz Abbas37cb6262019-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 Rinib3401992022-06-10 23:03:09 -0400478 depends on SPL_MMC && MMC_SDHCI
Michael Walle4d6a7732020-09-23 12:42:51 +0200479 select MMC_SDHCI_ADMA_HELPERS
Faiz Abbas37cb6262019-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 Packhamb19512f2022-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 James7764ee22019-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 Stanley66900bc2022-06-23 18:35:34 +0930502 select MISC
Eddie James7764ee22019-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 Yamadadd3b64e2017-01-30 19:46:55 +0900509config MMC_SDHCI_ATMEL
510 bool "Atmel SDHCI controller support"
511 depends on ARCH_AT91
Simon Glasse7881d82017-07-29 11:35:31 -0600512 depends on DM_MMC && BLK && ARCH_AT91
Masahiro Yamadadd3b64e2017-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 Yamada45a68fe2016-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 Yamada3d3a74c2016-12-07 22:10:30 +0900525 select MMC_SDHCI_IO_ACCESSORS
Masahiro Yamada45a68fe2016-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 Fitzsimmons894c3ad2018-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 Yamadae5e7a7c2016-12-30 22:41:46 +0900545config MMC_SDHCI_CADENCE
546 bool "SDHCI support for the Cadence SD/SDIO/eMMC controller"
Simon Glasse7881d82017-07-29 11:35:31 -0600547 depends on BLK && DM_MMC
Masahiro Yamadae5e7a7c2016-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 Abbas3a1a0df2019-06-11 00:43:31 +0530557config MMC_SDHCI_AM654
558 bool "SDHCI Controller on TI's Am654 devices"
Lokesh Vutlaaaa449f2018-08-27 15:57:54 +0530559 depends on ARCH_K3
560 depends on MMC_SDHCI
561 depends on DM_MMC && OF_CONTROL && BLK
Faiz Abbasce142ff2019-06-11 00:43:38 +0530562 depends on REGMAP
Faiz Abbas27a87c82021-02-04 15:10:54 +0530563 select MMC_SDHCI_IO_ACCESSORS
Lokesh Vutlaaaa449f2018-08-27 15:57:54 +0530564 help
Faiz Abbas3a1a0df2019-06-11 00:43:31 +0530565 Support for Secure Digital Host Controller Interface (SDHCI)
566 controllers present on TI's AM654 SOCs.
Lokesh Vutlaaaa449f2018-08-27 15:57:54 +0530567
Arun Parameswaran36645f42019-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 Brardadd43c2021-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 Yamada45a68fe2016-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 Yamada360c67d2017-01-30 19:46:53 +0900599config MMC_SDHCI_MSM
600 bool "Qualcomm SDHCI controller"
Simon Glasse7881d82017-07-29 11:35:31 -0600601 depends on BLK && DM_MMC
Masahiro Yamada360c67d2017-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 Yamada45a68fe2016-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
Masahiro Yamada1b858772017-01-30 19:46:54 +0900621config MMC_SDHCI_PIC32
622 bool "Microchip PIC32 on-chip SDHCI support"
623 depends on DM_MMC && MACH_PIC32
624 depends on MMC_SDHCI
625 help
626 Support for Microchip PIC32 SDHCI controller.
627
Masahiro Yamadafacc8052017-01-30 19:46:52 +0900628config MMC_SDHCI_ROCKCHIP
629 bool "Arasan SDHCI controller for Rockchip support"
630 depends on ARCH_ROCKCHIP
Simon Glasse7881d82017-07-29 11:35:31 -0600631 depends on DM_MMC && BLK
Masahiro Yamadafacc8052017-01-30 19:46:52 +0900632 depends on MMC_SDHCI
633 help
634 Support for Arasan SDHCI host controller on Rockchip ARM SoCs platform
635
Masahiro Yamada45a68fe2016-12-07 22:10:29 +0900636config MMC_SDHCI_S5P
637 bool "SDHCI support on Samsung S5P SoC"
638 depends on MMC_SDHCI
639 help
640 This selects the Secure Digital Host Controller Interface (SDHCI)
641 on Samsung S5P SoCs.
642
643 If you have a controller with this interface, say Y here.
644
645 If unsure, say N.
646
647config MMC_SDHCI_SPEAR
648 bool "SDHCI support on ST SPEAr platform"
649 depends on MMC_SDHCI
650 help
651 This selects the Secure Digital Host Controller Interface (SDHCI)
652 often referrered to as the HSMMC block in some of the ST SPEAR range
653 of SoC
654
655 If you have a controller with this interface, say Y here.
656
657 If unsure, say N.
658
Patrice Chotardeee20f82017-02-21 13:37:09 +0100659config MMC_SDHCI_STI
660 bool "SDHCI support for STMicroelectronics SoC"
Patrice Chotard51cb23d2017-02-21 13:37:11 +0100661 depends on MMC_SDHCI && OF_CONTROL
Patrice Chotardeee20f82017-02-21 13:37:09 +0100662 help
663 This selects the Secure Digital Host Controller Interface (SDHCI)
664 on STMicroelectronics STiH410 SoC.
665
Stefan Roeseb6acb5f2016-12-09 15:03:28 +0100666config MMC_SDHCI_XENON
667 bool "SDHCI support for the Xenon SDHCI controller"
668 depends on MMC_SDHCI && DM_MMC && OF_CONTROL
669 help
670 Support for Xenon SDHCI host controller on Marvell Armada 3700
671 7k/8k ARM SoCs platforms
672
673 If you have a controller with this interface, say Y here.
674
675 If unsure, say N.
676
Felipe Balbi83b32482017-02-20 14:24:14 +0300677config MMC_SDHCI_TANGIER
678 bool "Tangier SDHCI controller support"
679 depends on DM_MMC && BLK
680 depends on MMC_SDHCI
681 help
682 This selects support for SDHCI controller on Tanginer
683 SoC. Note that this controller does not sit on PCI bus and,
684 hence, cannot be enumerated by standard PCI means.
685
686 If you're using an Intel Tangier SoC (available on Intel
687 Edison board), say Y here.
688
689 If unsure, say N.
690
Masahiro Yamada1d2c0502017-01-10 13:32:07 +0900691config MMC_SDHCI_TEGRA
692 bool "SDHCI platform support for the Tegra SD/MMC Controller"
Trevor Woerner18138ab2020-05-06 08:02:41 -0400693 depends on ARCH_TEGRA
Philipp Tomsich2acc24f2018-11-30 22:13:25 +0100694 select BOUNCE_BUFFER
Masahiro Yamada1d2c0502017-01-10 13:32:07 +0900695 default y
696 help
697 This selects the Tegra SD/MMC controller. If you have a Tegra
698 platform with SD or MMC devices, say Y here.
699
700 If unsure, say N.
701
Trent Piephob78d97e2019-04-01 23:05:49 +0000702config TEGRA124_MMC_DISABLE_EXT_LOOPBACK
703 bool "Disable external clock loopback"
704 depends on MMC_SDHCI_TEGRA && TEGRA124
705 help
706 Disable the external clock loopback and use the internal one on SDMMC3
707 as per the SDMMC_VENDOR_MISC_CNTRL_0 register's SDMMC_SPARE1 bits
708 being set to 0xfffd according to the TRM.
709
710 TODO(marcel.ziswiler@toradex.com): Move to device tree controlled
711 approach once proper kernel integration made it mainline.
712
Masahiro Yamada08aa0332017-01-30 19:46:51 +0900713config MMC_SDHCI_ZYNQ
714 bool "Arasan SDHCI controller support"
Simon Glasse7881d82017-07-29 11:35:31 -0600715 depends on DM_MMC && OF_CONTROL && BLK
Masahiro Yamada08aa0332017-01-30 19:46:51 +0900716 depends on MMC_SDHCI
717 help
718 Support for Arasan SDHCI host controller on Zynq/ZynqMP ARM SoCs platform
719
Vipul Kumar5dc5a532018-02-28 15:53:28 +0530720config ZYNQ_SDHCI_MAX_FREQ
721 int "Set the maximum frequency of the controller"
722 depends on MMC_SDHCI_ZYNQ
723 help
724 Set the maximum frequency of the controller.
725
Vipul Kumar3ccc2072018-02-28 15:53:29 +0530726config ZYNQ_SDHCI_MIN_FREQ
727 int "Set the minimum frequency of the controller"
728 depends on MMC_SDHCI_ZYNQ
729 default 0
730 help
731 Set the minimum frequency of the controller.
732
Siva Durga Prasad Paladugud882f082019-05-27 14:33:14 +0530733config ZYNQ_HISPD_BROKEN
734 bool "High speed broken for Zynq SDHCI controller"
735 depends on MMC_SDHCI_ZYNQ
736 help
737 Set if high speed mode is broken.
738
Masahiro Yamada1d2c0502017-01-10 13:32:07 +0900739config MMC_SUNXI
740 bool "Allwinner sunxi SD/MMC Host Controller support"
Samuel Holland818e1632022-04-10 00:13:34 -0500741 depends on ARCH_SUNXI
Masahiro Yamada1d2c0502017-01-10 13:32:07 +0900742 default y
743 help
744 This selects support for the SD/MMC Host Controller on
745 Allwinner sunxi SoCs.
746
Maxime Ripardde9b1772017-08-23 12:03:41 +0200747config MMC_SUNXI_HAS_NEW_MODE
748 bool
749 depends on MMC_SUNXI
750
Vasily Khoruzhick2a8882e2018-11-09 20:41:44 -0800751config MMC_SUNXI_HAS_MODE_SWITCH
752 bool
753 depends on MMC_SUNXI
754
Tianrui Weid6b156e2021-07-01 12:54:20 +0800755config MMC_PITON
756 bool "MMC support for OpenPiton SoC"
757 depends on DM_MMC && BLK
758 help
759 This selects support for the SD host controller on OpenPiton SoC.
760 Note that this SD controller directly exposes the contents of the
761 SD card as memory mapped, so there is no manual configuration
762 required
763
Wenyou Yangc86c0152017-04-13 10:29:22 +0800764config GENERIC_ATMEL_MCI
765 bool "Atmel Multimedia Card Interface support"
Simon Glasse7881d82017-07-29 11:35:31 -0600766 depends on DM_MMC && BLK && ARCH_AT91
Wenyou Yangc86c0152017-04-13 10:29:22 +0800767 help
768 This enables support for Atmel High Speed Multimedia Card Interface
769 (HSMCI), which supports the MultiMedia Card (MMC) Specification V4.3,
770 the SD Memory Card Specification V2.0, the SDIO V2.0 specification
771 and CE-ATA V1.1.
772
Patrice Chotardb312c592017-09-04 17:56:22 +0200773config STM32_SDMMC2
774 bool "STMicroelectronics STM32H7 SD/MMC Host Controller support"
Patrice Chotard53c656a2017-10-03 15:54:58 +0200775 depends on DM_MMC && BLK && OF_CONTROL
Patrice Chotardb312c592017-09-04 17:56:22 +0200776 help
777 This selects support for the SD/MMC controller on STM32H7 SoCs.
778 If you have a board based on such a SoC and with a SD/MMC slot,
779 say Y or M here.
780
Rick Chen9f678ab2017-11-14 14:47:09 +0800781config FTSDC010
782 bool "Ftsdc010 SD/MMC controller Support"
783 help
784 This SD/MMC controller is present in Andestech SoCs which is based on Faraday IP.
785
Rick Chen095c9f32018-03-20 15:10:49 +0800786config FTSDC010_SDIO
787 bool "Support ftsdc010 sdio"
Rick Chen095c9f32018-03-20 15:10:49 +0800788 depends on FTSDC010
789 help
790 This can enable ftsdc010 sdio function.
791
Weijie Gaod24b6932018-11-15 10:08:04 +0800792config MMC_MTK
793 bool "MediaTek SD/MMC Card Interface support"
Weijie Gao3c92a952019-09-25 17:45:37 +0800794 depends on ARCH_MEDIATEK || ARCH_MTMIPS
Weijie Gaod24b6932018-11-15 10:08:04 +0800795 depends on BLK && DM_MMC
796 depends on OF_CONTROL
797 help
798 This selects the MediaTek(R) Secure digital and Multimedia card Interface.
799 If you have a machine with a integrated SD/MMC card reader, say Y or M here.
800 This is needed if support for any SD/SDIO/MMC devices is required.
801 If unsure, say N.
802
Masahiro Yamadae298c462016-12-07 22:10:27 +0900803endif
804
Mario Six07dea2e2018-03-28 14:38:19 +0200805config FSL_ESDHC
806 bool "Freescale/NXP eSDHC controller support"
807 help
Yangbo Lufa33d202019-06-21 11:42:27 +0800808 This selects support for the eSDHC (Enhanced Secure Digital Host
809 Controller) found on numerous Freescale/NXP SoCs.
810
Michael Walle361a4222020-10-12 10:07:14 +0200811config FSL_ESDHC_SUPPORT_ADMA2
812 bool "enable ADMA2 support"
813 depends on FSL_ESDHC
814 select MMC_SDHCI_ADMA_HELPERS
815 help
816 This enables support for the ADMA2 transfer mode. If supported by the
817 eSDHC it will allow 64bit DMA addresses.
818
Yangbo Luc927d652020-05-19 11:06:44 +0800819config FSL_ESDHC_33V_IO_RELIABILITY_WORKAROUND
820 bool "enable eSDHC workaround for 3.3v IO reliability issue"
821 depends on FSL_ESDHC && DM_MMC
Yangbo Luc927d652020-05-19 11:06:44 +0800822 help
823 When eSDHC operates at 3.3v, damage can accumulate in an internal
824 level shifter at a higher than expected rate. The faster the interface
825 runs, the more damage accumulates. This issue now is found on LX2160A
826 eSDHC1 for only SD card. The hardware workaround is recommended to use
827 an on-board level shifter that is 1.8v on SoC side and 3.3v on SD card
828 side. For boards without hardware workaround, this option could be
829 enabled, ensuring 1.8v IO voltage and disabling eSDHC if no card.
830 This option assumes no hotplug, and u-boot has to make all the way to
831 to linux to use 1.8v UHS-I speed mode if has card.
832
Yangbo Luae7020b2021-06-03 10:51:17 +0800833config FSL_ESDHC_VS33_NOT_SUPPORT
834 bool "3.3V power supply not supported"
835 depends on FSL_ESDHC
836 help
837 For eSDHC, power supply is through peripheral circuit. 3.3V support is
838 common. Select this if 3.3V power supply not supported.
839
Pali Rohár8f3f8ba2022-05-11 20:27:13 +0200840config SYS_FSL_ESDHC_DEFAULT_BUS_WIDTH
841 int
842 depends on FSL_ESDHC
843 default 1
844
Tom Rini7e7d04a2022-06-16 14:04:38 -0400845config ESDHC_DETECT_QUIRK
846 bool "QIXIS-based eSDHC quirk detection"
847 depends on FSL_ESDHC && FSL_QIXIS
848
Yangbo Lufa33d202019-06-21 11:42:27 +0800849config FSL_ESDHC_IMX
850 bool "Freescale/NXP i.MX eSDHC controller support"
851 help
852 This selects support for the i.MX eSDHC (Enhanced Secure Digital Host
853 Controller) found on numerous Freescale/NXP SoCs.
Mario Six07dea2e2018-03-28 14:38:19 +0200854
Adam Ford3f70bef2019-08-14 07:23:43 -0500855config FSL_USDHC
856 bool "Freescale/NXP i.MX uSDHC controller support"
Peng Fan744c5fd2021-08-07 16:00:46 +0800857 depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMX8ULP || IMXRT
Adam Ford3f70bef2019-08-14 07:23:43 -0500858 select FSL_ESDHC_IMX
859 help
860 This enables the Ultra Secured Digital Host Controller enhancements
861
Nobuhiro Iwamatsu72d42ba2014-12-17 08:03:00 +0900862endmenu
York Sunc01e4a12016-12-28 08:43:42 -0800863
864config SYS_FSL_ERRATUM_ESDHC111
865 bool
866
867config SYS_FSL_ERRATUM_ESDHC13
868 bool
869
870config SYS_FSL_ERRATUM_ESDHC135
871 bool
872
873config SYS_FSL_ERRATUM_ESDHC_A001
874 bool
Michael Wallebd7b8502021-03-17 15:01:36 +0100875
876config SYS_FSL_ERRATUM_A011334
877 bool
Michael Walled3b745f2021-03-17 15:01:37 +0100878
879config SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
880 bool