sunxi: add mmc support - add MMC support for sun457i - update kernel config to compil...
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.12 / 183-sunxi-mmc-add-Kconfig.patch
1 From 447675f817b95881e9922f002de3fc7f6d6e9207 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?David=20Lanzend=C3=B6rfer?= <david.lanzendoerfer@o2s.ch>
3 Date: Fri, 6 Sep 2013 22:34:33 +0200
4 Subject: [PATCH] ARM: sunxi-mci: Add driver for SD/MMC hosts found within
5 Allwinner A1X SoCs
6
7 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
8 ---
9 drivers/mmc/host/Kconfig | 8 +
10 drivers/mmc/host/Makefile | 2 +
11 drivers/mmc/host/sunxi-mci.c | 1056 ++++++++++++++++++++++++++++++++++++++++++
12 drivers/mmc/host/sunxi-mci.h | 334 +++++++++++++
13 4 files changed, 1400 insertions(+)
14 create mode 100644 drivers/mmc/host/sunxi-mci.c
15 create mode 100644 drivers/mmc/host/sunxi-mci.h
16
17 diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
18 index 7fc5099..0df0322 100644
19 --- a/drivers/mmc/host/Kconfig
20 +++ b/drivers/mmc/host/Kconfig
21 @@ -665,3 +665,11 @@ config MMC_REALTEK_PCI
22 help
23 Say Y here to include driver code to support SD/MMC card interface
24 of Realtek PCI-E card reader
25 +
26 +config MMC_SUNXI
27 + tristate "Allwinner A1X SD/MMC Host Controller support"
28 + depends on ARCH_SUNXI
29 + default y
30 + help
31 + This selects support for the SD/MMC Host Controller on
32 + Allwinner A1X based SoCs.
33 diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile
34 index c41d0c3..f76f783 100644
35 --- a/drivers/mmc/host/Makefile
36 +++ b/drivers/mmc/host/Makefile
37 @@ -52,6 +52,8 @@ obj-$(CONFIG_MMC_WMT) += wmt-sdmmc.o
38
39 obj-$(CONFIG_MMC_REALTEK_PCI) += rtsx_pci_sdmmc.o
40
41 +obj-$(CONFIG_MMC_SUNXI) += sunxi-mci.o
42 +
43 obj-$(CONFIG_MMC_SDHCI_PLTFM) += sdhci-pltfm.o
44 obj-$(CONFIG_MMC_SDHCI_CNS3XXX) += sdhci-cns3xxx.o
45 obj-$(CONFIG_MMC_SDHCI_ESDHC_IMX) += sdhci-esdhc-imx.o
46 diff --git a/drivers/mmc/host/sunxi-mci.c b/drivers/mmc/host/sunxi-mci.c
47 new file mode 100644
48 index 0000000..cbde1d3
49 diff --git a/drivers/mmc/host/sunxi-mci.h b/drivers/mmc/host/sunxi-mci.h
50 new file mode 100644
51 index 0000000..0f5f95c
52 \ No newline at end of file
53 --
54 1.8.5.1
55