ramips: move mtk-mmc driver code out of patches-*/ and into files-*/
[openwrt/openwrt.git] / target / linux / ramips / patches-4.9 / 0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
1 From 23147af14531cbdada194b94120ef8774f46292d Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Thu, 13 Nov 2014 19:08:40 +0100
4 Subject: [PATCH 46/53] mmc: MIPS: ralink: add sdhci for mt7620a SoC
5
6 Signed-off-by: John Crispin <blogic@openwrt.org>
7 ---
8 drivers/mmc/host/Kconfig | 2 +
9 drivers/mmc/host/Makefile | 1 +
10 drivers/mmc/host/mtk-mmc/Kconfig | 16 +
11 drivers/mmc/host/mtk-mmc/Makefile | 42 +
12 drivers/mmc/host/mtk-mmc/board.h | 137 ++
13 drivers/mmc/host/mtk-mmc/dbg.c | 347 ++++
14 drivers/mmc/host/mtk-mmc/dbg.h | 156 ++
15 drivers/mmc/host/mtk-mmc/mt6575_sd.h | 1001 +++++++++++
16 drivers/mmc/host/mtk-mmc/sd.c | 3060 ++++++++++++++++++++++++++++++++++
17 9 files changed, 4762 insertions(+)
18 create mode 100644 drivers/mmc/host/mtk-mmc/Kconfig
19 create mode 100644 drivers/mmc/host/mtk-mmc/Makefile
20 create mode 100644 drivers/mmc/host/mtk-mmc/board.h
21 create mode 100644 drivers/mmc/host/mtk-mmc/dbg.c
22 create mode 100644 drivers/mmc/host/mtk-mmc/dbg.h
23 create mode 100644 drivers/mmc/host/mtk-mmc/mt6575_sd.h
24 create mode 100644 drivers/mmc/host/mtk-mmc/sd.c
25
26 --- a/drivers/mmc/host/Kconfig
27 +++ b/drivers/mmc/host/Kconfig
28 @@ -798,3 +798,6 @@ config MMC_SDHCI_BRCMSTB
29 Broadcom STB SoCs.
30
31 If unsure, say Y.
32 +
33 +source "drivers/mmc/host/mtk-mmc/Kconfig"
34 +
35 --- a/drivers/mmc/host/Makefile
36 +++ b/drivers/mmc/host/Makefile
37 @@ -2,6 +2,7 @@
38 # Makefile for MMC/SD host controller drivers
39 #
40
41 +obj-$(CONFIG_MTK_MMC) += mtk-mmc/
42 obj-$(CONFIG_MMC_ARMMMCI) += mmci.o
43 obj-$(CONFIG_MMC_QCOM_DML) += mmci_qcom_dml.o
44 obj-$(CONFIG_MMC_PXA) += pxamci.o