diff options
author | Miguel Aguilar <miguel.aguilar@ridgerun.com> | 2009-09-02 17:33:29 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-11-25 13:21:17 -0500 |
commit | e9ab3214a8fc546d62e22064caa559b912620106 (patch) | |
tree | 2695aa397b0bbedd08f151a0b9488b88dd49a823 /arch/arm/mach-davinci/board-dm365-evm.c | |
parent | ed16067205d79aef6ab885a662380fd1dad3ff6a (diff) |
Davinci: DM365: Add platform device for McBSP
1) Registers the platform device for McBSP on dm365.
2) Add platform data to DM365 EVM board file.
3) Set i2c address for audio codec at DM365 EVM board file.
Signed-off-by: Miguel Aguilar <miguel.aguilar@ridgerun.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/board-dm365-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-dm365-evm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/board-dm365-evm.c b/arch/arm/mach-davinci/board-dm365-evm.c index 52dd8046b305..a5ed178a9d43 100644 --- a/arch/arm/mach-davinci/board-dm365-evm.c +++ b/arch/arm/mach-davinci/board-dm365-evm.c | |||
@@ -176,11 +176,16 @@ static struct at24_platform_data eeprom_info = { | |||
176 | .context = (void *)0x7f00, | 176 | .context = (void *)0x7f00, |
177 | }; | 177 | }; |
178 | 178 | ||
179 | static struct snd_platform_data dm365_evm_snd_data; | ||
180 | |||
179 | static struct i2c_board_info i2c_info[] = { | 181 | static struct i2c_board_info i2c_info[] = { |
180 | { | 182 | { |
181 | I2C_BOARD_INFO("24c256", 0x50), | 183 | I2C_BOARD_INFO("24c256", 0x50), |
182 | .platform_data = &eeprom_info, | 184 | .platform_data = &eeprom_info, |
183 | }, | 185 | }, |
186 | { | ||
187 | I2C_BOARD_INFO("tlv320aic3x", 0x18), | ||
188 | }, | ||
184 | }; | 189 | }; |
185 | 190 | ||
186 | static struct davinci_i2c_platform_data i2c_pdata = { | 191 | static struct davinci_i2c_platform_data i2c_pdata = { |
@@ -472,6 +477,8 @@ static __init void dm365_evm_init(void) | |||
472 | 477 | ||
473 | /* maybe setup mmc1/etc ... _after_ mmc0 */ | 478 | /* maybe setup mmc1/etc ... _after_ mmc0 */ |
474 | evm_init_cpld(); | 479 | evm_init_cpld(); |
480 | |||
481 | dm365_init_asp(&dm365_evm_snd_data); | ||
475 | } | 482 | } |
476 | 483 | ||
477 | static __init void dm365_evm_irq_init(void) | 484 | static __init void dm365_evm_irq_init(void) |