aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/board-dm646x-evm.c
diff options
context:
space:
mode:
authorChaithrika U S <chaithrika@ti.com>2009-06-05 06:28:08 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-08-26 03:57:00 -0400
commit25acf553aeed86f93f2cf39227b59fc6eb3e8c78 (patch)
tree39ad69bf9d160bac7e2d890fc1b4b0f82e8bcb85 /arch/arm/mach-davinci/board-dm646x-evm.c
parent7a36071e7954836ba437987e5ca4ced174462b28 (diff)
davinci: ASoC: Add the platform devices for ASP
1) Registers the platform devices for ASP on dm355, dm644x and dm646x so that the machine driver can probe to get ASP related platform data. 2) Move towards definition of the asp clocks using physical name(for dm355 and dm644x) 3) Add platform data to board specific files. Signed-off-by: Naresh Medisetty <naresh@ti.com> 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-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;