Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platf...
[pandora-kernel.git] / arch / arm / plat-samsung / include / plat / s3c-dma-pl330.h
1 /*
2  * Copyright (C) 2010 Samsung Electronics Co. Ltd.
3  *      Jaswinder Singh <jassi.brar@samsung.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  */
10
11 #ifndef __S3C_DMA_PL330_H_
12 #define __S3C_DMA_PL330_H_
13
14 #define S3C2410_DMAF_AUTOSTART          (1 << 0)
15 #define S3C2410_DMAF_CIRCULAR           (1 << 1)
16
17 /*
18  * PL330 can assign any channel to communicate with
19  * any of the peripherals attched to the DMAC.
20  * For the sake of consistency across client drivers,
21  * We keep the channel names unchanged and only add
22  * missing peripherals are added.
23  * Order is not important since S3C PL330 API driver
24  * use these just as IDs.
25  */
26 enum dma_ch {
27         DMACH_UART0_RX,
28         DMACH_UART0_TX,
29         DMACH_UART1_RX,
30         DMACH_UART1_TX,
31         DMACH_UART2_RX,
32         DMACH_UART2_TX,
33         DMACH_UART3_RX,
34         DMACH_UART3_TX,
35         DMACH_UART4_RX,
36         DMACH_UART4_TX,
37         DMACH_UART5_RX,
38         DMACH_UART5_TX,
39         DMACH_USI_RX,
40         DMACH_USI_TX,
41         DMACH_IRDA,
42         DMACH_I2S0_RX,
43         DMACH_I2S0_TX,
44         DMACH_I2S0S_TX,
45         DMACH_I2S1_RX,
46         DMACH_I2S1_TX,
47         DMACH_I2S2_RX,
48         DMACH_I2S2_TX,
49         DMACH_SPI0_RX,
50         DMACH_SPI0_TX,
51         DMACH_SPI1_RX,
52         DMACH_SPI1_TX,
53         DMACH_SPI2_RX,
54         DMACH_SPI2_TX,
55         DMACH_AC97_MICIN,
56         DMACH_AC97_PCMIN,
57         DMACH_AC97_PCMOUT,
58         DMACH_EXTERNAL,
59         DMACH_PWM,
60         DMACH_SPDIF,
61         DMACH_HSI_RX,
62         DMACH_HSI_TX,
63         DMACH_PCM0_TX,
64         DMACH_PCM0_RX,
65         DMACH_PCM1_TX,
66         DMACH_PCM1_RX,
67         DMACH_PCM2_TX,
68         DMACH_PCM2_RX,
69         DMACH_MSM_REQ3,
70         DMACH_MSM_REQ2,
71         DMACH_MSM_REQ1,
72         DMACH_MSM_REQ0,
73         DMACH_SLIMBUS0_RX,
74         DMACH_SLIMBUS0_TX,
75         DMACH_SLIMBUS0AUX_RX,
76         DMACH_SLIMBUS0AUX_TX,
77         DMACH_SLIMBUS1_RX,
78         DMACH_SLIMBUS1_TX,
79         DMACH_SLIMBUS2_RX,
80         DMACH_SLIMBUS2_TX,
81         DMACH_SLIMBUS3_RX,
82         DMACH_SLIMBUS3_TX,
83         DMACH_SLIMBUS4_RX,
84         DMACH_SLIMBUS4_TX,
85         DMACH_SLIMBUS5_RX,
86         DMACH_SLIMBUS5_TX,
87         /* END Marker, also used to denote a reserved channel */
88         DMACH_MAX,
89 };
90
91 static inline bool s3c_dma_has_circular(void)
92 {
93         return true;
94 }
95
96 #include <plat/dma.h>
97
98 #endif  /* __S3C_DMA_PL330_H_ */