MMC: Add support for the controller on JZ4740 SoCs.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Matt Fleming <matt@console-pimps.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Matt Fleming <matt@console-pimps.org> Cc: linux-mmc@vger.kernel.org Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/1463/ Patchwork: https://patchwork.linux-mips.org/patch/1523/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
ba01d6ec04
commit
61bfbdb856
15
arch/mips/include/asm/mach-jz4740/jz4740_mmc.h
Normal file
15
arch/mips/include/asm/mach-jz4740/jz4740_mmc.h
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#ifndef __LINUX_MMC_JZ4740_MMC
|
||||||
|
#define __LINUX_MMC_JZ4740_MMC
|
||||||
|
|
||||||
|
struct jz4740_mmc_platform_data {
|
||||||
|
int gpio_power;
|
||||||
|
int gpio_card_detect;
|
||||||
|
int gpio_read_only;
|
||||||
|
unsigned card_detect_active_low:1;
|
||||||
|
unsigned read_only_active_low:1;
|
||||||
|
unsigned power_active_low:1;
|
||||||
|
|
||||||
|
unsigned data_1bit:1;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
@ -432,3 +432,12 @@ config MMC_SH_MMCIF
|
|||||||
This selects the MMC Host Interface controler (MMCIF).
|
This selects the MMC Host Interface controler (MMCIF).
|
||||||
|
|
||||||
This driver supports MMCIF in sh7724/sh7757/sh7372.
|
This driver supports MMCIF in sh7724/sh7757/sh7372.
|
||||||
|
|
||||||
|
config MMC_JZ4740
|
||||||
|
tristate "JZ4740 SD/Multimedia Card Interface support"
|
||||||
|
depends on MACH_JZ4740
|
||||||
|
help
|
||||||
|
This selects support for the SD/MMC controller on Ingenic JZ4740
|
||||||
|
SoCs.
|
||||||
|
If you have a board based on such a SoC and with a SD/MMC slot,
|
||||||
|
say Y or M here.
|
||||||
|
@ -36,6 +36,7 @@ obj-$(CONFIG_MMC_CB710) += cb710-mmc.o
|
|||||||
obj-$(CONFIG_MMC_VIA_SDMMC) += via-sdmmc.o
|
obj-$(CONFIG_MMC_VIA_SDMMC) += via-sdmmc.o
|
||||||
obj-$(CONFIG_SDH_BFIN) += bfin_sdh.o
|
obj-$(CONFIG_SDH_BFIN) += bfin_sdh.o
|
||||||
obj-$(CONFIG_MMC_SH_MMCIF) += sh_mmcif.o
|
obj-$(CONFIG_MMC_SH_MMCIF) += sh_mmcif.o
|
||||||
|
obj-$(CONFIG_MMC_JZ4740) += jz4740_mmc.o
|
||||||
|
|
||||||
obj-$(CONFIG_MMC_SDHCI_OF) += sdhci-of.o
|
obj-$(CONFIG_MMC_SDHCI_OF) += sdhci-of.o
|
||||||
sdhci-of-y := sdhci-of-core.o
|
sdhci-of-y := sdhci-of-core.o
|
||||||
|
1029
drivers/mmc/host/jz4740_mmc.c
Normal file
1029
drivers/mmc/host/jz4740_mmc.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user