fcf34977c0db62c11a282ce588ba74a81a3c0f19
[openwrt.git] / target / linux / sunxi / patches-3.13 / 152-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 --- a/drivers/mmc/host/Kconfig
18 +++ b/drivers/mmc/host/Kconfig
19 @@ -690,3 +690,11 @@ config MMC_REALTEK_PCI
20         help
21           Say Y here to include driver code to support SD/MMC card interface
22           of Realtek PCI-E card reader
23 +
24 +config MMC_SUNXI
25 +       tristate "Allwinner A1X SD/MMC Host Controller support"
26 +       depends on ARCH_SUNXI
27 +       default y
28 +       help
29 +         This selects support for the SD/MMC Host Controller on
30 +         Allwinner A1X based SoCs.
31 --- a/drivers/mmc/host/Makefile
32 +++ b/drivers/mmc/host/Makefile
33 @@ -53,6 +53,8 @@ obj-$(CONFIG_MMC_WMT)         += wmt-sdmmc.o
34  
35  obj-$(CONFIG_MMC_REALTEK_PCI)  += rtsx_pci_sdmmc.o
36  
37 +obj-$(CONFIG_MMC_SUNXI)                += sunxi-mci.o
38 +
39  obj-$(CONFIG_MMC_SDHCI_PLTFM)          += sdhci-pltfm.o
40  obj-$(CONFIG_MMC_SDHCI_CNS3XXX)                += sdhci-cns3xxx.o
41  obj-$(CONFIG_MMC_SDHCI_ESDHC_IMX)      += sdhci-esdhc-imx.o