aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarkko Nikula <jhnikula@gmail.com>2010-08-02 06:18:02 -0400
committerTony Lindgren <tony@atomide.com>2010-08-02 06:18:02 -0400
commit87581fd4a9c038dc18684b9336f2c59eee1710cc (patch)
tree270673dab583daba3a659923dc138623b90d93bf
parent000d534ed7adf976652921f0bdd1dae14484bce8 (diff)
omap: rx51: Add platform_data for tlv320aic3x with reset gpionumber
Proper operation of the tlv320aic3x audio codec requires that reset sequencing is done in pair with supply voltages when using the regulator framework. Add the codec reset gpio used in Nokia RX51 to tlv320aic3x data. Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/mach-omap2/board-rx51-peripherals.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c
index 3d95534215d0..e350f0bf8cdc 100644
--- a/arch/arm/mach-omap2/board-rx51-peripherals.c
+++ b/arch/arm/mach-omap2/board-rx51-peripherals.c
@@ -32,6 +32,8 @@
32#include <plat/onenand.h> 32#include <plat/onenand.h>
33#include <plat/gpmc-smc91x.h> 33#include <plat/gpmc-smc91x.h>
34 34
35#include <sound/tlv320aic3x.h>
36
35#include "mux.h" 37#include "mux.h"
36#include "hsmmc.h" 38#include "hsmmc.h"
37 39
@@ -707,6 +709,10 @@ static struct twl4030_platform_data rx51_twldata __initdata = {
707 .vio = &rx51_vio, 709 .vio = &rx51_vio,
708}; 710};
709 711
712static struct aic3x_pdata rx51_aic3x_data __initdata = {
713 .gpio_reset = 60,
714};
715
710static struct i2c_board_info __initdata rx51_peripherals_i2c_board_info_1[] = { 716static struct i2c_board_info __initdata rx51_peripherals_i2c_board_info_1[] = {
711 { 717 {
712 I2C_BOARD_INFO("twl5030", 0x48), 718 I2C_BOARD_INFO("twl5030", 0x48),
@@ -719,6 +725,7 @@ static struct i2c_board_info __initdata rx51_peripherals_i2c_board_info_1[] = {
719static struct i2c_board_info __initdata rx51_peripherals_i2c_board_info_2[] = { 725static struct i2c_board_info __initdata rx51_peripherals_i2c_board_info_2[] = {
720 { 726 {
721 I2C_BOARD_INFO("tlv320aic3x", 0x18), 727 I2C_BOARD_INFO("tlv320aic3x", 0x18),
728 .platform_data = &rx51_aic3x_data,
722 }, 729 },
723}; 730};
724 731