aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-omap3beagle.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2011-06-07 03:28:54 -0400
committerPeter Ujfalusi <peter.ujfalusi@ti.com>2011-07-04 11:43:38 -0400
commit827ed9aef2f13000d58616384ea6a22497e787b6 (patch)
treefd6d117feaa7ac9c9e6195224efff07f230e867a /arch/arm/mach-omap2/board-omap3beagle.c
parentb22f954bae35be115a10c6426dc070f7d652b32e (diff)
OMAP3: Move common twl configuration to twl-common
Reduce the amount of duplicated code by moving the common configuration for twl4030/5030/tpsxx to the twl-common file. Use the omap3_pmic_get_config function from board files to properly configure the PMIC with the common fields. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3beagle.c')
-rw-r--r--arch/arm/mach-omap2/board-omap3beagle.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
index 2d8dfb3213bf..ec61e9c460b2 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -380,25 +380,9 @@ static struct regulator_init_data beagle_vpll2 = {
380 .consumer_supplies = beagle_vdvi_supplies, 380 .consumer_supplies = beagle_vdvi_supplies,
381}; 381};
382 382
383static struct twl4030_usb_data beagle_usb_data = {
384 .usb_mode = T2_USB_MODE_ULPI,
385};
386
387static struct twl4030_codec_audio_data beagle_audio_data;
388
389static struct twl4030_codec_data beagle_codec_data = {
390 .audio_mclk = 26000000,
391 .audio = &beagle_audio_data,
392};
393
394static struct twl4030_platform_data beagle_twldata = { 383static struct twl4030_platform_data beagle_twldata = {
395 .irq_base = TWL4030_IRQ_BASE,
396 .irq_end = TWL4030_IRQ_END,
397
398 /* platform_data for children goes here */ 384 /* platform_data for children goes here */
399 .usb = &beagle_usb_data,
400 .gpio = &beagle_gpio_data, 385 .gpio = &beagle_gpio_data,
401 .codec = &beagle_codec_data,
402 .vmmc1 = &beagle_vmmc1, 386 .vmmc1 = &beagle_vmmc1,
403 .vsim = &beagle_vsim, 387 .vsim = &beagle_vsim,
404 .vdac = &beagle_vdac, 388 .vdac = &beagle_vdac,
@@ -413,6 +397,8 @@ static struct i2c_board_info __initdata beagle_i2c_eeprom[] = {
413 397
414static int __init omap3_beagle_i2c_init(void) 398static int __init omap3_beagle_i2c_init(void)
415{ 399{
400 omap3_pmic_get_config(&beagle_twldata,
401 TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_AUDIO, 0);
416 omap3_pmic_init("twl4030", &beagle_twldata); 402 omap3_pmic_init("twl4030", &beagle_twldata);
417 /* Bus 3 is attached to the DVI port where devices like the pico DLP 403 /* Bus 3 is attached to the DVI port where devices like the pico DLP
418 * projector don't work reliably with 400kHz */ 404 * projector don't work reliably with 400kHz */