u-boot-brain/drivers/mmc
Marek Vasut 3430e0bd2a mxs: mmc: spi: dma: Better wrap the MXS differences
This patch streamlines the differences between the MX23 and MX28 by
implementing a few helper functions to handle different DMA channel
mapping, different clock domain for SSP block and fixes a few minor
bugs.

First of all, the DMA channel mapping is now fixed in dma.h by defining
the actual channel map for both MX23 and MX28. Thus, MX23 now does no
longer use MX28 channel map which was wrong. Also, there is a fix for
MX28 DMA channel map, where the last four channels were incorrect.

Next, because correct DMA channel map is in place, the mxs_dma_init_channel()
call now bases the channel ID starting from SSP port #0. This removes the
need for DMA channel offset being added and cleans up the code. For the
same reason, the SSP0 offset can now be used in mxs_dma_desc_append(), thus
no need to adjust dma channel number in the driver either.

Lastly, the SSP clock ID is now retrieved by calling mxs_ssp_clock_by_bus()
which handles the fact that MX23 has shared SSP clock for both ports, while
MX28 has per-port SSP clock.

Finally, the mxs_ssp_bus_id_valid() pulls out two implementations of the
same functionality from MMC and SPI driver into common code.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Stefano Babic <sbabic@denx.de>
2013-03-07 17:22:56 +01:00
..
arm_pl180_mmci.c mmc: Remove incorrect cmd->flags usage 2012-09-06 15:23:13 -05:00
arm_pl180_mmci.h u8500: Separating mmc config parameters from driver 2012-09-01 14:58:20 +02:00
bfin_sdh.c Blackfin: bfin_sdh: drop dos part hardcode 2012-04-22 13:00:19 -04:00
davinci_mmc.c mmc: Implement card detection. 2012-01-08 21:28:27 -06:00
dw_mmc.c mmc: dw-mmc: support DesignWare MMC Controller 2012-10-22 02:56:25 -05:00
exynos_dw_mmc.c EXYNOS: mmc: support DesignWare Controller for Samsung-SoC 2012-11-27 17:26:47 -06:00
fsl_esdhc.c ppc: arm: Move sdhc_clk into arch_global_data 2013-02-04 09:05:44 -05:00
ftsdc010_esdhc.c mmc: Implement card detection. 2012-01-08 21:28:27 -06:00
gen_atmel_mci.c mmc: at91: use max timeout value. It will avoid some situation that timeout happened. 2012-10-17 11:29:52 +02:00
Makefile EXYNOS: mmc: support DesignWare Controller for Samsung-SoC 2012-11-27 17:26:47 -06:00
mmc_spi.c mmc: Fix mmc_spi error on cmd->flags field 2012-10-22 02:53:35 -05:00
mmc.c mmc: Properly determine maximum supported bus width 2012-11-27 17:48:46 -06:00
mv_sdhci.c drivers/mmc/mv_sdhci.c: Fix build warning 2012-01-08 21:28:16 -06:00
mxcmmc.c mmc: access mxcmmc from mx31 boards 2012-02-12 10:11:26 +01:00
mxsmmc.c mxs: mmc: spi: dma: Better wrap the MXS differences 2013-03-07 17:22:56 +01:00
omap_hsmmc.c Merge branch 'master' of git://git.denx.de/u-boot-arm 2012-05-20 21:31:26 +02:00
pxa_mmc_gen.c mmc: Remove incorrect cmd->flags usage 2012-09-06 15:23:13 -05:00
pxa_mmc.h pxa: move mmc drivers to drivers/mmc 2009-02-20 03:47:50 +01:00
s5p_sdhci.c mmc: sdhci: Add a quirk to add delay during completion of sdhci_send_cmd 2012-10-22 02:53:36 -05:00
sdhci.c mmc: add no simultaenous power and vdd 2012-11-27 17:26:48 -06:00
sh_mmcif.c mmc: sh_mmcif: enable MMC_MODE_HC 2012-09-05 17:32:41 -05:00
sh_mmcif.h mmc: sh_mmcif: add support for Renesas MMCIF 2011-07-15 20:29:21 -05:00
spl_mmc.c SPL: Move the omap SPL framework to common/spl 2012-09-27 09:49:59 -07:00
tegra_mmc.c Merge branch 'master' of git://git.denx.de/u-boot into resolve 2012-12-10 14:13:27 +09:00