u-boot-brain/arch/arm/cpu/arm926ejs
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
..
armada100 arm: Move tbl to arch_global_data 2013-02-01 15:07:50 -05:00
at91 arm: Move tbl to arch_global_data 2013-02-01 15:07:50 -05:00
davinci arm: Move timer_reset_value to arch_global_data 2013-02-01 15:07:50 -05:00
kirkwood arm: Move lastinc to arch_global_data 2013-02-01 15:07:50 -05:00
lpc32xx arm926ejs: add NXP LPC32x0 cpu series support 2012-05-15 08:31:21 +02:00
mb86r0x arm: Move lastinc to arch_global_data 2013-02-01 15:07:50 -05:00
mx25 ppc: arm: Move sdhc_clk into arch_global_data 2013-02-04 09:05:44 -05:00
mx27 arm: Move lastinc to arch_global_data 2013-02-01 15:07:50 -05:00
mxs mxs: mmc: spi: dma: Better wrap the MXS differences 2013-03-07 17:22:56 +01:00
nomadik nhk8815: fix build errors 2012-03-28 23:53:22 +02:00
omap arm: Move lastinc to arch_global_data 2013-02-01 15:07:50 -05:00
orion5x arm: Move lastinc to arch_global_data 2013-02-01 15:07:50 -05:00
pantheon arm: Move tbl to arch_global_data 2013-02-01 15:07:50 -05:00
spear arm: Move lastinc to arch_global_data 2013-02-01 15:07:50 -05:00
versatile arm: Move lastinc to arch_global_data 2013-02-01 15:07:50 -05:00
cache.c ARM926EJS: Fix cache.c to comply with checkpatch.pl 2012-04-16 22:12:01 +02:00
config.mk build: imx: Fix 'u-boot.imx' build without full OBJTREE reference 2013-02-12 18:39:08 +01:00
cpu.c arm, arm-kirkwood: disable l2c before linux boot 2012-02-12 10:11:28 +01:00
Makefile arm926ejs: add noop implementation for dcache ops 2011-12-06 23:59:35 +01:00
start.S arm: remove useless code in start.S files 2013-01-08 22:14:54 +01:00