u-boot-brain/arch/arm/include/asm/arch-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.h mxs: Add MX23 quirks into the clock code 2013-01-21 12:05:22 +01:00
dma.h mxs: mmc: spi: dma: Better wrap the MXS differences 2013-03-07 17:22:56 +01:00
gpio.h mxs: reorganize source directory for easy sharing of code in i.MXS SoCs 2012-09-01 14:58:17 +02:00
imx-regs.h mx23: Add POWER and CLKCTRL register definitions 2013-01-21 12:05:20 +01:00
iomux-mx23.h mx23: Add iomux-mx23.h 2013-01-21 12:05:20 +01:00
iomux-mx28.h mxs: reorganize source directory for easy sharing of code in i.MXS SoCs 2012-09-01 14:58:17 +02:00
iomux.h mxs: reorganize source directory for easy sharing of code in i.MXS SoCs 2012-09-01 14:58:17 +02:00
regs-apbh.h mxs: dma: Fix APBH DMA driver for MX23 2013-01-28 11:43:00 +01:00
regs-base.h mx23: Add register base addresses 2013-01-21 12:05:20 +01:00
regs-bch.h mxs: prefix register structs with 'mxs' prefix 2012-09-01 14:58:17 +02:00
regs-clkctrl-mx23.h mx23: Add POWER and CLKCTRL register definitions 2013-01-21 12:05:20 +01:00
regs-clkctrl-mx28.h mx28: Remove SET, CLR, TOG ops from PLLxCTRL1 registers 2012-12-04 08:52:05 +01:00
regs-common.h mxs: prefix register acessor macros with 'mxs' prefix 2012-09-01 14:58:17 +02:00
regs-digctl.h mx23: Add support on print_cpuinfo() 2013-01-21 12:05:20 +01:00
regs-gpmi.h mxs: prefix register structs with 'mxs' prefix 2012-09-01 14:58:17 +02:00
regs-i2c.h mxs: prefix register structs with 'mxs' prefix 2012-09-01 14:58:17 +02:00
regs-lcdif.h mxs: prefix register structs with 'mxs' prefix 2012-09-01 14:58:17 +02:00
regs-lradc.h mxs: prefix register structs with 'mxs' prefix 2012-09-01 14:58:17 +02:00
regs-ocotp.h mxs: prefix register structs with 'mxs' prefix 2012-09-01 14:58:17 +02:00
regs-pinctrl.h mxs: prefix register structs with 'mxs' prefix 2012-09-01 14:58:17 +02:00
regs-power-mx23.h mx23: Add POWER and CLKCTRL register definitions 2013-01-21 12:05:20 +01:00
regs-power-mx28.h mx28: Rename regs-power.h to regs-power-mx28.h 2012-12-04 09:01:04 +01:00
regs-rtc.h mxs: prefix register structs with 'mxs' prefix 2012-09-01 14:58:17 +02:00
regs-ssp.h mxs: mmc: spi: dma: Better wrap the MXS differences 2013-03-07 17:22:56 +01:00
regs-timrot.h mxs: prefix register structs with 'mxs' prefix 2012-09-01 14:58:17 +02:00
regs-usb.h mxs: prefix register structs with 'mxs' prefix 2012-09-01 14:58:17 +02:00
regs-usbphy.h mxs: prefix register structs with 'mxs' prefix 2012-09-01 14:58:17 +02:00
sys_proto.h mxs: mmc: Allow overriding default card detect implementation 2013-01-28 11:43:01 +01:00