Skip to content

Commit

Permalink
mmc: add new driver for Ingenic X series MSC
Browse files Browse the repository at this point in the history
  • Loading branch information
ReimuNotMoe committed May 26, 2023
1 parent 5b7a1fc commit b7c9970
Show file tree
Hide file tree
Showing 3 changed files with 1,562 additions and 1 deletion.
34 changes: 33 additions & 1 deletion drivers/mmc/host/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -894,11 +894,43 @@ config MMC_JZ4740
depends on MIPS
help
This selects support for the SD/MMC controller on Ingenic
JZ4740, JZ4750, JZ4770 and JZ4780 SoCs.
JZ4740, JZ4750, JZ4770 and JZ4780 SoCs. It also works on the
X series in PIO mode and can be used for reducing the kernel
image size.

If you have a board based on such a SoC and with a SD/MMC slot,
say Y or M here.

config MMC_INGENIC
tristate "Ingenic X series SD/Multimedia Card Interface support"
depends on MIPS
select DMA_ENGINE
help
This selects support for the SD/MMC controller on Ingenic
X1000, X1600 and X1800 series SoCs, which utilises busmastering
DMA for much higher performance.

If you have a board based on such a SoC and with a SD/MMC slot,
say Y or M here.

config MMC_INGENIC_DEBUG
bool "Enable debugging"
depends on MMC_INGENIC
help
This is useful when you're trying to improve this driver, or you
have a faulty SD/MMC card and you want to hear some big noises in
the kernel log when it dies.

config MMC_INGENIC_DMA_DESCS
depends on MMC_INGENIC
int "Number of DMA descriptors"
range 32 1024
default "128"
help
One DMA descriptor maps to one sg list entry.

If unsure, just use the default value (128).

config MMC_VUB300
tristate "VUB300 USB to SDIO/SD/MMC Host Controller support"
depends on USB
Expand Down
1 change: 1 addition & 0 deletions drivers/mmc/host/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ obj-$(CONFIG_MMC_DW_PCI) += dw_mmc-pci.o
obj-$(CONFIG_MMC_DW_ROCKCHIP) += dw_mmc-rockchip.o
obj-$(CONFIG_MMC_SH_MMCIF) += sh_mmcif.o
obj-$(CONFIG_MMC_JZ4740) += jz4740_mmc.o
obj-$(CONFIG_MMC_INGENIC) += ingenic_mmc.o
obj-$(CONFIG_MMC_VUB300) += vub300.o
obj-$(CONFIG_MMC_USHC) += ushc.o
obj-$(CONFIG_MMC_WMT) += wmt-sdmmc.o
Expand Down
Loading

0 comments on commit b7c9970

Please sign in to comment.