diff options
author | Chaithrika U S <chaithrika@ti.com> | 2009-08-11 17:03:25 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-08-26 04:55:53 -0400 |
commit | 491214e1f8129844289869bb6c231dc4542b11e3 (patch) | |
tree | 44b52d050a3d34fc7281ff304840ee782224a10c /arch/arm/mach-davinci/board-da850-evm.c | |
parent | e33ef5e3b368b31705d3024ee6a326f2a85a78fb (diff) |
davinci: Audio support for DA850/OMAP-L138 EVM
Define resources for McASP used on DA850/OMAP-L138 EVM, add platform
device defintion and Pin Mux configurations.
Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/board-da850-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index d98934629604..52bfe4cba25c 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c | |||
@@ -38,6 +38,28 @@ static struct davinci_uart_config da850_evm_uart_config __initdata = { | |||
38 | .enabled_uarts = 0x7, | 38 | .enabled_uarts = 0x7, |
39 | }; | 39 | }; |
40 | 40 | ||
41 | /* davinci da850 evm audio machine driver */ | ||
42 | static u8 da850_iis_serializer_direction[] = { | ||
43 | INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, | ||
44 | INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, | ||
45 | INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, TX_MODE, | ||
46 | RX_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, | ||
47 | }; | ||
48 | |||
49 | static struct snd_platform_data da850_evm_snd_data = { | ||
50 | .tx_dma_offset = 0x2000, | ||
51 | .rx_dma_offset = 0x2000, | ||
52 | .op_mode = DAVINCI_MCASP_IIS_MODE, | ||
53 | .num_serializer = ARRAY_SIZE(da850_iis_serializer_direction), | ||
54 | .tdm_slots = 2, | ||
55 | .serial_dir = da850_iis_serializer_direction, | ||
56 | .eventq_no = EVENTQ_1, | ||
57 | .version = MCASP_VERSION_2, | ||
58 | .txnumevt = 1, | ||
59 | .rxnumevt = 1, | ||
60 | }; | ||
61 | |||
62 | |||
41 | static __init void da850_evm_init(void) | 63 | static __init void da850_evm_init(void) |
42 | { | 64 | { |
43 | struct davinci_soc_info *soc_info = &davinci_soc_info; | 65 | struct davinci_soc_info *soc_info = &davinci_soc_info; |
@@ -86,6 +108,13 @@ static __init void da850_evm_init(void) | |||
86 | */ | 108 | */ |
87 | __raw_writel(0, IO_ADDRESS(DA8XX_UART1_BASE) + 0x30); | 109 | __raw_writel(0, IO_ADDRESS(DA8XX_UART1_BASE) + 0x30); |
88 | __raw_writel(0, IO_ADDRESS(DA8XX_UART0_BASE) + 0x30); | 110 | __raw_writel(0, IO_ADDRESS(DA8XX_UART0_BASE) + 0x30); |
111 | |||
112 | ret = da8xx_pinmux_setup(da850_mcasp_pins); | ||
113 | if (ret) | ||
114 | pr_warning("da850_evm_init: mcasp mux setup failed: %d\n", | ||
115 | ret); | ||
116 | |||
117 | da8xx_init_mcasp(0, &da850_evm_snd_data); | ||
89 | } | 118 | } |
90 | 119 | ||
91 | #ifdef CONFIG_SERIAL_8250_CONSOLE | 120 | #ifdef CONFIG_SERIAL_8250_CONSOLE |