DaVinci: MMC: MMC/SD controller driver for DaVinci family
PATCH 1/1 DaVinci: MMC: MMC/SD controller driver for DaVinci family
This patch adds support for MMC/SD controller driver for all DaVinci family SoC. This patch supports davinci family SoC's DM6446, DM355, DM365 and DA830/OMAPL137.
The patch has been tested on DM355 EVM.
The MMCSD controller specifications for DM355 can be found at
http://focus.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=spruee2c
---
This patch has been generated against latest Linus's kernel. This patch has already been reviewed, but did not get queued in any of the trees for upstream acceptance. Hence I am resubmitting it again.
Many thanks to David Brownell ([email protected]) for all his support.
This updated patch incorporates most of review comments given by Pierre Ossman. Many thanks for Pierre Ossman for reviewing.
drivers/mmc/host/Kconfig | 8 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/davinci_mmc.c | 1281 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1290 insertions(+), 0 deletions(-) create mode 100644 drivers/mmc/host/davinci_mmc.c
drivers/mmc/host/Kconfig +8 -0
@@ -251,6 +251,14 @@ config MMC_MVSDIO To compile this driver as a module, choose M here: the module will be called mvsdio. +config MMC_DAVINCI + tristate "TI DAVINCI Multimedia Card Interface support" + depends on ARCH_DAVINCI + help + This selects the TI DAVINCI Multimedia card Interface. + If you have an DAVINCI board with a Multimedia Card slot, + say Y or M here. If unsure, say N. + config MMC_SPI tristate "MMC/SD/SDIO over SPI" depends on SPI_MASTER && !HIGHMEM && HAS_DMA
drivers/mmc/host/Makefile +1 -0
@@ -25,6 +25,7 @@ obj-$(CONFIG_MMC_ATMELMCI) += atmel-mci.o obj-$(CONFIG_MMC_TIFM_SD) += tifm_sd.o obj-$(CONFIG_MMC_MSM7X00A) += msm_sdcc.o obj-$(CONFIG_MMC_MVSDIO) += mvsdio.o +obj-$(CONFIG_MMC_DAVINCI) += davinci_mmc.o obj-$(CONFIG_MMC_SPI) += mmc_spi.o ifeq ($(CONFIG_OF),y) obj-$(CONFIG_MMC_SPI) += of_mmc_spi.o
drivers/mmc/host/davinci_mmc.c new file +1281 -0
1,281 lines not on this page · raw message
Signature · 1 line
1.5.6
Quoted 4 lines · Vipin Bhandari
This patch adds support for MMC/SD controller driver for all DaVinci family SoC. This patch supports davinci family SoC's DM6446, DM355, DM365 and DA830/OMAPL137.
Quoted 8 lines
The patch has been tested on DM355 EVM.
The MMCSD controller specifications for DM355 can be found at
http://focus.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=spruee2cSigned-off-by Vipin Bhandari <[email protected]>Signed-off-by Purshotam Kumar <[email protected]>Acked-by David Brownell <[email protected]>
Vipin,
In addition to this, I've also been carrying the diff below in DaVinci git. Is this change still necessary?
Kevin
drivers/mmc/host/davinci_mmc.c +2 -2
@@ -178,7 +178,7 @@ struct mmc_davinci_host {u32 buffer_bytes_left;u32 bytes_left; -u8 rxdma, txdma; +u32 rxdma, txdma;bool use_dma;bool do_dma;
@@ -190,7 +190,7 @@ struct mmc_davinci_host {struct edmacc_param tx_template;struct edmacc_param rx_template;unsigned n_link; -u8 links[NR_SG -1 ]; +u32 links[NR_SG -1 ];/* For PIO we walk scatterlists one segment at a time. */ unsigned int sg_len;