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 | 9604ece | 2025-01-14 19:22:11 -0600 | [diff] [blame] | 6 | select BLK |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 7 | select DM_MMC |
Maxime Ripard | 4f78074 | 2015-10-15 22:04:05 +0200 | [diff] [blame] | 8 | help |
Masahiro Yamada | a5ed4be | 2016-12-07 22:10:26 +0900 | [diff] [blame] | 9 | This selects MultiMediaCard, Secure Digital and Secure |
| 10 | Digital I/O support. |
| 11 | |
| 12 | If you want MMC/SD/SDIO support, you should say Y here and |
| 13 | also to your specific host controller driver. |
Maxime Ripard | 4f78074 | 2015-10-15 22:04:05 +0200 | [diff] [blame] | 14 | |
Jean-Jacques Hiblot | d053167 | 2018-01-04 15:23:32 +0100 | [diff] [blame] | 15 | config MMC_WRITE |
| 16 | bool "support for MMC/SD write operations" |
| 17 | depends on MMC |
| 18 | default y |
| 19 | help |
| 20 | Enable write access to MMC and SD Cards |
| 21 | |
Jaehoon Chung | 48ad827 | 2021-02-16 10:16:52 +0900 | [diff] [blame] | 22 | config MMC_PWRSEQ |
| 23 | bool "HW reset support for eMMC" |
Jonas Karlman | f2ceb75 | 2024-01-27 17:12:35 +0000 | [diff] [blame] | 24 | depends on PWRSEQ && DM_GPIO |
Jaehoon Chung | 48ad827 | 2021-02-16 10:16:52 +0900 | [diff] [blame] | 25 | help |
Jonas Karlman | f2ceb75 | 2024-01-27 17:12:35 +0000 | [diff] [blame] | 26 | This select Hardware reset support aka pwrseq-emmc for eMMC |
Jaehoon Chung | 48ad827 | 2021-02-16 10:16:52 +0900 | [diff] [blame] | 27 | devices. |
| 28 | |
Jonas Karlman | f2ceb75 | 2024-01-27 17:12:35 +0000 | [diff] [blame] | 29 | config SPL_MMC_PWRSEQ |
| 30 | bool "HW reset support for eMMC in SPL" |
| 31 | depends on SPL_PWRSEQ && SPL_DM_GPIO |
| 32 | default y if MMC_PWRSEQ |
| 33 | help |
| 34 | This select Hardware reset support aka pwrseq-emmc for eMMC |
| 35 | devices in SPL. |
| 36 | |
Jun Nie | b4f4f6e | 2018-01-02 12:25:57 +0800 | [diff] [blame] | 37 | config MMC_BROKEN_CD |
| 38 | bool "Poll for broken card detection case" |
| 39 | help |
| 40 | If card detection feature is broken, just poll to detect. |
| 41 | |
Simon Glass | 1e8eb1b | 2015-06-23 15:38:48 -0600 | [diff] [blame] | 42 | config DM_MMC |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 43 | bool |
Simon Glass | 1e8eb1b | 2015-06-23 15:38:48 -0600 | [diff] [blame] | 44 | depends on DM |
| 45 | help |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 46 | This enables the MultiMediaCard (MMC) driver model uclass which |
| 47 | supports MMC and Secure Digital I/O (SDIO) cards. Both removable (SD, |
| 48 | micro-SD, etc.) and non-removable (e.g. eMMC chip) devices are |
| 49 | supported. These appear as block devices in U-Boot and can support |
| 50 | filesystems such as EXT4 and FAT. |
Simon Glass | 1e8eb1b | 2015-06-23 15:38:48 -0600 | [diff] [blame] | 51 | |
Simon Glass | 5f4bd8c | 2017-07-04 13:31:19 -0600 | [diff] [blame] | 52 | config SPL_DM_MMC |
| 53 | bool "Enable MMC controllers using Driver Model in SPL" |
| 54 | depends on SPL_DM && DM_MMC |
Pali Rohár | 3c5ce03 | 2022-05-24 10:58:42 +0200 | [diff] [blame] | 55 | default n if ARCH_MVEBU && !MVEBU_SPL_BOOT_DEVICE_MMC |
Simon Glass | 5f4bd8c | 2017-07-04 13:31:19 -0600 | [diff] [blame] | 56 | default y |
Oleksandr Suvorov | 5c59a67 | 2023-08-23 18:45:45 +0300 | [diff] [blame] | 57 | select SPL_BLK |
Simon Glass | 5f4bd8c | 2017-07-04 13:31:19 -0600 | [diff] [blame] | 58 | help |
| 59 | This enables the MultiMediaCard (MMC) uclass which supports MMC and |
| 60 | Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.) |
| 61 | and non-removable (e.g. eMMC chip) devices are supported. These |
| 62 | appear as block devices in U-Boot and can support filesystems such |
| 63 | as EXT4 and FAT. |
| 64 | |
Simon Glass | 89e920a | 2024-09-20 09:24:36 +0200 | [diff] [blame] | 65 | config TPL_DM_MMC |
| 66 | bool "Enable MMC controllers using Driver Model in TPL" |
| 67 | depends on TPL_DM && DM_MMC |
| 68 | select TPL_BLK |
| 69 | help |
| 70 | This enables the MultiMediaCard (MMC) uclass which supports MMC and |
| 71 | Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.) |
| 72 | and non-removable (e.g. eMMC chip) devices are supported. These |
| 73 | appear as block devices in U-Boot and can support filesystems such |
| 74 | as EXT4 and FAT. |
| 75 | |
Masahiro Yamada | e8b9972 | 2016-12-07 22:10:27 +0900 | [diff] [blame] | 76 | if MMC |
| 77 | |
Michael Walle | 02016c6 | 2020-09-23 12:42:51 +0200 | [diff] [blame] | 78 | config MMC_SDHCI_ADMA_HELPERS |
| 79 | bool |
| 80 | |
Bhargav Shah | a1afe25 | 2019-07-08 04:10:48 +0000 | [diff] [blame] | 81 | config MMC_SPI |
| 82 | bool "Support for SPI-based MMC controller" |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 83 | depends on DM_SPI |
Bhargav Shah | a1afe25 | 2019-07-08 04:10:48 +0000 | [diff] [blame] | 84 | help |
| 85 | This selects SPI-based MMC controllers. |
| 86 | If you have an MMC controller on a SPI bus, say Y here. |
| 87 | |
| 88 | If unsure, say N. |
| 89 | |
| 90 | config MMC_SPI_CRC_ON |
| 91 | bool "Support CRC for SPI-based MMC controller" |
| 92 | depends on MMC_SPI |
| 93 | default y |
| 94 | help |
| 95 | This enables CRC for SPI-based MMC controllers. |
| 96 | |
| 97 | If unsure, say N. |
| 98 | |
Patrice Chotard | fcce420 | 2017-10-23 10:57:31 +0200 | [diff] [blame] | 99 | config ARM_PL180_MMCI |
| 100 | bool "ARM AMBA Multimedia Card Interface and compatible support" |
Patrice Chotard | fcce420 | 2017-10-23 10:57:31 +0200 | [diff] [blame] | 101 | help |
| 102 | This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card |
| 103 | Interface (PL180, PL181 and compatible) support. |
| 104 | If you have an ARM(R) platform with a Multimedia Card slot, |
Heinrich Schuchardt | b8bcdeb | 2024-01-23 17:18:16 +0100 | [diff] [blame] | 105 | say Y here. |
Patrice Chotard | fcce420 | 2017-10-23 10:57:31 +0200 | [diff] [blame] | 106 | |
Kishon Vijay Abraham I | 07baaa6 | 2017-09-21 16:30:10 +0200 | [diff] [blame] | 107 | config MMC_QUIRKS |
| 108 | bool "Enable quirks" |
| 109 | default y |
| 110 | help |
| 111 | Some cards and hosts may sometimes behave unexpectedly (quirks). |
| 112 | This option enable workarounds to handle those quirks. Some of them |
Joel Johnson | 9cbee2c | 2020-01-11 09:08:15 -0700 | [diff] [blame] | 113 | 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] | 114 | enabled by the host driver. |
| 115 | |
Tom Rini | 9173548 | 2022-10-28 20:27:05 -0400 | [diff] [blame] | 116 | config SYS_MMC_MAX_BLK_COUNT |
| 117 | int "Block count limit" |
| 118 | default 65535 |
| 119 | help |
| 120 | The block count limit on MMC based devices. We default to 65535 due |
| 121 | to a 16bit register limit on some hardware. |
| 122 | |
Jean-Jacques Hiblot | 1d7769a | 2017-11-30 17:44:02 +0100 | [diff] [blame] | 123 | config MMC_HW_PARTITIONING |
| 124 | bool "Support for HW partitioning command(eMMC)" |
| 125 | default y |
| 126 | help |
| 127 | This adds a command and an API to do hardware partitioning on eMMC |
| 128 | devices. |
| 129 | |
Alex Kiernan | 60e0f61 | 2018-05-08 04:43:31 +0000 | [diff] [blame] | 130 | config SUPPORT_EMMC_RPMB |
| 131 | bool "Support eMMC replay protected memory block (RPMB)" |
| 132 | imply CMD_MMC_RPMB |
Raymond Mao | a571b98 | 2024-10-03 14:50:16 -0700 | [diff] [blame] | 133 | select SHA256 |
Alex Kiernan | 60e0f61 | 2018-05-08 04:43:31 +0000 | [diff] [blame] | 134 | help |
| 135 | Enable support for reading, writing and programming the |
| 136 | key for the Replay Protection Memory Block partition in eMMC. |
| 137 | |
Alex Kiernan | 0084877 | 2019-05-01 07:58:27 +0000 | [diff] [blame] | 138 | config SUPPORT_EMMC_BOOT |
| 139 | bool "Support some additional features of the eMMC boot partitions" |
| 140 | help |
| 141 | Enable support for eMMC boot partitions. This also enables |
| 142 | extensions within the mmc command. |
| 143 | |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 144 | config MMC_IO_VOLTAGE |
| 145 | bool "Support IO voltage configuration" |
| 146 | help |
| 147 | IO voltage configuration allows selecting the voltage level of the IO |
| 148 | lines (not the level of main supply). This is required for UHS |
| 149 | support. For eMMC this not mandatory, but not enabling this option may |
| 150 | prevent the driver of using the faster modes. |
| 151 | |
| 152 | config SPL_MMC_IO_VOLTAGE |
| 153 | bool "Support IO voltage configuration in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 154 | depends on SPL_MMC |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 155 | help |
| 156 | IO voltage configuration allows selecting the voltage level of the IO |
| 157 | lines (not the level of main supply). This is required for UHS |
| 158 | support. For eMMC this not mandatory, but not enabling this option may |
| 159 | prevent the driver of using the faster modes. |
| 160 | |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 161 | config MMC_SUPPORTS_TUNING |
| 162 | bool |
| 163 | |
| 164 | config SPL_MMC_SUPPORTS_TUNING |
| 165 | bool |
| 166 | |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 167 | config MMC_UHS_SUPPORT |
| 168 | bool "enable UHS support" |
| 169 | depends on MMC_IO_VOLTAGE |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 170 | select MMC_SUPPORTS_TUNING |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 171 | help |
| 172 | The Ultra High Speed (UHS) bus is available on some SDHC and SDXC |
| 173 | cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus |
| 174 | frequency can go up to 208MHz (SDR104) |
| 175 | |
| 176 | config SPL_MMC_UHS_SUPPORT |
| 177 | bool "enable UHS support in SPL" |
| 178 | depends on SPL_MMC_IO_VOLTAGE |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 179 | select SPL_MMC_SUPPORTS_TUNING |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 180 | help |
| 181 | The Ultra High Speed (UHS) bus is available on some SDHC and SDXC |
| 182 | cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus |
| 183 | frequency can go up to 208MHz (SDR104) |
| 184 | |
Peng Fan | eede83b | 2019-07-10 14:43:07 +0800 | [diff] [blame] | 185 | config MMC_HS400_ES_SUPPORT |
| 186 | bool "enable HS400 Enhanced Strobe support" |
| 187 | help |
| 188 | The HS400 Enhanced Strobe mode is support by some eMMC. The bus |
| 189 | frequency is up to 200MHz. This mode does not tune the IO. |
| 190 | |
| 191 | config SPL_MMC_HS400_ES_SUPPORT |
| 192 | bool "enable HS400 Enhanced Strobe support in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 193 | depends on SPL_MMC |
Peng Fan | eede83b | 2019-07-10 14:43:07 +0800 | [diff] [blame] | 194 | help |
| 195 | The HS400 Enhanced Strobe mode is support by some eMMC. The bus |
| 196 | frequency is up to 200MHz. This mode does not tune the IO. |
| 197 | |
Peng Fan | 4680125 | 2018-08-10 14:07:54 +0800 | [diff] [blame] | 198 | config MMC_HS400_SUPPORT |
| 199 | bool "enable HS400 support" |
| 200 | select MMC_HS200_SUPPORT |
| 201 | help |
| 202 | The HS400 mode is support by some eMMC. The bus frequency is up to |
| 203 | 200MHz. This mode requires tuning the IO. |
| 204 | |
| 205 | config SPL_MMC_HS400_SUPPORT |
| 206 | bool "enable HS400 support in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 207 | depends on SPL_MMC |
Faiz Abbas | 373954e | 2019-08-01 16:33:36 +0530 | [diff] [blame] | 208 | select SPL_MMC_HS200_SUPPORT |
Peng Fan | 4680125 | 2018-08-10 14:07:54 +0800 | [diff] [blame] | 209 | help |
| 210 | The HS400 mode is support by some eMMC. The bus frequency is up to |
| 211 | 200MHz. This mode requires tuning the IO. |
| 212 | |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 213 | config MMC_HS200_SUPPORT |
| 214 | bool "enable HS200 support" |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 215 | select MMC_SUPPORTS_TUNING |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 216 | help |
| 217 | The HS200 mode is support by some eMMC. The bus frequency is up to |
| 218 | 200MHz. This mode requires tuning the IO. |
| 219 | |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 220 | config SPL_MMC_HS200_SUPPORT |
| 221 | bool "enable HS200 support in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 222 | depends on SPL_MMC |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 223 | select SPL_MMC_SUPPORTS_TUNING |
Jean-Jacques Hiblot | 6051e78 | 2017-11-30 17:44:01 +0100 | [diff] [blame] | 224 | help |
| 225 | The HS200 mode is support by some eMMC. The bus frequency is up to |
| 226 | 200MHz. This mode requires tuning the IO. |
| 227 | |
Jean-Jacques Hiblot | a94fb41 | 2017-09-21 16:29:53 +0200 | [diff] [blame] | 228 | config MMC_VERBOSE |
| 229 | bool "Output more information about the MMC" |
| 230 | default y |
| 231 | help |
| 232 | Enable the output of more information about the card such as the |
| 233 | operating mode. |
| 234 | |
Jaehoon Chung | e2bf580 | 2018-01-26 19:25:31 +0900 | [diff] [blame] | 235 | config MMC_TRACE |
| 236 | bool "MMC debugging" |
Jaehoon Chung | e2bf580 | 2018-01-26 19:25:31 +0900 | [diff] [blame] | 237 | help |
| 238 | This is an option for use by developer. Enable MMC core debugging. |
| 239 | |
| 240 | If you need to see the MMC core message, say Y. |
| 241 | |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 242 | config MMC_DAVINCI |
| 243 | bool "TI DAVINCI Multimedia Card Interface support" |
| 244 | depends on ARCH_DAVINCI |
| 245 | default y |
| 246 | help |
| 247 | This selects the TI DAVINCI Multimedia card Interface. |
| 248 | If you have an DAVINCI board with a Multimedia Card slot, |
| 249 | say Y here. If unsure, say N. |
| 250 | |
Masahiro Yamada | 7942e91 | 2017-01-10 13:32:04 +0900 | [diff] [blame] | 251 | config MMC_DW |
| 252 | bool "Synopsys DesignWare Memory Card Interface" |
Philipp Tomsich | b302747 | 2018-11-30 22:13:25 +0100 | [diff] [blame] | 253 | select BOUNCE_BUFFER |
Masahiro Yamada | 7942e91 | 2017-01-10 13:32:04 +0900 | [diff] [blame] | 254 | help |
| 255 | This selects support for the Synopsys DesignWare Mobile Storage IP |
| 256 | block, this provides host support for SD and MMC interfaces, in both |
| 257 | PIO, internal DMA mode and external DMA mode. |
| 258 | |
Arthur Li | 055e18e | 2020-02-20 18:19:35 -0800 | [diff] [blame] | 259 | config MMC_DW_CORTINA |
| 260 | bool "Cortina specific extensions for Synopsys DW Memory Card Interface" |
Arthur Li | 055e18e | 2020-02-20 18:19:35 -0800 | [diff] [blame] | 261 | depends on MMC_DW |
Arthur Li | 055e18e | 2020-02-20 18:19:35 -0800 | [diff] [blame] | 262 | help |
| 263 | This selects support for Cortina SoC specific extensions to the |
| 264 | Synopsys DesignWare Memory Card Interface driver. Select this option |
| 265 | for platforms based on Cortina CAxxxx Soc's. |
| 266 | |
Masahiro Yamada | f1ad728 | 2017-01-10 13:32:05 +0900 | [diff] [blame] | 267 | config MMC_DW_EXYNOS |
| 268 | bool "Exynos specific extensions for Synopsys DW Memory Card Interface" |
| 269 | depends on ARCH_EXYNOS |
| 270 | depends on MMC_DW |
| 271 | default y |
| 272 | help |
| 273 | This selects support for Samsung Exynos SoC specific extensions to the |
| 274 | Synopsys DesignWare Memory Card Interface driver. Select this option |
| 275 | for platforms based on Exynos4 and Exynos5 SoC's. |
| 276 | |
| 277 | config MMC_DW_K3 |
| 278 | bool "K3 specific extensions for Synopsys DW Memory Card Interface" |
| 279 | depends on MMC_DW |
| 280 | help |
| 281 | This selects support for Hisilicon K3 SoC specific extensions to the |
| 282 | Synopsys DesignWare Memory Card Interface driver. Select this option |
| 283 | for platforms based on Hisilicon K3 SoC's. |
| 284 | |
Masahiro Yamada | dc607f8 | 2017-01-10 13:32:03 +0900 | [diff] [blame] | 285 | config MMC_DW_ROCKCHIP |
Simon Glass | 4ecaa6d | 2015-08-30 16:55:37 -0600 | [diff] [blame] | 286 | bool "Rockchip SD/MMC controller support" |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 287 | depends on OF_CONTROL |
Masahiro Yamada | 7942e91 | 2017-01-10 13:32:04 +0900 | [diff] [blame] | 288 | depends on MMC_DW |
Simon Glass | 4ecaa6d | 2015-08-30 16:55:37 -0600 | [diff] [blame] | 289 | help |
| 290 | This enables support for the Rockchip SD/MMM controller, which is |
| 291 | based on Designware IP. The device is compatible with at least |
| 292 | SD 3.0, SDIO 3.0 and MMC 4.5 and supports common eMMC chips as well |
| 293 | as removeable SD and micro-SD cards. |
| 294 | |
Nathan Barrett-Morrison | 5fd870e | 2025-02-26 12:30:34 -0500 | [diff] [blame^] | 295 | config MMC_SDHCI_ADI |
| 296 | bool "ADI SD/MMC controller support" |
| 297 | depends on ARCH_SC5XX |
| 298 | depends on DM_MMC && OF_CONTROL |
| 299 | depends on MMC_SDHCI && MMC_SDHCI_ADMA |
| 300 | help |
| 301 | This enables support for the SD/MMC controller included in some Analog |
| 302 | Devices SC5XX Socs. |
| 303 | |
Masahiro Yamada | f1ad728 | 2017-01-10 13:32:05 +0900 | [diff] [blame] | 304 | config MMC_DW_SOCFPGA |
| 305 | bool "SOCFPGA specific extensions for Synopsys DW Memory Card Interface" |
| 306 | depends on ARCH_SOCFPGA |
| 307 | depends on MMC_DW |
| 308 | default y |
| 309 | help |
| 310 | This selects support for Altera SOCFPGA specific extensions to the |
| 311 | Synopsys DesignWare Memory Card Interface driver. Select this option |
| 312 | for platforms based on Altera SOCFPGA. |
| 313 | |
Eugeniy Paltsev | b050c2c | 2019-02-25 18:35:28 +0300 | [diff] [blame] | 314 | config MMC_DW_SNPS |
| 315 | bool "Extensions for DW Memory Card Interface used in Synopsys ARC devboards" |
| 316 | depends on MMC_DW |
Eugeniy Paltsev | b050c2c | 2019-02-25 18:35:28 +0300 | [diff] [blame] | 317 | depends on OF_CONTROL |
| 318 | depends on CLK |
| 319 | help |
| 320 | This selects support for Synopsys DesignWare Memory Card Interface driver |
| 321 | extensions used in various Synopsys ARC devboards. |
| 322 | |
Stefan Bosch | 22c12f7 | 2020-07-10 19:07:29 +0200 | [diff] [blame] | 323 | config NEXELL_DWMMC |
| 324 | bool "Nexell SD/MMC controller support" |
| 325 | depends on ARCH_NEXELL |
| 326 | depends on MMC_DW |
Stefan Bosch | 22c12f7 | 2020-07-10 19:07:29 +0200 | [diff] [blame] | 327 | depends on PINCTRL_NEXELL |
| 328 | default y |
| 329 | |
Carlo Caione | 20cab78 | 2017-04-12 20:30:42 +0200 | [diff] [blame] | 330 | config MMC_MESON_GX |
| 331 | bool "Meson GX EMMC controller support" |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 332 | depends on ARCH_MESON |
Carlo Caione | 20cab78 | 2017-04-12 20:30:42 +0200 | [diff] [blame] | 333 | help |
| 334 | Support for EMMC host controller on Meson GX ARM SoCs platform (S905) |
| 335 | |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 336 | config MMC_MXC |
| 337 | bool "Freescale i.MX21/27/31 or MPC512x Multimedia Card support" |
| 338 | help |
| 339 | This selects the Freescale i.MX21, i.MX27, i.MX31 or MPC512x |
| 340 | Multimedia Card Interface. If you have an i.MX or MPC512x platform |
| 341 | with a Multimedia Card slot, say Y here. |
| 342 | |
| 343 | If unsure, say N. |
| 344 | |
Amit Singh Tomar | 347494c | 2021-11-28 17:02:24 +0530 | [diff] [blame] | 345 | config MMC_OWL |
| 346 | bool "Actions OWL Multimedia Card Interface support" |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 347 | depends on ARCH_OWL |
Amit Singh Tomar | 347494c | 2021-11-28 17:02:24 +0530 | [diff] [blame] | 348 | help |
| 349 | This selects the OWL SD/MMC host controller found on board |
| 350 | based on Actions S700/S900 SoC. |
| 351 | |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 352 | config MMC_MXS |
| 353 | bool "Freescale MXS Multimedia Card Interface support" |
Adam Ford | a456d56 | 2018-02-06 08:34:45 -0600 | [diff] [blame] | 354 | depends on MX23 || MX28 || MX6 || MX7 |
Philipp Tomsich | b302747 | 2018-11-30 22:13:25 +0100 | [diff] [blame] | 355 | select BOUNCE_BUFFER |
Adam Ford | a456d56 | 2018-02-06 08:34:45 -0600 | [diff] [blame] | 356 | select APBH_DMA |
| 357 | select APBH_DMA_BURST if ARCH_MX6 || ARCH_MX7 |
| 358 | select APBH_DMA_BURST8 if ARCH_MX6 || ARCH_MX7 |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 359 | help |
| 360 | This selects the Freescale SSP MMC controller found on MXS based |
| 361 | platforms like mx23/28. |
| 362 | |
| 363 | If unsure, say N. |
| 364 | |
Felipe Balbi | ecf7dfd | 2017-02-20 14:24:13 +0300 | [diff] [blame] | 365 | config MMC_PCI |
| 366 | bool "Support for MMC controllers on PCI" |
Bin Meng | 3d81f02 | 2021-02-15 20:01:44 +0800 | [diff] [blame] | 367 | depends on MMC_SDHCI |
Felipe Balbi | ecf7dfd | 2017-02-20 14:24:13 +0300 | [diff] [blame] | 368 | help |
| 369 | This selects PCI-based MMC controllers. |
| 370 | If you have an MMC controller on a PCI bus, say Y here. |
| 371 | |
Suneel Garapati | 40e6133 | 2019-10-19 18:03:01 -0700 | [diff] [blame] | 372 | config MMC_OCTEONTX |
Stefan Roese | e06f552 | 2021-03-12 09:48:25 +0100 | [diff] [blame] | 373 | bool "Marvell Octeon Multimedia Card Interface support" |
| 374 | depends on (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2) |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 375 | select MMC_SUPPORTS_TUNING if ARCH_OCTEONTX2 |
Suneel Garapati | 40e6133 | 2019-10-19 18:03:01 -0700 | [diff] [blame] | 376 | help |
Stefan Roese | e06f552 | 2021-03-12 09:48:25 +0100 | [diff] [blame] | 377 | This selects the Octeon Multimedia card Interface. |
| 378 | If you have an OcteonTX/TX2 or MIPS Octeon board with a |
| 379 | Multimedia Card slot, say Y here. |
Suneel Garapati | 40e6133 | 2019-10-19 18:03:01 -0700 | [diff] [blame] | 380 | |
Felipe Balbi | ecf7dfd | 2017-02-20 14:24:13 +0300 | [diff] [blame] | 381 | If unsure, say N. |
| 382 | |
Harm Berntsen | 7b9e5af | 2021-03-30 10:19:41 +0200 | [diff] [blame] | 383 | config MVEBU_MMC |
| 384 | bool "Kirkwood MMC controller support" |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 385 | depends on ARCH_KIRKWOOD |
Harm Berntsen | 7b9e5af | 2021-03-30 10:19:41 +0200 | [diff] [blame] | 386 | help |
| 387 | Support for MMC host controller on Kirkwood SoCs. |
| 388 | If you are on a Kirkwood architecture, say Y here. |
| 389 | |
| 390 | If unsure, say N. |
| 391 | |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 392 | config MMC_OMAP_HS |
| 393 | bool "TI OMAP High Speed Multimedia Card Interface support" |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 394 | select DM_REGULATOR_PBIAS if DM_REGULATOR |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 395 | help |
| 396 | This selects the TI OMAP High Speed Multimedia card Interface. |
| 397 | If you have an omap2plus board with a Multimedia Card slot, |
| 398 | say Y here. |
| 399 | |
| 400 | If unsure, say N. |
| 401 | |
Jean-Jacques Hiblot | cebf059 | 2018-02-23 10:40:18 +0100 | [diff] [blame] | 402 | config MMC_OMAP_HS_ADMA |
| 403 | bool "ADMA support for OMAP HS MMC" |
| 404 | depends on MMC_OMAP_HS && !OMAP34XX |
| 405 | default y if !AM33XX |
| 406 | help |
| 407 | This enables support for the ADMA2 controller (SDA3.00 Part A2 DMA |
| 408 | controller). If supported by the hardware, selecting this option will |
| 409 | increase performances. |
| 410 | |
Adam Ford | ef35496 | 2017-02-06 11:31:43 -0600 | [diff] [blame] | 411 | config MMC_OMAP36XX_PINS |
| 412 | bool "Enable MMC1 on OMAP36xx/37xx" |
| 413 | depends on OMAP34XX && MMC_OMAP_HS |
| 414 | help |
| 415 | This enables extended-drain in the MMC/SD/SDIO1I/O and |
| 416 | GPIO-associated I/O cells (gpio_126, gpio_127, and gpio_129) |
| 417 | specific to the OMAP36xx/37xx using MMC1 |
| 418 | |
| 419 | If you have a controller with this interface, say Y here. |
| 420 | |
| 421 | If unsure, say N. |
| 422 | |
Tom Rini | af81655 | 2022-12-02 16:42:16 -0500 | [diff] [blame] | 423 | config HSMMC2_8BIT |
| 424 | bool "Enable 8-bit interface for eMMC (interface #2)" |
Tom Rini | 8c6b437 | 2024-07-15 13:35:53 -0600 | [diff] [blame] | 425 | depends on MMC_OMAP_HS && (OMAP54XX || DRA7XX || AM33XX || \ |
Tom Rini | af81655 | 2022-12-02 16:42:16 -0500 | [diff] [blame] | 426 | AM43XX || ARCH_KEYSTONE) |
| 427 | |
Marek Vasut | a8624ac | 2018-04-21 17:40:20 +0200 | [diff] [blame] | 428 | config SH_MMCIF |
| 429 | bool "SuperH/Renesas ARM SoCs on-chip MMCIF host controller support" |
Marek Vasut | 6468c4c | 2024-02-27 17:05:55 +0100 | [diff] [blame] | 430 | depends on ARCH_RENESAS || SH |
Marek Vasut | a8624ac | 2018-04-21 17:40:20 +0200 | [diff] [blame] | 431 | help |
| 432 | Support for the on-chip MMCIF host controller on SuperH/Renesas ARM SoCs platform |
| 433 | |
Masahiro Yamada | a0cfcc0 | 2016-02-18 19:52:48 +0900 | [diff] [blame] | 434 | config MMC_UNIPHIER |
Marek Vasut | 2883f74 | 2017-09-23 13:30:30 +0200 | [diff] [blame] | 435 | bool "UniPhier SD/MMC Host Controller support" |
| 436 | depends on ARCH_UNIPHIER |
Masahiro Yamada | c232653 | 2016-12-30 23:20:14 +0900 | [diff] [blame] | 437 | depends on OF_CONTROL |
Masahiro Yamada | a0cfcc0 | 2016-02-18 19:52:48 +0900 | [diff] [blame] | 438 | help |
Marek Vasut | 847ee0c | 2017-07-21 23:24:36 +0200 | [diff] [blame] | 439 | This selects support for the Matsushita SD/MMC Host Controller on |
Marek Vasut | 2883f74 | 2017-09-23 13:30:30 +0200 | [diff] [blame] | 440 | SocioNext UniPhier SoCs. |
| 441 | |
| 442 | config RENESAS_SDHI |
| 443 | bool "Renesas R-Car SD/MMC Host Controller support" |
Marek Vasut | 6468c4c | 2024-02-27 17:05:55 +0100 | [diff] [blame] | 444 | depends on ARCH_RENESAS |
Marek Vasut | 2883f74 | 2017-09-23 13:30:30 +0200 | [diff] [blame] | 445 | depends on OF_CONTROL |
Marek Vasut | 9f7baeb | 2020-04-04 12:45:04 +0200 | [diff] [blame] | 446 | select BOUNCE_BUFFER |
Marek Vasut | 2883f74 | 2017-09-23 13:30:30 +0200 | [diff] [blame] | 447 | help |
| 448 | This selects support for the Matsushita SD/MMC Host Controller on |
| 449 | Renesas R-Car SoCs. |
Masahiro Yamada | a0cfcc0 | 2016-02-18 19:52:48 +0900 | [diff] [blame] | 450 | |
Alexander Graf | 044725f | 2018-01-23 18:05:22 +0100 | [diff] [blame] | 451 | config MMC_BCM2835 |
| 452 | bool "BCM2835 family custom SD/MMC Host Controller support" |
| 453 | depends on ARCH_BCM283X |
Alexander Graf | 044725f | 2018-01-23 18:05:22 +0100 | [diff] [blame] | 454 | depends on OF_CONTROL |
| 455 | default y |
| 456 | help |
| 457 | This selects support for the custom SD host controller in the BCM2835 |
| 458 | family of devices. |
| 459 | |
| 460 | If you have a BCM2835 platform with SD or MMC devices, say Y here. |
| 461 | |
| 462 | If unsure, say N. |
| 463 | |
Paul Burton | 8e14284 | 2018-12-16 19:25:20 -0300 | [diff] [blame] | 464 | config JZ47XX_MMC |
| 465 | bool "Ingenic JZ47xx SD/MMC Host Controller support" |
| 466 | depends on ARCH_JZ47XX |
| 467 | help |
| 468 | This selects support for the SD Card Controller on Ingenic JZ47xx SoCs. |
| 469 | |
Masahiro Yamada | 54f7cfc | 2017-01-30 19:46:50 +0900 | [diff] [blame] | 470 | config MMC_SANDBOX |
Simon Glass | f9eebac | 2016-05-01 13:52:42 -0600 | [diff] [blame] | 471 | bool "Sandbox MMC support" |
Masahiro Yamada | 54f7cfc | 2017-01-30 19:46:50 +0900 | [diff] [blame] | 472 | depends on SANDBOX |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 473 | depends on OF_CONTROL |
Simon Glass | f9eebac | 2016-05-01 13:52:42 -0600 | [diff] [blame] | 474 | help |
| 475 | This select a dummy sandbox MMC driver. At present this does nothing |
| 476 | other than allow sandbox to be build with MMC support. This |
| 477 | improves build coverage for sandbox and makes it easier to detect |
| 478 | MMC build errors with sandbox. |
| 479 | |
Masahiro Yamada | 7db8c17 | 2016-12-07 22:10:28 +0900 | [diff] [blame] | 480 | config MMC_SDHCI |
| 481 | bool "Secure Digital Host Controller Interface support" |
| 482 | help |
| 483 | This selects the generic Secure Digital Host Controller Interface. |
| 484 | It is used by manufacturers such as Texas Instruments(R), Ricoh(R) |
| 485 | and Toshiba(R). Most controllers found in laptops are of this type. |
| 486 | |
| 487 | If you have a controller with this interface, say Y here. |
| 488 | |
| 489 | If unsure, say N. |
| 490 | |
Masahiro Yamada | bfd110f | 2016-12-07 22:10:30 +0900 | [diff] [blame] | 491 | config MMC_SDHCI_IO_ACCESSORS |
| 492 | bool |
| 493 | depends on MMC_SDHCI |
| 494 | help |
| 495 | This is silent Kconfig symbol that is selected by the drivers that |
| 496 | need to overwrite SDHCI IO memory accessors. |
| 497 | |
Masahiro Yamada | 124f6ce | 2016-12-07 22:10:29 +0900 | [diff] [blame] | 498 | config MMC_SDHCI_SDMA |
| 499 | bool "Support SDHCI SDMA" |
| 500 | depends on MMC_SDHCI |
| 501 | help |
| 502 | This enables support for the SDMA (Single Operation DMA) defined |
| 503 | in the SD Host Controller Standard Specification Version 1.00 . |
| 504 | |
Peter Geis | 4561ada | 2023-04-18 16:46:44 +0000 | [diff] [blame] | 505 | config SPL_MMC_SDHCI_SDMA |
| 506 | bool "Support SDHCI SDMA in SPL" |
| 507 | depends on SPL_MMC && MMC_SDHCI |
| 508 | default y if MMC_SDHCI_SDMA |
| 509 | help |
| 510 | This enables support for the SDMA (Single Operation DMA) defined |
| 511 | in the SD Host Controller Standard Specification Version 1.00 in SPL. |
| 512 | |
Faiz Abbas | 4c082a6 | 2019-04-16 23:06:58 +0530 | [diff] [blame] | 513 | config MMC_SDHCI_ADMA |
| 514 | bool "Support SDHCI ADMA2" |
| 515 | depends on MMC_SDHCI |
Michael Walle | 02016c6 | 2020-09-23 12:42:51 +0200 | [diff] [blame] | 516 | select MMC_SDHCI_ADMA_HELPERS |
Faiz Abbas | 4c082a6 | 2019-04-16 23:06:58 +0530 | [diff] [blame] | 517 | help |
| 518 | This enables support for the ADMA (Advanced DMA) defined |
| 519 | in the SD Host Controller Standard Specification Version 3.00 |
| 520 | |
| 521 | config SPL_MMC_SDHCI_ADMA |
| 522 | bool "Support SDHCI ADMA2 in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 523 | depends on SPL_MMC && MMC_SDHCI |
Michael Walle | 02016c6 | 2020-09-23 12:42:51 +0200 | [diff] [blame] | 524 | select MMC_SDHCI_ADMA_HELPERS |
Faiz Abbas | 4c082a6 | 2019-04-16 23:06:58 +0530 | [diff] [blame] | 525 | help |
| 526 | This enables support for the ADMA (Advanced DMA) defined |
| 527 | in the SD Host Controller Standard Specification Version 3.00 in SPL. |
| 528 | |
Greg Malysa | eb92ef1 | 2024-03-25 22:28:08 -0400 | [diff] [blame] | 529 | config MMC_SDHCI_ADMA_FORCE_32BIT |
| 530 | bool "Force 32 bit mode for ADMA on 64 bit platforms" |
| 531 | help |
| 532 | This forces SDHCI ADMA to be built for 32 bit descriptors, even |
| 533 | on a 64 bit platform where they would otherwise be assumed to |
| 534 | be 64 bits. This is necessary for certain hardware platforms |
| 535 | that are 64-bit but include only 32-bit support within the selected |
| 536 | SD host controller IP. |
| 537 | |
| 538 | config MMC_SDHCI_ADMA_64BIT |
| 539 | bool "Use SHDCI ADMA with 64 bit descriptors" |
| 540 | depends on !MMC_SDHCI_ADMA_FORCE_32BIT |
| 541 | default y if DMA_ADDR_T_64BIT |
| 542 | help |
| 543 | This selects 64 bit descriptors for SDHCI ADMA. It is enabled by |
| 544 | default on 64 bit systems, but can be disabled if one of these |
| 545 | systems includes 32-bit ADMA. |
| 546 | |
Chris Packham | 7d5d591 | 2022-05-29 11:13:17 +1200 | [diff] [blame] | 547 | config FIXED_SDHCI_ALIGNED_BUFFER |
| 548 | hex "SDRAM address for fixed buffer" |
| 549 | depends on SPL && MVEBU_SPL_BOOT_DEVICE_MMC |
| 550 | default 0x00180000 |
| 551 | help |
| 552 | On the Marvell Armada 38x when the SPL runs it located in internal |
| 553 | SRAM which is the L2 cache locked to memory. When the MMC buffers |
| 554 | are located on the stack (or bss), the SDIO controller (SDHCI) can't |
| 555 | write into this L2 cache memory. |
| 556 | |
| 557 | This specifies the address of a fixed buffer located in SDRAM that |
| 558 | will be used for all SDHCI transfers in the SPL. |
| 559 | |
Eddie James | c8a6581 | 2019-08-27 09:48:03 -0500 | [diff] [blame] | 560 | config MMC_SDHCI_ASPEED |
| 561 | bool "Aspeed SDHCI controller" |
| 562 | depends on ARCH_ASPEED |
Eddie James | c8a6581 | 2019-08-27 09:48:03 -0500 | [diff] [blame] | 563 | depends on MMC_SDHCI |
Joel Stanley | 818a6b5 | 2022-06-23 18:35:34 +0930 | [diff] [blame] | 564 | select MISC |
Eddie James | c8a6581 | 2019-08-27 09:48:03 -0500 | [diff] [blame] | 565 | help |
| 566 | Enables support for the Aspeed SDHCI 2.0 controller present on Aspeed |
| 567 | SoCs. This device is compatible with SD 3.0 and/or MMC 4.3 |
| 568 | specifications. On the AST2600, the device is also compatible with |
| 569 | MMC 5.1 and eMMC 3.0. |
| 570 | |
Masahiro Yamada | 8c1a132 | 2017-01-30 19:46:55 +0900 | [diff] [blame] | 571 | config MMC_SDHCI_ATMEL |
| 572 | bool "Atmel SDHCI controller support" |
| 573 | depends on ARCH_AT91 |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 574 | depends on ARCH_AT91 |
Masahiro Yamada | 8c1a132 | 2017-01-30 19:46:55 +0900 | [diff] [blame] | 575 | depends on MMC_SDHCI |
| 576 | help |
| 577 | This enables support for the Atmel SDHCI controller, which supports |
| 578 | the embedded MultiMedia Card (e.MMC) Specification V4.51, the SD |
| 579 | Memory Card Specification V3.0, and the SDIO V3.0 specification. |
| 580 | It is compliant with the SD Host Controller Standard V3.0 |
| 581 | specification. |
| 582 | |
Masahiro Yamada | 124f6ce | 2016-12-07 22:10:29 +0900 | [diff] [blame] | 583 | config MMC_SDHCI_BCM2835 |
| 584 | tristate "SDHCI support for the BCM2835 SD/MMC Controller" |
| 585 | depends on ARCH_BCM283X |
| 586 | depends on MMC_SDHCI |
Masahiro Yamada | bfd110f | 2016-12-07 22:10:30 +0900 | [diff] [blame] | 587 | select MMC_SDHCI_IO_ACCESSORS |
Masahiro Yamada | 124f6ce | 2016-12-07 22:10:29 +0900 | [diff] [blame] | 588 | help |
| 589 | This selects the BCM2835 SD/MMC controller. |
| 590 | |
| 591 | If you have a BCM2835 platform with SD or MMC devices, |
| 592 | say Y here. |
| 593 | |
| 594 | If unsure, say N. |
| 595 | |
Thomas Fitzsimmons | 919646d | 2018-06-08 17:59:45 -0400 | [diff] [blame] | 596 | config MMC_SDHCI_BCMSTB |
| 597 | tristate "SDHCI support for the BCMSTB SD/MMC Controller" |
| 598 | depends on MMC_SDHCI |
| 599 | help |
| 600 | This selects the Broadcom set-top box SD/MMC controller. |
| 601 | |
| 602 | If you have a BCMSTB platform with SD or MMC devices, |
| 603 | say Y here. |
| 604 | |
| 605 | If unsure, say N. |
| 606 | |
Masahiro Yamada | dcbc443 | 2016-12-30 22:41:46 +0900 | [diff] [blame] | 607 | config MMC_SDHCI_CADENCE |
| 608 | bool "SDHCI support for the Cadence SD/SDIO/eMMC controller" |
Masahiro Yamada | dcbc443 | 2016-12-30 22:41:46 +0900 | [diff] [blame] | 609 | depends on MMC_SDHCI |
| 610 | depends on OF_CONTROL |
| 611 | help |
| 612 | This selects the Cadence SD/SDIO/eMMC driver. |
| 613 | |
| 614 | If you have a controller with this interface, say Y here. |
| 615 | |
| 616 | If unsure, say N. |
| 617 | |
Kongyang Liu | 331ee41 | 2024-03-10 01:51:55 +0800 | [diff] [blame] | 618 | config MMC_SDHCI_CV1800B |
| 619 | bool "SDHCI support for the CV1800B SD/SDIO/eMMC controller" |
Kongyang Liu | 331ee41 | 2024-03-10 01:51:55 +0800 | [diff] [blame] | 620 | depends on MMC_SDHCI |
| 621 | depends on OF_CONTROL |
| 622 | help |
| 623 | This selects the CV1800B SD/SDIO/eMMC driver. |
| 624 | |
| 625 | If you have a controller with this interface, |
| 626 | say Y here. |
| 627 | |
| 628 | If unsure, say N. |
| 629 | |
Faiz Abbas | d8fb309 | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 630 | config MMC_SDHCI_AM654 |
| 631 | bool "SDHCI Controller on TI's Am654 devices" |
Lokesh Vutla | bc9979f | 2018-08-27 15:57:54 +0530 | [diff] [blame] | 632 | depends on ARCH_K3 |
| 633 | depends on MMC_SDHCI |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 634 | depends on OF_CONTROL |
Faiz Abbas | e9aed58 | 2019-06-11 00:43:38 +0530 | [diff] [blame] | 635 | depends on REGMAP |
Faiz Abbas | 36c8c5c | 2021-02-04 15:10:54 +0530 | [diff] [blame] | 636 | select MMC_SDHCI_IO_ACCESSORS |
Lokesh Vutla | bc9979f | 2018-08-27 15:57:54 +0530 | [diff] [blame] | 637 | help |
Faiz Abbas | d8fb309 | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 638 | Support for Secure Digital Host Controller Interface (SDHCI) |
| 639 | controllers present on TI's AM654 SOCs. |
Lokesh Vutla | bc9979f | 2018-08-27 15:57:54 +0530 | [diff] [blame] | 640 | |
Arun Parameswaran | 2f4f34a | 2019-09-12 11:06:08 -0700 | [diff] [blame] | 641 | config MMC_SDHCI_IPROC |
| 642 | bool "SDHCI support for the iProc SD/MMC Controller" |
| 643 | depends on MMC_SDHCI |
| 644 | help |
| 645 | This selects the iProc SD/MMC controller. |
| 646 | |
| 647 | If you have a Broadcom IPROC platform with SD or MMC devices, |
Heinrich Schuchardt | b8bcdeb | 2024-01-23 17:18:16 +0100 | [diff] [blame] | 648 | say Y here. |
Arun Parameswaran | 2f4f34a | 2019-09-12 11:06:08 -0700 | [diff] [blame] | 649 | |
| 650 | If unsure, say N. |
| 651 | |
Jassi Brar | 8188bda | 2021-06-04 18:44:16 +0900 | [diff] [blame] | 652 | config MMC_SDHCI_F_SDH30 |
Kunihiko Hayashi | 2cd5da6 | 2022-09-09 16:23:33 +0900 | [diff] [blame] | 653 | bool "SDHCI support for Fujitsu Semiconductor/Socionext F_SDH30" |
Jassi Brar | 8188bda | 2021-06-04 18:44:16 +0900 | [diff] [blame] | 654 | depends on MMC_SDHCI |
| 655 | help |
| 656 | This selects the Secure Digital Host Controller Interface (SDHCI) |
Kunihiko Hayashi | 2cd5da6 | 2022-09-09 16:23:33 +0900 | [diff] [blame] | 657 | Needed by some Fujitsu/Socionext SoC for MMC / SD / SDIO support. |
Heinrich Schuchardt | b8bcdeb | 2024-01-23 17:18:16 +0100 | [diff] [blame] | 658 | If you have a controller with this interface, say Y here. |
Jassi Brar | 8188bda | 2021-06-04 18:44:16 +0900 | [diff] [blame] | 659 | If unsure, say N. |
| 660 | |
Masahiro Yamada | 124f6ce | 2016-12-07 22:10:29 +0900 | [diff] [blame] | 661 | config MMC_SDHCI_KONA |
| 662 | bool "SDHCI support on Broadcom KONA platform" |
| 663 | depends on MMC_SDHCI |
| 664 | help |
| 665 | This selects the Broadcom Kona Secure Digital Host Controller |
| 666 | Interface(SDHCI) support. |
| 667 | This is used in Broadcom mobile SoCs. |
| 668 | |
| 669 | If you have a controller with this interface, say Y here. |
| 670 | |
Masahiro Yamada | a1262eb | 2017-01-30 19:46:53 +0900 | [diff] [blame] | 671 | config MMC_SDHCI_MSM |
| 672 | bool "Qualcomm SDHCI controller" |
Masahiro Yamada | a1262eb | 2017-01-30 19:46:53 +0900 | [diff] [blame] | 673 | depends on MMC_SDHCI |
| 674 | help |
| 675 | Enables support for SDHCI 2.0 controller present on some Qualcomm |
| 676 | Snapdragon devices. This device is compatible with eMMC v4.5 and |
| 677 | SD 3.0 specifications. Both SD and eMMC devices are supported. |
| 678 | Card-detect gpios are not supported. |
| 679 | |
Masahiro Yamada | 124f6ce | 2016-12-07 22:10:29 +0900 | [diff] [blame] | 680 | config MMC_SDHCI_MV |
| 681 | bool "SDHCI support on Marvell platform" |
| 682 | depends on ARCH_MVEBU |
| 683 | depends on MMC_SDHCI |
| 684 | help |
| 685 | This selects the Secure Digital Host Controller Interface on |
| 686 | Marvell platform. |
| 687 | |
| 688 | If you have a controller with this interface, say Y here. |
| 689 | |
| 690 | If unsure, say N. |
| 691 | |
Jim Liu | 29cf22c | 2022-05-24 16:55:33 +0800 | [diff] [blame] | 692 | config MMC_SDHCI_NPCM |
| 693 | bool "SDHCI support on Nuvoton NPCM device" |
| 694 | depends on MMC_SDHCI |
Jim Liu | 29cf22c | 2022-05-24 16:55:33 +0800 | [diff] [blame] | 695 | help |
| 696 | This selects the Secure Digital Host Controller Interface (SDHCI) |
| 697 | on Nuvoton NPCM device. |
| 698 | |
| 699 | If you have a controller with this interface, say Y here. |
| 700 | |
| 701 | If unsure, say N. |
| 702 | |
Masahiro Yamada | f79df03 | 2017-01-30 19:46:54 +0900 | [diff] [blame] | 703 | config MMC_SDHCI_PIC32 |
| 704 | bool "Microchip PIC32 on-chip SDHCI support" |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 705 | depends on MACH_PIC32 |
Masahiro Yamada | f79df03 | 2017-01-30 19:46:54 +0900 | [diff] [blame] | 706 | depends on MMC_SDHCI |
| 707 | help |
| 708 | Support for Microchip PIC32 SDHCI controller. |
| 709 | |
Masahiro Yamada | babe026 | 2017-01-30 19:46:52 +0900 | [diff] [blame] | 710 | config MMC_SDHCI_ROCKCHIP |
| 711 | bool "Arasan SDHCI controller for Rockchip support" |
| 712 | depends on ARCH_ROCKCHIP |
Masahiro Yamada | babe026 | 2017-01-30 19:46:52 +0900 | [diff] [blame] | 713 | depends on MMC_SDHCI |
| 714 | help |
| 715 | Support for Arasan SDHCI host controller on Rockchip ARM SoCs platform |
| 716 | |
Masahiro Yamada | 124f6ce | 2016-12-07 22:10:29 +0900 | [diff] [blame] | 717 | config MMC_SDHCI_S5P |
| 718 | bool "SDHCI support on Samsung S5P SoC" |
| 719 | depends on MMC_SDHCI |
| 720 | help |
| 721 | This selects the Secure Digital Host Controller Interface (SDHCI) |
| 722 | on Samsung S5P SoCs. |
| 723 | |
| 724 | If you have a controller with this interface, say Y here. |
| 725 | |
| 726 | If unsure, say N. |
| 727 | |
Maksim Kiselev | 6d6a890 | 2024-12-11 23:10:59 +0300 | [diff] [blame] | 728 | config MMC_SDHCI_SNPS |
| 729 | bool "Synopsys DesignWare SDHCI controller" |
| 730 | depends on MMC_SDHCI |
Maksim Kiselev | 6d6a890 | 2024-12-11 23:10:59 +0300 | [diff] [blame] | 731 | help |
| 732 | Support for DesignWare SDHCI host controller on Alibaba TH1520 SoC. |
| 733 | This is a highly configurable and programmable, high performance |
| 734 | Mobile Storage Host Controller (MSHC) with AXI as the bus interface |
| 735 | for data transfer. |
| 736 | |
| 737 | If unsure, say N. |
| 738 | |
Patrice Chotard | 2eea7d8 | 2017-02-21 13:37:09 +0100 | [diff] [blame] | 739 | config MMC_SDHCI_STI |
| 740 | bool "SDHCI support for STMicroelectronics SoC" |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 741 | depends on MMC_SDHCI && OF_CONTROL |
Patrice Chotard | 2eea7d8 | 2017-02-21 13:37:09 +0100 | [diff] [blame] | 742 | help |
| 743 | This selects the Secure Digital Host Controller Interface (SDHCI) |
| 744 | on STMicroelectronics STiH410 SoC. |
| 745 | |
Stefan Roese | 121fc56 | 2016-12-09 15:03:28 +0100 | [diff] [blame] | 746 | config MMC_SDHCI_XENON |
| 747 | bool "SDHCI support for the Xenon SDHCI controller" |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 748 | depends on MMC_SDHCI && OF_CONTROL |
Stefan Roese | 121fc56 | 2016-12-09 15:03:28 +0100 | [diff] [blame] | 749 | help |
| 750 | Support for Xenon SDHCI host controller on Marvell Armada 3700 |
| 751 | 7k/8k ARM SoCs platforms |
| 752 | |
| 753 | If you have a controller with this interface, say Y here. |
| 754 | |
| 755 | If unsure, say N. |
| 756 | |
Felipe Balbi | b756760 | 2017-02-20 14:24:14 +0300 | [diff] [blame] | 757 | config MMC_SDHCI_TANGIER |
| 758 | bool "Tangier SDHCI controller support" |
Felipe Balbi | b756760 | 2017-02-20 14:24:14 +0300 | [diff] [blame] | 759 | depends on MMC_SDHCI |
| 760 | help |
| 761 | This selects support for SDHCI controller on Tanginer |
| 762 | SoC. Note that this controller does not sit on PCI bus and, |
| 763 | hence, cannot be enumerated by standard PCI means. |
| 764 | |
| 765 | If you're using an Intel Tangier SoC (available on Intel |
| 766 | Edison board), say Y here. |
| 767 | |
| 768 | If unsure, say N. |
| 769 | |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 770 | config MMC_SDHCI_TEGRA |
| 771 | bool "SDHCI platform support for the Tegra SD/MMC Controller" |
Trevor Woerner | 513f640 | 2020-05-06 08:02:41 -0400 | [diff] [blame] | 772 | depends on ARCH_TEGRA |
Philipp Tomsich | b302747 | 2018-11-30 22:13:25 +0100 | [diff] [blame] | 773 | select BOUNCE_BUFFER |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 774 | default y |
| 775 | help |
| 776 | This selects the Tegra SD/MMC controller. If you have a Tegra |
| 777 | platform with SD or MMC devices, say Y here. |
| 778 | |
| 779 | If unsure, say N. |
| 780 | |
Trent Piepho | 1bf56c3 | 2019-04-01 23:05:49 +0000 | [diff] [blame] | 781 | config TEGRA124_MMC_DISABLE_EXT_LOOPBACK |
| 782 | bool "Disable external clock loopback" |
| 783 | depends on MMC_SDHCI_TEGRA && TEGRA124 |
| 784 | help |
| 785 | Disable the external clock loopback and use the internal one on SDMMC3 |
| 786 | as per the SDMMC_VENDOR_MISC_CNTRL_0 register's SDMMC_SPARE1 bits |
| 787 | being set to 0xfffd according to the TRM. |
| 788 | |
| 789 | TODO(marcel.ziswiler@toradex.com): Move to device tree controlled |
| 790 | approach once proper kernel integration made it mainline. |
| 791 | |
Masahiro Yamada | 168c57d | 2017-01-30 19:46:51 +0900 | [diff] [blame] | 792 | config MMC_SDHCI_ZYNQ |
| 793 | bool "Arasan SDHCI controller support" |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 794 | depends on OF_CONTROL |
Masahiro Yamada | 168c57d | 2017-01-30 19:46:51 +0900 | [diff] [blame] | 795 | depends on MMC_SDHCI |
| 796 | help |
| 797 | Support for Arasan SDHCI host controller on Zynq/ZynqMP ARM SoCs platform |
| 798 | |
Vipul Kumar | 6254800 | 2018-02-28 15:53:28 +0530 | [diff] [blame] | 799 | config ZYNQ_SDHCI_MAX_FREQ |
| 800 | int "Set the maximum frequency of the controller" |
| 801 | depends on MMC_SDHCI_ZYNQ |
| 802 | help |
| 803 | Set the maximum frequency of the controller. |
| 804 | |
Vipul Kumar | dcc14e3 | 2018-02-28 15:53:29 +0530 | [diff] [blame] | 805 | config ZYNQ_SDHCI_MIN_FREQ |
| 806 | int "Set the minimum frequency of the controller" |
| 807 | depends on MMC_SDHCI_ZYNQ |
| 808 | default 0 |
| 809 | help |
| 810 | Set the minimum frequency of the controller. |
| 811 | |
Siva Durga Prasad Paladugu | a9a3d00 | 2019-05-27 14:33:14 +0530 | [diff] [blame] | 812 | config ZYNQ_HISPD_BROKEN |
| 813 | bool "High speed broken for Zynq SDHCI controller" |
| 814 | depends on MMC_SDHCI_ZYNQ |
| 815 | help |
| 816 | Set if high speed mode is broken. |
| 817 | |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 818 | config MMC_SUNXI |
| 819 | bool "Allwinner sunxi SD/MMC Host Controller support" |
Samuel Holland | 6b0d0bc | 2022-04-10 00:13:34 -0500 | [diff] [blame] | 820 | depends on ARCH_SUNXI |
Masahiro Yamada | b2c8868 | 2017-01-10 13:32:07 +0900 | [diff] [blame] | 821 | default y |
| 822 | help |
| 823 | This selects support for the SD/MMC Host Controller on |
| 824 | Allwinner sunxi SoCs. |
| 825 | |
Maxime Ripard | 95e3470 | 2017-08-23 12:03:41 +0200 | [diff] [blame] | 826 | config MMC_SUNXI_HAS_NEW_MODE |
| 827 | bool |
| 828 | depends on MMC_SUNXI |
| 829 | |
Vasily Khoruzhick | b198e2c | 2018-11-09 20:41:44 -0800 | [diff] [blame] | 830 | config MMC_SUNXI_HAS_MODE_SWITCH |
| 831 | bool |
| 832 | depends on MMC_SUNXI |
| 833 | |
Tianrui Wei | 8cfc7c5 | 2021-07-01 12:54:20 +0800 | [diff] [blame] | 834 | config MMC_PITON |
| 835 | bool "MMC support for OpenPiton SoC" |
Tianrui Wei | 8cfc7c5 | 2021-07-01 12:54:20 +0800 | [diff] [blame] | 836 | help |
| 837 | This selects support for the SD host controller on OpenPiton SoC. |
| 838 | Note that this SD controller directly exposes the contents of the |
| 839 | SD card as memory mapped, so there is no manual configuration |
| 840 | required |
| 841 | |
Wenyou Yang | 7a7a64c | 2017-04-13 10:29:22 +0800 | [diff] [blame] | 842 | config GENERIC_ATMEL_MCI |
| 843 | bool "Atmel Multimedia Card Interface support" |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 844 | depends on ARCH_AT91 |
Wenyou Yang | 7a7a64c | 2017-04-13 10:29:22 +0800 | [diff] [blame] | 845 | help |
| 846 | This enables support for Atmel High Speed Multimedia Card Interface |
| 847 | (HSMCI), which supports the MultiMedia Card (MMC) Specification V4.3, |
| 848 | the SD Memory Card Specification V2.0, the SDIO V2.0 specification |
| 849 | and CE-ATA V1.1. |
| 850 | |
Patrice Chotard | ae19b81 | 2017-09-04 17:56:22 +0200 | [diff] [blame] | 851 | config STM32_SDMMC2 |
| 852 | bool "STMicroelectronics STM32H7 SD/MMC Host Controller support" |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 853 | depends on OF_CONTROL |
Patrice Chotard | ae19b81 | 2017-09-04 17:56:22 +0200 | [diff] [blame] | 854 | help |
| 855 | This selects support for the SD/MMC controller on STM32H7 SoCs. |
| 856 | 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] | 857 | say Y here. |
Patrice Chotard | ae19b81 | 2017-09-04 17:56:22 +0200 | [diff] [blame] | 858 | |
Rick Chen | cbb5297 | 2017-11-14 14:47:09 +0800 | [diff] [blame] | 859 | config FTSDC010 |
| 860 | bool "Ftsdc010 SD/MMC controller Support" |
| 861 | help |
| 862 | This SD/MMC controller is present in Andestech SoCs which is based on Faraday IP. |
| 863 | |
Rick Chen | c59a6fb | 2018-03-20 15:10:49 +0800 | [diff] [blame] | 864 | config FTSDC010_SDIO |
| 865 | bool "Support ftsdc010 sdio" |
Rick Chen | c59a6fb | 2018-03-20 15:10:49 +0800 | [diff] [blame] | 866 | depends on FTSDC010 |
| 867 | help |
| 868 | This can enable ftsdc010 sdio function. |
| 869 | |
developer | dc5a9aa | 2018-11-15 10:08:04 +0800 | [diff] [blame] | 870 | config MMC_MTK |
| 871 | bool "MediaTek SD/MMC Card Interface support" |
developer | 607faf7 | 2019-09-25 17:45:37 +0800 | [diff] [blame] | 872 | depends on ARCH_MEDIATEK || ARCH_MTMIPS |
developer | dc5a9aa | 2018-11-15 10:08:04 +0800 | [diff] [blame] | 873 | depends on OF_CONTROL |
| 874 | help |
| 875 | This selects the MediaTek(R) Secure digital and Multimedia card Interface. |
Heinrich Schuchardt | b8bcdeb | 2024-01-23 17:18:16 +0100 | [diff] [blame] | 876 | 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] | 877 | This is needed if support for any SD/SDIO/MMC devices is required. |
| 878 | If unsure, say N. |
| 879 | |
Masahiro Yamada | e8b9972 | 2016-12-07 22:10:27 +0900 | [diff] [blame] | 880 | endif |
| 881 | |
Tom Rini | 6fb86c1 | 2022-12-02 16:42:21 -0500 | [diff] [blame] | 882 | config FSL_SDHC_V2_3 |
| 883 | bool |
| 884 | |
Mario Six | 41d7d97 | 2018-03-28 14:38:19 +0200 | [diff] [blame] | 885 | config FSL_ESDHC |
| 886 | bool "Freescale/NXP eSDHC controller support" |
Tom Rini | 6fb86c1 | 2022-12-02 16:42:21 -0500 | [diff] [blame] | 887 | select FSL_SDHC_V2_3 if ARCH_P1010 || ARCH_BSC9131 || ARCH_BSC9132 \ |
| 888 | || ARCH_C29X |
Mario Six | 41d7d97 | 2018-03-28 14:38:19 +0200 | [diff] [blame] | 889 | help |
Yangbo Lu | 982f425 | 2019-06-21 11:42:27 +0800 | [diff] [blame] | 890 | This selects support for the eSDHC (Enhanced Secure Digital Host |
| 891 | Controller) found on numerous Freescale/NXP SoCs. |
| 892 | |
Michael Walle | 081d401 | 2020-10-12 10:07:14 +0200 | [diff] [blame] | 893 | config FSL_ESDHC_SUPPORT_ADMA2 |
| 894 | bool "enable ADMA2 support" |
| 895 | depends on FSL_ESDHC |
| 896 | select MMC_SDHCI_ADMA_HELPERS |
| 897 | help |
| 898 | This enables support for the ADMA2 transfer mode. If supported by the |
| 899 | eSDHC it will allow 64bit DMA addresses. |
| 900 | |
Yangbo Lu | ce88402 | 2020-05-19 11:06:44 +0800 | [diff] [blame] | 901 | config FSL_ESDHC_33V_IO_RELIABILITY_WORKAROUND |
| 902 | bool "enable eSDHC workaround for 3.3v IO reliability issue" |
Tom Rini | e97402e | 2025-01-14 19:22:09 -0600 | [diff] [blame] | 903 | depends on FSL_ESDHC |
Yangbo Lu | ce88402 | 2020-05-19 11:06:44 +0800 | [diff] [blame] | 904 | help |
| 905 | When eSDHC operates at 3.3v, damage can accumulate in an internal |
| 906 | level shifter at a higher than expected rate. The faster the interface |
| 907 | runs, the more damage accumulates. This issue now is found on LX2160A |
| 908 | eSDHC1 for only SD card. The hardware workaround is recommended to use |
| 909 | an on-board level shifter that is 1.8v on SoC side and 3.3v on SD card |
| 910 | side. For boards without hardware workaround, this option could be |
| 911 | enabled, ensuring 1.8v IO voltage and disabling eSDHC if no card. |
| 912 | This option assumes no hotplug, and u-boot has to make all the way to |
| 913 | to linux to use 1.8v UHS-I speed mode if has card. |
| 914 | |
Yangbo Lu | e087cd6 | 2021-06-03 10:51:17 +0800 | [diff] [blame] | 915 | config FSL_ESDHC_VS33_NOT_SUPPORT |
| 916 | bool "3.3V power supply not supported" |
| 917 | depends on FSL_ESDHC |
| 918 | help |
| 919 | For eSDHC, power supply is through peripheral circuit. 3.3V support is |
| 920 | common. Select this if 3.3V power supply not supported. |
| 921 | |
Pali Rohár | 3a672d6 | 2022-05-11 20:27:13 +0200 | [diff] [blame] | 922 | config SYS_FSL_ESDHC_DEFAULT_BUS_WIDTH |
| 923 | int |
| 924 | depends on FSL_ESDHC |
| 925 | default 1 |
| 926 | |
Tom Rini | bdd47f3 | 2022-06-16 14:04:38 -0400 | [diff] [blame] | 927 | config ESDHC_DETECT_QUIRK |
| 928 | bool "QIXIS-based eSDHC quirk detection" |
| 929 | depends on FSL_ESDHC && FSL_QIXIS |
| 930 | |
Yangbo Lu | 982f425 | 2019-06-21 11:42:27 +0800 | [diff] [blame] | 931 | config FSL_ESDHC_IMX |
| 932 | bool "Freescale/NXP i.MX eSDHC controller support" |
| 933 | help |
| 934 | This selects support for the i.MX eSDHC (Enhanced Secure Digital Host |
| 935 | Controller) found on numerous Freescale/NXP SoCs. |
Mario Six | 41d7d97 | 2018-03-28 14:38:19 +0200 | [diff] [blame] | 936 | |
Tom Rini | dad332b | 2022-07-31 21:08:25 -0400 | [diff] [blame] | 937 | config SYS_FSL_ESDHC_HAS_DDR_MODE |
| 938 | bool "i.MX eSDHC controller supports DDR mode" |
| 939 | depends on FSL_ESDHC_IMX |
| 940 | |
Adam Ford | 0183658 | 2019-08-14 07:23:43 -0500 | [diff] [blame] | 941 | config FSL_USDHC |
| 942 | bool "Freescale/NXP i.MX uSDHC controller support" |
Peng Fan | 29b31a5 | 2022-07-26 16:40:44 +0800 | [diff] [blame] | 943 | depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMX8ULP || IMX9 || IMXRT |
Adam Ford | 0183658 | 2019-08-14 07:23:43 -0500 | [diff] [blame] | 944 | select FSL_ESDHC_IMX |
| 945 | help |
| 946 | This enables the Ultra Secured Digital Host Controller enhancements |
| 947 | |
Tom Rini | f8967f8 | 2022-12-02 16:42:22 -0500 | [diff] [blame] | 948 | config FSL_ESDHC_PIN_MUX |
| 949 | bool "Perform esdhc device-tree fixup" |
| 950 | depends on (FSL_ESDHC || FSL_ESDHC_IMX) && OF_LIBFDT |
| 951 | |
Nobuhiro Iwamatsu | 3ec5f86 | 2014-12-17 08:03:00 +0900 | [diff] [blame] | 952 | endmenu |
York Sun | 097e360 | 2016-12-28 08:43:42 -0800 | [diff] [blame] | 953 | |
| 954 | config SYS_FSL_ERRATUM_ESDHC111 |
| 955 | bool |
| 956 | |
| 957 | config SYS_FSL_ERRATUM_ESDHC13 |
| 958 | bool |
| 959 | |
| 960 | config SYS_FSL_ERRATUM_ESDHC135 |
| 961 | bool |
| 962 | |
| 963 | config SYS_FSL_ERRATUM_ESDHC_A001 |
| 964 | bool |
Michael Walle | 148dc61 | 2021-03-17 15:01:36 +0100 | [diff] [blame] | 965 | |
| 966 | config SYS_FSL_ERRATUM_A011334 |
| 967 | bool |
Michael Walle | 7259dc5 | 2021-03-17 15:01:37 +0100 | [diff] [blame] | 968 | |
| 969 | config SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND |
| 970 | bool |