aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/devices-da8xx.c
diff options
context:
space:
mode:
authorChaithrika U S <chaithrika@ti.com>2009-08-11 17:01:59 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-08-26 04:55:52 -0400
commite33ef5e3b368b31705d3024ee6a326f2a85a78fb (patch)
treed42ede5148b7c4dd0a9245d12eaff33d46e2302f /arch/arm/mach-davinci/devices-da8xx.c
parent5a8d5441f4aac3ef0478d5de723422304c611926 (diff)
davinci: Audio support for DA830 EVM
Define resources for McASP1 used on DA830/OMAP-L137 EVM, add platform device defintion, initialization function. Additionally, this patch also adds version and FIFO related members to platform data structure. Signed-off-by: Chaithrika U S <chaithrika@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.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c
index 11c0971e13a6..fe0baafcf610 100644
--- a/arch/arm/mach-davinci/devices-da8xx.c
+++ b/arch/arm/mach-davinci/devices-da8xx.c
@@ -281,7 +281,43 @@ static struct platform_device da8xx_emac_device = {
281 .resource = da8xx_emac_resources, 281 .resource = da8xx_emac_resources,
282}; 282};
283 283
284static struct resource da830_mcasp1_resources[] = {
285 {
286 .name = "mcasp1",
287 .start = DAVINCI_DA830_MCASP1_REG_BASE,
288 .end = DAVINCI_DA830_MCASP1_REG_BASE + (SZ_1K * 12) - 1,
289 .flags = IORESOURCE_MEM,
290 },
291 /* TX event */
292 {
293 .start = DAVINCI_DA830_DMA_MCASP1_AXEVT,
294 .end = DAVINCI_DA830_DMA_MCASP1_AXEVT,
295 .flags = IORESOURCE_DMA,
296 },
297 /* RX event */
298 {
299 .start = DAVINCI_DA830_DMA_MCASP1_AREVT,
300 .end = DAVINCI_DA830_DMA_MCASP1_AREVT,
301 .flags = IORESOURCE_DMA,
302 },
303};
304
305static struct platform_device da830_mcasp1_device = {
306 .name = "davinci-mcasp",
307 .id = 1,
308 .num_resources = ARRAY_SIZE(da830_mcasp1_resources),
309 .resource = da830_mcasp1_resources,
310};
311
284int __init da8xx_register_emac(void) 312int __init da8xx_register_emac(void)
285{ 313{
286 return platform_device_register(&da8xx_emac_device); 314 return platform_device_register(&da8xx_emac_device);
287} 315}
316
317void __init da8xx_init_mcasp(int id, struct snd_platform_data *pdata)
318{
319 if (id == 1) { /* DA830/OMAP-L137 has 3 instances of McASP */
320 da830_mcasp1_device.dev.platform_data = pdata;
321 platform_device_register(&da830_mcasp1_device);
322 }
323}