blob: c3279f7467d7cbc5ca8d249dce570a23db0f40b4 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Greg Ungererdad263b2008-02-01 17:38:03 +10002/***************************************************************************/
3
4/*
5 * dma.c -- Freescale ColdFire DMA support
6 *
7 * Copyright (C) 2007, Greg Ungerer (gerg@snapgear.com)
8 */
9
10/***************************************************************************/
11
12#include <linux/kernel.h>
Greg Ungerer2c7f3fe2011-03-29 14:25:14 +100013#include <linux/module.h>
Greg Ungererdad263b2008-02-01 17:38:03 +100014#include <asm/dma.h>
15#include <asm/coldfire.h>
16#include <asm/mcfsim.h>
17#include <asm/mcfdma.h>
18
19/***************************************************************************/
20
21/*
22 * DMA channel base address table.
23 */
24unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS] = {
25#ifdef MCFDMA_BASE0
Greg Ungererbabc08b2011-03-06 00:54:36 +100026 MCFDMA_BASE0,
Greg Ungererdad263b2008-02-01 17:38:03 +100027#endif
28#ifdef MCFDMA_BASE1
Greg Ungererbabc08b2011-03-06 00:54:36 +100029 MCFDMA_BASE1,
Greg Ungererdad263b2008-02-01 17:38:03 +100030#endif
31#ifdef MCFDMA_BASE2
Greg Ungererbabc08b2011-03-06 00:54:36 +100032 MCFDMA_BASE2,
Greg Ungererdad263b2008-02-01 17:38:03 +100033#endif
34#ifdef MCFDMA_BASE3
Greg Ungererbabc08b2011-03-06 00:54:36 +100035 MCFDMA_BASE3,
Greg Ungererdad263b2008-02-01 17:38:03 +100036#endif
37};
Greg Ungerer2c7f3fe2011-03-29 14:25:14 +100038EXPORT_SYMBOL(dma_base_addr);
Greg Ungererdad263b2008-02-01 17:38:03 +100039
40unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
Greg Ungerer2c7f3fe2011-03-29 14:25:14 +100041EXPORT_SYMBOL(dma_device_address);
Greg Ungererdad263b2008-02-01 17:38:03 +100042
43/***************************************************************************/