u-boot-brain/arch
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 mxs: mmc: spi: dma: Better wrap the MXS differences 2013-03-07 17:22:56 +01:00
avr32 avr32: Use generic global_data 2013-02-04 09:05:45 -05:00
blackfin blackfin: Use generic global_data 2013-02-04 09:05:45 -05:00
m68k m68k: Use generic global_data 2013-02-04 09:05:45 -05:00
microblaze Merge branch 'master' of git://www.denx.de/git/u-boot-microblaze 2013-02-04 09:14:22 -05:00
mips MIPS: board.c: remove manual relocation of env_name_spec 2013-02-15 18:00:04 +01:00
nds32 nds32: Use generic global_data 2013-02-04 09:05:46 -05:00
nios2 Clean up libfdt.h includes 2013-02-08 22:32:38 -05:00
openrisc openrisc: Use generic global_data 2013-02-04 09:05:46 -05:00
powerpc Clean up libfdt.h includes 2013-02-08 22:32:38 -05:00
sandbox sandbox: Use generic global_data 2013-02-04 09:05:46 -05:00
sh sh: Use generic global_data 2013-02-04 09:05:46 -05:00
sparc sparc: Use generic global_data 2013-02-04 09:05:46 -05:00
x86 x86: Remove unused real mode code 2013-02-14 20:19:03 -08:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00