diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2011-10-04 05:57:38 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-10-04 05:57:38 -0400 |
commit | 59ca37f74a6e9d3e9367359f2fcbb286df7d9748 (patch) | |
tree | cbc0254ef952f10e99e384b56ccc7b81389e335e /arch/arm/mach-s3c2410/include | |
parent | 7d84b3e93757fe871d57b43c422b81cc8b94057a (diff) | |
parent | c9312209aa9fdef05b03d63bbead63bb720fd133 (diff) |
Merge branch 'next/topic-dma-samsung' into next-samsung-devel
Diffstat (limited to 'arch/arm/mach-s3c2410/include')
-rw-r--r-- | arch/arm/mach-s3c2410/include/mach/dma.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/arch/arm/mach-s3c2410/include/mach/dma.h b/arch/arm/mach-s3c2410/include/mach/dma.h index b2b2a5bb275e..ae8e482b6427 100644 --- a/arch/arm/mach-s3c2410/include/mach/dma.h +++ b/arch/arm/mach-s3c2410/include/mach/dma.h | |||
@@ -13,7 +13,6 @@ | |||
13 | #ifndef __ASM_ARCH_DMA_H | 13 | #ifndef __ASM_ARCH_DMA_H |
14 | #define __ASM_ARCH_DMA_H __FILE__ | 14 | #define __ASM_ARCH_DMA_H __FILE__ |
15 | 15 | ||
16 | #include <plat/dma.h> | ||
17 | #include <linux/sysdev.h> | 16 | #include <linux/sysdev.h> |
18 | 17 | ||
19 | #define MAX_DMA_TRANSFER_SIZE 0x100000 /* Data Unit is half word */ | 18 | #define MAX_DMA_TRANSFER_SIZE 0x100000 /* Data Unit is half word */ |
@@ -51,6 +50,18 @@ enum dma_ch { | |||
51 | DMACH_MAX, /* the end entry */ | 50 | DMACH_MAX, /* the end entry */ |
52 | }; | 51 | }; |
53 | 52 | ||
53 | static inline bool samsung_dma_has_circular(void) | ||
54 | { | ||
55 | return false; | ||
56 | } | ||
57 | |||
58 | static inline bool samsung_dma_is_dmadev(void) | ||
59 | { | ||
60 | return false; | ||
61 | } | ||
62 | |||
63 | #include <plat/dma.h> | ||
64 | |||
54 | #define DMACH_LOW_LEVEL (1<<28) /* use this to specifiy hardware ch no */ | 65 | #define DMACH_LOW_LEVEL (1<<28) /* use this to specifiy hardware ch no */ |
55 | 66 | ||
56 | /* we have 4 dma channels */ | 67 | /* we have 4 dma channels */ |
@@ -163,7 +174,7 @@ struct s3c2410_dma_chan { | |||
163 | struct s3c2410_dma_client *client; | 174 | struct s3c2410_dma_client *client; |
164 | 175 | ||
165 | /* channel configuration */ | 176 | /* channel configuration */ |
166 | enum s3c2410_dmasrc source; | 177 | enum dma_data_direction source; |
167 | enum dma_ch req_ch; | 178 | enum dma_ch req_ch; |
168 | unsigned long dev_addr; | 179 | unsigned long dev_addr; |
169 | unsigned long load_timeout; | 180 | unsigned long load_timeout; |
@@ -196,9 +207,4 @@ struct s3c2410_dma_chan { | |||
196 | 207 | ||
197 | typedef unsigned long dma_device_t; | 208 | typedef unsigned long dma_device_t; |
198 | 209 | ||
199 | static inline bool s3c_dma_has_circular(void) | ||
200 | { | ||
201 | return false; | ||
202 | } | ||
203 | |||
204 | #endif /* __ASM_ARCH_DMA_H */ | 210 | #endif /* __ASM_ARCH_DMA_H */ |