blob: df5ce20d181ce8c8b5e8eedf79a7cd4b1f8242ca [file] [log] [blame]
Greg Ungererdad263b2008-02-01 17:38:03 +10001/***************************************************************************/
2
3/*
4 * dma.c -- Freescale ColdFire DMA support
5 *
6 * Copyright (C) 2007, Greg Ungerer (gerg@snapgear.com)
7 */
8
9/***************************************************************************/
10
11#include <linux/kernel.h>
Greg Ungerer2c7f3fe2011-03-29 14:25:14 +100012#include <linux/module.h>
Greg Ungererdad263b2008-02-01 17:38:03 +100013#include <asm/dma.h>
14#include <asm/coldfire.h>
15#include <asm/mcfsim.h>
16#include <asm/mcfdma.h>
17
18/***************************************************************************/
19
20/*
21 * DMA channel base address table.
22 */
23unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS] = {
24#ifdef MCFDMA_BASE0
Greg Ungererbabc08b2011-03-06 00:54:36 +100025 MCFDMA_BASE0,
Greg Ungererdad263b2008-02-01 17:38:03 +100026#endif
27#ifdef MCFDMA_BASE1
Greg Ungererbabc08b2011-03-06 00:54:36 +100028 MCFDMA_BASE1,
Greg Ungererdad263b2008-02-01 17:38:03 +100029#endif
30#ifdef MCFDMA_BASE2
Greg Ungererbabc08b2011-03-06 00:54:36 +100031 MCFDMA_BASE2,
Greg Ungererdad263b2008-02-01 17:38:03 +100032#endif
33#ifdef MCFDMA_BASE3
Greg Ungererbabc08b2011-03-06 00:54:36 +100034 MCFDMA_BASE3,
Greg Ungererdad263b2008-02-01 17:38:03 +100035#endif
36};
Greg Ungerer2c7f3fe2011-03-29 14:25:14 +100037EXPORT_SYMBOL(dma_base_addr);
Greg Ungererdad263b2008-02-01 17:38:03 +100038
39unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
Greg Ungerer2c7f3fe2011-03-29 14:25:14 +100040EXPORT_SYMBOL(dma_device_address);
Greg Ungererdad263b2008-02-01 17:38:03 +100041
42/***************************************************************************/