aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/board-dm646x-evm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-davinci/board-dm646x-evm.c')
-rw-r--r--arch/arm/mach-davinci/board-dm646x-evm.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/board-dm646x-evm.c b/arch/arm/mach-davinci/board-dm646x-evm.c
index 8657e72debc1..0aa18df4110f 100644
--- a/arch/arm/mach-davinci/board-dm646x-evm.c
+++ b/arch/arm/mach-davinci/board-dm646x-evm.c
@@ -206,6 +206,37 @@ static struct at24_platform_data eeprom_info = {
206 .context = (void *)0x7f00, 206 .context = (void *)0x7f00,
207}; 207};
208 208
209static u8 dm646x_iis_serializer_direction[] = {
210 TX_MODE, RX_MODE, INACTIVE_MODE, INACTIVE_MODE,
211};
212
213static u8 dm646x_dit_serializer_direction[] = {
214 TX_MODE,
215};
216
217static struct snd_platform_data dm646x_evm_snd_data[] = {
218 {
219 .clk_name = "mcasp0",
220 .tx_dma_offset = 0x400,
221 .rx_dma_offset = 0x400,
222 .op_mode = DAVINCI_MCASP_IIS_MODE,
223 .num_serializer = ARRAY_SIZE(dm646x_iis_serializer_direction),
224 .tdm_slots = 2,
225 .serial_dir = dm646x_iis_serializer_direction,
226 .eventq_no = EVENTQ_0,
227 },
228 {
229 .clk_name = "mcasp1",
230 .tx_dma_offset = 0x400,
231 .rx_dma_offset = 0,
232 .op_mode = DAVINCI_MCASP_DIT_MODE,
233 .num_serializer = ARRAY_SIZE(dm646x_dit_serializer_direction),
234 .tdm_slots = 32,
235 .serial_dir = dm646x_dit_serializer_direction,
236 .eventq_no = EVENTQ_0,
237 },
238};
239
209static struct i2c_board_info __initdata i2c_info[] = { 240static struct i2c_board_info __initdata i2c_info[] = {
210 { 241 {
211 I2C_BOARD_INFO("24c256", 0x50), 242 I2C_BOARD_INFO("24c256", 0x50),
@@ -239,6 +270,8 @@ static __init void evm_init(void)
239 270
240 evm_init_i2c(); 271 evm_init_i2c();
241 davinci_serial_init(&uart_config); 272 davinci_serial_init(&uart_config);
273 dm646x_init_mcasp0(&dm646x_evm_snd_data[0]);
274 dm646x_init_mcasp1(&dm646x_evm_snd_data[1]);
242 275
243 soc_info->emac_pdata->phy_mask = DM646X_EVM_PHY_MASK; 276 soc_info->emac_pdata->phy_mask = DM646X_EVM_PHY_MASK;
244 soc_info->emac_pdata->mdio_max_freq = DM646X_EVM_MDIO_FREQUENCY; 277 soc_info->emac_pdata->mdio_max_freq = DM646X_EVM_MDIO_FREQUENCY;