aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/Kconfig
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2011-05-27 11:48:12 -0400
committerChris Ball <cjb@laptop.org>2011-07-20 17:16:06 -0400
commit85d6509dc8ca24b2b652863ef7a75622ddca17d6 (patch)
treee564c2d4f80478027abc96cb7d87da952b38409e /drivers/mmc/host/Kconfig
parent3a5c3743f15f27237ab025736a981e2d0c9fdfed (diff)
mmc: sdhci: make sdhci-pltfm device drivers self registered
The patch turns the common stuff in sdhci-pltfm.c into functions, and add device drivers their own .probe and .remove which in turn call into the common functions, so that those sdhci-pltfm device drivers register itself and keep all device specific things away from common sdhci-pltfm file. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Reviewed-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Anton Vorontsov <cbouatmailru@gmail.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/Kconfig')
-rw-r--r--drivers/mmc/host/Kconfig29
1 files changed, 10 insertions, 19 deletions
diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
index 56dbf3f6ad08..d9ca2623038d 100644
--- a/drivers/mmc/host/Kconfig
+++ b/drivers/mmc/host/Kconfig
@@ -112,29 +112,19 @@ config MMC_SDHCI_OF_HLWD
112 112
113 If unsure, say N. 113 If unsure, say N.
114 114
115config MMC_SDHCI_PLTFM
116 tristate "SDHCI support on the platform specific bus"
117 depends on MMC_SDHCI
118 help
119 This selects the platform specific bus support for Secure Digital Host
120 Controller Interface.
121
122 If you have a controller with this interface, say Y or M here.
123
124 If unsure, say N.
125
126config MMC_SDHCI_CNS3XXX 115config MMC_SDHCI_CNS3XXX
127 bool "SDHCI support on the Cavium Networks CNS3xxx SoC" 116 tristate "SDHCI support on the Cavium Networks CNS3xxx SoC"
128 depends on ARCH_CNS3XXX 117 depends on ARCH_CNS3XXX
129 depends on MMC_SDHCI_PLTFM 118 depends on MMC_SDHCI
130 help 119 help
131 This selects the SDHCI support for CNS3xxx System-on-Chip devices. 120 This selects the SDHCI support for CNS3xxx System-on-Chip devices.
132 121
133 If unsure, say N. 122 If unsure, say N.
134 123
135config MMC_SDHCI_ESDHC_IMX 124config MMC_SDHCI_ESDHC_IMX
136 bool "SDHCI platform support for the Freescale eSDHC i.MX controller" 125 tristate "SDHCI platform support for the Freescale eSDHC i.MX controller"
137 depends on MMC_SDHCI_PLTFM && (ARCH_MX25 || ARCH_MX35 || ARCH_MX5) 126 depends on ARCH_MX25 || ARCH_MX35 || ARCH_MX5
127 depends on MMC_SDHCI
138 select MMC_SDHCI_IO_ACCESSORS 128 select MMC_SDHCI_IO_ACCESSORS
139 help 129 help
140 This selects the Freescale eSDHC controller support on the platform 130 This selects the Freescale eSDHC controller support on the platform
@@ -143,9 +133,9 @@ config MMC_SDHCI_ESDHC_IMX
143 If unsure, say N. 133 If unsure, say N.
144 134
145config MMC_SDHCI_DOVE 135config MMC_SDHCI_DOVE
146 bool "SDHCI support on Marvell's Dove SoC" 136 tristate "SDHCI support on Marvell's Dove SoC"
147 depends on ARCH_DOVE 137 depends on ARCH_DOVE
148 depends on MMC_SDHCI_PLTFM 138 depends on MMC_SDHCI
149 select MMC_SDHCI_IO_ACCESSORS 139 select MMC_SDHCI_IO_ACCESSORS
150 help 140 help
151 This selects the Secure Digital Host Controller Interface in 141 This selects the Secure Digital Host Controller Interface in
@@ -154,8 +144,9 @@ config MMC_SDHCI_DOVE
154 If unsure, say N. 144 If unsure, say N.
155 145
156config MMC_SDHCI_TEGRA 146config MMC_SDHCI_TEGRA
157 bool "SDHCI platform support for the Tegra SD/MMC Controller" 147 tristate "SDHCI platform support for the Tegra SD/MMC Controller"
158 depends on MMC_SDHCI_PLTFM && ARCH_TEGRA 148 depends on ARCH_TEGRA
149 depends on MMC_SDHCI
159 select MMC_SDHCI_IO_ACCESSORS 150 select MMC_SDHCI_IO_ACCESSORS
160 help 151 help
161 This selects the Tegra SD/MMC controller. If you have a Tegra 152 This selects the Tegra SD/MMC controller. If you have a Tegra