Commit | Line | Data |
---|---|---|
b2441318 | 1 | // SPDX-License-Identifier: GPL-2.0 |
dad263b8 GU |
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> | |
2c7f3feb | 13 | #include <linux/module.h> |
dad263b8 GU |
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 | |
babc08b7 | 26 | MCFDMA_BASE0, |
dad263b8 GU |
27 | #endif |
28 | #ifdef MCFDMA_BASE1 | |
babc08b7 | 29 | MCFDMA_BASE1, |
dad263b8 GU |
30 | #endif |
31 | #ifdef MCFDMA_BASE2 | |
babc08b7 | 32 | MCFDMA_BASE2, |
dad263b8 GU |
33 | #endif |
34 | #ifdef MCFDMA_BASE3 | |
babc08b7 | 35 | MCFDMA_BASE3, |
dad263b8 GU |
36 | #endif |
37 | }; | |
2c7f3feb | 38 | EXPORT_SYMBOL(dma_base_addr); |
dad263b8 GU |
39 | |
40 | unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS]; | |
2c7f3feb | 41 | EXPORT_SYMBOL(dma_device_address); |
dad263b8 GU |
42 | |
43 | /***************************************************************************/ |