Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 2 | /***************************************************************************/ |
| 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 Ungerer | 2c7f3fe | 2011-03-29 14:25:14 +1000 | [diff] [blame] | 13 | #include <linux/module.h> |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 14 | #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 | */ |
| 24 | unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS] = { |
| 25 | #ifdef MCFDMA_BASE0 |
Greg Ungerer | babc08b | 2011-03-06 00:54:36 +1000 | [diff] [blame] | 26 | MCFDMA_BASE0, |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 27 | #endif |
| 28 | #ifdef MCFDMA_BASE1 |
Greg Ungerer | babc08b | 2011-03-06 00:54:36 +1000 | [diff] [blame] | 29 | MCFDMA_BASE1, |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 30 | #endif |
| 31 | #ifdef MCFDMA_BASE2 |
Greg Ungerer | babc08b | 2011-03-06 00:54:36 +1000 | [diff] [blame] | 32 | MCFDMA_BASE2, |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 33 | #endif |
| 34 | #ifdef MCFDMA_BASE3 |
Greg Ungerer | babc08b | 2011-03-06 00:54:36 +1000 | [diff] [blame] | 35 | MCFDMA_BASE3, |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 36 | #endif |
| 37 | }; |
Greg Ungerer | 2c7f3fe | 2011-03-29 14:25:14 +1000 | [diff] [blame] | 38 | EXPORT_SYMBOL(dma_base_addr); |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 39 | |
| 40 | unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS]; |
Greg Ungerer | 2c7f3fe | 2011-03-29 14:25:14 +1000 | [diff] [blame] | 41 | EXPORT_SYMBOL(dma_device_address); |
Greg Ungerer | dad263b | 2008-02-01 17:38:03 +1000 | [diff] [blame] | 42 | |
| 43 | /***************************************************************************/ |