blob: 8b13a0821ee0741e05a4b39cec0ef2d817dce475 [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 Rini9b384002021-04-21 15:32:27 -04006 select DM_MMC if DM
Maxime Ripard4f780742015-10-15 22:04:05 +02007 help
Masahiro Yamadaa5ed4be2016-12-07 22:10:26 +09008 This selects MultiMediaCard, Secure Digital and Secure
9 Digital I/O support.
10
11 If you want MMC/SD/SDIO support, you should say Y here and
12 also to your specific host controller driver.
Maxime Ripard4f780742015-10-15 22:04:05 +020013
Jean-Jacques Hiblotd0531672018-01-04 15:23:32 +010014config MMC_WRITE
15 bool "support for MMC/SD write operations"
16 depends on MMC
17 default y
18 help
19 Enable write access to MMC and SD Cards
20
Jaehoon Chung48ad8272021-02-16 10:16:52 +090021config MMC_PWRSEQ
22 bool "HW reset support for eMMC"
Jonas Karlmanf2ceb752024-01-27 17:12:35 +000023 depends on PWRSEQ && DM_GPIO
Jaehoon Chung48ad8272021-02-16 10:16:52 +090024 help
Jonas Karlmanf2ceb752024-01-27 17:12:35 +000025 This select Hardware reset support aka pwrseq-emmc for eMMC
Jaehoon Chung48ad8272021-02-16 10:16:52 +090026 devices.
27
Jonas Karlmanf2ceb752024-01-27 17:12:35 +000028config SPL_MMC_PWRSEQ
29 bool "HW reset support for eMMC in SPL"
30 depends on SPL_PWRSEQ && SPL_DM_GPIO
31 default y if MMC_PWRSEQ
32 help
33 This select Hardware reset support aka pwrseq-emmc for eMMC
34 devices in SPL.
35
Jun Nieb4f4f6e2018-01-02 12:25:57 +080036config MMC_BROKEN_CD
37 bool "Poll for broken card detection case"
38 help
39 If card detection feature is broken, just poll to detect.
40
Simon Glass1e8eb1b2015-06-23 15:38:48 -060041config DM_MMC
42 bool "Enable MMC controllers using Driver Model"
43 depends on DM
44 help
Robert P. J. Day8d56db92016-07-15 13:44:45 -040045 This enables the MultiMediaCard (MMC) uclass which supports MMC and
Simon Glass1e8eb1b2015-06-23 15:38:48 -060046 Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
47 and non-removable (e.g. eMMC chip) devices are supported. These
48 appear as block devices in U-Boot and can support filesystems such
49 as EXT4 and FAT.
50
Simon Glass5f4bd8c2017-07-04 13:31:19 -060051config SPL_DM_MMC
52 bool "Enable MMC controllers using Driver Model in SPL"
53 depends on SPL_DM && DM_MMC
Pali Rohár3c5ce032022-05-24 10:58:42 +020054 default n if ARCH_MVEBU && !MVEBU_SPL_BOOT_DEVICE_MMC
Simon Glass5f4bd8c2017-07-04 13:31:19 -060055 default y
Oleksandr Suvorov5c59a672023-08-23 18:45:45 +030056 select SPL_BLK
Simon Glass5f4bd8c2017-07-04 13:31:19 -060057 help
58 This enables the MultiMediaCard (MMC) uclass which supports MMC and
59 Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
60 and non-removable (e.g. eMMC chip) devices are supported. These
61 appear as block devices in U-Boot and can support filesystems such
62 as EXT4 and FAT.
63
Masahiro Yamadae8b99722016-12-07 22:10:27 +090064if MMC
65
Michael Walle02016c62020-09-23 12:42:51 +020066config MMC_SDHCI_ADMA_HELPERS
67 bool
68
Bhargav Shaha1afe252019-07-08 04:10:48 +000069config MMC_SPI
70 bool "Support for SPI-based MMC controller"
71 depends on DM_MMC && DM_SPI
72 help
73 This selects SPI-based MMC controllers.
74 If you have an MMC controller on a SPI bus, say Y here.
75
76 If unsure, say N.
77
78config MMC_SPI_CRC_ON
79 bool "Support CRC for SPI-based MMC controller"
80 depends on MMC_SPI
81 default y
82 help
83 This enables CRC for SPI-based MMC controllers.
84
85 If unsure, say N.
86
Patrice Chotardfcce4202017-10-23 10:57:31 +020087config ARM_PL180_MMCI
88 bool "ARM AMBA Multimedia Card Interface and compatible support"
Linus Walleije64c9b42024-02-08 10:33:43 +010089 depends on DM_MMC
Patrice Chotardfcce4202017-10-23 10:57:31 +020090 help
91 This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card
92 Interface (PL180, PL181 and compatible) support.
93 If you have an ARM(R) platform with a Multimedia Card slot,
Heinrich Schuchardtb8bcdeb2024-01-23 17:18:16 +010094 say Y here.
Patrice Chotardfcce4202017-10-23 10:57:31 +020095
Kishon Vijay Abraham I07baaa62017-09-21 16:30:10 +020096config MMC_QUIRKS
97 bool "Enable quirks"
98 default y
99 help
100 Some cards and hosts may sometimes behave unexpectedly (quirks).
101 This option enable workarounds to handle those quirks. Some of them
Joel Johnson9cbee2c2020-01-11 09:08:15 -0700102 are enabled by default, other may require additional flags or are
Kishon Vijay Abraham I07baaa62017-09-21 16:30:10 +0200103 enabled by the host driver.
104
Tom Rini91735482022-10-28 20:27:05 -0400105config SYS_MMC_MAX_BLK_COUNT
106 int "Block count limit"
107 default 65535
108 help
109 The block count limit on MMC based devices. We default to 65535 due
110 to a 16bit register limit on some hardware.
111
Jean-Jacques Hiblot1d7769a2017-11-30 17:44:02 +0100112config MMC_HW_PARTITIONING
113 bool "Support for HW partitioning command(eMMC)"
114 default y
115 help
116 This adds a command and an API to do hardware partitioning on eMMC
117 devices.
118
Alex Kiernan60e0f612018-05-08 04:43:31 +0000119config SUPPORT_EMMC_RPMB
120 bool "Support eMMC replay protected memory block (RPMB)"
121 imply CMD_MMC_RPMB
122 help
123 Enable support for reading, writing and programming the
124 key for the Replay Protection Memory Block partition in eMMC.
125
Alex Kiernan00848772019-05-01 07:58:27 +0000126config SUPPORT_EMMC_BOOT
127 bool "Support some additional features of the eMMC boot partitions"
128 help
129 Enable support for eMMC boot partitions. This also enables
130 extensions within the mmc command.
131
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100132config MMC_IO_VOLTAGE
133 bool "Support IO voltage configuration"
134 help
135 IO voltage configuration allows selecting the voltage level of the IO
136 lines (not the level of main supply). This is required for UHS
137 support. For eMMC this not mandatory, but not enabling this option may
138 prevent the driver of using the faster modes.
139
140config SPL_MMC_IO_VOLTAGE
141 bool "Support IO voltage configuration in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400142 depends on SPL_MMC
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100143 help
144 IO voltage configuration allows selecting the voltage level of the IO
145 lines (not the level of main supply). This is required for UHS
146 support. For eMMC this not mandatory, but not enabling this option may
147 prevent the driver of using the faster modes.
148
Tom Rinidec7ea02024-05-20 13:35:03 -0600149config MMC_SUPPORTS_TUNING
150 bool
151
152config SPL_MMC_SUPPORTS_TUNING
153 bool
154
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100155config MMC_UHS_SUPPORT
156 bool "enable UHS support"
157 depends on MMC_IO_VOLTAGE
Tom Rinidec7ea02024-05-20 13:35:03 -0600158 select MMC_SUPPORTS_TUNING
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100159 help
160 The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
161 cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
162 frequency can go up to 208MHz (SDR104)
163
164config SPL_MMC_UHS_SUPPORT
165 bool "enable UHS support in SPL"
166 depends on SPL_MMC_IO_VOLTAGE
Tom Rinidec7ea02024-05-20 13:35:03 -0600167 select SPL_MMC_SUPPORTS_TUNING
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100168 help
169 The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
170 cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
171 frequency can go up to 208MHz (SDR104)
172
Peng Faneede83b2019-07-10 14:43:07 +0800173config MMC_HS400_ES_SUPPORT
174 bool "enable HS400 Enhanced Strobe support"
175 help
176 The HS400 Enhanced Strobe mode is support by some eMMC. The bus
177 frequency is up to 200MHz. This mode does not tune the IO.
178
179config SPL_MMC_HS400_ES_SUPPORT
180 bool "enable HS400 Enhanced Strobe support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400181 depends on SPL_MMC
Peng Faneede83b2019-07-10 14:43:07 +0800182 help
183 The HS400 Enhanced Strobe mode is support by some eMMC. The bus
184 frequency is up to 200MHz. This mode does not tune the IO.
185
Peng Fan46801252018-08-10 14:07:54 +0800186config MMC_HS400_SUPPORT
187 bool "enable HS400 support"
188 select MMC_HS200_SUPPORT
189 help
190 The HS400 mode is support by some eMMC. The bus frequency is up to
191 200MHz. This mode requires tuning the IO.
192
193config SPL_MMC_HS400_SUPPORT
194 bool "enable HS400 support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400195 depends on SPL_MMC
Faiz Abbas373954e2019-08-01 16:33:36 +0530196 select SPL_MMC_HS200_SUPPORT
Peng Fan46801252018-08-10 14:07:54 +0800197 help
198 The HS400 mode is support by some eMMC. The bus frequency is up to
199 200MHz. This mode requires tuning the IO.
200
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100201config MMC_HS200_SUPPORT
202 bool "enable HS200 support"
Tom Rinidec7ea02024-05-20 13:35:03 -0600203 select MMC_SUPPORTS_TUNING
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100204 help
205 The HS200 mode is support by some eMMC. The bus frequency is up to
206 200MHz. This mode requires tuning the IO.
207
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100208config SPL_MMC_HS200_SUPPORT
209 bool "enable HS200 support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400210 depends on SPL_MMC
Tom Rinidec7ea02024-05-20 13:35:03 -0600211 select SPL_MMC_SUPPORTS_TUNING
Jean-Jacques Hiblot6051e782017-11-30 17:44:01 +0100212 help
213 The HS200 mode is support by some eMMC. The bus frequency is up to
214 200MHz. This mode requires tuning the IO.
215
Jean-Jacques Hiblota94fb412017-09-21 16:29:53 +0200216config MMC_VERBOSE
217 bool "Output more information about the MMC"
218 default y
219 help
220 Enable the output of more information about the card such as the
221 operating mode.
222
Jaehoon Chunge2bf5802018-01-26 19:25:31 +0900223config MMC_TRACE
224 bool "MMC debugging"
Jaehoon Chunge2bf5802018-01-26 19:25:31 +0900225 help
226 This is an option for use by developer. Enable MMC core debugging.
227
228 If you need to see the MMC core message, say Y.
229
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900230config MMC_DAVINCI
231 bool "TI DAVINCI Multimedia Card Interface support"
232 depends on ARCH_DAVINCI
233 default y
234 help
235 This selects the TI DAVINCI Multimedia card Interface.
236 If you have an DAVINCI board with a Multimedia Card slot,
237 say Y here. If unsure, say N.
238
Masahiro Yamada7942e912017-01-10 13:32:04 +0900239config MMC_DW
240 bool "Synopsys DesignWare Memory Card Interface"
Philipp Tomsichb3027472018-11-30 22:13:25 +0100241 select BOUNCE_BUFFER
Masahiro Yamada7942e912017-01-10 13:32:04 +0900242 help
243 This selects support for the Synopsys DesignWare Mobile Storage IP
244 block, this provides host support for SD and MMC interfaces, in both
245 PIO, internal DMA mode and external DMA mode.
246
Arthur Li055e18e2020-02-20 18:19:35 -0800247config MMC_DW_CORTINA
248 bool "Cortina specific extensions for Synopsys DW Memory Card Interface"
249 depends on DM_MMC
250 depends on MMC_DW
Arthur Li055e18e2020-02-20 18:19:35 -0800251 help
252 This selects support for Cortina SoC specific extensions to the
253 Synopsys DesignWare Memory Card Interface driver. Select this option
254 for platforms based on Cortina CAxxxx Soc's.
255
Masahiro Yamadaf1ad7282017-01-10 13:32:05 +0900256config MMC_DW_EXYNOS
257 bool "Exynos specific extensions for Synopsys DW Memory Card Interface"
258 depends on ARCH_EXYNOS
259 depends on MMC_DW
260 default y
261 help
262 This selects support for Samsung Exynos SoC specific extensions to the
263 Synopsys DesignWare Memory Card Interface driver. Select this option
264 for platforms based on Exynos4 and Exynos5 SoC's.
265
266config MMC_DW_K3
267 bool "K3 specific extensions for Synopsys DW Memory Card Interface"
268 depends on MMC_DW
269 help
270 This selects support for Hisilicon K3 SoC specific extensions to the
271 Synopsys DesignWare Memory Card Interface driver. Select this option
272 for platforms based on Hisilicon K3 SoC's.
273
Masahiro Yamadadc607f82017-01-10 13:32:03 +0900274config MMC_DW_ROCKCHIP
Simon Glass4ecaa6d2015-08-30 16:55:37 -0600275 bool "Rockchip SD/MMC controller support"
276 depends on DM_MMC && OF_CONTROL
Masahiro Yamada7942e912017-01-10 13:32:04 +0900277 depends on MMC_DW
Simon Glass4ecaa6d2015-08-30 16:55:37 -0600278 help
279 This enables support for the Rockchip SD/MMM controller, which is
280 based on Designware IP. The device is compatible with at least
281 SD 3.0, SDIO 3.0 and MMC 4.5 and supports common eMMC chips as well
282 as removeable SD and micro-SD cards.
283
Masahiro Yamadaf1ad7282017-01-10 13:32:05 +0900284config MMC_DW_SOCFPGA
285 bool "SOCFPGA specific extensions for Synopsys DW Memory Card Interface"
286 depends on ARCH_SOCFPGA
287 depends on MMC_DW
288 default y
289 help
290 This selects support for Altera SOCFPGA specific extensions to the
291 Synopsys DesignWare Memory Card Interface driver. Select this option
292 for platforms based on Altera SOCFPGA.
293
Eugeniy Paltsevb050c2c2019-02-25 18:35:28 +0300294config MMC_DW_SNPS
295 bool "Extensions for DW Memory Card Interface used in Synopsys ARC devboards"
296 depends on MMC_DW
297 depends on DM_MMC
298 depends on OF_CONTROL
299 depends on CLK
300 help
301 This selects support for Synopsys DesignWare Memory Card Interface driver
302 extensions used in various Synopsys ARC devboards.
303
Stefan Bosch22c12f72020-07-10 19:07:29 +0200304config NEXELL_DWMMC
305 bool "Nexell SD/MMC controller support"
306 depends on ARCH_NEXELL
307 depends on MMC_DW
308 depends on DM_MMC
309 depends on PINCTRL_NEXELL
310 default y
311
Carlo Caione20cab782017-04-12 20:30:42 +0200312config MMC_MESON_GX
313 bool "Meson GX EMMC controller support"
Tom Rini29b436e2024-06-04 19:37:42 -0600314 depends on DM_MMC && ARCH_MESON
Carlo Caione20cab782017-04-12 20:30:42 +0200315 help
316 Support for EMMC host controller on Meson GX ARM SoCs platform (S905)
317
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900318config MMC_MXC
319 bool "Freescale i.MX21/27/31 or MPC512x Multimedia Card support"
320 help
321 This selects the Freescale i.MX21, i.MX27, i.MX31 or MPC512x
322 Multimedia Card Interface. If you have an i.MX or MPC512x platform
323 with a Multimedia Card slot, say Y here.
324
325 If unsure, say N.
326
Amit Singh Tomar347494c2021-11-28 17:02:24 +0530327config MMC_OWL
328 bool "Actions OWL Multimedia Card Interface support"
329 depends on ARCH_OWL && DM_MMC && BLK
330 help
331 This selects the OWL SD/MMC host controller found on board
332 based on Actions S700/S900 SoC.
333
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900334config MMC_MXS
335 bool "Freescale MXS Multimedia Card Interface support"
Adam Forda456d562018-02-06 08:34:45 -0600336 depends on MX23 || MX28 || MX6 || MX7
Philipp Tomsichb3027472018-11-30 22:13:25 +0100337 select BOUNCE_BUFFER
Adam Forda456d562018-02-06 08:34:45 -0600338 select APBH_DMA
339 select APBH_DMA_BURST if ARCH_MX6 || ARCH_MX7
340 select APBH_DMA_BURST8 if ARCH_MX6 || ARCH_MX7
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900341 help
342 This selects the Freescale SSP MMC controller found on MXS based
343 platforms like mx23/28.
344
345 If unsure, say N.
346
Felipe Balbiecf7dfd2017-02-20 14:24:13 +0300347config MMC_PCI
348 bool "Support for MMC controllers on PCI"
Bin Meng3d81f022021-02-15 20:01:44 +0800349 depends on MMC_SDHCI
Felipe Balbiecf7dfd2017-02-20 14:24:13 +0300350 help
351 This selects PCI-based MMC controllers.
352 If you have an MMC controller on a PCI bus, say Y here.
353
Suneel Garapati40e61332019-10-19 18:03:01 -0700354config MMC_OCTEONTX
Stefan Roesee06f5522021-03-12 09:48:25 +0100355 bool "Marvell Octeon Multimedia Card Interface support"
356 depends on (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2)
Suneel Garapati40e61332019-10-19 18:03:01 -0700357 depends on DM_MMC
Tom Rinidec7ea02024-05-20 13:35:03 -0600358 select MMC_SUPPORTS_TUNING if ARCH_OCTEONTX2
Suneel Garapati40e61332019-10-19 18:03:01 -0700359 help
Stefan Roesee06f5522021-03-12 09:48:25 +0100360 This selects the Octeon Multimedia card Interface.
361 If you have an OcteonTX/TX2 or MIPS Octeon board with a
362 Multimedia Card slot, say Y here.
Suneel Garapati40e61332019-10-19 18:03:01 -0700363
Felipe Balbiecf7dfd2017-02-20 14:24:13 +0300364 If unsure, say N.
365
Harm Berntsen7b9e5af2021-03-30 10:19:41 +0200366config MVEBU_MMC
367 bool "Kirkwood MMC controller support"
Tom Rini29b436e2024-06-04 19:37:42 -0600368 depends on DM_MMC && ARCH_KIRKWOOD
Harm Berntsen7b9e5af2021-03-30 10:19:41 +0200369 help
370 Support for MMC host controller on Kirkwood SoCs.
371 If you are on a Kirkwood architecture, say Y here.
372
373 If unsure, say N.
374
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900375config MMC_OMAP_HS
376 bool "TI OMAP High Speed Multimedia Card Interface support"
Simon Glasseba48f92017-07-29 11:35:31 -0600377 select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
Jean-Jacques Hiblot4612bdd2017-09-21 17:03:10 +0200378 select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900379 help
380 This selects the TI OMAP High Speed Multimedia card Interface.
381 If you have an omap2plus board with a Multimedia Card slot,
382 say Y here.
383
384 If unsure, say N.
385
Jean-Jacques Hiblotcebf0592018-02-23 10:40:18 +0100386config MMC_OMAP_HS_ADMA
387 bool "ADMA support for OMAP HS MMC"
388 depends on MMC_OMAP_HS && !OMAP34XX
389 default y if !AM33XX
390 help
391 This enables support for the ADMA2 controller (SDA3.00 Part A2 DMA
392 controller). If supported by the hardware, selecting this option will
393 increase performances.
394
Adam Fordef354962017-02-06 11:31:43 -0600395config MMC_OMAP36XX_PINS
396 bool "Enable MMC1 on OMAP36xx/37xx"
397 depends on OMAP34XX && MMC_OMAP_HS
398 help
399 This enables extended-drain in the MMC/SD/SDIO1I/O and
400 GPIO-associated I/O cells (gpio_126, gpio_127, and gpio_129)
401 specific to the OMAP36xx/37xx using MMC1
402
403 If you have a controller with this interface, say Y here.
404
405 If unsure, say N.
406
Tom Riniaf816552022-12-02 16:42:16 -0500407config HSMMC2_8BIT
408 bool "Enable 8-bit interface for eMMC (interface #2)"
409 depends on MMC_OMAP_HS && (OMAP44XX || OMAP54XX || DRA7XX || AM33XX || \
410 AM43XX || ARCH_KEYSTONE)
411
Marek Vasuta8624ac2018-04-21 17:40:20 +0200412config SH_MMCIF
413 bool "SuperH/Renesas ARM SoCs on-chip MMCIF host controller support"
Marek Vasut6468c4c2024-02-27 17:05:55 +0100414 depends on ARCH_RENESAS || SH
Marek Vasuta8624ac2018-04-21 17:40:20 +0200415 help
416 Support for the on-chip MMCIF host controller on SuperH/Renesas ARM SoCs platform
417
Masahiro Yamadaa0cfcc02016-02-18 19:52:48 +0900418config MMC_UNIPHIER
Marek Vasut2883f742017-09-23 13:30:30 +0200419 bool "UniPhier SD/MMC Host Controller support"
420 depends on ARCH_UNIPHIER
Tom Rini29b436e2024-06-04 19:37:42 -0600421 depends on DM_MMC
Masahiro Yamadac2326532016-12-30 23:20:14 +0900422 depends on OF_CONTROL
Masahiro Yamadaa0cfcc02016-02-18 19:52:48 +0900423 help
Marek Vasut847ee0c2017-07-21 23:24:36 +0200424 This selects support for the Matsushita SD/MMC Host Controller on
Marek Vasut2883f742017-09-23 13:30:30 +0200425 SocioNext UniPhier SoCs.
426
427config RENESAS_SDHI
428 bool "Renesas R-Car SD/MMC Host Controller support"
Marek Vasut6468c4c2024-02-27 17:05:55 +0100429 depends on ARCH_RENESAS
Tom Rini29b436e2024-06-04 19:37:42 -0600430 depends on DM_MMC
Marek Vasut2883f742017-09-23 13:30:30 +0200431 depends on OF_CONTROL
Marek Vasut9f7baeb2020-04-04 12:45:04 +0200432 select BOUNCE_BUFFER
Marek Vasut2883f742017-09-23 13:30:30 +0200433 help
434 This selects support for the Matsushita SD/MMC Host Controller on
435 Renesas R-Car SoCs.
Masahiro Yamadaa0cfcc02016-02-18 19:52:48 +0900436
Alexander Graf044725f2018-01-23 18:05:22 +0100437config MMC_BCM2835
438 bool "BCM2835 family custom SD/MMC Host Controller support"
439 depends on ARCH_BCM283X
Tom Rini29b436e2024-06-04 19:37:42 -0600440 depends on DM_MMC
Alexander Graf044725f2018-01-23 18:05:22 +0100441 depends on OF_CONTROL
442 default y
443 help
444 This selects support for the custom SD host controller in the BCM2835
445 family of devices.
446
447 If you have a BCM2835 platform with SD or MMC devices, say Y here.
448
449 If unsure, say N.
450
Paul Burton8e142842018-12-16 19:25:20 -0300451config JZ47XX_MMC
452 bool "Ingenic JZ47xx SD/MMC Host Controller support"
453 depends on ARCH_JZ47XX
454 help
455 This selects support for the SD Card Controller on Ingenic JZ47xx SoCs.
456
Masahiro Yamada54f7cfc2017-01-30 19:46:50 +0900457config MMC_SANDBOX
Simon Glassf9eebac2016-05-01 13:52:42 -0600458 bool "Sandbox MMC support"
Masahiro Yamada54f7cfc2017-01-30 19:46:50 +0900459 depends on SANDBOX
Tom Rini29b436e2024-06-04 19:37:42 -0600460 depends on DM_MMC && OF_CONTROL
Simon Glassf9eebac2016-05-01 13:52:42 -0600461 help
462 This select a dummy sandbox MMC driver. At present this does nothing
463 other than allow sandbox to be build with MMC support. This
464 improves build coverage for sandbox and makes it easier to detect
465 MMC build errors with sandbox.
466
Masahiro Yamada7db8c172016-12-07 22:10:28 +0900467config MMC_SDHCI
468 bool "Secure Digital Host Controller Interface support"
469 help
470 This selects the generic Secure Digital Host Controller Interface.
471 It is used by manufacturers such as Texas Instruments(R), Ricoh(R)
472 and Toshiba(R). Most controllers found in laptops are of this type.
473
474 If you have a controller with this interface, say Y here.
475
476 If unsure, say N.
477
Masahiro Yamadabfd110f2016-12-07 22:10:30 +0900478config MMC_SDHCI_IO_ACCESSORS
479 bool
480 depends on MMC_SDHCI
481 help
482 This is silent Kconfig symbol that is selected by the drivers that
483 need to overwrite SDHCI IO memory accessors.
484
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900485config MMC_SDHCI_SDMA
486 bool "Support SDHCI SDMA"
487 depends on MMC_SDHCI
488 help
489 This enables support for the SDMA (Single Operation DMA) defined
490 in the SD Host Controller Standard Specification Version 1.00 .
491
Peter Geis4561ada2023-04-18 16:46:44 +0000492config SPL_MMC_SDHCI_SDMA
493 bool "Support SDHCI SDMA in SPL"
494 depends on SPL_MMC && MMC_SDHCI
495 default y if MMC_SDHCI_SDMA
496 help
497 This enables support for the SDMA (Single Operation DMA) defined
498 in the SD Host Controller Standard Specification Version 1.00 in SPL.
499
Faiz Abbas4c082a62019-04-16 23:06:58 +0530500config MMC_SDHCI_ADMA
501 bool "Support SDHCI ADMA2"
502 depends on MMC_SDHCI
Michael Walle02016c62020-09-23 12:42:51 +0200503 select MMC_SDHCI_ADMA_HELPERS
Faiz Abbas4c082a62019-04-16 23:06:58 +0530504 help
505 This enables support for the ADMA (Advanced DMA) defined
506 in the SD Host Controller Standard Specification Version 3.00
507
508config SPL_MMC_SDHCI_ADMA
509 bool "Support SDHCI ADMA2 in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400510 depends on SPL_MMC && MMC_SDHCI
Michael Walle02016c62020-09-23 12:42:51 +0200511 select MMC_SDHCI_ADMA_HELPERS
Faiz Abbas4c082a62019-04-16 23:06:58 +0530512 help
513 This enables support for the ADMA (Advanced DMA) defined
514 in the SD Host Controller Standard Specification Version 3.00 in SPL.
515
Greg Malysaeb92ef12024-03-25 22:28:08 -0400516config MMC_SDHCI_ADMA_FORCE_32BIT
517 bool "Force 32 bit mode for ADMA on 64 bit platforms"
518 help
519 This forces SDHCI ADMA to be built for 32 bit descriptors, even
520 on a 64 bit platform where they would otherwise be assumed to
521 be 64 bits. This is necessary for certain hardware platforms
522 that are 64-bit but include only 32-bit support within the selected
523 SD host controller IP.
524
525config MMC_SDHCI_ADMA_64BIT
526 bool "Use SHDCI ADMA with 64 bit descriptors"
527 depends on !MMC_SDHCI_ADMA_FORCE_32BIT
528 default y if DMA_ADDR_T_64BIT
529 help
530 This selects 64 bit descriptors for SDHCI ADMA. It is enabled by
531 default on 64 bit systems, but can be disabled if one of these
532 systems includes 32-bit ADMA.
533
Chris Packham7d5d5912022-05-29 11:13:17 +1200534config FIXED_SDHCI_ALIGNED_BUFFER
535 hex "SDRAM address for fixed buffer"
536 depends on SPL && MVEBU_SPL_BOOT_DEVICE_MMC
537 default 0x00180000
538 help
539 On the Marvell Armada 38x when the SPL runs it located in internal
540 SRAM which is the L2 cache locked to memory. When the MMC buffers
541 are located on the stack (or bss), the SDIO controller (SDHCI) can't
542 write into this L2 cache memory.
543
544 This specifies the address of a fixed buffer located in SDRAM that
545 will be used for all SDHCI transfers in the SPL.
546
Eddie Jamesc8a65812019-08-27 09:48:03 -0500547config MMC_SDHCI_ASPEED
548 bool "Aspeed SDHCI controller"
549 depends on ARCH_ASPEED
550 depends on DM_MMC
551 depends on MMC_SDHCI
Joel Stanley818a6b52022-06-23 18:35:34 +0930552 select MISC
Eddie Jamesc8a65812019-08-27 09:48:03 -0500553 help
554 Enables support for the Aspeed SDHCI 2.0 controller present on Aspeed
555 SoCs. This device is compatible with SD 3.0 and/or MMC 4.3
556 specifications. On the AST2600, the device is also compatible with
557 MMC 5.1 and eMMC 3.0.
558
Masahiro Yamada8c1a1322017-01-30 19:46:55 +0900559config MMC_SDHCI_ATMEL
560 bool "Atmel SDHCI controller support"
561 depends on ARCH_AT91
Tom Rini29b436e2024-06-04 19:37:42 -0600562 depends on DM_MMC && ARCH_AT91
Masahiro Yamada8c1a1322017-01-30 19:46:55 +0900563 depends on MMC_SDHCI
564 help
565 This enables support for the Atmel SDHCI controller, which supports
566 the embedded MultiMedia Card (e.MMC) Specification V4.51, the SD
567 Memory Card Specification V3.0, and the SDIO V3.0 specification.
568 It is compliant with the SD Host Controller Standard V3.0
569 specification.
570
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900571config MMC_SDHCI_BCM2835
572 tristate "SDHCI support for the BCM2835 SD/MMC Controller"
573 depends on ARCH_BCM283X
574 depends on MMC_SDHCI
Masahiro Yamadabfd110f2016-12-07 22:10:30 +0900575 select MMC_SDHCI_IO_ACCESSORS
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900576 help
577 This selects the BCM2835 SD/MMC controller.
578
579 If you have a BCM2835 platform with SD or MMC devices,
580 say Y here.
581
582 If unsure, say N.
583
Thomas Fitzsimmons919646d2018-06-08 17:59:45 -0400584config MMC_SDHCI_BCMSTB
585 tristate "SDHCI support for the BCMSTB SD/MMC Controller"
586 depends on MMC_SDHCI
587 help
588 This selects the Broadcom set-top box SD/MMC controller.
589
590 If you have a BCMSTB platform with SD or MMC devices,
591 say Y here.
592
593 If unsure, say N.
594
Masahiro Yamadadcbc4432016-12-30 22:41:46 +0900595config MMC_SDHCI_CADENCE
596 bool "SDHCI support for the Cadence SD/SDIO/eMMC controller"
Tom Rini29b436e2024-06-04 19:37:42 -0600597 depends on DM_MMC
Masahiro Yamadadcbc4432016-12-30 22:41:46 +0900598 depends on MMC_SDHCI
599 depends on OF_CONTROL
600 help
601 This selects the Cadence SD/SDIO/eMMC driver.
602
603 If you have a controller with this interface, say Y here.
604
605 If unsure, say N.
606
Kongyang Liu331ee412024-03-10 01:51:55 +0800607config MMC_SDHCI_CV1800B
608 bool "SDHCI support for the CV1800B SD/SDIO/eMMC controller"
Tom Rini29b436e2024-06-04 19:37:42 -0600609 depends on DM_MMC
Kongyang Liu331ee412024-03-10 01:51:55 +0800610 depends on MMC_SDHCI
611 depends on OF_CONTROL
612 help
613 This selects the CV1800B SD/SDIO/eMMC driver.
614
615 If you have a controller with this interface,
616 say Y here.
617
618 If unsure, say N.
619
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530620config MMC_SDHCI_AM654
621 bool "SDHCI Controller on TI's Am654 devices"
Lokesh Vutlabc9979f2018-08-27 15:57:54 +0530622 depends on ARCH_K3
623 depends on MMC_SDHCI
624 depends on DM_MMC && OF_CONTROL && BLK
Faiz Abbase9aed582019-06-11 00:43:38 +0530625 depends on REGMAP
Faiz Abbas36c8c5c2021-02-04 15:10:54 +0530626 select MMC_SDHCI_IO_ACCESSORS
Lokesh Vutlabc9979f2018-08-27 15:57:54 +0530627 help
Faiz Abbasd8fb3092019-06-11 00:43:31 +0530628 Support for Secure Digital Host Controller Interface (SDHCI)
629 controllers present on TI's AM654 SOCs.
Lokesh Vutlabc9979f2018-08-27 15:57:54 +0530630
Arun Parameswaran2f4f34a2019-09-12 11:06:08 -0700631config MMC_SDHCI_IPROC
632 bool "SDHCI support for the iProc SD/MMC Controller"
633 depends on MMC_SDHCI
634 help
635 This selects the iProc SD/MMC controller.
636
637 If you have a Broadcom IPROC platform with SD or MMC devices,
Heinrich Schuchardtb8bcdeb2024-01-23 17:18:16 +0100638 say Y here.
Arun Parameswaran2f4f34a2019-09-12 11:06:08 -0700639
640 If unsure, say N.
641
Jassi Brar8188bda2021-06-04 18:44:16 +0900642config MMC_SDHCI_F_SDH30
Kunihiko Hayashi2cd5da62022-09-09 16:23:33 +0900643 bool "SDHCI support for Fujitsu Semiconductor/Socionext F_SDH30"
Tom Rini29b436e2024-06-04 19:37:42 -0600644 depends on DM_MMC
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"
Tom Rini29b436e2024-06-04 19:37:42 -0600664 depends on DM_MMC
Masahiro Yamadaa1262eb2017-01-30 19:46:53 +0900665 depends on MMC_SDHCI
666 help
667 Enables support for SDHCI 2.0 controller present on some Qualcomm
668 Snapdragon devices. This device is compatible with eMMC v4.5 and
669 SD 3.0 specifications. Both SD and eMMC devices are supported.
670 Card-detect gpios are not supported.
671
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900672config MMC_SDHCI_MV
673 bool "SDHCI support on Marvell platform"
674 depends on ARCH_MVEBU
675 depends on MMC_SDHCI
Stefan Roesefb0720b2023-02-10 13:23:52 +0100676 depends on DM_MMC
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900677 help
678 This selects the Secure Digital Host Controller Interface on
679 Marvell platform.
680
681 If you have a controller with this interface, say Y here.
682
683 If unsure, say N.
684
Jim Liu29cf22c2022-05-24 16:55:33 +0800685config MMC_SDHCI_NPCM
686 bool "SDHCI support on Nuvoton NPCM device"
687 depends on MMC_SDHCI
688 depends on DM_MMC
689 help
690 This selects the Secure Digital Host Controller Interface (SDHCI)
691 on Nuvoton NPCM device.
692
693 If you have a controller with this interface, say Y here.
694
695 If unsure, say N.
696
Masahiro Yamadaf79df032017-01-30 19:46:54 +0900697config MMC_SDHCI_PIC32
698 bool "Microchip PIC32 on-chip SDHCI support"
699 depends on DM_MMC && MACH_PIC32
700 depends on MMC_SDHCI
701 help
702 Support for Microchip PIC32 SDHCI controller.
703
Masahiro Yamadababe0262017-01-30 19:46:52 +0900704config MMC_SDHCI_ROCKCHIP
705 bool "Arasan SDHCI controller for Rockchip support"
706 depends on ARCH_ROCKCHIP
Simon Glasseba48f92017-07-29 11:35:31 -0600707 depends on DM_MMC && BLK
Masahiro Yamadababe0262017-01-30 19:46:52 +0900708 depends on MMC_SDHCI
709 help
710 Support for Arasan SDHCI host controller on Rockchip ARM SoCs platform
711
Masahiro Yamada124f6ce2016-12-07 22:10:29 +0900712config MMC_SDHCI_S5P
713 bool "SDHCI support on Samsung S5P SoC"
714 depends on MMC_SDHCI
715 help
716 This selects the Secure Digital Host Controller Interface (SDHCI)
717 on Samsung S5P SoCs.
718
719 If you have a controller with this interface, say Y here.
720
721 If unsure, say N.
722
Patrice Chotard2eea7d82017-02-21 13:37:09 +0100723config MMC_SDHCI_STI
724 bool "SDHCI support for STMicroelectronics SoC"
Patrice Chotardcdf6b572017-02-21 13:37:11 +0100725 depends on MMC_SDHCI && OF_CONTROL
Patrice Chotard2eea7d82017-02-21 13:37:09 +0100726 help
727 This selects the Secure Digital Host Controller Interface (SDHCI)
728 on STMicroelectronics STiH410 SoC.
729
Stefan Roese121fc562016-12-09 15:03:28 +0100730config MMC_SDHCI_XENON
731 bool "SDHCI support for the Xenon SDHCI controller"
732 depends on MMC_SDHCI && DM_MMC && OF_CONTROL
733 help
734 Support for Xenon SDHCI host controller on Marvell Armada 3700
735 7k/8k ARM SoCs platforms
736
737 If you have a controller with this interface, say Y here.
738
739 If unsure, say N.
740
Felipe Balbib7567602017-02-20 14:24:14 +0300741config MMC_SDHCI_TANGIER
742 bool "Tangier SDHCI controller support"
743 depends on DM_MMC && BLK
744 depends on MMC_SDHCI
745 help
746 This selects support for SDHCI controller on Tanginer
747 SoC. Note that this controller does not sit on PCI bus and,
748 hence, cannot be enumerated by standard PCI means.
749
750 If you're using an Intel Tangier SoC (available on Intel
751 Edison board), say Y here.
752
753 If unsure, say N.
754
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900755config MMC_SDHCI_TEGRA
756 bool "SDHCI platform support for the Tegra SD/MMC Controller"
Trevor Woerner513f6402020-05-06 08:02:41 -0400757 depends on ARCH_TEGRA
Philipp Tomsichb3027472018-11-30 22:13:25 +0100758 select BOUNCE_BUFFER
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900759 default y
760 help
761 This selects the Tegra SD/MMC controller. If you have a Tegra
762 platform with SD or MMC devices, say Y here.
763
764 If unsure, say N.
765
Trent Piepho1bf56c32019-04-01 23:05:49 +0000766config TEGRA124_MMC_DISABLE_EXT_LOOPBACK
767 bool "Disable external clock loopback"
768 depends on MMC_SDHCI_TEGRA && TEGRA124
769 help
770 Disable the external clock loopback and use the internal one on SDMMC3
771 as per the SDMMC_VENDOR_MISC_CNTRL_0 register's SDMMC_SPARE1 bits
772 being set to 0xfffd according to the TRM.
773
774 TODO(marcel.ziswiler@toradex.com): Move to device tree controlled
775 approach once proper kernel integration made it mainline.
776
Masahiro Yamada168c57d2017-01-30 19:46:51 +0900777config MMC_SDHCI_ZYNQ
778 bool "Arasan SDHCI controller support"
Simon Glasseba48f92017-07-29 11:35:31 -0600779 depends on DM_MMC && OF_CONTROL && BLK
Masahiro Yamada168c57d2017-01-30 19:46:51 +0900780 depends on MMC_SDHCI
781 help
782 Support for Arasan SDHCI host controller on Zynq/ZynqMP ARM SoCs platform
783
Vipul Kumar62548002018-02-28 15:53:28 +0530784config ZYNQ_SDHCI_MAX_FREQ
785 int "Set the maximum frequency of the controller"
786 depends on MMC_SDHCI_ZYNQ
787 help
788 Set the maximum frequency of the controller.
789
Vipul Kumardcc14e32018-02-28 15:53:29 +0530790config ZYNQ_SDHCI_MIN_FREQ
791 int "Set the minimum frequency of the controller"
792 depends on MMC_SDHCI_ZYNQ
793 default 0
794 help
795 Set the minimum frequency of the controller.
796
Siva Durga Prasad Paladugua9a3d002019-05-27 14:33:14 +0530797config ZYNQ_HISPD_BROKEN
798 bool "High speed broken for Zynq SDHCI controller"
799 depends on MMC_SDHCI_ZYNQ
800 help
801 Set if high speed mode is broken.
802
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900803config MMC_SUNXI
804 bool "Allwinner sunxi SD/MMC Host Controller support"
Samuel Holland6b0d0bc2022-04-10 00:13:34 -0500805 depends on ARCH_SUNXI
Masahiro Yamadab2c88682017-01-10 13:32:07 +0900806 default y
807 help
808 This selects support for the SD/MMC Host Controller on
809 Allwinner sunxi SoCs.
810
Maxime Ripard95e34702017-08-23 12:03:41 +0200811config MMC_SUNXI_HAS_NEW_MODE
812 bool
813 depends on MMC_SUNXI
814
Vasily Khoruzhickb198e2c2018-11-09 20:41:44 -0800815config MMC_SUNXI_HAS_MODE_SWITCH
816 bool
817 depends on MMC_SUNXI
818
Tianrui Wei8cfc7c52021-07-01 12:54:20 +0800819config MMC_PITON
820 bool "MMC support for OpenPiton SoC"
821 depends on DM_MMC && BLK
822 help
823 This selects support for the SD host controller on OpenPiton SoC.
824 Note that this SD controller directly exposes the contents of the
825 SD card as memory mapped, so there is no manual configuration
826 required
827
Wenyou Yang7a7a64c2017-04-13 10:29:22 +0800828config GENERIC_ATMEL_MCI
829 bool "Atmel Multimedia Card Interface support"
Tom Rini29b436e2024-06-04 19:37:42 -0600830 depends on DM_MMC && ARCH_AT91
Wenyou Yang7a7a64c2017-04-13 10:29:22 +0800831 help
832 This enables support for Atmel High Speed Multimedia Card Interface
833 (HSMCI), which supports the MultiMedia Card (MMC) Specification V4.3,
834 the SD Memory Card Specification V2.0, the SDIO V2.0 specification
835 and CE-ATA V1.1.
836
Patrice Chotardae19b812017-09-04 17:56:22 +0200837config STM32_SDMMC2
838 bool "STMicroelectronics STM32H7 SD/MMC Host Controller support"
Tom Rini29b436e2024-06-04 19:37:42 -0600839 depends on DM_MMC && OF_CONTROL
Patrice Chotardae19b812017-09-04 17:56:22 +0200840 help
841 This selects support for the SD/MMC controller on STM32H7 SoCs.
842 If you have a board based on such a SoC and with a SD/MMC slot,
Heinrich Schuchardtb8bcdeb2024-01-23 17:18:16 +0100843 say Y here.
Patrice Chotardae19b812017-09-04 17:56:22 +0200844
Rick Chencbb52972017-11-14 14:47:09 +0800845config FTSDC010
846 bool "Ftsdc010 SD/MMC controller Support"
847 help
848 This SD/MMC controller is present in Andestech SoCs which is based on Faraday IP.
849
Rick Chenc59a6fb2018-03-20 15:10:49 +0800850config FTSDC010_SDIO
851 bool "Support ftsdc010 sdio"
Rick Chenc59a6fb2018-03-20 15:10:49 +0800852 depends on FTSDC010
853 help
854 This can enable ftsdc010 sdio function.
855
developerdc5a9aa2018-11-15 10:08:04 +0800856config MMC_MTK
857 bool "MediaTek SD/MMC Card Interface support"
developer607faf72019-09-25 17:45:37 +0800858 depends on ARCH_MEDIATEK || ARCH_MTMIPS
Tom Rini29b436e2024-06-04 19:37:42 -0600859 depends on DM_MMC
developerdc5a9aa2018-11-15 10:08:04 +0800860 depends on OF_CONTROL
861 help
862 This selects the MediaTek(R) Secure digital and Multimedia card Interface.
Heinrich Schuchardtb8bcdeb2024-01-23 17:18:16 +0100863 If you have a machine with a integrated SD/MMC card reader, say Y here.
developerdc5a9aa2018-11-15 10:08:04 +0800864 This is needed if support for any SD/SDIO/MMC devices is required.
865 If unsure, say N.
866
Masahiro Yamadae8b99722016-12-07 22:10:27 +0900867endif
868
Tom Rini6fb86c12022-12-02 16:42:21 -0500869config FSL_SDHC_V2_3
870 bool
871
Mario Six41d7d972018-03-28 14:38:19 +0200872config FSL_ESDHC
873 bool "Freescale/NXP eSDHC controller support"
Tom Rini6fb86c12022-12-02 16:42:21 -0500874 select FSL_SDHC_V2_3 if ARCH_P1010 || ARCH_BSC9131 || ARCH_BSC9132 \
875 || ARCH_C29X
Mario Six41d7d972018-03-28 14:38:19 +0200876 help
Yangbo Lu982f4252019-06-21 11:42:27 +0800877 This selects support for the eSDHC (Enhanced Secure Digital Host
878 Controller) found on numerous Freescale/NXP SoCs.
879
Michael Walle081d4012020-10-12 10:07:14 +0200880config FSL_ESDHC_SUPPORT_ADMA2
881 bool "enable ADMA2 support"
882 depends on FSL_ESDHC
883 select MMC_SDHCI_ADMA_HELPERS
884 help
885 This enables support for the ADMA2 transfer mode. If supported by the
886 eSDHC it will allow 64bit DMA addresses.
887
Yangbo Luce884022020-05-19 11:06:44 +0800888config FSL_ESDHC_33V_IO_RELIABILITY_WORKAROUND
889 bool "enable eSDHC workaround for 3.3v IO reliability issue"
890 depends on FSL_ESDHC && DM_MMC
Yangbo Luce884022020-05-19 11:06:44 +0800891 help
892 When eSDHC operates at 3.3v, damage can accumulate in an internal
893 level shifter at a higher than expected rate. The faster the interface
894 runs, the more damage accumulates. This issue now is found on LX2160A
895 eSDHC1 for only SD card. The hardware workaround is recommended to use
896 an on-board level shifter that is 1.8v on SoC side and 3.3v on SD card
897 side. For boards without hardware workaround, this option could be
898 enabled, ensuring 1.8v IO voltage and disabling eSDHC if no card.
899 This option assumes no hotplug, and u-boot has to make all the way to
900 to linux to use 1.8v UHS-I speed mode if has card.
901
Yangbo Lue087cd62021-06-03 10:51:17 +0800902config FSL_ESDHC_VS33_NOT_SUPPORT
903 bool "3.3V power supply not supported"
904 depends on FSL_ESDHC
905 help
906 For eSDHC, power supply is through peripheral circuit. 3.3V support is
907 common. Select this if 3.3V power supply not supported.
908
Pali Rohár3a672d62022-05-11 20:27:13 +0200909config SYS_FSL_ESDHC_DEFAULT_BUS_WIDTH
910 int
911 depends on FSL_ESDHC
912 default 1
913
Tom Rinibdd47f32022-06-16 14:04:38 -0400914config ESDHC_DETECT_QUIRK
915 bool "QIXIS-based eSDHC quirk detection"
916 depends on FSL_ESDHC && FSL_QIXIS
917
Yangbo Lu982f4252019-06-21 11:42:27 +0800918config FSL_ESDHC_IMX
919 bool "Freescale/NXP i.MX eSDHC controller support"
920 help
921 This selects support for the i.MX eSDHC (Enhanced Secure Digital Host
922 Controller) found on numerous Freescale/NXP SoCs.
Mario Six41d7d972018-03-28 14:38:19 +0200923
Tom Rinidad332b2022-07-31 21:08:25 -0400924config SYS_FSL_ESDHC_HAS_DDR_MODE
925 bool "i.MX eSDHC controller supports DDR mode"
926 depends on FSL_ESDHC_IMX
927
Adam Ford01836582019-08-14 07:23:43 -0500928config FSL_USDHC
929 bool "Freescale/NXP i.MX uSDHC controller support"
Peng Fan29b31a52022-07-26 16:40:44 +0800930 depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMX8ULP || IMX9 || IMXRT
Adam Ford01836582019-08-14 07:23:43 -0500931 select FSL_ESDHC_IMX
932 help
933 This enables the Ultra Secured Digital Host Controller enhancements
934
Tom Rinif8967f82022-12-02 16:42:22 -0500935config FSL_ESDHC_PIN_MUX
936 bool "Perform esdhc device-tree fixup"
937 depends on (FSL_ESDHC || FSL_ESDHC_IMX) && OF_LIBFDT
938
Nobuhiro Iwamatsu3ec5f862014-12-17 08:03:00 +0900939endmenu
York Sun097e3602016-12-28 08:43:42 -0800940
941config SYS_FSL_ERRATUM_ESDHC111
942 bool
943
944config SYS_FSL_ERRATUM_ESDHC13
945 bool
946
947config SYS_FSL_ERRATUM_ESDHC135
948 bool
949
950config SYS_FSL_ERRATUM_ESDHC_A001
951 bool
Michael Walle148dc612021-03-17 15:01:36 +0100952
953config SYS_FSL_ERRATUM_A011334
954 bool
Michael Walle7259dc52021-03-17 15:01:37 +0100955
956config SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
957 bool