diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2012-05-12 03:12:30 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-05-12 03:12:30 -0400 |
commit | 5e9cf65664397bb1a79c627911c48536ac2d2e7d (patch) | |
tree | 5c5506b8fd14d996cbf114f86705cf09a7bda00d /arch | |
parent | c858fd5fafc5dccf2186697bf9a1112906d905c7 (diff) |
ARM: S5P64X0: Use common macro to define resources on dev-audio.c
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s5p64x0/dev-audio.c | 72 |
1 files changed, 12 insertions, 60 deletions
diff --git a/arch/arm/mach-s5p64x0/dev-audio.c b/arch/arm/mach-s5p64x0/dev-audio.c index 35f1f226dabb..91113ddc51da 100644 --- a/arch/arm/mach-s5p64x0/dev-audio.c +++ b/arch/arm/mach-s5p64x0/dev-audio.c | |||
@@ -51,21 +51,9 @@ static struct s3c_audio_pdata s5p6440_i2s_pdata = { | |||
51 | }; | 51 | }; |
52 | 52 | ||
53 | static struct resource s5p64x0_i2s0_resource[] = { | 53 | static struct resource s5p64x0_i2s0_resource[] = { |
54 | [0] = { | 54 | [0] = DEFINE_RES_MEM(S5P64X0_PA_I2S, SZ_256), |
55 | .start = S5P64X0_PA_I2S, | 55 | [1] = DEFINE_RES_DMA(DMACH_I2S0_TX), |
56 | .end = S5P64X0_PA_I2S + 0x100 - 1, | 56 | [2] = DEFINE_RES_DMA(DMACH_I2S0_RX), |
57 | .flags = IORESOURCE_MEM, | ||
58 | }, | ||
59 | [1] = { | ||
60 | .start = DMACH_I2S0_TX, | ||
61 | .end = DMACH_I2S0_TX, | ||
62 | .flags = IORESOURCE_DMA, | ||
63 | }, | ||
64 | [2] = { | ||
65 | .start = DMACH_I2S0_RX, | ||
66 | .end = DMACH_I2S0_RX, | ||
67 | .flags = IORESOURCE_DMA, | ||
68 | }, | ||
69 | }; | 57 | }; |
70 | 58 | ||
71 | struct platform_device s5p6440_device_iis = { | 59 | struct platform_device s5p6440_device_iis = { |
@@ -130,21 +118,9 @@ static struct s3c_audio_pdata s5p6450_i2s_pdata = { | |||
130 | }; | 118 | }; |
131 | 119 | ||
132 | static struct resource s5p6450_i2s1_resource[] = { | 120 | static struct resource s5p6450_i2s1_resource[] = { |
133 | [0] = { | 121 | [0] = DEFINE_RES_MEM(S5P6450_PA_I2S1, SZ_256), |
134 | .start = S5P6450_PA_I2S1, | 122 | [1] = DEFINE_RES_DMA(DMACH_I2S1_TX), |
135 | .end = S5P6450_PA_I2S1 + 0x100 - 1, | 123 | [2] = DEFINE_RES_DMA(DMACH_I2S1_RX), |
136 | .flags = IORESOURCE_MEM, | ||
137 | }, | ||
138 | [1] = { | ||
139 | .start = DMACH_I2S1_TX, | ||
140 | .end = DMACH_I2S1_TX, | ||
141 | .flags = IORESOURCE_DMA, | ||
142 | }, | ||
143 | [2] = { | ||
144 | .start = DMACH_I2S1_RX, | ||
145 | .end = DMACH_I2S1_RX, | ||
146 | .flags = IORESOURCE_DMA, | ||
147 | }, | ||
148 | }; | 124 | }; |
149 | 125 | ||
150 | struct platform_device s5p6450_device_iis1 = { | 126 | struct platform_device s5p6450_device_iis1 = { |
@@ -158,21 +134,9 @@ struct platform_device s5p6450_device_iis1 = { | |||
158 | }; | 134 | }; |
159 | 135 | ||
160 | static struct resource s5p6450_i2s2_resource[] = { | 136 | static struct resource s5p6450_i2s2_resource[] = { |
161 | [0] = { | 137 | [0] = DEFINE_RES_MEM(S5P6450_PA_I2S2, SZ_256), |
162 | .start = S5P6450_PA_I2S2, | 138 | [1] = DEFINE_RES_DMA(DMACH_I2S2_TX), |
163 | .end = S5P6450_PA_I2S2 + 0x100 - 1, | 139 | [2] = DEFINE_RES_DMA(DMACH_I2S2_RX), |
164 | .flags = IORESOURCE_MEM, | ||
165 | }, | ||
166 | [1] = { | ||
167 | .start = DMACH_I2S2_TX, | ||
168 | .end = DMACH_I2S2_TX, | ||
169 | .flags = IORESOURCE_DMA, | ||
170 | }, | ||
171 | [2] = { | ||
172 | .start = DMACH_I2S2_RX, | ||
173 | .end = DMACH_I2S2_RX, | ||
174 | .flags = IORESOURCE_DMA, | ||
175 | }, | ||
176 | }; | 140 | }; |
177 | 141 | ||
178 | struct platform_device s5p6450_device_iis2 = { | 142 | struct platform_device s5p6450_device_iis2 = { |
@@ -208,21 +172,9 @@ static struct s3c_audio_pdata s5p6440_pcm_pdata = { | |||
208 | }; | 172 | }; |
209 | 173 | ||
210 | static struct resource s5p6440_pcm0_resource[] = { | 174 | static struct resource s5p6440_pcm0_resource[] = { |
211 | [0] = { | 175 | [0] = DEFINE_RES_MEM(S5P64X0_PA_PCM, SZ_256), |
212 | .start = S5P64X0_PA_PCM, | 176 | [1] = DEFINE_RES_DMA(DMACH_PCM0_TX), |
213 | .end = S5P64X0_PA_PCM + 0x100 - 1, | 177 | [2] = DEFINE_RES_DMA(DMACH_PCM0_RX), |
214 | .flags = IORESOURCE_MEM, | ||
215 | }, | ||
216 | [1] = { | ||
217 | .start = DMACH_PCM0_TX, | ||
218 | .end = DMACH_PCM0_TX, | ||
219 | .flags = IORESOURCE_DMA, | ||
220 | }, | ||
221 | [2] = { | ||
222 | .start = DMACH_PCM0_RX, | ||
223 | .end = DMACH_PCM0_RX, | ||
224 | .flags = IORESOURCE_DMA, | ||
225 | }, | ||
226 | }; | 178 | }; |
227 | 179 | ||
228 | struct platform_device s5p6440_device_pcm = { | 180 | struct platform_device s5p6440_device_pcm = { |