Skip to content

Commit 1b66e94

Browse files
Kasreyncjb
authored andcommitted
mmc: moxart: Add MOXA ART SD/MMC driver
Add SD/MMC driver for MOXA ART SoCs. The "MOXA ART MMC controller" is likely a faraday "ftsdc010", a controller with support in U-Boot: http://git.denx.de/?p=u-boot.git;a=blob;f=drivers/mmc/ftsdc010_mci.c Signed-off-by: Jonas Jensen <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Ulf Hansson <[email protected]> Signed-off-by: Chris Ball <[email protected]>
1 parent c7f6558 commit 1b66e94

File tree

4 files changed

+770
-0
lines changed

4 files changed

+770
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
MOXA ART MMC Host Controller Interface
2+
3+
Inherits from mmc binding[1].
4+
5+
[1] Documentation/devicetree/bindings/mmc/mmc.txt
6+
7+
Required properties:
8+
9+
- compatible : Must be "moxa,moxart-mmc" or "faraday,ftsdc010"
10+
- reg : Should contain registers location and length
11+
- interrupts : Should contain the interrupt number
12+
- clocks : Should contain phandle for the clock feeding the MMC controller
13+
14+
Optional properties:
15+
16+
- dmas : Should contain two DMA channels, line request number must be 5 for
17+
both channels
18+
- dma-names : Must be "tx", "rx"
19+
20+
Example:
21+
22+
mmc: mmc@98e00000 {
23+
compatible = "moxa,moxart-mmc";
24+
reg = <0x98e00000 0x5C>;
25+
interrupts = <5 0>;
26+
clocks = <&clk_apb>;
27+
dmas = <&dma 5>,
28+
<&dma 5>;
29+
dma-names = "tx", "rx";
30+
};

drivers/mmc/host/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,15 @@ config MMC_SDHCI_BCM2835
283283

284284
If unsure, say N.
285285

286+
config MMC_MOXART
287+
tristate "MOXART SD/MMC Host Controller support"
288+
depends on ARCH_MOXART && MMC
289+
help
290+
This selects support for the MOXART SD/MMC Host Controller.
291+
MOXA provides one multi-functional card reader which can
292+
be found on some embedded hardware such as UC-7112-LX.
293+
If you have a controller with this interface, say Y here.
294+
286295
config MMC_OMAP
287296
tristate "TI OMAP Multimedia Card Interface support"
288297
depends on ARCH_OMAP

drivers/mmc/host/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ obj-$(CONFIG_MMC_JZ4740) += jz4740_mmc.o
5050
obj-$(CONFIG_MMC_VUB300) += vub300.o
5151
obj-$(CONFIG_MMC_USHC) += ushc.o
5252
obj-$(CONFIG_MMC_WMT) += wmt-sdmmc.o
53+
obj-$(CONFIG_MMC_MOXART) += moxart-mmc.o
5354

5455
obj-$(CONFIG_MMC_REALTEK_PCI) += rtsx_pci_sdmmc.o
5556
obj-$(CONFIG_MMC_REALTEK_USB) += rtsx_usb_sdmmc.o

0 commit comments

Comments
 (0)