u-boot/arch/arm/include/asm
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
..
arch-a320 ftsmc020: move ftsmc020 static mem controller to driver/mtd 2011-04-27 19:38:10 +02:00
arch-am33xx am33xx: support for booting via usbeth 2013-02-18 13:48:04 -05:00
arch-arm720t arm: Remove support for NETARM 2012-10-26 22:38:00 +02:00
arch-armada100 USB: Armada100: EHCI Driver for Armada100 SOCs 2012-03-19 00:08:26 +01:00
arch-armv7 ARMv7: Add register definition of global timer 2012-10-03 02:04:22 +02:00
arch-at91 at91: Move at91 global data into arch_global_data 2013-02-01 15:07:49 -05:00
arch-bcm2835 ARM: add basic support for the Broadcom BCM2835 SoC 2012-09-01 14:58:21 +02:00
arch-davinci da8xx: Add the missing pinmux for da830 to the gpio driver 2013-02-18 13:48:03 -05:00
arch-ep93xx Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
arch-exynos Exynos: clock: support get_mmc_clk for exynos 2013-01-11 16:56:31 +09:00
arch-imx mxc: Define architecture identifier 2012-09-01 14:58:30 +02:00
arch-ixp IXP: Fix GPIO_INT_ACT_LOW_SET() 2012-03-26 23:09:26 +02:00
arch-kirkwood arch-kirkwood: Ethernet port macro returning incorrect address 2013-01-09 04:12:11 +05:30
arch-ks8695 Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
arch-lpc32xx serial: add LPC32X0 high-speed UART devices support 2012-05-15 08:31:21 +02:00
arch-mb86r0x arm: auto gen asm-offsets.h for mb86r0x 2011-08-04 13:56:55 +02:00
arch-mx5 mx31/mx35/mx51/mx53/mx6: add watchdog 2013-01-13 11:39:57 +01:00
arch-mx6 i.MX6: Add DDR controller registers 2013-03-07 16:43:47 +01:00
arch-mx25 ehci-mxc: Define host offsets 2012-11-16 09:16:45 +01:00
arch-mx27 mxc: Define architecture identifier 2012-09-01 14:58:30 +02:00
arch-mx31 mx31/mx35/mx51/mx53/mx6: add watchdog 2013-01-13 11:39:57 +01:00
arch-mx35 mx31/mx35/mx51/mx53/mx6: add watchdog 2013-01-13 11:39:57 +01:00
arch-mxs mxs: mmc: spi: dma: Better wrap the MXS differences 2013-03-07 17:22:56 +01:00
arch-nomadik Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
arch-omap3 Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' 2013-01-08 13:15:45 +01:00
arch-omap4 ARM: SPL: Add <asm/spl.h> and <asm/arch/spl.h> 2012-09-27 09:49:57 -07:00
arch-omap5 ARM: SPL: Add <asm/spl.h> and <asm/arch/spl.h> 2012-09-27 09:49:57 -07:00
arch-omap24xx ARM: Remove apollon board 2012-09-18 12:01:51 -07:00
arch-orion5x ARM: kirkwood/orion5x: Use reset_cpu definition in include/common.h 2012-10-03 16:43:13 +05:30
arch-pantheon pantheon: define CONFIG_SYS_CACHELINE_SIZE 2011-11-03 22:56:22 +01:00
arch-pxa pxa: Add code to examine cpu model and revision 2012-10-15 11:54:07 -07:00
arch-rmobile arm: rmobile: Add support PFC of Renesas R8A7740 2012-10-03 02:04:25 +02:00
arch-s3c24x0 ARM : Add GPIO Driver and IOMUX definition for S3C2440 2012-10-03 10:50:20 +02:00
arch-s3c44b0 Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
arch-s3c64xx Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
arch-s5pc1xx gpio:fix: Proper handling of GPIO subsystem parts at Samsung devices 2012-11-15 21:08:18 +09:00
arch-sa1100 Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
arch-socfpga ARM: Add Altera SOCFPGA Cyclone5 2012-10-04 18:11:52 +02:00
arch-spear SPL: ARM: spear: Add SPL support for SPEAr600 platform 2012-07-07 14:07:43 +02:00
arch-tegra Tegra114: Add arch-tegra114 include files 2013-02-11 10:35:25 -07:00
arch-tegra20 tegra: rename FUNCMUX_UART2_UARTB 2013-02-11 10:35:24 -07:00
arch-tegra30 Tegra: Move common clock code to arch/arm/cpu/tegra-common/clock.c 2013-02-11 10:35:24 -07:00
arch-tegra114 Tegra114: Add arch-tegra114 include files 2013-02-11 10:35:25 -07:00
arch-tnetv107x ARM1176: TI: TNETV107X soc initial support 2010-06-08 10:07:17 -05:00
arch-u8500 u8500: Enabling power to MMC device on AB8500 V2 2012-09-01 14:58:20 +02:00
arch-zynq arm: zynq: Add lowlevel initialization to C 2013-02-07 09:18:42 +01:00
imx-common mx51evk: Fix build error when CONFIG_VIDEO is disabled 2012-11-14 14:05:35 +01:00
proc-armv Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
armv7.h omap5: Add minimal support for omap5430. 2011-11-15 22:25:50 +01:00
assembler.h arm: Use optimized memcpy and memset from linux 2011-04-27 19:38:07 +02:00
atomic.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
bitops.h arm: add __ilog2 function 2011-07-16 13:00:11 +02:00
bootm.h arm: Add Prep subcommand support to bootm 2012-03-27 22:05:29 +02:00
byteorder.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
cache.h arm: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment 2011-10-23 20:50:42 +02:00
config.h Replace CONFIG_RELOC_FIXUP_WORKS by CONFIG_NEEDS_MANUAL_RELOC 2010-10-29 21:32:07 +02:00
dma-mapping.h Fix Stelian's email address 2011-11-29 15:43:38 +01:00
ehci-omap.h usb: ehci: rework to take advantage of new lowlevel interface 2012-10-15 11:54:00 -07:00
emif.h am33xx: Pass to config_ddr the type of memory that is connected 2012-09-01 14:58:12 +02:00
errno.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
global_data.h arm: Use generic global_data 2013-02-04 09:05:45 -05:00
gpio.h gpio: Replace ARM gpio.h with the common API in include/asm-generic 2012-01-09 20:10:32 -06:00
hardware.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
io.h ARM: fix write*() I/O accessors 2011-02-21 08:30:55 +01:00
linkage.h arm: adapt asm/linkage.h from Linux 2012-05-15 08:31:26 +02:00
mach-types.h arm: rmobile: Add support for ATMARK-TECHNO Armadillo-800EVA board 2012-10-03 02:04:25 +02:00
macro.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
memory.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
omap_common.h ARM: SPL: Make spl_mmc.c more generic 2012-09-27 09:49:58 -07:00
omap_gpio.h gpio: add gpio_is_valid() to omap_gpio API 2012-12-10 12:45:35 -07:00
omap_musb.h musb-new: omap2plus backend driver 2012-11-20 00:16:08 +01:00
pl310.h armv7: add PL310 support to u-boot 2011-07-04 10:55:25 +02:00
posix_types.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
processor.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
ptrace.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
setup.h arm bootm: Allow to pass board specified atags 2012-10-30 15:28:05 -07:00
sizes.h arch/arm/include/asm/sizes.h: cleanups 2010-10-13 09:59:33 +02:00
spl.h SPL: Create arch/arm/lib/spl.c for board_init_f and jump_to_image_linux 2012-09-27 09:49:59 -07:00
string.h arm: Use optimized memcpy and memset from linux 2011-04-27 19:38:07 +02:00
system.h ARM: add wfi assembly macro 2013-02-03 14:43:58 +01:00
types.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
u-boot-arm.h ARM: introduce arch_early_init_r() 2012-07-07 14:07:44 +02:00
u-boot.h arm: Change global data baudrate to int 2012-10-19 15:25:45 -07:00
unaligned.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
utils.h armv7: cache maintenance operations for armv7 2011-07-04 10:55:25 +02:00