xref: /openbmc/linux/drivers/mmc/core/Kconfig (revision 1444fed2)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
26abaa0c9SPierre Ossman#
36abaa0c9SPierre Ossman# MMC core configuration
46abaa0c9SPierre Ossman#
5d97a1e5dSSrinivas Kandagatlaconfig PWRSEQ_EMMC
6d97a1e5dSSrinivas Kandagatla	tristate "HW reset support for eMMC"
7d97a1e5dSSrinivas Kandagatla	default y
8d97a1e5dSSrinivas Kandagatla	depends on OF
9d97a1e5dSSrinivas Kandagatla	help
10d97a1e5dSSrinivas Kandagatla	  This selects Hardware reset support aka pwrseq-emmc for eMMC
11d97a1e5dSSrinivas Kandagatla	  devices. By default this option is set to y.
12d97a1e5dSSrinivas Kandagatla
13d97a1e5dSSrinivas Kandagatla	  This driver can also be built as a module. If so, the module
14d97a1e5dSSrinivas Kandagatla	  will be called pwrseq_emmc.
15d97a1e5dSSrinivas Kandagatla
16de19b4c9SMatt Ranostayconfig PWRSEQ_SD8787
17de19b4c9SMatt Ranostay	tristate "HW reset support for SD8787 BT + Wifi module"
1805f0430fSLukas Wunner	depends on OF && (MWIFIEX != n || BT_MRVL_SDIO != n || LIBERTAS_SDIO != n || WILC1000_SDIO != n)
19de19b4c9SMatt Ranostay	help
20de19b4c9SMatt Ranostay	  This selects hardware reset support for the SD8787 BT + Wifi
21de19b4c9SMatt Ranostay	  module. By default this option is set to n.
22de19b4c9SMatt Ranostay
23de19b4c9SMatt Ranostay	  This driver can also be built as a module. If so, the module
24de19b4c9SMatt Ranostay	  will be called pwrseq_sd8787.
25de19b4c9SMatt Ranostay
26d97a1e5dSSrinivas Kandagatlaconfig PWRSEQ_SIMPLE
27d97a1e5dSSrinivas Kandagatla	tristate "Simple HW reset support for MMC"
28d97a1e5dSSrinivas Kandagatla	default y
29d97a1e5dSSrinivas Kandagatla	depends on OF
30d97a1e5dSSrinivas Kandagatla	help
31d97a1e5dSSrinivas Kandagatla	  This selects simple hardware reset support aka pwrseq-simple for MMC
32d97a1e5dSSrinivas Kandagatla	  devices. By default this option is set to y.
33d97a1e5dSSrinivas Kandagatla
34d97a1e5dSSrinivas Kandagatla	  This driver can also be built as a module. If so, the module
35d97a1e5dSSrinivas Kandagatla	  will be called pwrseq_simple.
36f397c8d8SUlf Hansson
37f397c8d8SUlf Hanssonconfig MMC_BLOCK
38f397c8d8SUlf Hansson	tristate "MMC block device driver"
39f397c8d8SUlf Hansson	depends on BLOCK
40*1444fed2SLinus Walleij	imply IOSCHED_BFQ
41f397c8d8SUlf Hansson	default y
42f397c8d8SUlf Hansson	help
43f397c8d8SUlf Hansson	  Say Y here to enable the MMC block device driver support.
44f397c8d8SUlf Hansson	  This provides a block device driver, which you can use to
45f397c8d8SUlf Hansson	  mount the filesystem. Almost everyone wishing MMC support
46f397c8d8SUlf Hansson	  should say Y or M here.
47f397c8d8SUlf Hansson
48f397c8d8SUlf Hanssonconfig MMC_BLOCK_MINORS
49f397c8d8SUlf Hansson	int "Number of minors per block device"
50f397c8d8SUlf Hansson	depends on MMC_BLOCK
51f397c8d8SUlf Hansson	range 4 256
52f397c8d8SUlf Hansson	default 8
53f397c8d8SUlf Hansson	help
54f397c8d8SUlf Hansson	  Number of minors per block device. One is needed for every
55f397c8d8SUlf Hansson	  partition on the disk (plus one for the whole disk).
56f397c8d8SUlf Hansson
57f397c8d8SUlf Hansson	  Number of total MMC minors available is 256, so your number
58f397c8d8SUlf Hansson	  of supported block devices will be limited to 256 divided
59f397c8d8SUlf Hansson	  by this number.
60f397c8d8SUlf Hansson
61f397c8d8SUlf Hansson	  Default is 8 to be backwards compatible with previous
62f397c8d8SUlf Hansson	  hardwired device numbering.
63f397c8d8SUlf Hansson
64f397c8d8SUlf Hansson	  If unsure, say 8 here.
65f397c8d8SUlf Hansson
66f397c8d8SUlf Hanssonconfig SDIO_UART
67f397c8d8SUlf Hansson	tristate "SDIO UART/GPS class support"
68f397c8d8SUlf Hansson	depends on TTY
69f397c8d8SUlf Hansson	help
70f397c8d8SUlf Hansson	  SDIO function driver for SDIO cards that implements the UART
71f397c8d8SUlf Hansson	  class, as well as the GPS class which appears like a UART.
72f397c8d8SUlf Hansson
73f397c8d8SUlf Hanssonconfig MMC_TEST
74f397c8d8SUlf Hansson	tristate "MMC host test driver"
75f397c8d8SUlf Hansson	help
76f397c8d8SUlf Hansson	  Development driver that performs a series of reads and writes
77f397c8d8SUlf Hansson	  to a memory card in order to expose certain well known bugs
78f397c8d8SUlf Hansson	  in host controllers. The tests are executed by writing to the
79f397c8d8SUlf Hansson	  "test" file in debugfs under each card. Note that whatever is
80f397c8d8SUlf Hansson	  on your card will be overwritten by these tests.
81f397c8d8SUlf Hansson
82f397c8d8SUlf Hansson	  This driver is only of interest to those developing or
83f397c8d8SUlf Hansson	  testing a host driver. Most people should say N here.
84f397c8d8SUlf Hansson
8593f1c150SEric Biggersconfig MMC_CRYPTO
8693f1c150SEric Biggers	bool "MMC Crypto Engine Support"
8793f1c150SEric Biggers	depends on BLK_INLINE_ENCRYPTION
8893f1c150SEric Biggers	help
8993f1c150SEric Biggers	  Enable Crypto Engine Support in MMC.
9093f1c150SEric Biggers	  Enabling this makes it possible for the kernel to use the crypto
9193f1c150SEric Biggers	  capabilities of the MMC device (if present) to perform crypto
9293f1c150SEric Biggers	  operations on data being transferred to/from the device.
93