blob: 4827834b4aab369f8de79cf3fa309ff0d802bbda [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
Tom Rini9604ece2025-01-14 19:22:11 -06006 select BLK
Tom Rinie97402e2025-01-14 19:22:09 -06007 select DM_MMC
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"
Jonas Karlmanf2ceb752024-01-27 17:12:35 +000024 depends on PWRSEQ && DM_GPIO
Jaehoon Chung48ad8272021-02-16 10:16:52 +090025 help
Jonas Karlmanf2ceb752024-01-27 17:12:35 +000026 This select Hardware reset support aka pwrseq-emmc for eMMC
Jaehoon Chung48ad8272021-02-16 10:16:52 +090027 devices.
28
Jonas Karlmanf2ceb752024-01-27 17:12:35 +000029config SPL_MMC_PWRSEQ
30 bool "HW reset support for eMMC in SPL"
31 depends on SPL_PWRSEQ && SPL_DM_GPIO
32 default y if MMC_PWRSEQ
33 help
34 This select Hardware reset support aka pwrseq-emmc for eMMC
35 devices in SPL.
36
Jun Nieb4f4f6e2018-01-02 12:25:57 +080037config MMC_BROKEN_CD
38 bool "Poll for broken card detection case"
39 help
40 If card detection feature is broken, just poll to detect.
41
Simon Glass1e8eb1b2015-06-23 15:38:48 -060042config DM_MMC
Tom Rinie97402e2025-01-14 19:22:09 -060043 bool
Simon Glass1e8eb1b2015-06-23 15:38:48 -060044 depends on DM
45 help
Tom Rinie97402e2025-01-14 19:22:09 -060046 This enables the MultiMediaCard (MMC) driver model uclass which
47 supports MMC and Secure Digital I/O (SDIO) cards. Both removable (SD,
48 micro-SD, etc.) and non-removable (e.g. eMMC chip) devices are
49 supported. These appear as block devices in U-Boot and can support
50 filesystems such as EXT4 and FAT.
Simon Glass1e8eb1b2015-06-23 15:38:48 -060051
Simon Glass5f4bd8c2017-07-04 13:31:19 -060052config SPL_DM_MMC
53 bool "Enable MMC controllers using Driver Model in SPL"
54 depends on SPL_DM && DM_MMC
Pali Rohár3c5ce032022-05-24 10:58:42 +020055 default n if ARCH_MVEBU && !MVEBU_SPL_BOOT_DEVICE_MMC
Simon Glass5f4bd8c2017-07-04 13:31:19 -060056 default y
Oleksandr Suvorov5c59a672023-08-23 18:45:45 +030057 select SPL_BLK
Simon Glass5f4bd8c2017-07-04 13:31:19 -060058 help
59 This enables the MultiMediaCard (MMC) uclass which supports MMC and
60 Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
61 and non-removable (e.g. eMMC chip) devices are supported. These
62 appear as block devices in U-Boot and can support filesystems such
63 as EXT4 and FAT.
64
Simon Glass89e920a2024-09-20 09:24:36 +020065config TPL_DM_MMC
66 bool "Enable MMC controllers using Driver Model in TPL"
67 depends on TPL_DM && DM_MMC
68 select TPL_BLK
69 help
70 This enables the MultiMediaCard (MMC) uclass which supports MMC and
71 Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
72 and non-removable (e.g. eMMC chip) devices are supported. These
73 appear as block devices in U-Boot and can support filesystems such
74 as EXT4 and FAT.
75
Masahiro Yamadae8b99722016-12-07 22:10:27 +090076if MMC
77
Michael Walle02016c62020-09-23 12:42:51 +020078config MMC_SDHCI_ADMA_HELPERS
79 bool
80
Bhargav Shaha1afe252019-07-08 04:10:48 +000081config MMC_SPI
82 bool "Support for SPI-based MMC controller"
Tom Rinie97402e2025-01-14 19:22:09 -060083 depends on DM_SPI
Bhargav Shaha1afe252019-07-08 04:10:48 +000084 help
85 This selects SPI-based MMC controllers.
86 If you have an MMC controller on a SPI bus, say Y here.
87
88 If unsure, say N.
89
90config MMC_SPI_CRC_ON
91 bool "Support CRC for SPI-based MMC controller"
92 depends on MMC_SPI
93 default y
94 help
95 This enables CRC for SPI-based MMC controllers.
96
97 If unsure, say N.
98
Patrice Chotardfcce4202017-10-23 10:57:31 +020099config ARM_PL180_MMCI
100 bool "ARM AMBA Multimedia Card Interface and compatible support"
Patrice Chotardfcce4202017-10-23 10:57:31 +0200101 help
102 This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card
103 Interface (PL180, PL181 and compatible) support.
104 If you have an ARM(R) platform with a Multimedia Card slot,
Heinrich Schuchardtb8bcdeb2024-01-23 17:18:16 +0100105 say Y here.
Patrice Chotardfcce4202017-10-23 10:57:31 +0200106
Kishon Vijay Abraham I07baaa62017-09-21 16:30:10 +0200107config MMC_QUIRKS
108 bool "Enable quirks"
109 default y
110 help
111 Some cards and hosts may sometimes behave unexpectedly (quirks).
112 This option enable workarounds to handle those quirks. Some of them
Joel Johnson9cbee2c2020-01-11 09:08:15 -0700113 are enabled by default, other may require additional flags or are
Kishon Vijay Abraham I07baaa62017-09-21 16:30:10 +0200114 enabled by the host driver.
115
Tom Rini91735482022-10-28 20:27:05 -0400116config SYS_MMC_MAX_BLK_COUNT
117 int "Block count limit"
118 default 65535
119 help
120 The block count limit on MMC based devices. We default to 65535 due
121 to a 16bit register limit on some hardware.
122
Jean-Jacques Hiblot1d7769a2017-11-30 17:44:02 +0100123config MMC_HW_PARTITIONING
124 bool "Support for HW partitioning command(eMMC)"
125 default y
126 help
127 This adds a command and an API to do hardware partitioning on eMMC
128 devices.
129
Alex Kiernan60e0f612018-05-08 04:43:31 +0000130config SUPPORT_EMMC_RPMB
131 bool "Support eMMC replay protected memory block (RPMB)"
132 imply CMD_MMC_RPMB
Raymond Maoa571b982024-10-03 14:50:16 -0700133 select SHA256
Alex Kiernan60e0f612018-05-08 04:43:31 +0000134 help
135 Enable support for reading, writing and programming the
136 key for the Replay Protection Memory Block partition in eMMC.
137
Alex Kiernan00848772019-05-01 07:58:27 +0000138config SUPPORT_EMMC_BOOT
139 bool "Support some additional features of the eMMC boot partitions"
140 help
141 Enable support for eMMC boot partitions. This also enables
142 extensions within the mmc command.
143
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100144config MMC_IO_VOLTAGE
145 bool "Support IO voltage configuration"
146 help
147 IO voltage configuration allows selecting the voltage level of the IO
148 lines (not the level of main supply). This is required for UHS
149 support. For eMMC this not mandatory, but not enabling this option may
150 prevent the driver of using the faster modes.
151
152config SPL_MMC_IO_VOLTAGE
153 bool "Support IO voltage configuration in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400154 depends on SPL_MMC
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100155 help
156 IO voltage configuration allows selecting the voltage level of the IO
157 lines (not the level of main supply). This is required for UHS
158 support. For eMMC this not mandatory, but not enabling this option may
159 prevent the driver of using the faster modes.
160
Tom Rinidec7ea02024-05-20 13:35:03 -0600161config MMC_SUPPORTS_TUNING
162 bool
163
164config SPL_MMC_SUPPORTS_TUNING
165 bool
166
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100167config MMC_UHS_SUPPORT
168 bool "enable UHS support"
169 depends on MMC_IO_VOLTAGE
Tom Rinidec7ea02024-05-20 13:35:03 -0600170 select MMC_SUPPORTS_TUNING
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100171 help
172 The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
173 cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
174 frequency can go up to 208MHz (SDR104)
175
176config SPL_MMC_UHS_SUPPORT
177 bool "enable UHS support in SPL"
178 depends on SPL_MMC_IO_VOLTAGE
Tom Rinidec7ea02024-05-20 13:35:03 -0600179 select SPL_MMC_SUPPORTS_TUNING
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100180 help
181 The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
182 cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
183 frequency can go up to 208MHz (SDR104)
184
Peng Faneede83b2019-07-10 14:43:07 +0800185config MMC_HS400_ES_SUPPORT
186 bool "enable HS400 Enhanced Strobe support"
187 help
188 The HS400 Enhanced Strobe mode is support by some eMMC. The bus
189 frequency is up to 200MHz. This mode does not tune the IO.
190
191config SPL_MMC_HS400_ES_SUPPORT
192 bool "enable HS400 Enhanced Strobe support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400193 depends on SPL_MMC
Peng Faneede83b2019-07-10 14:43:07 +0800194 help
195 The HS400 Enhanced Strobe mode is support by some eMMC. The bus
196 frequency is up to 200MHz. This mode does not tune the IO.
197
Peng Fan46801252018-08-10 14:07:54 +0800198config MMC_HS400_SUPPORT
199 bool "enable HS400 support"
200 select MMC_HS200_SUPPORT
201 help
202 The HS400 mode is support by some eMMC. The bus frequency is up to
203 200MHz. This mode requires tuning the IO.
204
205config SPL_MMC_HS400_SUPPORT
206 bool "enable HS400 support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400207 depends on SPL_MMC
Faiz Abbas373954e2019-08-01 16:33:36 +0530208 select SPL_MMC_HS200_SUPPORT
Peng Fan46801252018-08-10 14:07:54 +0800209 help
210 The HS400 mode is support by some eMMC. The bus frequency is up to
211 200MHz. This mode requires tuning the IO.
212
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100213config MMC_HS200_SUPPORT
214 bool "enable HS200 support"
Tom Rinidec7ea02024-05-20 13:35:03 -0600215 select MMC_SUPPORTS_TUNING
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100216 help
217 The HS200 mode is support by some eMMC. The bus frequency is up to
218 200MHz. This mode requires tuning the IO.
219
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100220config SPL_MMC_HS200_SUPPORT
221 bool "enable HS200 support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400222 depends on SPL_MMC
Tom Rinidec7ea02024-05-20 13:35:03 -0600223 select SPL_MMC_SUPPORTS_TUNING
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100224 help
225 The HS200 mode is support by some eMMC. The bus frequency is up to
226 200MHz. This mode requires tuning the IO.
227
Jean-Jacques Hiblota94fb412017-09-21 16:29:53 +0200228config MMC_VERBOSE
229 bool "Output more information about the MMC"
230 default y
231 help
232 Enable the output of more information about the card such as the
233 operating mode.
234
Jaehoon Chunge2bf5802018-01-26 19:25:31 +0900235config MMC_TRACE
236 bool "MMC debugging"
Jaehoon Chunge2bf5802018-01-26 19:25:31 +0900237 help
238 This is an option for use by developer. Enable MMC core debugging.
239
240 If you need to see the MMC core message, say Y.
241
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900242config MMC_DAVINCI
243 bool "TI DAVINCI Multimedia Card Interface support"
244 depends on ARCH_DAVINCI
245 default y
246 help
247 This selects the TI DAVINCI Multimedia card Interface.
248 If you have an DAVINCI board with a Multimedia Card slot,
249 say Y here. If unsure, say N.
250
Masahiro Yamada7942e912017-01-10 13:32:04 +0900251config MMC_DW
252 bool "Synopsys DesignWare Memory Card Interface"
Philipp Tomsichb3027472018-11-30 22:13:25 +0100253 select BOUNCE_BUFFER
Masahiro Yamada7942e912017-01-10 13:32:04 +0900254 help
255 This selects support for the Synopsys DesignWare Mobile Storage IP
256 block, this provides host support for SD and MMC interfaces, in both
257 PIO, internal DMA mode and external DMA mode.
258
Arthur Li055e18e2020-02-20 18:19:35 -0800259config MMC_DW_CORTINA
260 bool "Cortina specific extensions for Synopsys DW Memory Card Interface"
Arthur Li055e18e2020-02-20 18:19:35 -0800261 depends on MMC_DW
Arthur Li055e18e2020-02-20 18:19:35 -0800262 help
263 This selects support for Cortina SoC specific extensions to the
264 Synopsys DesignWare Memory Card Interface driver. Select this option
265 for platforms based on Cortina CAxxxx Soc's.
266
Masahiro Yamadaf1ad7282017-01-10 13:32:05 +0900267config MMC_DW_EXYNOS
268 bool "Exynos specific extensions for Synopsys DW Memory Card Interface"
269 depends on ARCH_EXYNOS
270 depends on MMC_DW
271 default y
272 help
273 This selects support for Samsung Exynos SoC specific extensions to the
274 Synopsys DesignWare Memory Card Interface driver. Select this option
275 for platforms based on Exynos4 and Exynos5 SoC's.
276
277config MMC_DW_K3
278 bool "K3 specific extensions for Synopsys DW Memory Card Interface"
279 depends on MMC_DW
280 help
281 This selects support for Hisilicon K3 SoC specific extensions to the
282 Synopsys DesignWare Memory Card Interface driver. Select this option
283 for platforms based on Hisilicon K3 SoC's.
284
Masahiro Yamadadc607f82017-01-10 13:32:03 +0900285config MMC_DW_ROCKCHIP
Simon Glass4ecaa6d2015-08-30 16:55:37 -0600286 bool "Rockchip SD/MMC controller support"
Tom Rinie97402e2025-01-14 19:22:09 -0600287 depends on OF_CONTROL
Masahiro Yamada7942e912017-01-10 13:32:04 +0900288 depends on MMC_DW
Simon Glass4ecaa6d2015-08-30 16:55:37 -0600289 help
290 This enables support for the Rockchip SD/MMM controller, which is
291 based on Designware IP. The device is compatible with at least
292 SD 3.0, SDIO 3.0 and MMC 4.5 and supports common eMMC chips as well
293 as removeable SD and micro-SD cards.
294
Masahiro Yamadaf1ad7282017-01-10 13:32:05 +0900295config MMC_DW_SOCFPGA
296 bool "SOCFPGA specific extensions for Synopsys DW Memory Card Interface"
297 depends on ARCH_SOCFPGA
298 depends on MMC_DW
299 default y
300 help
301 This selects support for Altera SOCFPGA specific extensions to the
302 Synopsys DesignWare Memory Card Interface driver. Select this option
303 for platforms based on Altera SOCFPGA.
304
Eugeniy Paltsevb050c2c2019-02-25 18:35:28 +0300305config MMC_DW_SNPS
306 bool "Extensions for DW Memory Card Interface used in Synopsys ARC devboards"
307 depends on MMC_DW
Eugeniy Paltsevb050c2c2019-02-25 18:35:28 +0300308 depends on OF_CONTROL
309 depends on CLK
310 help
311 This selects support for Synopsys DesignWare Memory Card Interface driver
312 extensions used in various Synopsys ARC devboards.
313
Stefan Bosch22c12f72020-07-10 19:07:29 +0200314config NEXELL_DWMMC
315 bool "Nexell SD/MMC controller support"
316 depends on ARCH_NEXELL
317 depends on MMC_DW
Stefan Bosch22c12f72020-07-10 19:07:29 +0200318 depends on PINCTRL_NEXELL
319 default y
320
Carlo Caione20cab782017-04-12 20:30:42 +0200321config MMC_MESON_GX
322 bool "Meson GX EMMC controller support"
Tom Rinie97402e2025-01-14 19:22:09 -0600323 depends on ARCH_MESON
Carlo Caione20cab782017-04-12 20:30:42 +0200324 help
325 Support for EMMC host controller on Meson GX ARM SoCs platform (S905)
326
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900327config MMC_MXC
328 bool "Freescale i.MX21/27/31 or MPC512x Multimedia Card support"
329 help
330 This selects the Freescale i.MX21, i.MX27, i.MX31 or MPC512x
331 Multimedia Card Interface. If you have an i.MX or MPC512x platform
332 with a Multimedia Card slot, say Y here.
333
334 If unsure, say N.
335
Amit Singh Tomar347494c2021-11-28 17:02:24 +0530336config MMC_OWL
337 bool "Actions OWL Multimedia Card Interface support"
Tom Rinie97402e2025-01-14 19:22:09 -0600338 depends on ARCH_OWL
Amit Singh Tomar347494c2021-11-28 17:02:24 +0530339 help
340 This selects the OWL SD/MMC host controller found on board
341 based on Actions S700/S900 SoC.
342
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900343config MMC_MXS
344 bool "Freescale MXS Multimedia Card Interface support"
Adam Forda456d562018-02-06 08:34:45 -0600345 depends on MX23 || MX28 || MX6 || MX7
Philipp Tomsichb3027472018-11-30 22:13:25 +0100346 select BOUNCE_BUFFER
Adam Forda456d562018-02-06 08:34:45 -0600347 select APBH_DMA
348 select APBH_DMA_BURST if ARCH_MX6 || ARCH_MX7
349 select APBH_DMA_BURST8 if ARCH_MX6 || ARCH_MX7
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900350 help
351 This selects the Freescale SSP MMC controller found on MXS based
352 platforms like mx23/28.
353
354 If unsure, say N.
355
Felipe Balbiecf7dfd2017-02-20 14:24:13 +0300356config MMC_PCI
357 bool "Support for MMC controllers on PCI"
Bin Meng3d81f022021-02-15 20:01:44 +0800358 depends on MMC_SDHCI
Felipe Balbiecf7dfd2017-02-20 14:24:13 +0300359 help
360 This selects PCI-based MMC controllers.
361 If you have an MMC controller on a PCI bus, say Y here.
362
Suneel Garapati40e61332019-10-19 18:03:01 -0700363config MMC_OCTEONTX
Stefan Roesee06f5522021-03-12 09:48:25 +0100364 bool "Marvell Octeon Multimedia Card Interface support"
365 depends on (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2)
Tom Rinidec7ea02024-05-20 13:35:03 -0600366 select MMC_SUPPORTS_TUNING if ARCH_OCTEONTX2
Suneel Garapati40e61332019-10-19 18:03:01 -0700367 help
Stefan Roesee06f5522021-03-12 09:48:25 +0100368 This selects the Octeon Multimedia card Interface.
369 If you have an OcteonTX/TX2 or MIPS Octeon board with a
370 Multimedia Card slot, say Y here.
Suneel Garapati40e61332019-10-19 18:03:01 -0700371
Felipe Balbiecf7dfd2017-02-20 14:24:13 +0300372 If unsure, say N.
373
Harm Berntsen7b9e5af2021-03-30 10:19:41 +0200374config MVEBU_MMC
375 bool "Kirkwood MMC controller support"
Tom Rinie97402e2025-01-14 19:22:09 -0600376 depends on ARCH_KIRKWOOD
Harm Berntsen7b9e5af2021-03-30 10:19:41 +0200377 help
378 Support for MMC host controller on Kirkwood SoCs.
379 If you are on a Kirkwood architecture, say Y here.
380
381 If unsure, say N.
382
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900383config MMC_OMAP_HS
384 bool "TI OMAP High Speed Multimedia Card Interface support"
Tom Rinie97402e2025-01-14 19:22:09 -0600385 select DM_REGULATOR_PBIAS if DM_REGULATOR
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900386 help
387 This selects the TI OMAP High Speed Multimedia card Interface.
388 If you have an omap2plus board with a Multimedia Card slot,
389 say Y here.
390
391 If unsure, say N.
392
Jean-Jacques Hiblotcebf0592018-02-23 10:40:18 +0100393config MMC_OMAP_HS_ADMA
394 bool "ADMA support for OMAP HS MMC"
395 depends on MMC_OMAP_HS && !OMAP34XX
396 default y if !AM33XX
397 help
398 This enables support for the ADMA2 controller (SDA3.00 Part A2 DMA
399 controller). If supported by the hardware, selecting this option will
400 increase performances.
401
Adam Fordef354962017-02-06 11:31:43 -0600402config MMC_OMAP36XX_PINS
403 bool "Enable MMC1 on OMAP36xx/37xx"
404 depends on OMAP34XX && MMC_OMAP_HS
405 help
406 This enables extended-drain in the MMC/SD/SDIO1I/O and
407 GPIO-associated I/O cells (gpio_126, gpio_127, and gpio_129)
408 specific to the OMAP36xx/37xx using MMC1
409
410 If you have a controller with this interface, say Y here.
411
412 If unsure, say N.
413
Tom Riniaf816552022-12-02 16:42:16 -0500414config HSMMC2_8BIT
415 bool "Enable 8-bit interface for eMMC (interface #2)"
Tom Rini8c6b4372024-07-15 13:35:53 -0600416 depends on MMC_OMAP_HS && (OMAP54XX || DRA7XX || AM33XX || \
Tom Riniaf816552022-12-02 16:42:16 -0500417 AM43XX || ARCH_KEYSTONE)
418
Marek Vasuta8624ac2018-04-21 17:40:20 +0200419config SH_MMCIF
420 bool "SuperH/Renesas ARM SoCs on-chip MMCIF host controller support"
Marek Vasut6468c4c2024-02-27 17:05:55 +0100421 depends on ARCH_RENESAS || SH
Marek Vasuta8624ac2018-04-21 17:40:20 +0200422 help
423 Support for the on-chip MMCIF host controller on SuperH/Renesas ARM SoCs platform
424
Masahiro Yamadaa0cfcc02016-02-18 19:52:48 +0900425config MMC_UNIPHIER
Marek Vasut2883f742017-09-23 13:30:30 +0200426 bool "UniPhier SD/MMC Host Controller support"
427 depends on ARCH_UNIPHIER
Masahiro Yamadac2326532016-12-30 23:20:14 +0900428 depends on OF_CONTROL
Masahiro Yamadaa0cfcc02016-02-18 19:52:48 +0900429 help
Marek Vasut847ee0c2017-07-21 23:24:36 +0200430 This selects support for the Matsushita SD/MMC Host Controller on
Marek Vasut2883f742017-09-23 13:30:30 +0200431 SocioNext UniPhier SoCs.
432
433config RENESAS_SDHI
434 bool "Renesas R-Car SD/MMC Host Controller support"
Marek Vasut6468c4c2024-02-27 17:05:55 +0100435 depends on ARCH_RENESAS
Marek Vasut2883f742017-09-23 13:30:30 +0200436 depends on OF_CONTROL
Marek Vasut9f7baeb2020-04-04 12:45:04 +0200437 select BOUNCE_BUFFER
Marek Vasut2883f742017-09-23 13:30:30 +0200438 help
439 This selects support for the Matsushita SD/MMC Host Controller on
440 Renesas R-Car SoCs.
Masahiro Yamadaa0cfcc02016-02-18 19:52:48 +0900441
Alexander Graf044725f2018-01-23 18:05:22 +0100442config MMC_BCM2835
443 bool "BCM2835 family custom SD/MMC Host Controller support"
444 depends on ARCH_BCM283X
Alexander Graf044725f2018-01-23 18:05:22 +0100445 depends on OF_CONTROL
446 default y
447 help
448 This selects support for the custom SD host controller in the BCM2835
449 family of devices.
450
451 If you have a BCM2835 platform with SD or MMC devices, say Y here.
452
453 If unsure, say N.
454
Paul Burton8e142842018-12-16 19:25:20 -0300455config JZ47XX_MMC
456 bool "Ingenic JZ47xx SD/MMC Host Controller support"
457 depends on ARCH_JZ47XX
458 help
459 This selects support for the SD Card Controller on Ingenic JZ47xx SoCs.
460
Masahiro Yamada54f7cfc2017-01-30 19:46:50 +0900461config MMC_SANDBOX
Simon Glassf9eebac2016-05-01 13:52:42 -0600462 bool "Sandbox MMC support"
Masahiro Yamada54f7cfc2017-01-30 19:46:50 +0900463 depends on SANDBOX
Tom Rinie97402e2025-01-14 19:22:09 -0600464 depends on OF_CONTROL
Simon Glassf9eebac2016-05-01 13:52:42 -0600465 help
466 This select a dummy sandbox MMC driver. At present this does nothing
467 other than allow sandbox to be build with MMC support. This
468 improves build coverage for sandbox and makes it easier to detect
469 MMC build errors with sandbox.
470
Masahiro Yamada7db8c172016-12-07 22:10:28 +0900471config MMC_SDHCI
472 bool "Secure Digital Host Controller Interface support"
473 help
474 This selects the generic Secure Digital Host Controller Interface.
475 It is used by manufacturers such as Texas Instruments(R), Ricoh(R)
476 and Toshiba(R). Most controllers found in laptops are of this type.
477
478 If you have a controller with this interface, say Y here.
479
480 If unsure, say N.
481
Masahiro Yamadabfd110f2016-12-07 22:10:30 +0900482config MMC_SDHCI_IO_ACCESSORS
483 bool
484 depends on MMC_SDHCI
485 help
486 This is silent Kconfig symbol that is selected by the drivers that
487 need to overwrite SDHCI IO memory accessors.
488
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900489config MMC_SDHCI_SDMA
490 bool "Support SDHCI SDMA"
491 depends on MMC_SDHCI
492 help
493 This enables support for the SDMA (Single Operation DMA) defined
494 in the SD Host Controller Standard Specification Version 1.00 .
495
Peter Geis4561ada2023-04-18 16:46:44 +0000496config SPL_MMC_SDHCI_SDMA
497 bool "Support SDHCI SDMA in SPL"
498 depends on SPL_MMC && MMC_SDHCI
499 default y if MMC_SDHCI_SDMA
500 help
501 This enables support for the SDMA (Single Operation DMA) defined
502 in the SD Host Controller Standard Specification Version 1.00 in SPL.
503
Faiz Abbas4c082a62019-04-16 23:06:58 +0530504config MMC_SDHCI_ADMA
505 bool "Support SDHCI ADMA2"
506 depends on MMC_SDHCI
Michael Walle02016c62020-09-23 12:42:51 +0200507 select MMC_SDHCI_ADMA_HELPERS
Faiz Abbas4c082a62019-04-16 23:06:58 +0530508 help
509 This enables support for the ADMA (Advanced DMA) defined
510 in the SD Host Controller Standard Specification Version 3.00
511
512config SPL_MMC_SDHCI_ADMA
513 bool "Support SDHCI ADMA2 in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400514 depends on SPL_MMC && MMC_SDHCI
Michael Walle02016c62020-09-23 12:42:51 +0200515 select MMC_SDHCI_ADMA_HELPERS
Faiz Abbas4c082a62019-04-16 23:06:58 +0530516 help
517 This enables support for the ADMA (Advanced DMA) defined
518 in the SD Host Controller Standard Specification Version 3.00 in SPL.
519
Greg Malysaeb92ef12024-03-25 22:28:08 -0400520config MMC_SDHCI_ADMA_FORCE_32BIT
521 bool "Force 32 bit mode for ADMA on 64 bit platforms"
522 help
523 This forces SDHCI ADMA to be built for 32 bit descriptors, even
524 on a 64 bit platform where they would otherwise be assumed to
525 be 64 bits. This is necessary for certain hardware platforms
526 that are 64-bit but include only 32-bit support within the selected
527 SD host controller IP.
528
529config MMC_SDHCI_ADMA_64BIT
530 bool "Use SHDCI ADMA with 64 bit descriptors"
531 depends on !MMC_SDHCI_ADMA_FORCE_32BIT
532 default y if DMA_ADDR_T_64BIT
533 help
534 This selects 64 bit descriptors for SDHCI ADMA. It is enabled by
535 default on 64 bit systems, but can be disabled if one of these
536 systems includes 32-bit ADMA.
537
Chris Packham7d5d5912022-05-29 11:13:17 +1200538config FIXED_SDHCI_ALIGNED_BUFFER
539 hex "SDRAM address for fixed buffer"
540 depends on SPL && MVEBU_SPL_BOOT_DEVICE_MMC
541 default 0x00180000
542 help
543 On the Marvell Armada 38x when the SPL runs it located in internal
544 SRAM which is the L2 cache locked to memory. When the MMC buffers
545 are located on the stack (or bss), the SDIO controller (SDHCI) can't
546 write into this L2 cache memory.
547
548 This specifies the address of a fixed buffer located in SDRAM that
549 will be used for all SDHCI transfers in the SPL.
550
Eddie Jamesc8a65812019-08-27 09:48:03 -0500551config MMC_SDHCI_ASPEED
552 bool "Aspeed SDHCI controller"
553 depends on ARCH_ASPEED
Eddie Jamesc8a65812019-08-27 09:48:03 -0500554 depends on MMC_SDHCI
Joel Stanley818a6b52022-06-23 18:35:34 +0930555 select MISC
Eddie Jamesc8a65812019-08-27 09:48:03 -0500556 help
557 Enables support for the Aspeed SDHCI 2.0 controller present on Aspeed
558 SoCs. This device is compatible with SD 3.0 and/or MMC 4.3
559 specifications. On the AST2600, the device is also compatible with
560 MMC 5.1 and eMMC 3.0.
561
Masahiro Yamada8c1a1322017-01-30 19:46:55 +0900562config MMC_SDHCI_ATMEL
563 bool "Atmel SDHCI controller support"
564 depends on ARCH_AT91
Tom Rinie97402e2025-01-14 19:22:09 -0600565 depends on ARCH_AT91
Masahiro Yamada8c1a1322017-01-30 19:46:55 +0900566 depends on MMC_SDHCI
567 help
568 This enables support for the Atmel SDHCI controller, which supports
569 the embedded MultiMedia Card (e.MMC) Specification V4.51, the SD
570 Memory Card Specification V3.0, and the SDIO V3.0 specification.
571 It is compliant with the SD Host Controller Standard V3.0
572 specification.
573
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900574config MMC_SDHCI_BCM2835
575 tristate "SDHCI support for the BCM2835 SD/MMC Controller"
576 depends on ARCH_BCM283X
577 depends on MMC_SDHCI
Masahiro Yamadabfd110f2016-12-07 22:10:30 +0900578 select MMC_SDHCI_IO_ACCESSORS
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900579 help
580 This selects the BCM2835 SD/MMC controller.
581
582 If you have a BCM2835 platform with SD or MMC devices,
583 say Y here.
584
585 If unsure, say N.
586
Thomas Fitzsimmons919646d2018-06-08 17:59:45 -0400587config MMC_SDHCI_BCMSTB
588 tristate "SDHCI support for the BCMSTB SD/MMC Controller"
589 depends on MMC_SDHCI
590 help
591 This selects the Broadcom set-top box SD/MMC controller.
592
593 If you have a BCMSTB platform with SD or MMC devices,
594 say Y here.
595
596 If unsure, say N.
597
Masahiro Yamadadcbc4432016-12-30 22:41:46 +0900598config MMC_SDHCI_CADENCE
599 bool "SDHCI support for the Cadence SD/SDIO/eMMC controller"
Masahiro Yamadadcbc4432016-12-30 22:41:46 +0900600 depends on MMC_SDHCI
601 depends on OF_CONTROL
602 help
603 This selects the Cadence SD/SDIO/eMMC driver.
604
605 If you have a controller with this interface, say Y here.
606
607 If unsure, say N.
608
Kongyang Liu331ee412024-03-10 01:51:55 +0800609config MMC_SDHCI_CV1800B
610 bool "SDHCI support for the CV1800B SD/SDIO/eMMC controller"
Kongyang Liu331ee412024-03-10 01:51:55 +0800611 depends on MMC_SDHCI
612 depends on OF_CONTROL
613 help
614 This selects the CV1800B SD/SDIO/eMMC driver.
615
616 If you have a controller with this interface,
617 say Y here.
618
619 If unsure, say N.
620
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530621config MMC_SDHCI_AM654
622 bool "SDHCI Controller on TI's Am654 devices"
Lokesh Vutlabc9979f2018-08-27 15:57:54 +0530623 depends on ARCH_K3
624 depends on MMC_SDHCI
Tom Rinie97402e2025-01-14 19:22:09 -0600625 depends on OF_CONTROL
Faiz Abbase9aed582019-06-11 00:43:38 +0530626 depends on REGMAP
Faiz Abbas36c8c5c2021-02-04 15:10:54 +0530627 select MMC_SDHCI_IO_ACCESSORS
Lokesh Vutlabc9979f2018-08-27 15:57:54 +0530628 help
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530629 Support for Secure Digital Host Controller Interface (SDHCI)
630 controllers present on TI's AM654 SOCs.
Lokesh Vutlabc9979f2018-08-27 15:57:54 +0530631
Arun Parameswaran2f4f34a2019-09-12 11:06:08 -0700632config MMC_SDHCI_IPROC
633 bool "SDHCI support for the iProc SD/MMC Controller"
634 depends on MMC_SDHCI
635 help
636 This selects the iProc SD/MMC controller.
637
638 If you have a Broadcom IPROC platform with SD or MMC devices,
Heinrich Schuchardtb8bcdeb2024-01-23 17:18:16 +0100639 say Y here.
Arun Parameswaran2f4f34a2019-09-12 11:06:08 -0700640
641 If unsure, say N.
642
Jassi Brar8188bda2021-06-04 18:44:16 +0900643config MMC_SDHCI_F_SDH30
Kunihiko Hayashi2cd5da62022-09-09 16:23:33 +0900644 bool "SDHCI support for Fujitsu Semiconductor/Socionext F_SDH30"
Jassi Brar8188bda2021-06-04 18:44:16 +0900645 depends on MMC_SDHCI
646 help
647 This selects the Secure Digital Host Controller Interface (SDHCI)
Kunihiko Hayashi2cd5da62022-09-09 16:23:33 +0900648 Needed by some Fujitsu/Socionext SoC for MMC / SD / SDIO support.
Heinrich Schuchardtb8bcdeb2024-01-23 17:18:16 +0100649 If you have a controller with this interface, say Y here.
Jassi Brar8188bda2021-06-04 18:44:16 +0900650 If unsure, say N.
651
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900652config MMC_SDHCI_KONA
653 bool "SDHCI support on Broadcom KONA platform"
654 depends on MMC_SDHCI
655 help
656 This selects the Broadcom Kona Secure Digital Host Controller
657 Interface(SDHCI) support.
658 This is used in Broadcom mobile SoCs.
659
660 If you have a controller with this interface, say Y here.
661
Masahiro Yamadaa1262eb2017-01-30 19:46:53 +0900662config MMC_SDHCI_MSM
663 bool "Qualcomm SDHCI controller"
Masahiro Yamadaa1262eb2017-01-30 19:46:53 +0900664 depends on MMC_SDHCI
665 help
666 Enables support for SDHCI 2.0 controller present on some Qualcomm
667 Snapdragon devices. This device is compatible with eMMC v4.5 and
668 SD 3.0 specifications. Both SD and eMMC devices are supported.
669 Card-detect gpios are not supported.
670
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900671config MMC_SDHCI_MV
672 bool "SDHCI support on Marvell platform"
673 depends on ARCH_MVEBU
674 depends on MMC_SDHCI
675 help
676 This selects the Secure Digital Host Controller Interface on
677 Marvell platform.
678
679 If you have a controller with this interface, say Y here.
680
681 If unsure, say N.
682
Jim Liu29cf22c2022-05-24 16:55:33 +0800683config MMC_SDHCI_NPCM
684 bool "SDHCI support on Nuvoton NPCM device"
685 depends on MMC_SDHCI
Jim Liu29cf22c2022-05-24 16:55:33 +0800686 help
687 This selects the Secure Digital Host Controller Interface (SDHCI)
688 on Nuvoton NPCM device.
689
690 If you have a controller with this interface, say Y here.
691
692 If unsure, say N.
693
Masahiro Yamadaf79df032017-01-30 19:46:54 +0900694config MMC_SDHCI_PIC32
695 bool "Microchip PIC32 on-chip SDHCI support"
Tom Rinie97402e2025-01-14 19:22:09 -0600696 depends on MACH_PIC32
Masahiro Yamadaf79df032017-01-30 19:46:54 +0900697 depends on MMC_SDHCI
698 help
699 Support for Microchip PIC32 SDHCI controller.
700
Masahiro Yamadababe0262017-01-30 19:46:52 +0900701config MMC_SDHCI_ROCKCHIP
702 bool "Arasan SDHCI controller for Rockchip support"
703 depends on ARCH_ROCKCHIP
Masahiro Yamadababe0262017-01-30 19:46:52 +0900704 depends on MMC_SDHCI
705 help
706 Support for Arasan SDHCI host controller on Rockchip ARM SoCs platform
707
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900708config MMC_SDHCI_S5P
709 bool "SDHCI support on Samsung S5P SoC"
710 depends on MMC_SDHCI
711 help
712 This selects the Secure Digital Host Controller Interface (SDHCI)
713 on Samsung S5P SoCs.
714
715 If you have a controller with this interface, say Y here.
716
717 If unsure, say N.
718
Maksim Kiselev6d6a8902024-12-11 23:10:59 +0300719config MMC_SDHCI_SNPS
720 bool "Synopsys DesignWare SDHCI controller"
721 depends on MMC_SDHCI
Maksim Kiselev6d6a8902024-12-11 23:10:59 +0300722 help
723 Support for DesignWare SDHCI host controller on Alibaba TH1520 SoC.
724 This is a highly configurable and programmable, high performance
725 Mobile Storage Host Controller (MSHC) with AXI as the bus interface
726 for data transfer.
727
728 If unsure, say N.
729
Patrice Chotard2eea7d82017-02-21 13:37:09 +0100730config MMC_SDHCI_STI
731 bool "SDHCI support for STMicroelectronics SoC"
Patrice Chotardcdf6b572017-02-21 13:37:11 +0100732 depends on MMC_SDHCI && OF_CONTROL
Patrice Chotard2eea7d82017-02-21 13:37:09 +0100733 help
734 This selects the Secure Digital Host Controller Interface (SDHCI)
735 on STMicroelectronics STiH410 SoC.
736
Stefan Roese121fc562016-12-09 15:03:28 +0100737config MMC_SDHCI_XENON
738 bool "SDHCI support for the Xenon SDHCI controller"
Tom Rinie97402e2025-01-14 19:22:09 -0600739 depends on MMC_SDHCI && OF_CONTROL
Stefan Roese121fc562016-12-09 15:03:28 +0100740 help
741 Support for Xenon SDHCI host controller on Marvell Armada 3700
742 7k/8k ARM SoCs platforms
743
744 If you have a controller with this interface, say Y here.
745
746 If unsure, say N.
747
Felipe Balbib7567602017-02-20 14:24:14 +0300748config MMC_SDHCI_TANGIER
749 bool "Tangier SDHCI controller support"
Felipe Balbib7567602017-02-20 14:24:14 +0300750 depends on MMC_SDHCI
751 help
752 This selects support for SDHCI controller on Tanginer
753 SoC. Note that this controller does not sit on PCI bus and,
754 hence, cannot be enumerated by standard PCI means.
755
756 If you're using an Intel Tangier SoC (available on Intel
757 Edison board), say Y here.
758
759 If unsure, say N.
760
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900761config MMC_SDHCI_TEGRA
762 bool "SDHCI platform support for the Tegra SD/MMC Controller"
Trevor Woerner513f6402020-05-06 08:02:41 -0400763 depends on ARCH_TEGRA
Philipp Tomsichb3027472018-11-30 22:13:25 +0100764 select BOUNCE_BUFFER
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900765 default y
766 help
767 This selects the Tegra SD/MMC controller. If you have a Tegra
768 platform with SD or MMC devices, say Y here.
769
770 If unsure, say N.
771
Trent Piepho1bf56c32019-04-01 23:05:49 +0000772config TEGRA124_MMC_DISABLE_EXT_LOOPBACK
773 bool "Disable external clock loopback"
774 depends on MMC_SDHCI_TEGRA && TEGRA124
775 help
776 Disable the external clock loopback and use the internal one on SDMMC3
777 as per the SDMMC_VENDOR_MISC_CNTRL_0 register's SDMMC_SPARE1 bits
778 being set to 0xfffd according to the TRM.
779
780 TODO(marcel.ziswiler@toradex.com): Move to device tree controlled
781 approach once proper kernel integration made it mainline.
782
Masahiro Yamada168c57d2017-01-30 19:46:51 +0900783config MMC_SDHCI_ZYNQ
784 bool "Arasan SDHCI controller support"
Tom Rinie97402e2025-01-14 19:22:09 -0600785 depends on OF_CONTROL
Masahiro Yamada168c57d2017-01-30 19:46:51 +0900786 depends on MMC_SDHCI
787 help
788 Support for Arasan SDHCI host controller on Zynq/ZynqMP ARM SoCs platform
789
Vipul Kumar62548002018-02-28 15:53:28 +0530790config ZYNQ_SDHCI_MAX_FREQ
791 int "Set the maximum frequency of the controller"
792 depends on MMC_SDHCI_ZYNQ
793 help
794 Set the maximum frequency of the controller.
795
Vipul Kumardcc14e32018-02-28 15:53:29 +0530796config ZYNQ_SDHCI_MIN_FREQ
797 int "Set the minimum frequency of the controller"
798 depends on MMC_SDHCI_ZYNQ
799 default 0
800 help
801 Set the minimum frequency of the controller.
802
Siva Durga Prasad Paladugua9a3d002019-05-27 14:33:14 +0530803config ZYNQ_HISPD_BROKEN
804 bool "High speed broken for Zynq SDHCI controller"
805 depends on MMC_SDHCI_ZYNQ
806 help
807 Set if high speed mode is broken.
808
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900809config MMC_SUNXI
810 bool "Allwinner sunxi SD/MMC Host Controller support"
Samuel Holland6b0d0bc2022-04-10 00:13:34 -0500811 depends on ARCH_SUNXI
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900812 default y
813 help
814 This selects support for the SD/MMC Host Controller on
815 Allwinner sunxi SoCs.
816
Maxime Ripard95e34702017-08-23 12:03:41 +0200817config MMC_SUNXI_HAS_NEW_MODE
818 bool
819 depends on MMC_SUNXI
820
Vasily Khoruzhickb198e2c2018-11-09 20:41:44 -0800821config MMC_SUNXI_HAS_MODE_SWITCH
822 bool
823 depends on MMC_SUNXI
824
Tianrui Wei8cfc7c52021-07-01 12:54:20 +0800825config MMC_PITON
826 bool "MMC support for OpenPiton SoC"
Tianrui Wei8cfc7c52021-07-01 12:54:20 +0800827 help
828 This selects support for the SD host controller on OpenPiton SoC.
829 Note that this SD controller directly exposes the contents of the
830 SD card as memory mapped, so there is no manual configuration
831 required
832
Wenyou Yang7a7a64c2017-04-13 10:29:22 +0800833config GENERIC_ATMEL_MCI
834 bool "Atmel Multimedia Card Interface support"
Tom Rinie97402e2025-01-14 19:22:09 -0600835 depends on ARCH_AT91
Wenyou Yang7a7a64c2017-04-13 10:29:22 +0800836 help
837 This enables support for Atmel High Speed Multimedia Card Interface
838 (HSMCI), which supports the MultiMedia Card (MMC) Specification V4.3,
839 the SD Memory Card Specification V2.0, the SDIO V2.0 specification
840 and CE-ATA V1.1.
841
Patrice Chotardae19b812017-09-04 17:56:22 +0200842config STM32_SDMMC2
843 bool "STMicroelectronics STM32H7 SD/MMC Host Controller support"
Tom Rinie97402e2025-01-14 19:22:09 -0600844 depends on OF_CONTROL
Patrice Chotardae19b812017-09-04 17:56:22 +0200845 help
846 This selects support for the SD/MMC controller on STM32H7 SoCs.
847 If you have a board based on such a SoC and with a SD/MMC slot,
Heinrich Schuchardtb8bcdeb2024-01-23 17:18:16 +0100848 say Y here.
Patrice Chotardae19b812017-09-04 17:56:22 +0200849
Rick Chencbb52972017-11-14 14:47:09 +0800850config FTSDC010
851 bool "Ftsdc010 SD/MMC controller Support"
852 help
853 This SD/MMC controller is present in Andestech SoCs which is based on Faraday IP.
854
Rick Chenc59a6fb2018-03-20 15:10:49 +0800855config FTSDC010_SDIO
856 bool "Support ftsdc010 sdio"
Rick Chenc59a6fb2018-03-20 15:10:49 +0800857 depends on FTSDC010
858 help
859 This can enable ftsdc010 sdio function.
860
developerdc5a9aa2018-11-15 10:08:04 +0800861config MMC_MTK
862 bool "MediaTek SD/MMC Card Interface support"
developer607faf72019-09-25 17:45:37 +0800863 depends on ARCH_MEDIATEK || ARCH_MTMIPS
developerdc5a9aa2018-11-15 10:08:04 +0800864 depends on OF_CONTROL
865 help
866 This selects the MediaTek(R) Secure digital and Multimedia card Interface.
Heinrich Schuchardtb8bcdeb2024-01-23 17:18:16 +0100867 If you have a machine with a integrated SD/MMC card reader, say Y here.
developerdc5a9aa2018-11-15 10:08:04 +0800868 This is needed if support for any SD/SDIO/MMC devices is required.
869 If unsure, say N.
870
Masahiro Yamadae8b99722016-12-07 22:10:27 +0900871endif
872
Tom Rini6fb86c12022-12-02 16:42:21 -0500873config FSL_SDHC_V2_3
874 bool
875
Mario Six41d7d972018-03-28 14:38:19 +0200876config FSL_ESDHC
877 bool "Freescale/NXP eSDHC controller support"
Tom Rini6fb86c12022-12-02 16:42:21 -0500878 select FSL_SDHC_V2_3 if ARCH_P1010 || ARCH_BSC9131 || ARCH_BSC9132 \
879 || ARCH_C29X
Mario Six41d7d972018-03-28 14:38:19 +0200880 help
Yangbo Lu982f4252019-06-21 11:42:27 +0800881 This selects support for the eSDHC (Enhanced Secure Digital Host
882 Controller) found on numerous Freescale/NXP SoCs.
883
Michael Walle081d4012020-10-12 10:07:14 +0200884config FSL_ESDHC_SUPPORT_ADMA2
885 bool "enable ADMA2 support"
886 depends on FSL_ESDHC
887 select MMC_SDHCI_ADMA_HELPERS
888 help
889 This enables support for the ADMA2 transfer mode. If supported by the
890 eSDHC it will allow 64bit DMA addresses.
891
Yangbo Luce884022020-05-19 11:06:44 +0800892config FSL_ESDHC_33V_IO_RELIABILITY_WORKAROUND
893 bool "enable eSDHC workaround for 3.3v IO reliability issue"
Tom Rinie97402e2025-01-14 19:22:09 -0600894 depends on FSL_ESDHC
Yangbo Luce884022020-05-19 11:06:44 +0800895 help
896 When eSDHC operates at 3.3v, damage can accumulate in an internal
897 level shifter at a higher than expected rate. The faster the interface
898 runs, the more damage accumulates. This issue now is found on LX2160A
899 eSDHC1 for only SD card. The hardware workaround is recommended to use
900 an on-board level shifter that is 1.8v on SoC side and 3.3v on SD card
901 side. For boards without hardware workaround, this option could be
902 enabled, ensuring 1.8v IO voltage and disabling eSDHC if no card.
903 This option assumes no hotplug, and u-boot has to make all the way to
904 to linux to use 1.8v UHS-I speed mode if has card.
905
Yangbo Lue087cd62021-06-03 10:51:17 +0800906config FSL_ESDHC_VS33_NOT_SUPPORT
907 bool "3.3V power supply not supported"
908 depends on FSL_ESDHC
909 help
910 For eSDHC, power supply is through peripheral circuit. 3.3V support is
911 common. Select this if 3.3V power supply not supported.
912
Pali Rohár3a672d62022-05-11 20:27:13 +0200913config SYS_FSL_ESDHC_DEFAULT_BUS_WIDTH
914 int
915 depends on FSL_ESDHC
916 default 1
917
Tom Rinibdd47f32022-06-16 14:04:38 -0400918config ESDHC_DETECT_QUIRK
919 bool "QIXIS-based eSDHC quirk detection"
920 depends on FSL_ESDHC && FSL_QIXIS
921
Yangbo Lu982f4252019-06-21 11:42:27 +0800922config FSL_ESDHC_IMX
923 bool "Freescale/NXP i.MX eSDHC controller support"
924 help
925 This selects support for the i.MX eSDHC (Enhanced Secure Digital Host
926 Controller) found on numerous Freescale/NXP SoCs.
Mario Six41d7d972018-03-28 14:38:19 +0200927
Tom Rinidad332b2022-07-31 21:08:25 -0400928config SYS_FSL_ESDHC_HAS_DDR_MODE
929 bool "i.MX eSDHC controller supports DDR mode"
930 depends on FSL_ESDHC_IMX
931
Adam Ford01836582019-08-14 07:23:43 -0500932config FSL_USDHC
933 bool "Freescale/NXP i.MX uSDHC controller support"
Peng Fan29b31a52022-07-26 16:40:44 +0800934 depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMX8ULP || IMX9 || IMXRT
Adam Ford01836582019-08-14 07:23:43 -0500935 select FSL_ESDHC_IMX
936 help
937 This enables the Ultra Secured Digital Host Controller enhancements
938
Tom Rinif8967f82022-12-02 16:42:22 -0500939config FSL_ESDHC_PIN_MUX
940 bool "Perform esdhc device-tree fixup"
941 depends on (FSL_ESDHC || FSL_ESDHC_IMX) && OF_LIBFDT
942
Nobuhiro Iwamatsu3ec5f862014-12-17 08:03:00 +0900943endmenu
York Sun097e3602016-12-28 08:43:42 -0800944
945config SYS_FSL_ERRATUM_ESDHC111
946 bool
947
948config SYS_FSL_ERRATUM_ESDHC13
949 bool
950
951config SYS_FSL_ERRATUM_ESDHC135
952 bool
953
954config SYS_FSL_ERRATUM_ESDHC_A001
955 bool
Michael Walle148dc612021-03-17 15:01:36 +0100956
957config SYS_FSL_ERRATUM_A011334
958 bool
Michael Walle7259dc52021-03-17 15:01:37 +0100959
960config SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
961 bool