Skip to content

Commit 61bfbdb

Browse files
larsclausenralfbaechle
authored andcommitted
MMC: Add support for the controller on JZ4740 SoCs.
Signed-off-by: Lars-Peter Clausen <[email protected]> Acked-by: Matt Fleming <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Matt Fleming <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1463/ Patchwork: https://patchwork.linux-mips.org/patch/1523/ Signed-off-by: Ralf Baechle <[email protected]>
1 parent ba01d6e commit 61bfbdb

File tree

4 files changed

+1054
-0
lines changed

4 files changed

+1054
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#ifndef __LINUX_MMC_JZ4740_MMC
2+
#define __LINUX_MMC_JZ4740_MMC
3+
4+
struct jz4740_mmc_platform_data {
5+
int gpio_power;
6+
int gpio_card_detect;
7+
int gpio_read_only;
8+
unsigned card_detect_active_low:1;
9+
unsigned read_only_active_low:1;
10+
unsigned power_active_low:1;
11+
12+
unsigned data_1bit:1;
13+
};
14+
15+
#endif

drivers/mmc/host/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,3 +432,12 @@ config MMC_SH_MMCIF
432432
This selects the MMC Host Interface controler (MMCIF).
433433

434434
This driver supports MMCIF in sh7724/sh7757/sh7372.
435+
436+
config MMC_JZ4740
437+
tristate "JZ4740 SD/Multimedia Card Interface support"
438+
depends on MACH_JZ4740
439+
help
440+
This selects support for the SD/MMC controller on Ingenic JZ4740
441+
SoCs.
442+
If you have a board based on such a SoC and with a SD/MMC slot,
443+
say Y or M here.

drivers/mmc/host/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ obj-$(CONFIG_MMC_CB710) += cb710-mmc.o
3636
obj-$(CONFIG_MMC_VIA_SDMMC) += via-sdmmc.o
3737
obj-$(CONFIG_SDH_BFIN) += bfin_sdh.o
3838
obj-$(CONFIG_MMC_SH_MMCIF) += sh_mmcif.o
39+
obj-$(CONFIG_MMC_JZ4740) += jz4740_mmc.o
3940

4041
obj-$(CONFIG_MMC_SDHCI_OF) += sdhci-of.o
4142
sdhci-of-y := sdhci-of-core.o

0 commit comments

Comments
 (0)