u-boot/arch/arm/cpu
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
..
arm720t Tegra114: Add AVP (arm720t) files 2013-02-11 10:35:25 -07:00
arm920t arm: Move lastinc to arch_global_data 2013-02-01 15:07:50 -05:00
arm925t arm: remove useless code in start.S files 2013-01-08 22:14:54 +01:00
arm926ejs mxs: mmc: spi: dma: Better wrap the MXS differences 2013-03-07 17:22:56 +01:00
arm946es arm: move C runtime setup code in crt0.S 2013-01-08 22:14:50 +01:00
arm1136 ppc: arm: Move sdhc_clk into arch_global_data 2013-02-04 09:05:44 -05:00
arm1176 arm: move C runtime setup code in crt0.S 2013-01-08 22:14:50 +01:00
arm_intcm arm: move C runtime setup code in crt0.S 2013-01-08 22:14:50 +01:00
armv7 Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-02-23 10:13:40 +01:00
ixp ixp: Move timestamp to arch_global_data 2013-02-01 15:07:50 -05:00
pxa arm: Move lastinc to arch_global_data 2013-02-01 15:07:50 -05:00
s3c44b0 arm: move C runtime setup code in crt0.S 2013-01-08 22:14:50 +01:00
sa1100 arm: move C runtime setup code in crt0.S 2013-01-08 22:14:50 +01:00
tegra-common Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-02-12 10:18:31 -05:00
tegra20-common tegra: rename FUNCMUX_UART2_UARTB 2013-02-11 10:35:24 -07:00
tegra30-common tegra30: add SBC1 to periph id mapping table 2013-02-11 10:35:24 -07:00
tegra114-common Tegra114: Add common CPU (shared) files 2013-02-11 10:35:25 -07:00
u-boot.lds ARM: enhance u-boot.lds to detect over-sized SPL 2012-10-29 09:07:05 -07:00