Skip to content

Commit fb8bd90

Browse files
Chunyan Zhangstorulf
authored andcommitted
mmc: sdhci-sprd: Add Spreadtrum's initial host controller
This patch adds the initial support of Secure Digital Host Controller Interface compliant controller found in some latest Spreadtrum chipsets. This patch has been tested on the version of SPRD-R11 controller. R11 is a variant based on SD v4.0 specification. With this driver, R11 mmc can be initialized, can be mounted, read and written. Original-by: Billows Wu <billows.wu@unisoc.com> Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent d7f0570 commit fb8bd90

File tree

3 files changed

+512
-0
lines changed

3 files changed

+512
-0
lines changed

drivers/mmc/host/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,19 @@ config MMC_SDRICOH_CS
593593
To compile this driver as a module, choose M here: the
594594
module will be called sdricoh_cs.
595595

596+
config MMC_SDHCI_SPRD
597+
tristate "Spreadtrum SDIO host Controller"
598+
depends on ARCH_SPRD
599+
depends on MMC_SDHCI_PLTFM
600+
select MMC_SDHCI_IO_ACCESSORS
601+
help
602+
This selects the SDIO Host Controller in Spreadtrum
603+
SoCs, this driver supports R11(IP version: R11P0).
604+
605+
If you have a controller with this interface, say Y or M here.
606+
607+
If unsure, say N.
608+
596609
config MMC_TMIO_CORE
597610
tristate
598611

drivers/mmc/host/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ obj-$(CONFIG_MMC_SDHCI_ST) += sdhci-st.o
9292
obj-$(CONFIG_MMC_SDHCI_MICROCHIP_PIC32) += sdhci-pic32.o
9393
obj-$(CONFIG_MMC_SDHCI_BRCMSTB) += sdhci-brcmstb.o
9494
obj-$(CONFIG_MMC_SDHCI_OMAP) += sdhci-omap.o
95+
obj-$(CONFIG_MMC_SDHCI_SPRD) += sdhci-sprd.o
9596
obj-$(CONFIG_MMC_CQHCI) += cqhci.o
9697

9798
ifeq ($(CONFIG_CB710_DEBUG),y)

0 commit comments

Comments
 (0)