aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/devices-da8xx.c
diff options
context:
space:
mode:
authorRajashekhara, Sudhakar <sudhakar.raj@ti.com>2010-06-29 02:05:14 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2010-08-05 12:58:26 -0400
commita941c50340c97f1f9c5e4d0de7d1bfdbffbdef24 (patch)
treea4cce8ec52350deabdd8ed8aec7691d7689ba0bc /arch/arm/mach-davinci/devices-da8xx.c
parent90bd4e6dd7f4b747477f2ad0125adb933cf3bcfa (diff)
davinci: da8xx/omapl EVM: Specify reserved channels/slots
The drivers on da8xx/omapl EVMs do not utilize all the channels and slots provided by EDMA. Some of these are better utilitzed by the DSP on the SoC for speeding up codec operations. Reserve these channels/slots for the DSP. Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/devices-da8xx.c')
-rw-r--r--arch/arm/mach-davinci/devices-da8xx.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c
index 1d956bfa9cf0..52bc7b1c6ca3 100644
--- a/arch/arm/mach-davinci/devices-da8xx.c
+++ b/arch/arm/mach-davinci/devices-da8xx.c
@@ -255,18 +255,21 @@ static struct platform_device da850_edma_device = {
255 .resource = da850_edma_resources, 255 .resource = da850_edma_resources,
256}; 256};
257 257
258int __init da8xx_register_edma(void) 258int __init da830_register_edma(struct edma_rsv_info *rsv)
259{ 259{
260 struct platform_device *pdev; 260 da830_edma_cc0_info.rsv = rsv;
261 261
262 if (cpu_is_davinci_da830()) 262 return platform_device_register(&da830_edma_device);
263 pdev = &da830_edma_device; 263}
264 else if (cpu_is_davinci_da850())
265 pdev = &da850_edma_device;
266 else
267 return -ENODEV;
268 264
269 return platform_device_register(pdev); 265int __init da850_register_edma(struct edma_rsv_info *rsv[2])
266{
267 if (rsv) {
268 da850_edma_cc_info[0].rsv = rsv[0];
269 da850_edma_cc_info[1].rsv = rsv[1];
270 }
271
272 return platform_device_register(&da850_edma_device);
270} 273}
271 274
272static struct resource da8xx_i2c_resources0[] = { 275static struct resource da8xx_i2c_resources0[] = {