u-boot/arch/arm/cpu/arm926ejs/mxs
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
..
clock.c mxs: mmc: spi: dma: Better wrap the MXS differences 2013-03-07 17:22:56 +01:00
iomux.c mxs: prefix register acessor macros with 'mxs' prefix 2012-09-01 14:58:17 +02:00
Makefile mxs: rename mx28.c to mxs.c as it is common to i.MX233 and i.MX28 SoCs 2012-09-01 14:58:17 +02:00
mxs.c mxs: Use __weak annotation to simplify code 2013-01-28 06:54:19 +01:00
mxs_init.h mxs: Reowork SPL to use 'mxs' prefix for methods 2012-09-01 14:58:17 +02:00
spl_boot.c mx23: SPL: Add boot mode support 2013-01-21 12:05:21 +01:00
spl_lradc_init.c mxs: Reowork SPL to use 'mxs' prefix for methods 2012-09-01 14:58:17 +02:00
spl_mem_init.c mxs: Reset the EMI block on mx23 2013-03-07 17:22:56 +01:00
spl_power_init.c mxs: Add function to ungate the power block on MX23 2013-01-21 12:05:22 +01:00
start.S MX28: Drop the cp15 reconfiguration from SPL 2012-09-01 14:58:25 +02:00
timer.c arm: Move lastinc to arch_global_data 2013-02-01 15:07:50 -05:00
u-boot-imx23.bd mx23: config: Enable building of u-boot.sb binary 2013-01-21 12:05:21 +01:00
u-boot-imx28.bd MX28: config: Allow different target generation in elftosb call 2012-09-01 14:58:27 +02:00
u-boot-spl.lds common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00