Kconfig 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913
  1. menu "MMC Host controller Support"
  2. config MMC
  3. bool "MMC/SD/SDIO card support"
  4. default ARM || PPC || SANDBOX
  5. select DM_MMC if DM
  6. help
  7. This selects MultiMediaCard, Secure Digital and Secure
  8. Digital I/O support.
  9. If you want MMC/SD/SDIO support, you should say Y here and
  10. also to your specific host controller driver.
  11. config MMC_WRITE
  12. bool "support for MMC/SD write operations"
  13. depends on MMC
  14. default y
  15. help
  16. Enable write access to MMC and SD Cards
  17. config MMC_PWRSEQ
  18. bool "HW reset support for eMMC"
  19. depends on PWRSEQ
  20. help
  21. Ths select Hardware reset support aka pwrseq-emmc for eMMC
  22. devices.
  23. config MMC_BROKEN_CD
  24. bool "Poll for broken card detection case"
  25. help
  26. If card detection feature is broken, just poll to detect.
  27. config DM_MMC
  28. bool "Enable MMC controllers using Driver Model"
  29. depends on DM
  30. select BLK
  31. help
  32. This enables the MultiMediaCard (MMC) uclass which supports MMC and
  33. Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
  34. and non-removable (e.g. eMMC chip) devices are supported. These
  35. appear as block devices in U-Boot and can support filesystems such
  36. as EXT4 and FAT.
  37. config SPL_DM_MMC
  38. bool "Enable MMC controllers using Driver Model in SPL"
  39. depends on SPL_DM && DM_MMC
  40. default n if ARCH_MVEBU && !MVEBU_SPL_BOOT_DEVICE_MMC
  41. default y
  42. help
  43. This enables the MultiMediaCard (MMC) uclass which supports MMC and
  44. Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
  45. and non-removable (e.g. eMMC chip) devices are supported. These
  46. appear as block devices in U-Boot and can support filesystems such
  47. as EXT4 and FAT.
  48. if MMC
  49. config MMC_SDHCI_ADMA_HELPERS
  50. bool
  51. config MMC_SPI
  52. bool "Support for SPI-based MMC controller"
  53. depends on DM_MMC && DM_SPI
  54. help
  55. This selects SPI-based MMC controllers.
  56. If you have an MMC controller on a SPI bus, say Y here.
  57. If unsure, say N.
  58. config MMC_SPI_CRC_ON
  59. bool "Support CRC for SPI-based MMC controller"
  60. depends on MMC_SPI
  61. default y
  62. help
  63. This enables CRC for SPI-based MMC controllers.
  64. If unsure, say N.
  65. config ARM_PL180_MMCI
  66. bool "ARM AMBA Multimedia Card Interface and compatible support"
  67. help
  68. This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card
  69. Interface (PL180, PL181 and compatible) support.
  70. If you have an ARM(R) platform with a Multimedia Card slot,
  71. say Y or M here.
  72. config MMC_QUIRKS
  73. bool "Enable quirks"
  74. default y
  75. help
  76. Some cards and hosts may sometimes behave unexpectedly (quirks).
  77. This option enable workarounds to handle those quirks. Some of them
  78. are enabled by default, other may require additional flags or are
  79. enabled by the host driver.
  80. config SYS_MMC_MAX_BLK_COUNT
  81. int "Block count limit"
  82. default 65535
  83. help
  84. The block count limit on MMC based devices. We default to 65535 due
  85. to a 16bit register limit on some hardware.
  86. config MMC_HW_PARTITIONING
  87. bool "Support for HW partitioning command(eMMC)"
  88. default y
  89. help
  90. This adds a command and an API to do hardware partitioning on eMMC
  91. devices.
  92. config SUPPORT_EMMC_RPMB
  93. bool "Support eMMC replay protected memory block (RPMB)"
  94. imply CMD_MMC_RPMB
  95. help
  96. Enable support for reading, writing and programming the
  97. key for the Replay Protection Memory Block partition in eMMC.
  98. config SUPPORT_EMMC_BOOT
  99. bool "Support some additional features of the eMMC boot partitions"
  100. help
  101. Enable support for eMMC boot partitions. This also enables
  102. extensions within the mmc command.
  103. config MMC_IO_VOLTAGE
  104. bool "Support IO voltage configuration"
  105. help
  106. IO voltage configuration allows selecting the voltage level of the IO
  107. lines (not the level of main supply). This is required for UHS
  108. support. For eMMC this not mandatory, but not enabling this option may
  109. prevent the driver of using the faster modes.
  110. config SPL_MMC_IO_VOLTAGE
  111. bool "Support IO voltage configuration in SPL"
  112. depends on SPL_MMC
  113. help
  114. IO voltage configuration allows selecting the voltage level of the IO
  115. lines (not the level of main supply). This is required for UHS
  116. support. For eMMC this not mandatory, but not enabling this option may
  117. prevent the driver of using the faster modes.
  118. config MMC_UHS_SUPPORT
  119. bool "enable UHS support"
  120. depends on MMC_IO_VOLTAGE
  121. help
  122. The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
  123. cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
  124. frequency can go up to 208MHz (SDR104)
  125. config SPL_MMC_UHS_SUPPORT
  126. bool "enable UHS support in SPL"
  127. depends on SPL_MMC_IO_VOLTAGE
  128. help
  129. The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
  130. cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
  131. frequency can go up to 208MHz (SDR104)
  132. config MMC_HS400_ES_SUPPORT
  133. bool "enable HS400 Enhanced Strobe support"
  134. help
  135. The HS400 Enhanced Strobe mode is support by some eMMC. The bus
  136. frequency is up to 200MHz. This mode does not tune the IO.
  137. config SPL_MMC_HS400_ES_SUPPORT
  138. bool "enable HS400 Enhanced Strobe support in SPL"
  139. depends on SPL_MMC
  140. help
  141. The HS400 Enhanced Strobe mode is support by some eMMC. The bus
  142. frequency is up to 200MHz. This mode does not tune the IO.
  143. config MMC_HS400_SUPPORT
  144. bool "enable HS400 support"
  145. select MMC_HS200_SUPPORT
  146. help
  147. The HS400 mode is support by some eMMC. The bus frequency is up to
  148. 200MHz. This mode requires tuning the IO.
  149. config SPL_MMC_HS400_SUPPORT
  150. bool "enable HS400 support in SPL"
  151. depends on SPL_MMC
  152. select SPL_MMC_HS200_SUPPORT
  153. help
  154. The HS400 mode is support by some eMMC. The bus frequency is up to
  155. 200MHz. This mode requires tuning the IO.
  156. config MMC_HS200_SUPPORT
  157. bool "enable HS200 support"
  158. help
  159. The HS200 mode is support by some eMMC. The bus frequency is up to
  160. 200MHz. This mode requires tuning the IO.
  161. config SPL_MMC_HS200_SUPPORT
  162. bool "enable HS200 support in SPL"
  163. depends on SPL_MMC
  164. help
  165. The HS200 mode is support by some eMMC. The bus frequency is up to
  166. 200MHz. This mode requires tuning the IO.
  167. config MMC_VERBOSE
  168. bool "Output more information about the MMC"
  169. default y
  170. help
  171. Enable the output of more information about the card such as the
  172. operating mode.
  173. config MMC_TRACE
  174. bool "MMC debugging"
  175. help
  176. This is an option for use by developer. Enable MMC core debugging.
  177. If you need to see the MMC core message, say Y.
  178. config MMC_DAVINCI
  179. bool "TI DAVINCI Multimedia Card Interface support"
  180. depends on ARCH_DAVINCI
  181. default y
  182. help
  183. This selects the TI DAVINCI Multimedia card Interface.
  184. If you have an DAVINCI board with a Multimedia Card slot,
  185. say Y here. If unsure, say N.
  186. config MMC_DW
  187. bool "Synopsys DesignWare Memory Card Interface"
  188. select BOUNCE_BUFFER
  189. help
  190. This selects support for the Synopsys DesignWare Mobile Storage IP
  191. block, this provides host support for SD and MMC interfaces, in both
  192. PIO, internal DMA mode and external DMA mode.
  193. config MMC_DW_CORTINA
  194. bool "Cortina specific extensions for Synopsys DW Memory Card Interface"
  195. depends on DM_MMC
  196. depends on MMC_DW
  197. depends on BLK
  198. help
  199. This selects support for Cortina SoC specific extensions to the
  200. Synopsys DesignWare Memory Card Interface driver. Select this option
  201. for platforms based on Cortina CAxxxx Soc's.
  202. config MMC_DW_EXYNOS
  203. bool "Exynos specific extensions for Synopsys DW Memory Card Interface"
  204. depends on ARCH_EXYNOS
  205. depends on MMC_DW
  206. default y
  207. help
  208. This selects support for Samsung Exynos SoC specific extensions to the
  209. Synopsys DesignWare Memory Card Interface driver. Select this option
  210. for platforms based on Exynos4 and Exynos5 SoC's.
  211. config MMC_DW_K3
  212. bool "K3 specific extensions for Synopsys DW Memory Card Interface"
  213. depends on MMC_DW
  214. help
  215. This selects support for Hisilicon K3 SoC specific extensions to the
  216. Synopsys DesignWare Memory Card Interface driver. Select this option
  217. for platforms based on Hisilicon K3 SoC's.
  218. config MMC_DW_ROCKCHIP
  219. bool "Rockchip SD/MMC controller support"
  220. depends on DM_MMC && OF_CONTROL
  221. depends on MMC_DW
  222. help
  223. This enables support for the Rockchip SD/MMM controller, which is
  224. based on Designware IP. The device is compatible with at least
  225. SD 3.0, SDIO 3.0 and MMC 4.5 and supports common eMMC chips as well
  226. as removeable SD and micro-SD cards.
  227. config MMC_DW_SOCFPGA
  228. bool "SOCFPGA specific extensions for Synopsys DW Memory Card Interface"
  229. depends on ARCH_SOCFPGA
  230. depends on MMC_DW
  231. default y
  232. help
  233. This selects support for Altera SOCFPGA specific extensions to the
  234. Synopsys DesignWare Memory Card Interface driver. Select this option
  235. for platforms based on Altera SOCFPGA.
  236. config MMC_DW_SNPS
  237. bool "Extensions for DW Memory Card Interface used in Synopsys ARC devboards"
  238. depends on MMC_DW
  239. depends on DM_MMC
  240. depends on OF_CONTROL
  241. depends on CLK
  242. help
  243. This selects support for Synopsys DesignWare Memory Card Interface driver
  244. extensions used in various Synopsys ARC devboards.
  245. config NEXELL_DWMMC
  246. bool "Nexell SD/MMC controller support"
  247. depends on ARCH_NEXELL
  248. depends on MMC_DW
  249. depends on DM_MMC
  250. depends on PINCTRL_NEXELL
  251. default y
  252. config MMC_MESON_GX
  253. bool "Meson GX EMMC controller support"
  254. depends on DM_MMC && BLK && ARCH_MESON
  255. help
  256. Support for EMMC host controller on Meson GX ARM SoCs platform (S905)
  257. config MMC_MXC
  258. bool "Freescale i.MX21/27/31 or MPC512x Multimedia Card support"
  259. help
  260. This selects the Freescale i.MX21, i.MX27, i.MX31 or MPC512x
  261. Multimedia Card Interface. If you have an i.MX or MPC512x platform
  262. with a Multimedia Card slot, say Y here.
  263. If unsure, say N.
  264. config MMC_OWL
  265. bool "Actions OWL Multimedia Card Interface support"
  266. depends on ARCH_OWL && DM_MMC && BLK
  267. help
  268. This selects the OWL SD/MMC host controller found on board
  269. based on Actions S700/S900 SoC.
  270. config MMC_MXS
  271. bool "Freescale MXS Multimedia Card Interface support"
  272. depends on MX23 || MX28 || MX6 || MX7
  273. select BOUNCE_BUFFER
  274. select APBH_DMA
  275. select APBH_DMA_BURST if ARCH_MX6 || ARCH_MX7
  276. select APBH_DMA_BURST8 if ARCH_MX6 || ARCH_MX7
  277. help
  278. This selects the Freescale SSP MMC controller found on MXS based
  279. platforms like mx23/28.
  280. If unsure, say N.
  281. config MMC_PCI
  282. bool "Support for MMC controllers on PCI"
  283. depends on MMC_SDHCI
  284. help
  285. This selects PCI-based MMC controllers.
  286. If you have an MMC controller on a PCI bus, say Y here.
  287. config MMC_OCTEONTX
  288. bool "Marvell Octeon Multimedia Card Interface support"
  289. depends on (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2)
  290. depends on DM_MMC
  291. help
  292. This selects the Octeon Multimedia card Interface.
  293. If you have an OcteonTX/TX2 or MIPS Octeon board with a
  294. Multimedia Card slot, say Y here.
  295. If unsure, say N.
  296. config MVEBU_MMC
  297. bool "Kirkwood MMC controller support"
  298. depends on DM_MMC && BLK && ARCH_KIRKWOOD
  299. help
  300. Support for MMC host controller on Kirkwood SoCs.
  301. If you are on a Kirkwood architecture, say Y here.
  302. If unsure, say N.
  303. config MMC_OMAP_HS
  304. bool "TI OMAP High Speed Multimedia Card Interface support"
  305. select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
  306. select DM_REGULATOR_PBIAS if DM_MMC && DM_REGULATOR
  307. help
  308. This selects the TI OMAP High Speed Multimedia card Interface.
  309. If you have an omap2plus board with a Multimedia Card slot,
  310. say Y here.
  311. If unsure, say N.
  312. config MMC_OMAP_HS_ADMA
  313. bool "ADMA support for OMAP HS MMC"
  314. depends on MMC_OMAP_HS && !OMAP34XX
  315. default y if !AM33XX
  316. help
  317. This enables support for the ADMA2 controller (SDA3.00 Part A2 DMA
  318. controller). If supported by the hardware, selecting this option will
  319. increase performances.
  320. config MMC_OMAP36XX_PINS
  321. bool "Enable MMC1 on OMAP36xx/37xx"
  322. depends on OMAP34XX && MMC_OMAP_HS
  323. help
  324. This enables extended-drain in the MMC/SD/SDIO1I/O and
  325. GPIO-associated I/O cells (gpio_126, gpio_127, and gpio_129)
  326. specific to the OMAP36xx/37xx using MMC1
  327. If you have a controller with this interface, say Y here.
  328. If unsure, say N.
  329. config HSMMC2_8BIT
  330. bool "Enable 8-bit interface for eMMC (interface #2)"
  331. depends on MMC_OMAP_HS && (OMAP44XX || OMAP54XX || DRA7XX || AM33XX || \
  332. AM43XX || ARCH_KEYSTONE)
  333. config SH_SDHI
  334. bool "SuperH/Renesas ARM SoCs on-chip SDHI host controller support"
  335. depends on ARCH_RMOBILE
  336. help
  337. Support for the on-chip SDHI host controller on SuperH/Renesas ARM SoCs platform
  338. config SH_MMCIF
  339. bool "SuperH/Renesas ARM SoCs on-chip MMCIF host controller support"
  340. depends on ARCH_RMOBILE || SH
  341. help
  342. Support for the on-chip MMCIF host controller on SuperH/Renesas ARM SoCs platform
  343. config MMC_UNIPHIER
  344. bool "UniPhier SD/MMC Host Controller support"
  345. depends on ARCH_UNIPHIER
  346. depends on BLK && DM_MMC
  347. depends on OF_CONTROL
  348. help
  349. This selects support for the Matsushita SD/MMC Host Controller on
  350. SocioNext UniPhier SoCs.
  351. config RENESAS_SDHI
  352. bool "Renesas R-Car SD/MMC Host Controller support"
  353. depends on ARCH_RMOBILE
  354. depends on BLK && DM_MMC
  355. depends on OF_CONTROL
  356. select BOUNCE_BUFFER
  357. help
  358. This selects support for the Matsushita SD/MMC Host Controller on
  359. Renesas R-Car SoCs.
  360. config MMC_BCM2835
  361. bool "BCM2835 family custom SD/MMC Host Controller support"
  362. depends on ARCH_BCM283X
  363. depends on BLK && DM_MMC
  364. depends on OF_CONTROL
  365. default y
  366. help
  367. This selects support for the custom SD host controller in the BCM2835
  368. family of devices.
  369. If you have a BCM2835 platform with SD or MMC devices, say Y here.
  370. If unsure, say N.
  371. config JZ47XX_MMC
  372. bool "Ingenic JZ47xx SD/MMC Host Controller support"
  373. depends on ARCH_JZ47XX
  374. help
  375. This selects support for the SD Card Controller on Ingenic JZ47xx SoCs.
  376. config MMC_SANDBOX
  377. bool "Sandbox MMC support"
  378. depends on SANDBOX
  379. depends on BLK && DM_MMC && OF_CONTROL
  380. help
  381. This select a dummy sandbox MMC driver. At present this does nothing
  382. other than allow sandbox to be build with MMC support. This
  383. improves build coverage for sandbox and makes it easier to detect
  384. MMC build errors with sandbox.
  385. config MMC_SDHCI
  386. bool "Secure Digital Host Controller Interface support"
  387. help
  388. This selects the generic Secure Digital Host Controller Interface.
  389. It is used by manufacturers such as Texas Instruments(R), Ricoh(R)
  390. and Toshiba(R). Most controllers found in laptops are of this type.
  391. If you have a controller with this interface, say Y here.
  392. If unsure, say N.
  393. config MMC_SDHCI_IO_ACCESSORS
  394. bool
  395. depends on MMC_SDHCI
  396. help
  397. This is silent Kconfig symbol that is selected by the drivers that
  398. need to overwrite SDHCI IO memory accessors.
  399. config MMC_SDHCI_SDMA
  400. bool "Support SDHCI SDMA"
  401. depends on MMC_SDHCI
  402. help
  403. This enables support for the SDMA (Single Operation DMA) defined
  404. in the SD Host Controller Standard Specification Version 1.00 .
  405. config SPL_MMC_SDHCI_SDMA
  406. bool "Support SDHCI SDMA in SPL"
  407. depends on SPL_MMC && MMC_SDHCI
  408. default y if MMC_SDHCI_SDMA
  409. help
  410. This enables support for the SDMA (Single Operation DMA) defined
  411. in the SD Host Controller Standard Specification Version 1.00 in SPL.
  412. config MMC_SDHCI_ADMA
  413. bool "Support SDHCI ADMA2"
  414. depends on MMC_SDHCI
  415. select MMC_SDHCI_ADMA_HELPERS
  416. help
  417. This enables support for the ADMA (Advanced DMA) defined
  418. in the SD Host Controller Standard Specification Version 3.00
  419. config SPL_MMC_SDHCI_ADMA
  420. bool "Support SDHCI ADMA2 in SPL"
  421. depends on SPL_MMC && MMC_SDHCI
  422. select MMC_SDHCI_ADMA_HELPERS
  423. help
  424. This enables support for the ADMA (Advanced DMA) defined
  425. in the SD Host Controller Standard Specification Version 3.00 in SPL.
  426. config FIXED_SDHCI_ALIGNED_BUFFER
  427. hex "SDRAM address for fixed buffer"
  428. depends on SPL && MVEBU_SPL_BOOT_DEVICE_MMC
  429. default 0x00180000
  430. help
  431. On the Marvell Armada 38x when the SPL runs it located in internal
  432. SRAM which is the L2 cache locked to memory. When the MMC buffers
  433. are located on the stack (or bss), the SDIO controller (SDHCI) can't
  434. write into this L2 cache memory.
  435. This specifies the address of a fixed buffer located in SDRAM that
  436. will be used for all SDHCI transfers in the SPL.
  437. config MMC_SDHCI_ASPEED
  438. bool "Aspeed SDHCI controller"
  439. depends on ARCH_ASPEED
  440. depends on DM_MMC
  441. depends on MMC_SDHCI
  442. select MISC
  443. help
  444. Enables support for the Aspeed SDHCI 2.0 controller present on Aspeed
  445. SoCs. This device is compatible with SD 3.0 and/or MMC 4.3
  446. specifications. On the AST2600, the device is also compatible with
  447. MMC 5.1 and eMMC 3.0.
  448. config MMC_SDHCI_ATMEL
  449. bool "Atmel SDHCI controller support"
  450. depends on ARCH_AT91
  451. depends on DM_MMC && BLK && ARCH_AT91
  452. depends on MMC_SDHCI
  453. help
  454. This enables support for the Atmel SDHCI controller, which supports
  455. the embedded MultiMedia Card (e.MMC) Specification V4.51, the SD
  456. Memory Card Specification V3.0, and the SDIO V3.0 specification.
  457. It is compliant with the SD Host Controller Standard V3.0
  458. specification.
  459. config MMC_SDHCI_BCM2835
  460. tristate "SDHCI support for the BCM2835 SD/MMC Controller"
  461. depends on ARCH_BCM283X
  462. depends on MMC_SDHCI
  463. select MMC_SDHCI_IO_ACCESSORS
  464. help
  465. This selects the BCM2835 SD/MMC controller.
  466. If you have a BCM2835 platform with SD or MMC devices,
  467. say Y here.
  468. If unsure, say N.
  469. config MMC_SDHCI_BCMSTB
  470. tristate "SDHCI support for the BCMSTB SD/MMC Controller"
  471. depends on MMC_SDHCI
  472. help
  473. This selects the Broadcom set-top box SD/MMC controller.
  474. If you have a BCMSTB platform with SD or MMC devices,
  475. say Y here.
  476. If unsure, say N.
  477. config MMC_SDHCI_CADENCE
  478. bool "SDHCI support for the Cadence SD/SDIO/eMMC controller"
  479. depends on BLK && DM_MMC
  480. depends on MMC_SDHCI
  481. depends on OF_CONTROL
  482. help
  483. This selects the Cadence SD/SDIO/eMMC driver.
  484. If you have a controller with this interface, say Y here.
  485. If unsure, say N.
  486. config MMC_SDHCI_AM654
  487. bool "SDHCI Controller on TI's Am654 devices"
  488. depends on ARCH_K3
  489. depends on MMC_SDHCI
  490. depends on DM_MMC && OF_CONTROL && BLK
  491. depends on REGMAP
  492. select MMC_SDHCI_IO_ACCESSORS
  493. help
  494. Support for Secure Digital Host Controller Interface (SDHCI)
  495. controllers present on TI's AM654 SOCs.
  496. config MMC_SDHCI_IPROC
  497. bool "SDHCI support for the iProc SD/MMC Controller"
  498. depends on MMC_SDHCI
  499. help
  500. This selects the iProc SD/MMC controller.
  501. If you have a Broadcom IPROC platform with SD or MMC devices,
  502. say Y or M here.
  503. If unsure, say N.
  504. config MMC_SDHCI_F_SDH30
  505. bool "SDHCI support for Fujitsu Semiconductor/Socionext F_SDH30"
  506. depends on BLK && DM_MMC
  507. depends on MMC_SDHCI
  508. help
  509. This selects the Secure Digital Host Controller Interface (SDHCI)
  510. Needed by some Fujitsu/Socionext SoC for MMC / SD / SDIO support.
  511. If you have a controller with this interface, say Y or M here.
  512. If unsure, say N.
  513. config MMC_SDHCI_KONA
  514. bool "SDHCI support on Broadcom KONA platform"
  515. depends on MMC_SDHCI
  516. help
  517. This selects the Broadcom Kona Secure Digital Host Controller
  518. Interface(SDHCI) support.
  519. This is used in Broadcom mobile SoCs.
  520. If you have a controller with this interface, say Y here.
  521. config MMC_SDHCI_MSM
  522. bool "Qualcomm SDHCI controller"
  523. depends on BLK && DM_MMC
  524. depends on MMC_SDHCI
  525. help
  526. Enables support for SDHCI 2.0 controller present on some Qualcomm
  527. Snapdragon devices. This device is compatible with eMMC v4.5 and
  528. SD 3.0 specifications. Both SD and eMMC devices are supported.
  529. Card-detect gpios are not supported.
  530. config MMC_SDHCI_MV
  531. bool "SDHCI support on Marvell platform"
  532. depends on ARCH_MVEBU
  533. depends on MMC_SDHCI
  534. depends on DM_MMC
  535. help
  536. This selects the Secure Digital Host Controller Interface on
  537. Marvell platform.
  538. If you have a controller with this interface, say Y here.
  539. If unsure, say N.
  540. config MMC_SDHCI_NPCM
  541. bool "SDHCI support on Nuvoton NPCM device"
  542. depends on MMC_SDHCI
  543. depends on DM_MMC
  544. help
  545. This selects the Secure Digital Host Controller Interface (SDHCI)
  546. on Nuvoton NPCM device.
  547. If you have a controller with this interface, say Y here.
  548. If unsure, say N.
  549. config MMC_SDHCI_PIC32
  550. bool "Microchip PIC32 on-chip SDHCI support"
  551. depends on DM_MMC && MACH_PIC32
  552. depends on MMC_SDHCI
  553. help
  554. Support for Microchip PIC32 SDHCI controller.
  555. config MMC_SDHCI_ROCKCHIP
  556. bool "Arasan SDHCI controller for Rockchip support"
  557. depends on ARCH_ROCKCHIP
  558. depends on DM_MMC && BLK
  559. depends on MMC_SDHCI
  560. help
  561. Support for Arasan SDHCI host controller on Rockchip ARM SoCs platform
  562. config MMC_SDHCI_S5P
  563. bool "SDHCI support on Samsung S5P SoC"
  564. depends on MMC_SDHCI
  565. help
  566. This selects the Secure Digital Host Controller Interface (SDHCI)
  567. on Samsung S5P SoCs.
  568. If you have a controller with this interface, say Y here.
  569. If unsure, say N.
  570. config MMC_SDHCI_STI
  571. bool "SDHCI support for STMicroelectronics SoC"
  572. depends on MMC_SDHCI && OF_CONTROL
  573. help
  574. This selects the Secure Digital Host Controller Interface (SDHCI)
  575. on STMicroelectronics STiH410 SoC.
  576. config MMC_SDHCI_XENON
  577. bool "SDHCI support for the Xenon SDHCI controller"
  578. depends on MMC_SDHCI && DM_MMC && OF_CONTROL
  579. help
  580. Support for Xenon SDHCI host controller on Marvell Armada 3700
  581. 7k/8k ARM SoCs platforms
  582. If you have a controller with this interface, say Y here.
  583. If unsure, say N.
  584. config MMC_SDHCI_TANGIER
  585. bool "Tangier SDHCI controller support"
  586. depends on DM_MMC && BLK
  587. depends on MMC_SDHCI
  588. help
  589. This selects support for SDHCI controller on Tanginer
  590. SoC. Note that this controller does not sit on PCI bus and,
  591. hence, cannot be enumerated by standard PCI means.
  592. If you're using an Intel Tangier SoC (available on Intel
  593. Edison board), say Y here.
  594. If unsure, say N.
  595. config MMC_SDHCI_TEGRA
  596. bool "SDHCI platform support for the Tegra SD/MMC Controller"
  597. depends on ARCH_TEGRA
  598. select BOUNCE_BUFFER
  599. default y
  600. help
  601. This selects the Tegra SD/MMC controller. If you have a Tegra
  602. platform with SD or MMC devices, say Y here.
  603. If unsure, say N.
  604. config TEGRA124_MMC_DISABLE_EXT_LOOPBACK
  605. bool "Disable external clock loopback"
  606. depends on MMC_SDHCI_TEGRA && TEGRA124
  607. help
  608. Disable the external clock loopback and use the internal one on SDMMC3
  609. as per the SDMMC_VENDOR_MISC_CNTRL_0 register's SDMMC_SPARE1 bits
  610. being set to 0xfffd according to the TRM.
  611. TODO(marcel.ziswiler@toradex.com): Move to device tree controlled
  612. approach once proper kernel integration made it mainline.
  613. config MMC_SDHCI_ZYNQ
  614. bool "Arasan SDHCI controller support"
  615. depends on DM_MMC && OF_CONTROL && BLK
  616. depends on MMC_SDHCI
  617. help
  618. Support for Arasan SDHCI host controller on Zynq/ZynqMP ARM SoCs platform
  619. config ZYNQ_SDHCI_MAX_FREQ
  620. int "Set the maximum frequency of the controller"
  621. depends on MMC_SDHCI_ZYNQ
  622. help
  623. Set the maximum frequency of the controller.
  624. config ZYNQ_SDHCI_MIN_FREQ
  625. int "Set the minimum frequency of the controller"
  626. depends on MMC_SDHCI_ZYNQ
  627. default 0
  628. help
  629. Set the minimum frequency of the controller.
  630. config ZYNQ_HISPD_BROKEN
  631. bool "High speed broken for Zynq SDHCI controller"
  632. depends on MMC_SDHCI_ZYNQ
  633. help
  634. Set if high speed mode is broken.
  635. config MMC_SUNXI
  636. bool "Allwinner sunxi SD/MMC Host Controller support"
  637. depends on ARCH_SUNXI
  638. default y
  639. help
  640. This selects support for the SD/MMC Host Controller on
  641. Allwinner sunxi SoCs.
  642. config MMC_SUNXI_HAS_NEW_MODE
  643. bool
  644. depends on MMC_SUNXI
  645. config MMC_SUNXI_HAS_MODE_SWITCH
  646. bool
  647. depends on MMC_SUNXI
  648. config MMC_PITON
  649. bool "MMC support for OpenPiton SoC"
  650. depends on DM_MMC && BLK
  651. help
  652. This selects support for the SD host controller on OpenPiton SoC.
  653. Note that this SD controller directly exposes the contents of the
  654. SD card as memory mapped, so there is no manual configuration
  655. required
  656. config GENERIC_ATMEL_MCI
  657. bool "Atmel Multimedia Card Interface support"
  658. depends on DM_MMC && BLK && ARCH_AT91
  659. help
  660. This enables support for Atmel High Speed Multimedia Card Interface
  661. (HSMCI), which supports the MultiMedia Card (MMC) Specification V4.3,
  662. the SD Memory Card Specification V2.0, the SDIO V2.0 specification
  663. and CE-ATA V1.1.
  664. config STM32_SDMMC2
  665. bool "STMicroelectronics STM32H7 SD/MMC Host Controller support"
  666. depends on DM_MMC && BLK && OF_CONTROL
  667. help
  668. This selects support for the SD/MMC controller on STM32H7 SoCs.
  669. If you have a board based on such a SoC and with a SD/MMC slot,
  670. say Y or M here.
  671. config FTSDC010
  672. bool "Ftsdc010 SD/MMC controller Support"
  673. help
  674. This SD/MMC controller is present in Andestech SoCs which is based on Faraday IP.
  675. config FTSDC010_SDIO
  676. bool "Support ftsdc010 sdio"
  677. depends on FTSDC010
  678. help
  679. This can enable ftsdc010 sdio function.
  680. config MMC_MTK
  681. bool "MediaTek SD/MMC Card Interface support"
  682. depends on ARCH_MEDIATEK || ARCH_MTMIPS
  683. depends on BLK && DM_MMC
  684. depends on OF_CONTROL
  685. help
  686. This selects the MediaTek(R) Secure digital and Multimedia card Interface.
  687. If you have a machine with a integrated SD/MMC card reader, say Y or M here.
  688. This is needed if support for any SD/SDIO/MMC devices is required.
  689. If unsure, say N.
  690. endif
  691. config FSL_SDHC_V2_3
  692. bool
  693. config FSL_ESDHC
  694. bool "Freescale/NXP eSDHC controller support"
  695. select FSL_SDHC_V2_3 if ARCH_P1010 || ARCH_BSC9131 || ARCH_BSC9132 \
  696. || ARCH_C29X
  697. help
  698. This selects support for the eSDHC (Enhanced Secure Digital Host
  699. Controller) found on numerous Freescale/NXP SoCs.
  700. config FSL_ESDHC_SUPPORT_ADMA2
  701. bool "enable ADMA2 support"
  702. depends on FSL_ESDHC
  703. select MMC_SDHCI_ADMA_HELPERS
  704. help
  705. This enables support for the ADMA2 transfer mode. If supported by the
  706. eSDHC it will allow 64bit DMA addresses.
  707. config FSL_ESDHC_33V_IO_RELIABILITY_WORKAROUND
  708. bool "enable eSDHC workaround for 3.3v IO reliability issue"
  709. depends on FSL_ESDHC && DM_MMC
  710. help
  711. When eSDHC operates at 3.3v, damage can accumulate in an internal
  712. level shifter at a higher than expected rate. The faster the interface
  713. runs, the more damage accumulates. This issue now is found on LX2160A
  714. eSDHC1 for only SD card. The hardware workaround is recommended to use
  715. an on-board level shifter that is 1.8v on SoC side and 3.3v on SD card
  716. side. For boards without hardware workaround, this option could be
  717. enabled, ensuring 1.8v IO voltage and disabling eSDHC if no card.
  718. This option assumes no hotplug, and u-boot has to make all the way to
  719. to linux to use 1.8v UHS-I speed mode if has card.
  720. config FSL_ESDHC_VS33_NOT_SUPPORT
  721. bool "3.3V power supply not supported"
  722. depends on FSL_ESDHC
  723. help
  724. For eSDHC, power supply is through peripheral circuit. 3.3V support is
  725. common. Select this if 3.3V power supply not supported.
  726. config SYS_FSL_ESDHC_DEFAULT_BUS_WIDTH
  727. int
  728. depends on FSL_ESDHC
  729. default 1
  730. config ESDHC_DETECT_QUIRK
  731. bool "QIXIS-based eSDHC quirk detection"
  732. depends on FSL_ESDHC && FSL_QIXIS
  733. config FSL_ESDHC_IMX
  734. bool "Freescale/NXP i.MX eSDHC controller support"
  735. help
  736. This selects support for the i.MX eSDHC (Enhanced Secure Digital Host
  737. Controller) found on numerous Freescale/NXP SoCs.
  738. config SYS_FSL_ESDHC_HAS_DDR_MODE
  739. bool "i.MX eSDHC controller supports DDR mode"
  740. depends on FSL_ESDHC_IMX
  741. config FSL_USDHC
  742. bool "Freescale/NXP i.MX uSDHC controller support"
  743. depends on MX6 || MX7 ||ARCH_MX7ULP || IMX8 || IMX8M || IMX8ULP || IMX9 || IMXRT
  744. select FSL_ESDHC_IMX
  745. help
  746. This enables the Ultra Secured Digital Host Controller enhancements
  747. config FSL_ESDHC_PIN_MUX
  748. bool "Perform esdhc device-tree fixup"
  749. depends on (FSL_ESDHC || FSL_ESDHC_IMX) && OF_LIBFDT
  750. endmenu
  751. config SYS_FSL_ERRATUM_ESDHC111
  752. bool
  753. config SYS_FSL_ERRATUM_ESDHC13
  754. bool
  755. config SYS_FSL_ERRATUM_ESDHC135
  756. bool
  757. config SYS_FSL_ERRATUM_ESDHC_A001
  758. bool
  759. config SYS_FSL_ERRATUM_A011334
  760. bool
  761. config SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
  762. bool