Nobuhiro Iwamatsu | 3ec5f86 | 2014-12-17 08:03:00 +0900 | [diff] [blame] | 1 | menu "MMC Host controller Support" |
| 2 | |
Maxime Ripard | 4f78074 | 2015-10-15 22:04:05 +0200 | [diff] [blame] | 3 | config MMC |
Masahiro Yamada | a5ed4be | 2016-12-07 22:10:26 +0900 | [diff] [blame] | 4 | bool "MMC/SD/SDIO card support" |
| 5 | default ARM || PPC || SANDBOX |
Tom Rini | 9b38400 | 2021-04-21 15:32:27 -0400 | [diff] [blame] | 6 | select DM_MMC if DM |
Maxime Ripard | 4f78074 | 2015-10-15 22:04:05 +0200 | [diff] [blame] | 7 | help |
Masahiro Yamada | a5ed4be | 2016-12-07 22:10:26 +0900 | [diff] [blame] | 8 | 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 Ripard | 4f78074 | 2015-10-15 22:04:05 +0200 | [diff] [blame] | 13 | |
Jean-Jacques Hiblot | d053167 | 2018-01-04 15:23:32 +0100 | [diff] [blame] | 14 | config 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 Chung | 48ad827 | 2021-02-16 10:16:52 +0900 | [diff] [blame] | 21 | config MMC_PWRSEQ |
| 22 | bool "HW reset support for eMMC" |
Jonas Karlman | f2ceb75 | 2024-01-27 17:12:35 +0000 | [diff] [blame] | 23 | depends on PWRSEQ && DM_GPIO |
Jaehoon Chung | 48ad827 | 2021-02-16 10:16:52 +0900 | [diff] [blame] | 24 | help |
Jonas Karlman | f2ceb75 | 2024-01-27 17:12:35 +0000 | [diff] [blame] | 25 | This select Hardware reset support aka pwrseq-emmc for eMMC |
Jaehoon Chung | 48ad827 | 2021-02-16 10:16:52 +0900 | [diff] [blame] | 26 | devices. |
| 27 | |
Jonas Karlman | f2ceb75 | 2024-01-27 17:12:35 +0000 | [diff] [blame] | 28 | config 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 Nie | b4f4f6e | 2018-01-02 12:25:57 +0800 | [diff] [blame] | 36 | config 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 Glass | 1e8eb1b | 2015-06-23 15:38:48 -0600 | [diff] [blame] | 41 | config DM_MMC |
| 42 | bool "Enable MMC controllers using Driver Model" |
| 43 | depends on DM |
| 44 | help |
Robert P. J. Day | 8d56db9 | 2016-07-15 13:44:45 -0400 | [diff] [blame] | 45 | This enables the MultiMediaCard (MMC) uclass which supports MMC and |
Simon Glass | 1e8eb1b | 2015-06-23 15:38:48 -0600 | [diff] [blame] | 46 | 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 Glass | 5f4bd8c | 2017-07-04 13:31:19 -0600 | [diff] [blame] | 51 | config SPL_DM_MMC |
| 52 | bool "Enable MMC controllers using Driver Model in SPL" |
| 53 | depends on SPL_DM && DM_MMC |
Pali Rohár | 3c5ce03 | 2022-05-24 10:58:42 +0200 | [diff] [blame] | 54 | default n if ARCH_MVEBU && !MVEBU_SPL_BOOT_DEVICE_MMC |
Simon Glass | 5f4bd8c | 2017-07-04 13:31:19 -0600 | [diff] [blame] | 55 | default y |
Oleksandr Suvorov | 5c59a67 | 2023-08-23 18:45:45 +0300 | [diff] [blame] | 56 | select SPL_BLK |
Simon Glass | 5f4bd8c | 2017-07-04 13:31:19 -0600 | [diff] [blame] | 57 | 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 Yamada | e8b9972 | 2016-12-07 22:10:27 +0900 | [diff] [blame] | 64 | if MMC |
| 65 | |
Michael Walle | 02016c6 | 2020-09-23 12:42:51 +0200 | [diff] [blame] | 66 | config MMC_SDHCI_ADMA_HELPERS |
| 67 | bool |
| 68 | |
Bhargav Shah | a1afe25 | 2019-07-08 04:10:48 +0000 | [diff] [blame] | 69 | config 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 | |
| 78 | config 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 Chotard | fcce420 | 2017-10-23 10:57:31 +0200 | [diff] [blame] | 87 | config ARM_PL180_MMCI |
| 88 | bool "ARM AMBA Multimedia Card Interface and compatible support" |
Linus Walleij | e64c9b4 | 2024-02-08 10:33:43 +0100 | [diff] [blame] | 89 | depends on DM_MMC |
Patrice Chotard | fcce420 | 2017-10-23 10:57:31 +0200 | [diff] [blame] | 90 | 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 Schuchardt | b8bcdeb | 2024-01-23 17:18:16 +0100 | [diff] [blame] | 94 | say Y here. |
Patrice Chotard | fcce420 | 2017-10-23 10:57:31 +0200 | [diff] [blame] | 95 | |
Kishon Vijay Abraham I | 07baaa6 | 2017-09-21 16:30:10 +0200 | [diff] [blame] | 96 | config 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 Johnson | 9cbee2c | 2020-01-11 09:08:15 -0700 | [diff] [blame] | 102 | are enabled by default, other may require additional flags or are |
Kishon Vijay Abraham I | 07baaa6 | 2017-09-21 16:30:10 +0200 | [diff] [blame] | 103 | enabled by the host driver. |
| 104 | |
Tom Rini | 9173548 | 2022-10-28 20:27:05 -0400 | [diff] [blame] | 105 | config 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 Hiblot | 1d7769a | 2017-11-30 17:44:02 +0100 | [diff] [blame] | 112 | config 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 Kiernan | 60e0f61 | 2018-05-08 04:43:31 +0000 | [diff] [blame] | 119 | config 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 Kiernan | 0084877 | 2019-05-01 07:58:27 +0000 | [diff] [blame] | 126 | config 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 Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 132 | config 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 | |
| 140 | config SPL_MMC_IO_VOLTAGE |
| 141 | bool "Support IO voltage configuration in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 142 | depends on SPL_MMC |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 143 | 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 Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 149 | config MMC_SUPPORTS_TUNING |
| 150 | bool |
| 151 | |
| 152 | config SPL_MMC_SUPPORTS_TUNING |
| 153 | bool |
| 154 | |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 155 | config MMC_UHS_SUPPORT |
| 156 | bool "enable UHS support" |
| 157 | depends on MMC_IO_VOLTAGE |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 158 | select MMC_SUPPORTS_TUNING |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 159 | 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 | |
| 164 | config SPL_MMC_UHS_SUPPORT |
| 165 | bool "enable UHS support in SPL" |
| 166 | depends on SPL_MMC_IO_VOLTAGE |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 167 | select SPL_MMC_SUPPORTS_TUNING |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 168 | 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 Fan | eede83b | 2019-07-10 14:43:07 +0800 | [diff] [blame] | 173 | config 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 | |
| 179 | config SPL_MMC_HS400_ES_SUPPORT |
| 180 | bool "enable HS400 Enhanced Strobe support in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 181 | depends on SPL_MMC |
Peng Fan | eede83b | 2019-07-10 14:43:07 +0800 | [diff] [blame] | 182 | 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 Fan | 4680125 | 2018-08-10 14:07:54 +0800 | [diff] [blame] | 186 | config 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 | |
| 193 | config SPL_MMC_HS400_SUPPORT |
| 194 | bool "enable HS400 support in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 195 | depends on SPL_MMC |
Faiz Abbas | 373954e | 2019-08-01 16:33:36 +0530 | [diff] [blame] | 196 | select SPL_MMC_HS200_SUPPORT |
Peng Fan | 4680125 | 2018-08-10 14:07:54 +0800 | [diff] [blame] | 197 | 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 Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 201 | config MMC_HS200_SUPPORT |
| 202 | bool "enable HS200 support" |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 203 | select MMC_SUPPORTS_TUNING |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 204 | 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 Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 208 | config SPL_MMC_HS200_SUPPORT |
| 209 | bool "enable HS200 support in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 210 | depends on SPL_MMC |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 211 | select SPL_MMC_SUPPORTS_TUNING |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 212 | 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 Hiblot | a94fb41 | 2017-09-21 16:29:53 +0200 | [diff] [blame] | 216 | config 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 Chung | e2bf580 | 2018-01-26 19:25:31 +0900 | [diff] [blame] | 223 | config MMC_TRACE |
| 224 | bool "MMC debugging" |
Jaehoon Chung | e2bf580 | 2018-01-26 19:25:31 +0900 | [diff] [blame] | 225 | 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 Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 230 | config 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 Yamada | 7942e91 | 2017-01-10 13:32:04 +0900 | [diff] [blame] | 239 | config MMC_DW |
| 240 | bool "Synopsys DesignWare Memory Card Interface" |
Philipp Tomsich | b302747 | 2018-11-30 22:13:25 +0100 | [diff] [blame] | 241 | select BOUNCE_BUFFER |
Masahiro Yamada | 7942e91 | 2017-01-10 13:32:04 +0900 | [diff] [blame] | 242 | 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 Li | 055e18e | 2020-02-20 18:19:35 -0800 | [diff] [blame] | 247 | config 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 Li | 055e18e | 2020-02-20 18:19:35 -0800 | [diff] [blame] | 251 | 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 Yamada | f1ad728 | 2017-01-10 13:32:05 +0900 | [diff] [blame] | 256 | config 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 | |
| 266 | config 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 Yamada | dc607f8 | 2017-01-10 13:32:03 +0900 | [diff] [blame] | 274 | config MMC_DW_ROCKCHIP |
Simon Glass | 4ecaa6d | 2015-08-30 16:55:37 -0600 | [diff] [blame] | 275 | bool "Rockchip SD/MMC controller support" |
| 276 | depends on DM_MMC && OF_CONTROL |
Masahiro Yamada | 7942e91 | 2017-01-10 13:32:04 +0900 | [diff] [blame] | 277 | depends on MMC_DW |
Simon Glass | 4ecaa6d | 2015-08-30 16:55:37 -0600 | [diff] [blame] | 278 | 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 Yamada | f1ad728 | 2017-01-10 13:32:05 +0900 | [diff] [blame] | 284 | config 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 Paltsev | b050c2c | 2019-02-25 18:35:28 +0300 | [diff] [blame] | 294 | config 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 Bosch | 22c12f7 | 2020-07-10 19:07:29 +0200 | [diff] [blame] | 304 | config 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 Caione | 20cab78 | 2017-04-12 20:30:42 +0200 | [diff] [blame] | 312 | config MMC_MESON_GX |
| 313 | bool "Meson GX EMMC controller support" |
Tom Rini | 29b436e | 2024-06-04 19:37:42 -0600 | [diff] [blame] | 314 | depends on DM_MMC && ARCH_MESON |
Carlo Caione | 20cab78 | 2017-04-12 20:30:42 +0200 | [diff] [blame] | 315 | help |
| 316 | Support for EMMC host controller on Meson GX ARM SoCs platform (S905) |
| 317 | |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 318 | config 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 Tomar | 347494c | 2021-11-28 17:02:24 +0530 | [diff] [blame] | 327 | config 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 Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 334 | config MMC_MXS |
| 335 | bool "Freescale MXS Multimedia Card Interface support" |
Adam Ford | a456d56 | 2018-02-06 08:34:45 -0600 | [diff] [blame] | 336 | depends on MX23 || MX28 || MX6 || MX7 |
Philipp Tomsich | b302747 | 2018-11-30 22:13:25 +0100 | [diff] [blame] | 337 | select BOUNCE_BUFFER |
Adam Ford | a456d56 | 2018-02-06 08:34:45 -0600 | [diff] [blame] | 338 | select APBH_DMA |
| 339 | select APBH_DMA_BURST if ARCH_MX6 || ARCH_MX7 |
| 340 | select APBH_DMA_BURST8 if ARCH_MX6 || ARCH_MX7 |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 341 | 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 Balbi | ecf7dfd | 2017-02-20 14:24:13 +0300 | [diff] [blame] | 347 | config MMC_PCI |
| 348 | bool "Support for MMC controllers on PCI" |
Bin Meng | 3d81f02 | 2021-02-15 20:01:44 +0800 | [diff] [blame] | 349 | depends on MMC_SDHCI |
Felipe Balbi | ecf7dfd | 2017-02-20 14:24:13 +0300 | [diff] [blame] | 350 | help |
| 351 | This selects PCI-based MMC controllers. |
| 352 | If you have an MMC controller on a PCI bus, say Y here. |
| 353 | |
Suneel Garapati | 40e6133 | 2019-10-19 18:03:01 -0700 | [diff] [blame] | 354 | config MMC_OCTEONTX |
Stefan Roese | e06f552 | 2021-03-12 09:48:25 +0100 | [diff] [blame] | 355 | bool "Marvell Octeon Multimedia Card Interface support" |
| 356 | depends on (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2) |
Suneel Garapati | 40e6133 | 2019-10-19 18:03:01 -0700 | [diff] [blame] | 357 | depends on DM_MMC |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 358 | select MMC_SUPPORTS_TUNING if ARCH_OCTEONTX2 |
Suneel Garapati | 40e6133 | 2019-10-19 18:03:01 -0700 | [diff] [blame] | 359 | help |
Stefan Roese | e06f552 | 2021-03-12 09:48:25 +0100 | [diff] [blame] | 360 | 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 Garapati | 40e6133 | 2019-10-19 18:03:01 -0700 | [diff] [blame] | 363 | |
Felipe Balbi | ecf7dfd | 2017-02-20 14:24:13 +0300 | [diff] [blame] | 364 | If unsure, say N. |
| 365 | |
Harm Berntsen | 7b9e5af | 2021-03-30 10:19:41 +0200 | [diff] [blame] | 366 | config MVEBU_MMC |
| 367 | bool "Kirkwood MMC controller support" |
Tom Rini | 29b436e | 2024-06-04 19:37:42 -0600 | [diff] [blame] | 368 | depends on DM_MMC && ARCH_KIRKWOOD |
Harm Berntsen | 7b9e5af | 2021-03-30 10:19:41 +0200 | [diff] [blame] | 369 | 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 Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 375 | config MMC_OMAP_HS |
| 376 | bool "TI OMAP High Speed Multimedia Card Interface support" |
Simon Glass | eba48f9 | 2017-07-29 11:35:31 -0600 | [diff] [blame] | 377 | select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR |
Jean-Jacques Hiblot | 4612bdd | 2017-09-21 17:03:10 +0200 | [diff] [blame] | 378 | select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 379 | 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 Hiblot | cebf059 | 2018-02-23 10:40:18 +0100 | [diff] [blame] | 386 | config 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 Ford | ef35496 | 2017-02-06 11:31:43 -0600 | [diff] [blame] | 395 | config 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 Rini | af81655 | 2022-12-02 16:42:16 -0500 | [diff] [blame] | 407 | config HSMMC2_8BIT |
| 408 | bool "Enable 8-bit interface for eMMC (interface #2)" |
Tom Rini | 8c6b437 | 2024-07-15 13:35:53 -0600 | [diff] [blame] | 409 | depends on MMC_OMAP_HS && (OMAP54XX || DRA7XX || AM33XX || \ |
Tom Rini | af81655 | 2022-12-02 16:42:16 -0500 | [diff] [blame] | 410 | AM43XX || ARCH_KEYSTONE) |
| 411 | |
Marek Vasut | a8624ac | 2018-04-21 17:40:20 +0200 | [diff] [blame] | 412 | config SH_MMCIF |
| 413 | bool "SuperH/Renesas ARM SoCs on-chip MMCIF host controller support" |
Marek Vasut | 6468c4c | 2024-02-27 17:05:55 +0100 | [diff] [blame] | 414 | depends on ARCH_RENESAS || SH |
Marek Vasut | a8624ac | 2018-04-21 17:40:20 +0200 | [diff] [blame] | 415 | help |
| 416 | Support for the on-chip MMCIF host controller on SuperH/Renesas ARM SoCs platform |
| 417 | |
Masahiro Yamada | a0cfcc0 | 2016-02-18 19:52:48 +0900 | [diff] [blame] | 418 | config MMC_UNIPHIER |
Marek Vasut | 2883f74 | 2017-09-23 13:30:30 +0200 | [diff] [blame] | 419 | bool "UniPhier SD/MMC Host Controller support" |
| 420 | depends on ARCH_UNIPHIER |
Tom Rini | 29b436e | 2024-06-04 19:37:42 -0600 | [diff] [blame] | 421 | depends on DM_MMC |
Masahiro Yamada | c232653 | 2016-12-30 23:20:14 +0900 | [diff] [blame] | 422 | depends on OF_CONTROL |
Masahiro Yamada | a0cfcc0 | 2016-02-18 19:52:48 +0900 | [diff] [blame] | 423 | help |
Marek Vasut | 847ee0c | 2017-07-21 23:24:36 +0200 | [diff] [blame] | 424 | This selects support for the Matsushita SD/MMC Host Controller on |
Marek Vasut | 2883f74 | 2017-09-23 13:30:30 +0200 | [diff] [blame] | 425 | SocioNext UniPhier SoCs. |
| 426 | |
| 427 | config RENESAS_SDHI |
| 428 | bool "Renesas R-Car SD/MMC Host Controller support" |
Marek Vasut | 6468c4c | 2024-02-27 17:05:55 +0100 | [diff] [blame] | 429 | depends on ARCH_RENESAS |
Tom Rini | 29b436e | 2024-06-04 19:37:42 -0600 | [diff] [blame] | 430 | depends on DM_MMC |
Marek Vasut | 2883f74 | 2017-09-23 13:30:30 +0200 | [diff] [blame] | 431 | depends on OF_CONTROL |
Marek Vasut | 9f7baeb | 2020-04-04 12:45:04 +0200 | [diff] [blame] | 432 | select BOUNCE_BUFFER |
Marek Vasut | 2883f74 | 2017-09-23 13:30:30 +0200 | [diff] [blame] | 433 | help |
| 434 | This selects support for the Matsushita SD/MMC Host Controller on |
| 435 | Renesas R-Car SoCs. |
Masahiro Yamada | a0cfcc0 | 2016-02-18 19:52:48 +0900 | [diff] [blame] | 436 | |
Alexander Graf | 044725f | 2018-01-23 18:05:22 +0100 | [diff] [blame] | 437 | config MMC_BCM2835 |
| 438 | bool "BCM2835 family custom SD/MMC Host Controller support" |
| 439 | depends on ARCH_BCM283X |
Tom Rini | 29b436e | 2024-06-04 19:37:42 -0600 | [diff] [blame] | 440 | depends on DM_MMC |
Alexander Graf | 044725f | 2018-01-23 18:05:22 +0100 | [diff] [blame] | 441 | 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 Burton | 8e14284 | 2018-12-16 19:25:20 -0300 | [diff] [blame] | 451 | config 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 Yamada | 54f7cfc | 2017-01-30 19:46:50 +0900 | [diff] [blame] | 457 | config MMC_SANDBOX |
Simon Glass | f9eebac | 2016-05-01 13:52:42 -0600 | [diff] [blame] | 458 | bool "Sandbox MMC support" |
Masahiro Yamada | 54f7cfc | 2017-01-30 19:46:50 +0900 | [diff] [blame] | 459 | depends on SANDBOX |
Tom Rini | 29b436e | 2024-06-04 19:37:42 -0600 | [diff] [blame] | 460 | depends on DM_MMC && OF_CONTROL |
Simon Glass | f9eebac | 2016-05-01 13:52:42 -0600 | [diff] [blame] | 461 | 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 Yamada | 7db8c17 | 2016-12-07 22:10:28 +0900 | [diff] [blame] | 467 | config 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 Yamada | bfd110f | 2016-12-07 22:10:30 +0900 | [diff] [blame] | 478 | config 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 Yamada | 124f6ce | 2016-12-07 22:10:29 +0900 | [diff] [blame] | 485 | config 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 Geis | 4561ada | 2023-04-18 16:46:44 +0000 | [diff] [blame] | 492 | config 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 Abbas | 4c082a6 | 2019-04-16 23:06:58 +0530 | [diff] [blame] | 500 | config MMC_SDHCI_ADMA |
| 501 | bool "Support SDHCI ADMA2" |
| 502 | depends on MMC_SDHCI |
Michael Walle | 02016c6 | 2020-09-23 12:42:51 +0200 | [diff] [blame] | 503 | select MMC_SDHCI_ADMA_HELPERS |
Faiz Abbas | 4c082a6 | 2019-04-16 23:06:58 +0530 | [diff] [blame] | 504 | help |
| 505 | This enables support for the ADMA (Advanced DMA) defined |
| 506 | in the SD Host Controller Standard Specification Version 3.00 |
| 507 | |
| 508 | config SPL_MMC_SDHCI_ADMA |
| 509 | bool "Support SDHCI ADMA2 in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 510 | depends on SPL_MMC && MMC_SDHCI |
Michael Walle | 02016c6 | 2020-09-23 12:42:51 +0200 | [diff] [blame] | 511 | select MMC_SDHCI_ADMA_HELPERS |
Faiz Abbas | 4c082a6 | 2019-04-16 23:06:58 +0530 | [diff] [blame] | 512 | 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 Malysa | eb92ef1 | 2024-03-25 22:28:08 -0400 | [diff] [blame] | 516 | config 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 | |
| 525 | config 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 Packham | 7d5d591 | 2022-05-29 11:13:17 +1200 | [diff] [blame] | 534 | config 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 James | c8a6581 | 2019-08-27 09:48:03 -0500 | [diff] [blame] | 547 | config MMC_SDHCI_ASPEED |
| 548 | bool "Aspeed SDHCI controller" |
| 549 | depends on ARCH_ASPEED |
| 550 | depends on DM_MMC |
| 551 | depends on MMC_SDHCI |
Joel Stanley | 818a6b5 | 2022-06-23 18:35:34 +0930 | [diff] [blame] | 552 | select MISC |
Eddie James | c8a6581 | 2019-08-27 09:48:03 -0500 | [diff] [blame] | 553 | 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 Yamada | 8c1a132 | 2017-01-30 19:46:55 +0900 | [diff] [blame] | 559 | config MMC_SDHCI_ATMEL |
| 560 | bool "Atmel SDHCI controller support" |
| 561 | depends on ARCH_AT91 |
Tom Rini | 29b436e | 2024-06-04 19:37:42 -0600 | [diff] [blame] | 562 | depends on DM_MMC && ARCH_AT91 |
Masahiro Yamada | 8c1a132 | 2017-01-30 19:46:55 +0900 | [diff] [blame] | 563 | 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 Yamada | 124f6ce | 2016-12-07 22:10:29 +0900 | [diff] [blame] | 571 | config MMC_SDHCI_BCM2835 |
| 572 | tristate "SDHCI support for the BCM2835 SD/MMC Controller" |
| 573 | depends on ARCH_BCM283X |
| 574 | depends on MMC_SDHCI |
Masahiro Yamada | bfd110f | 2016-12-07 22:10:30 +0900 | [diff] [blame] | 575 | select MMC_SDHCI_IO_ACCESSORS |
Masahiro Yamada | 124f6ce | 2016-12-07 22:10:29 +0900 | [diff] [blame] | 576 | 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 Fitzsimmons | 919646d | 2018-06-08 17:59:45 -0400 | [diff] [blame] | 584 | config 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 Yamada | dcbc443 | 2016-12-30 22:41:46 +0900 | [diff] [blame] | 595 | config MMC_SDHCI_CADENCE |
| 596 | bool "SDHCI support for the Cadence SD/SDIO/eMMC controller" |
Tom Rini | 29b436e | 2024-06-04 19:37:42 -0600 | [diff] [blame] | 597 | depends on DM_MMC |
Masahiro Yamada | dcbc443 | 2016-12-30 22:41:46 +0900 | [diff] [blame] | 598 | 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 Liu | 331ee41 | 2024-03-10 01:51:55 +0800 | [diff] [blame] | 607 | config MMC_SDHCI_CV1800B |
| 608 | bool "SDHCI support for the CV1800B SD/SDIO/eMMC controller" |
Tom Rini | 29b436e | 2024-06-04 19:37:42 -0600 | [diff] [blame] | 609 | depends on DM_MMC |
Kongyang Liu | 331ee41 | 2024-03-10 01:51:55 +0800 | [diff] [blame] | 610 | 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 Abbas | d8fb309 | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 620 | config MMC_SDHCI_AM654 |
| 621 | bool "SDHCI Controller on TI's Am654 devices" |
Lokesh Vutla | bc9979f | 2018-08-27 15:57:54 +0530 | [diff] [blame] | 622 | depends on ARCH_K3 |
| 623 | depends on MMC_SDHCI |
| 624 | depends on DM_MMC && OF_CONTROL && BLK |
Faiz Abbas | e9aed58 | 2019-06-11 00:43:38 +0530 | [diff] [blame] | 625 | depends on REGMAP |
Faiz Abbas | 36c8c5c | 2021-02-04 15:10:54 +0530 | [diff] [blame] | 626 | select MMC_SDHCI_IO_ACCESSORS |
Lokesh Vutla | bc9979f | 2018-08-27 15:57:54 +0530 | [diff] [blame] | 627 | help |
Faiz Abbas | d8fb309 | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 628 | Support for Secure Digital Host Controller Interface (SDHCI) |
| 629 | controllers present on TI's AM654 SOCs. |
Lokesh Vutla | bc9979f | 2018-08-27 15:57:54 +0530 | [diff] [blame] | 630 | |
Arun Parameswaran | 2f4f34a | 2019-09-12 11:06:08 -0700 | [diff] [blame] | 631 | config 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 Schuchardt | b8bcdeb | 2024-01-23 17:18:16 +0100 | [diff] [blame] | 638 | say Y here. |
Arun Parameswaran | 2f4f34a | 2019-09-12 11:06:08 -0700 | [diff] [blame] | 639 | |
| 640 | If unsure, say N. |
| 641 | |
Jassi Brar | 8188bda | 2021-06-04 18:44:16 +0900 | [diff] [blame] | 642 | config MMC_SDHCI_F_SDH30 |
Kunihiko Hayashi | 2cd5da6 | 2022-09-09 16:23:33 +0900 | [diff] [blame] | 643 | bool "SDHCI support for Fujitsu Semiconductor/Socionext F_SDH30" |
Tom Rini | 29b436e | 2024-06-04 19:37:42 -0600 | [diff] [blame] | 644 | depends on DM_MMC |
Jassi Brar | 8188bda | 2021-06-04 18:44:16 +0900 | [diff] [blame] | 645 | depends on MMC_SDHCI |
| 646 | help |
| 647 | This selects the Secure Digital Host Controller Interface (SDHCI) |
Kunihiko Hayashi | 2cd5da6 | 2022-09-09 16:23:33 +0900 | [diff] [blame] | 648 | Needed by some Fujitsu/Socionext SoC for MMC / SD / SDIO support. |
Heinrich Schuchardt | b8bcdeb | 2024-01-23 17:18:16 +0100 | [diff] [blame] | 649 | If you have a controller with this interface, say Y here. |
Jassi Brar | 8188bda | 2021-06-04 18:44:16 +0900 | [diff] [blame] | 650 | If unsure, say N. |
| 651 | |
Masahiro Yamada | 124f6ce | 2016-12-07 22:10:29 +0900 | [diff] [blame] | 652 | config 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 Yamada | a1262eb | 2017-01-30 19:46:53 +0900 | [diff] [blame] | 662 | config MMC_SDHCI_MSM |
| 663 | bool "Qualcomm SDHCI controller" |
Tom Rini | 29b436e | 2024-06-04 19:37:42 -0600 | [diff] [blame] | 664 | depends on DM_MMC |
Masahiro Yamada | a1262eb | 2017-01-30 19:46:53 +0900 | [diff] [blame] | 665 | 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 Yamada | 124f6ce | 2016-12-07 22:10:29 +0900 | [diff] [blame] | 672 | config MMC_SDHCI_MV |
| 673 | bool "SDHCI support on Marvell platform" |
| 674 | depends on ARCH_MVEBU |
| 675 | depends on MMC_SDHCI |
Stefan Roese | fb0720b | 2023-02-10 13:23:52 +0100 | [diff] [blame] | 676 | depends on DM_MMC |
Masahiro Yamada | 124f6ce | 2016-12-07 22:10:29 +0900 | [diff] [blame] | 677 | 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 Liu | 29cf22c | 2022-05-24 16:55:33 +0800 | [diff] [blame] | 685 | config 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 Yamada | f79df03 | 2017-01-30 19:46:54 +0900 | [diff] [blame] | 697 | config 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 Yamada | babe026 | 2017-01-30 19:46:52 +0900 | [diff] [blame] | 704 | config MMC_SDHCI_ROCKCHIP |
| 705 | bool "Arasan SDHCI controller for Rockchip support" |
| 706 | depends on ARCH_ROCKCHIP |
Simon Glass | eba48f9 | 2017-07-29 11:35:31 -0600 | [diff] [blame] | 707 | depends on DM_MMC && BLK |
Masahiro Yamada | babe026 | 2017-01-30 19:46:52 +0900 | [diff] [blame] | 708 | depends on MMC_SDHCI |
| 709 | help |
| 710 | Support for Arasan SDHCI host controller on Rockchip ARM SoCs platform |
| 711 | |
Masahiro Yamada | 124f6ce | 2016-12-07 22:10:29 +0900 | [diff] [blame] | 712 | config 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 Chotard | 2eea7d8 | 2017-02-21 13:37:09 +0100 | [diff] [blame] | 723 | config MMC_SDHCI_STI |
| 724 | bool "SDHCI support for STMicroelectronics SoC" |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 725 | depends on MMC_SDHCI && OF_CONTROL |
Patrice Chotard | 2eea7d8 | 2017-02-21 13:37:09 +0100 | [diff] [blame] | 726 | help |
| 727 | This selects the Secure Digital Host Controller Interface (SDHCI) |
| 728 | on STMicroelectronics STiH410 SoC. |
| 729 | |
Stefan Roese | 121fc56 | 2016-12-09 15:03:28 +0100 | [diff] [blame] | 730 | config 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 Balbi | b756760 | 2017-02-20 14:24:14 +0300 | [diff] [blame] | 741 | config 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 Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 755 | config MMC_SDHCI_TEGRA |
| 756 | bool "SDHCI platform support for the Tegra SD/MMC Controller" |
Trevor Woerner | 513f640 | 2020-05-06 08:02:41 -0400 | [diff] [blame] | 757 | depends on ARCH_TEGRA |
Philipp Tomsich | b302747 | 2018-11-30 22:13:25 +0100 | [diff] [blame] | 758 | select BOUNCE_BUFFER |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 759 | 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 Piepho | 1bf56c3 | 2019-04-01 23:05:49 +0000 | [diff] [blame] | 766 | config 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 Yamada | 168c57d | 2017-01-30 19:46:51 +0900 | [diff] [blame] | 777 | config MMC_SDHCI_ZYNQ |
| 778 | bool "Arasan SDHCI controller support" |
Simon Glass | eba48f9 | 2017-07-29 11:35:31 -0600 | [diff] [blame] | 779 | depends on DM_MMC && OF_CONTROL && BLK |
Masahiro Yamada | 168c57d | 2017-01-30 19:46:51 +0900 | [diff] [blame] | 780 | depends on MMC_SDHCI |
| 781 | help |
| 782 | Support for Arasan SDHCI host controller on Zynq/ZynqMP ARM SoCs platform |
| 783 | |
Vipul Kumar | 6254800 | 2018-02-28 15:53:28 +0530 | [diff] [blame] | 784 | config 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 Kumar | dcc14e3 | 2018-02-28 15:53:29 +0530 | [diff] [blame] | 790 | config 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 Paladugu | a9a3d00 | 2019-05-27 14:33:14 +0530 | [diff] [blame] | 797 | config 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 Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 803 | config MMC_SUNXI |
| 804 | bool "Allwinner sunxi SD/MMC Host Controller support" |
Samuel Holland | 6b0d0bc | 2022-04-10 00:13:34 -0500 | [diff] [blame] | 805 | depends on ARCH_SUNXI |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 806 | default y |
| 807 | help |
| 808 | This selects support for the SD/MMC Host Controller on |
| 809 | Allwinner sunxi SoCs. |
| 810 | |
Maxime Ripard | 95e3470 | 2017-08-23 12:03:41 +0200 | [diff] [blame] | 811 | config MMC_SUNXI_HAS_NEW_MODE |
| 812 | bool |
| 813 | depends on MMC_SUNXI |
| 814 | |
Vasily Khoruzhick | b198e2c | 2018-11-09 20:41:44 -0800 | [diff] [blame] | 815 | config MMC_SUNXI_HAS_MODE_SWITCH |
| 816 | bool |
| 817 | depends on MMC_SUNXI |
| 818 | |
Tianrui Wei | 8cfc7c5 | 2021-07-01 12:54:20 +0800 | [diff] [blame] | 819 | config 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 Yang | 7a7a64c | 2017-04-13 10:29:22 +0800 | [diff] [blame] | 828 | config GENERIC_ATMEL_MCI |
| 829 | bool "Atmel Multimedia Card Interface support" |
Tom Rini | 29b436e | 2024-06-04 19:37:42 -0600 | [diff] [blame] | 830 | depends on DM_MMC && ARCH_AT91 |
Wenyou Yang | 7a7a64c | 2017-04-13 10:29:22 +0800 | [diff] [blame] | 831 | 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 Chotard | ae19b81 | 2017-09-04 17:56:22 +0200 | [diff] [blame] | 837 | config STM32_SDMMC2 |
| 838 | bool "STMicroelectronics STM32H7 SD/MMC Host Controller support" |
Tom Rini | 29b436e | 2024-06-04 19:37:42 -0600 | [diff] [blame] | 839 | depends on DM_MMC && OF_CONTROL |
Patrice Chotard | ae19b81 | 2017-09-04 17:56:22 +0200 | [diff] [blame] | 840 | 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 Schuchardt | b8bcdeb | 2024-01-23 17:18:16 +0100 | [diff] [blame] | 843 | say Y here. |
Patrice Chotard | ae19b81 | 2017-09-04 17:56:22 +0200 | [diff] [blame] | 844 | |
Rick Chen | cbb5297 | 2017-11-14 14:47:09 +0800 | [diff] [blame] | 845 | config 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 Chen | c59a6fb | 2018-03-20 15:10:49 +0800 | [diff] [blame] | 850 | config FTSDC010_SDIO |
| 851 | bool "Support ftsdc010 sdio" |
Rick Chen | c59a6fb | 2018-03-20 15:10:49 +0800 | [diff] [blame] | 852 | depends on FTSDC010 |
| 853 | help |
| 854 | This can enable ftsdc010 sdio function. |
| 855 | |
developer | dc5a9aa | 2018-11-15 10:08:04 +0800 | [diff] [blame] | 856 | config MMC_MTK |
| 857 | bool "MediaTek SD/MMC Card Interface support" |
developer | 607faf7 | 2019-09-25 17:45:37 +0800 | [diff] [blame] | 858 | depends on ARCH_MEDIATEK || ARCH_MTMIPS |
Tom Rini | 29b436e | 2024-06-04 19:37:42 -0600 | [diff] [blame] | 859 | depends on DM_MMC |
developer | dc5a9aa | 2018-11-15 10:08:04 +0800 | [diff] [blame] | 860 | depends on OF_CONTROL |
| 861 | help |
| 862 | This selects the MediaTek(R) Secure digital and Multimedia card Interface. |
Heinrich Schuchardt | b8bcdeb | 2024-01-23 17:18:16 +0100 | [diff] [blame] | 863 | If you have a machine with a integrated SD/MMC card reader, say Y here. |
developer | dc5a9aa | 2018-11-15 10:08:04 +0800 | [diff] [blame] | 864 | This is needed if support for any SD/SDIO/MMC devices is required. |
| 865 | If unsure, say N. |
| 866 | |
Masahiro Yamada | e8b9972 | 2016-12-07 22:10:27 +0900 | [diff] [blame] | 867 | endif |
| 868 | |
Tom Rini | 6fb86c1 | 2022-12-02 16:42:21 -0500 | [diff] [blame] | 869 | config FSL_SDHC_V2_3 |
| 870 | bool |
| 871 | |
Mario Six | 41d7d97 | 2018-03-28 14:38:19 +0200 | [diff] [blame] | 872 | config FSL_ESDHC |
| 873 | bool "Freescale/NXP eSDHC controller support" |
Tom Rini | 6fb86c1 | 2022-12-02 16:42:21 -0500 | [diff] [blame] | 874 | select FSL_SDHC_V2_3 if ARCH_P1010 || ARCH_BSC9131 || ARCH_BSC9132 \ |
| 875 | || ARCH_C29X |
Mario Six | 41d7d97 | 2018-03-28 14:38:19 +0200 | [diff] [blame] | 876 | help |
Yangbo Lu | 982f425 | 2019-06-21 11:42:27 +0800 | [diff] [blame] | 877 | This selects support for the eSDHC (Enhanced Secure Digital Host |
| 878 | Controller) found on numerous Freescale/NXP SoCs. |
| 879 | |
Michael Walle | 081d401 | 2020-10-12 10:07:14 +0200 | [diff] [blame] | 880 | config 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 Lu | ce88402 | 2020-05-19 11:06:44 +0800 | [diff] [blame] | 888 | config 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 Lu | ce88402 | 2020-05-19 11:06:44 +0800 | [diff] [blame] | 891 | 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 Lu | e087cd6 | 2021-06-03 10:51:17 +0800 | [diff] [blame] | 902 | config 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ár | 3a672d6 | 2022-05-11 20:27:13 +0200 | [diff] [blame] | 909 | config SYS_FSL_ESDHC_DEFAULT_BUS_WIDTH |
| 910 | int |
| 911 | depends on FSL_ESDHC |
| 912 | default 1 |
| 913 | |
Tom Rini | bdd47f3 | 2022-06-16 14:04:38 -0400 | [diff] [blame] | 914 | config ESDHC_DETECT_QUIRK |
| 915 | bool "QIXIS-based eSDHC quirk detection" |
| 916 | depends on FSL_ESDHC && FSL_QIXIS |
| 917 | |
Yangbo Lu | 982f425 | 2019-06-21 11:42:27 +0800 | [diff] [blame] | 918 | config 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 Six | 41d7d97 | 2018-03-28 14:38:19 +0200 | [diff] [blame] | 923 | |
Tom Rini | dad332b | 2022-07-31 21:08:25 -0400 | [diff] [blame] | 924 | config SYS_FSL_ESDHC_HAS_DDR_MODE |
| 925 | bool "i.MX eSDHC controller supports DDR mode" |
| 926 | depends on FSL_ESDHC_IMX |
| 927 | |
Adam Ford | 0183658 | 2019-08-14 07:23:43 -0500 | [diff] [blame] | 928 | config FSL_USDHC |
| 929 | bool "Freescale/NXP i.MX uSDHC controller support" |
Peng Fan | 29b31a5 | 2022-07-26 16:40:44 +0800 | [diff] [blame] | 930 | depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMX8ULP || IMX9 || IMXRT |
Adam Ford | 0183658 | 2019-08-14 07:23:43 -0500 | [diff] [blame] | 931 | select FSL_ESDHC_IMX |
| 932 | help |
| 933 | This enables the Ultra Secured Digital Host Controller enhancements |
| 934 | |
Tom Rini | f8967f8 | 2022-12-02 16:42:22 -0500 | [diff] [blame] | 935 | config FSL_ESDHC_PIN_MUX |
| 936 | bool "Perform esdhc device-tree fixup" |
| 937 | depends on (FSL_ESDHC || FSL_ESDHC_IMX) && OF_LIBFDT |
| 938 | |
Nobuhiro Iwamatsu | 3ec5f86 | 2014-12-17 08:03:00 +0900 | [diff] [blame] | 939 | endmenu |
York Sun | 097e360 | 2016-12-28 08:43:42 -0800 | [diff] [blame] | 940 | |
| 941 | config SYS_FSL_ERRATUM_ESDHC111 |
| 942 | bool |
| 943 | |
| 944 | config SYS_FSL_ERRATUM_ESDHC13 |
| 945 | bool |
| 946 | |
| 947 | config SYS_FSL_ERRATUM_ESDHC135 |
| 948 | bool |
| 949 | |
| 950 | config SYS_FSL_ERRATUM_ESDHC_A001 |
| 951 | bool |
Michael Walle | 148dc61 | 2021-03-17 15:01:36 +0100 | [diff] [blame] | 952 | |
| 953 | config SYS_FSL_ERRATUM_A011334 |
| 954 | bool |
Michael Walle | 7259dc5 | 2021-03-17 15:01:37 +0100 | [diff] [blame] | 955 | |
| 956 | config SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND |
| 957 | bool |