aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c64xx/dev-audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s3c64xx/dev-audio.c')
-rw-r--r--arch/arm/mach-s3c64xx/dev-audio.c120
1 files changed, 20 insertions, 100 deletions
diff --git a/arch/arm/mach-s3c64xx/dev-audio.c b/arch/arm/mach-s3c64xx/dev-audio.c
index 93470b158a4e..124fd5d63006 100644
--- a/arch/arm/mach-s3c64xx/dev-audio.c
+++ b/arch/arm/mach-s3c64xx/dev-audio.c
@@ -57,21 +57,9 @@ static int s3c64xx_i2s_cfg_gpio(struct platform_device *pdev)
57} 57}
58 58
59static struct resource s3c64xx_iis0_resource[] = { 59static struct resource s3c64xx_iis0_resource[] = {
60 [0] = { 60 [0] = DEFINE_RES_MEM(S3C64XX_PA_IIS0, SZ_256),
61 .start = S3C64XX_PA_IIS0, 61 [1] = DEFINE_RES_DMA(DMACH_I2S0_OUT),
62 .end = S3C64XX_PA_IIS0 + 0x100 - 1, 62 [2] = DEFINE_RES_DMA(DMACH_I2S0_IN),
63 .flags = IORESOURCE_MEM,
64 },
65 [1] = {
66 .start = DMACH_I2S0_OUT,
67 .end = DMACH_I2S0_OUT,
68 .flags = IORESOURCE_DMA,
69 },
70 [2] = {
71 .start = DMACH_I2S0_IN,
72 .end = DMACH_I2S0_IN,
73 .flags = IORESOURCE_DMA,
74 },
75}; 63};
76 64
77static struct s3c_audio_pdata i2sv3_pdata = { 65static struct s3c_audio_pdata i2sv3_pdata = {
@@ -95,21 +83,9 @@ struct platform_device s3c64xx_device_iis0 = {
95EXPORT_SYMBOL(s3c64xx_device_iis0); 83EXPORT_SYMBOL(s3c64xx_device_iis0);
96 84
97static struct resource s3c64xx_iis1_resource[] = { 85static struct resource s3c64xx_iis1_resource[] = {
98 [0] = { 86 [0] = DEFINE_RES_MEM(S3C64XX_PA_IIS1, SZ_256),
99 .start = S3C64XX_PA_IIS1, 87 [1] = DEFINE_RES_DMA(DMACH_I2S1_OUT),
100 .end = S3C64XX_PA_IIS1 + 0x100 - 1, 88 [2] = DEFINE_RES_DMA(DMACH_I2S1_IN),
101 .flags = IORESOURCE_MEM,
102 },
103 [1] = {
104 .start = DMACH_I2S1_OUT,
105 .end = DMACH_I2S1_OUT,
106 .flags = IORESOURCE_DMA,
107 },
108 [2] = {
109 .start = DMACH_I2S1_IN,
110 .end = DMACH_I2S1_IN,
111 .flags = IORESOURCE_DMA,
112 },
113}; 89};
114 90
115struct platform_device s3c64xx_device_iis1 = { 91struct platform_device s3c64xx_device_iis1 = {
@@ -124,21 +100,9 @@ struct platform_device s3c64xx_device_iis1 = {
124EXPORT_SYMBOL(s3c64xx_device_iis1); 100EXPORT_SYMBOL(s3c64xx_device_iis1);
125 101
126static struct resource s3c64xx_iisv4_resource[] = { 102static struct resource s3c64xx_iisv4_resource[] = {
127 [0] = { 103 [0] = DEFINE_RES_MEM(S3C64XX_PA_IISV4, SZ_256),
128 .start = S3C64XX_PA_IISV4, 104 [1] = DEFINE_RES_DMA(DMACH_HSI_I2SV40_TX),
129 .end = S3C64XX_PA_IISV4 + 0x100 - 1, 105 [2] = DEFINE_RES_DMA(DMACH_HSI_I2SV40_RX),
130 .flags = IORESOURCE_MEM,
131 },
132 [1] = {
133 .start = DMACH_HSI_I2SV40_TX,
134 .end = DMACH_HSI_I2SV40_TX,
135 .flags = IORESOURCE_DMA,
136 },
137 [2] = {
138 .start = DMACH_HSI_I2SV40_RX,
139 .end = DMACH_HSI_I2SV40_RX,
140 .flags = IORESOURCE_DMA,
141 },
142}; 106};
143 107
144static struct s3c_audio_pdata i2sv4_pdata = { 108static struct s3c_audio_pdata i2sv4_pdata = {
@@ -187,21 +151,9 @@ static int s3c64xx_pcm_cfg_gpio(struct platform_device *pdev)
187} 151}
188 152
189static struct resource s3c64xx_pcm0_resource[] = { 153static struct resource s3c64xx_pcm0_resource[] = {
190 [0] = { 154 [0] = DEFINE_RES_MEM(S3C64XX_PA_PCM0, SZ_256),
191 .start = S3C64XX_PA_PCM0, 155 [1] = DEFINE_RES_DMA(DMACH_PCM0_TX),
192 .end = S3C64XX_PA_PCM0 + 0x100 - 1, 156 [2] = DEFINE_RES_DMA(DMACH_PCM0_RX),
193 .flags = IORESOURCE_MEM,
194 },
195 [1] = {
196 .start = DMACH_PCM0_TX,
197 .end = DMACH_PCM0_TX,
198 .flags = IORESOURCE_DMA,
199 },
200 [2] = {
201 .start = DMACH_PCM0_RX,
202 .end = DMACH_PCM0_RX,
203 .flags = IORESOURCE_DMA,
204 },
205}; 157};
206 158
207static struct s3c_audio_pdata s3c_pcm0_pdata = { 159static struct s3c_audio_pdata s3c_pcm0_pdata = {
@@ -220,21 +172,9 @@ struct platform_device s3c64xx_device_pcm0 = {
220EXPORT_SYMBOL(s3c64xx_device_pcm0); 172EXPORT_SYMBOL(s3c64xx_device_pcm0);
221 173
222static struct resource s3c64xx_pcm1_resource[] = { 174static struct resource s3c64xx_pcm1_resource[] = {
223 [0] = { 175 [0] = DEFINE_RES_MEM(S3C64XX_PA_PCM1, SZ_256),
224 .start = S3C64XX_PA_PCM1, 176 [1] = DEFINE_RES_DMA(DMACH_PCM1_TX),
225 .end = S3C64XX_PA_PCM1 + 0x100 - 1, 177 [2] = DEFINE_RES_DMA(DMACH_PCM1_RX),
226 .flags = IORESOURCE_MEM,
227 },
228 [1] = {
229 .start = DMACH_PCM1_TX,
230 .end = DMACH_PCM1_TX,
231 .flags = IORESOURCE_DMA,
232 },
233 [2] = {
234 .start = DMACH_PCM1_RX,
235 .end = DMACH_PCM1_RX,
236 .flags = IORESOURCE_DMA,
237 },
238}; 178};
239 179
240static struct s3c_audio_pdata s3c_pcm1_pdata = { 180static struct s3c_audio_pdata s3c_pcm1_pdata = {
@@ -265,31 +205,11 @@ static int s3c64xx_ac97_cfg_gpe(struct platform_device *pdev)
265} 205}
266 206
267static struct resource s3c64xx_ac97_resource[] = { 207static struct resource s3c64xx_ac97_resource[] = {
268 [0] = { 208 [0] = DEFINE_RES_MEM(S3C64XX_PA_AC97, SZ_256),
269 .start = S3C64XX_PA_AC97, 209 [1] = DEFINE_RES_DMA(DMACH_AC97_PCMOUT),
270 .end = S3C64XX_PA_AC97 + 0x100 - 1, 210 [2] = DEFINE_RES_DMA(DMACH_AC97_PCMIN),
271 .flags = IORESOURCE_MEM, 211 [3] = DEFINE_RES_DMA(DMACH_AC97_MICIN),
272 }, 212 [4] = DEFINE_RES_IRQ(IRQ_AC97),
273 [1] = {
274 .start = DMACH_AC97_PCMOUT,
275 .end = DMACH_AC97_PCMOUT,
276 .flags = IORESOURCE_DMA,
277 },
278 [2] = {
279 .start = DMACH_AC97_PCMIN,
280 .end = DMACH_AC97_PCMIN,
281 .flags = IORESOURCE_DMA,
282 },
283 [3] = {
284 .start = DMACH_AC97_MICIN,
285 .end = DMACH_AC97_MICIN,
286 .flags = IORESOURCE_DMA,
287 },
288 [4] = {
289 .start = IRQ_AC97,
290 .end = IRQ_AC97,
291 .flags = IORESOURCE_IRQ,
292 },
293}; 213};
294 214
295static struct s3c_audio_pdata s3c_ac97_pdata; 215static struct s3c_audio_pdata s3c_ac97_pdata;