aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-omap3touchbook.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3touchbook.c')
-rw-r--r--arch/arm/mach-omap2/board-omap3touchbook.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c
index 57e6ed34ebbc..717972c5ce3e 100644
--- a/arch/arm/mach-omap2/board-omap3touchbook.c
+++ b/arch/arm/mach-omap2/board-omap3touchbook.c
@@ -235,25 +235,9 @@ static struct regulator_init_data touchbook_vpll2 = {
235 .consumer_supplies = touchbook_vdvi_supply, 235 .consumer_supplies = touchbook_vdvi_supply,
236}; 236};
237 237
238static struct twl4030_usb_data touchbook_usb_data = {
239 .usb_mode = T2_USB_MODE_ULPI,
240};
241
242static struct twl4030_codec_audio_data touchbook_audio_data;
243
244static struct twl4030_codec_data touchbook_codec_data = {
245 .audio_mclk = 26000000,
246 .audio = &touchbook_audio_data,
247};
248
249static struct twl4030_platform_data touchbook_twldata = { 238static struct twl4030_platform_data touchbook_twldata = {
250 .irq_base = TWL4030_IRQ_BASE,
251 .irq_end = TWL4030_IRQ_END,
252
253 /* platform_data for children goes here */ 239 /* platform_data for children goes here */
254 .usb = &touchbook_usb_data,
255 .gpio = &touchbook_gpio_data, 240 .gpio = &touchbook_gpio_data,
256 .codec = &touchbook_codec_data,
257 .vmmc1 = &touchbook_vmmc1, 241 .vmmc1 = &touchbook_vmmc1,
258 .vsim = &touchbook_vsim, 242 .vsim = &touchbook_vsim,
259 .vdac = &touchbook_vdac, 243 .vdac = &touchbook_vdac,
@@ -269,8 +253,9 @@ static struct i2c_board_info __initdata touchBook_i2c_boardinfo[] = {
269static int __init omap3_touchbook_i2c_init(void) 253static int __init omap3_touchbook_i2c_init(void)
270{ 254{
271 /* Standard TouchBook bus */ 255 /* Standard TouchBook bus */
256 omap3_pmic_get_config(&touchbook_twldata,
257 TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_AUDIO, 0);
272 omap3_pmic_init("twl4030", &touchbook_twldata); 258 omap3_pmic_init("twl4030", &touchbook_twldata);
273
274 /* Additional TouchBook bus */ 259 /* Additional TouchBook bus */
275 omap_register_i2c_bus(3, 100, touchBook_i2c_boardinfo, 260 omap_register_i2c_bus(3, 100, touchBook_i2c_boardinfo,
276 ARRAY_SIZE(touchBook_i2c_boardinfo)); 261 ARRAY_SIZE(touchBook_i2c_boardinfo));