diff options
24 files changed, 492 insertions, 988 deletions
diff --git a/arch/arm/mach-omap1/mcbsp.c b/arch/arm/mach-omap1/mcbsp.c index d9af9811dedd..ab7395d84bc8 100644 --- a/arch/arm/mach-omap1/mcbsp.c +++ b/arch/arm/mach-omap1/mcbsp.c | |||
| @@ -38,7 +38,7 @@ static void omap1_mcbsp_request(unsigned int id) | |||
| 38 | * On 1510, 1610 and 1710, McBSP1 and McBSP3 | 38 | * On 1510, 1610 and 1710, McBSP1 and McBSP3 |
| 39 | * are DSP public peripherals. | 39 | * are DSP public peripherals. |
| 40 | */ | 40 | */ |
| 41 | if (id == OMAP_MCBSP1 || id == OMAP_MCBSP3) { | 41 | if (id == 0 || id == 2) { |
| 42 | if (dsp_use++ == 0) { | 42 | if (dsp_use++ == 0) { |
| 43 | api_clk = clk_get(NULL, "api_ck"); | 43 | api_clk = clk_get(NULL, "api_ck"); |
| 44 | dsp_clk = clk_get(NULL, "dsp_ck"); | 44 | dsp_clk = clk_get(NULL, "dsp_ck"); |
| @@ -59,7 +59,7 @@ static void omap1_mcbsp_request(unsigned int id) | |||
| 59 | 59 | ||
| 60 | static void omap1_mcbsp_free(unsigned int id) | 60 | static void omap1_mcbsp_free(unsigned int id) |
| 61 | { | 61 | { |
| 62 | if (id == OMAP_MCBSP1 || id == OMAP_MCBSP3) { | 62 | if (id == 0 || id == 2) { |
| 63 | if (--dsp_use == 0) { | 63 | if (--dsp_use == 0) { |
| 64 | if (!IS_ERR(api_clk)) { | 64 | if (!IS_ERR(api_clk)) { |
| 65 | clk_disable(api_clk); | 65 | clk_disable(api_clk); |
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index adbe82d72d4e..ff1466fbf5c5 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
| @@ -269,4 +269,4 @@ obj-$(CONFIG_ARCH_OMAP4) += hwspinlock.o | |||
| 269 | disp-$(CONFIG_OMAP2_DSS) := display.o | 269 | disp-$(CONFIG_OMAP2_DSS) := display.o |
| 270 | obj-y += $(disp-m) $(disp-y) | 270 | obj-y += $(disp-m) $(disp-y) |
| 271 | 271 | ||
| 272 | obj-y += common-board-devices.o | 272 | obj-y += common-board-devices.o twl-common.o |
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index 12fae21346cf..bd600cfb7f80 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
| @@ -231,22 +231,6 @@ static void __init omap_3430sdp_init_early(void) | |||
| 231 | omap2_init_common_devices(hyb18m512160af6_sdrc_params, NULL); | 231 | omap2_init_common_devices(hyb18m512160af6_sdrc_params, NULL); |
| 232 | } | 232 | } |
| 233 | 233 | ||
| 234 | static int sdp3430_batt_table[] = { | ||
| 235 | /* 0 C*/ | ||
| 236 | 30800, 29500, 28300, 27100, | ||
| 237 | 26000, 24900, 23900, 22900, 22000, 21100, 20300, 19400, 18700, 17900, | ||
| 238 | 17200, 16500, 15900, 15300, 14700, 14100, 13600, 13100, 12600, 12100, | ||
| 239 | 11600, 11200, 10800, 10400, 10000, 9630, 9280, 8950, 8620, 8310, | ||
| 240 | 8020, 7730, 7460, 7200, 6950, 6710, 6470, 6250, 6040, 5830, | ||
| 241 | 5640, 5450, 5260, 5090, 4920, 4760, 4600, 4450, 4310, 4170, | ||
| 242 | 4040, 3910, 3790, 3670, 3550 | ||
| 243 | }; | ||
| 244 | |||
| 245 | static struct twl4030_bci_platform_data sdp3430_bci_data = { | ||
| 246 | .battery_tmp_tbl = sdp3430_batt_table, | ||
| 247 | .tblsize = ARRAY_SIZE(sdp3430_batt_table), | ||
| 248 | }; | ||
| 249 | |||
| 250 | static struct omap2_hsmmc_info mmc[] = { | 234 | static struct omap2_hsmmc_info mmc[] = { |
| 251 | { | 235 | { |
| 252 | .mmc = 1, | 236 | .mmc = 1, |
| @@ -292,14 +276,6 @@ static struct twl4030_gpio_platform_data sdp3430_gpio_data = { | |||
| 292 | .setup = sdp3430_twl_gpio_setup, | 276 | .setup = sdp3430_twl_gpio_setup, |
| 293 | }; | 277 | }; |
| 294 | 278 | ||
| 295 | static struct twl4030_usb_data sdp3430_usb_data = { | ||
| 296 | .usb_mode = T2_USB_MODE_ULPI, | ||
| 297 | }; | ||
| 298 | |||
| 299 | static struct twl4030_madc_platform_data sdp3430_madc_data = { | ||
| 300 | .irq_line = 1, | ||
| 301 | }; | ||
| 302 | |||
| 303 | /* regulator consumer mappings */ | 279 | /* regulator consumer mappings */ |
| 304 | 280 | ||
| 305 | /* ads7846 on SPI */ | 281 | /* ads7846 on SPI */ |
| @@ -307,16 +283,6 @@ static struct regulator_consumer_supply sdp3430_vaux3_supplies[] = { | |||
| 307 | REGULATOR_SUPPLY("vcc", "spi1.0"), | 283 | REGULATOR_SUPPLY("vcc", "spi1.0"), |
| 308 | }; | 284 | }; |
| 309 | 285 | ||
| 310 | static struct regulator_consumer_supply sdp3430_vdda_dac_supplies[] = { | ||
| 311 | REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"), | ||
| 312 | }; | ||
| 313 | |||
| 314 | /* VPLL2 for digital video outputs */ | ||
| 315 | static struct regulator_consumer_supply sdp3430_vpll2_supplies[] = { | ||
| 316 | REGULATOR_SUPPLY("vdds_dsi", "omapdss"), | ||
| 317 | REGULATOR_SUPPLY("vdds_dsi", "omapdss_dsi1"), | ||
| 318 | }; | ||
| 319 | |||
| 320 | static struct regulator_consumer_supply sdp3430_vmmc1_supplies[] = { | 286 | static struct regulator_consumer_supply sdp3430_vmmc1_supplies[] = { |
| 321 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"), | 287 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"), |
| 322 | }; | 288 | }; |
| @@ -433,54 +399,10 @@ static struct regulator_init_data sdp3430_vsim = { | |||
| 433 | .consumer_supplies = sdp3430_vsim_supplies, | 399 | .consumer_supplies = sdp3430_vsim_supplies, |
| 434 | }; | 400 | }; |
| 435 | 401 | ||
| 436 | /* VDAC for DSS driving S-Video */ | ||
| 437 | static struct regulator_init_data sdp3430_vdac = { | ||
| 438 | .constraints = { | ||
| 439 | .min_uV = 1800000, | ||
| 440 | .max_uV = 1800000, | ||
| 441 | .apply_uV = true, | ||
| 442 | .valid_modes_mask = REGULATOR_MODE_NORMAL | ||
| 443 | | REGULATOR_MODE_STANDBY, | ||
| 444 | .valid_ops_mask = REGULATOR_CHANGE_MODE | ||
| 445 | | REGULATOR_CHANGE_STATUS, | ||
| 446 | }, | ||
| 447 | .num_consumer_supplies = ARRAY_SIZE(sdp3430_vdda_dac_supplies), | ||
| 448 | .consumer_supplies = sdp3430_vdda_dac_supplies, | ||
| 449 | }; | ||
| 450 | |||
| 451 | static struct regulator_init_data sdp3430_vpll2 = { | ||
| 452 | .constraints = { | ||
| 453 | .name = "VDVI", | ||
| 454 | .min_uV = 1800000, | ||
| 455 | .max_uV = 1800000, | ||
| 456 | .apply_uV = true, | ||
| 457 | .valid_modes_mask = REGULATOR_MODE_NORMAL | ||
| 458 | | REGULATOR_MODE_STANDBY, | ||
| 459 | .valid_ops_mask = REGULATOR_CHANGE_MODE | ||
| 460 | | REGULATOR_CHANGE_STATUS, | ||
| 461 | }, | ||
| 462 | .num_consumer_supplies = ARRAY_SIZE(sdp3430_vpll2_supplies), | ||
| 463 | .consumer_supplies = sdp3430_vpll2_supplies, | ||
| 464 | }; | ||
| 465 | |||
| 466 | static struct twl4030_codec_audio_data sdp3430_audio; | ||
| 467 | |||
| 468 | static struct twl4030_codec_data sdp3430_codec = { | ||
| 469 | .audio_mclk = 26000000, | ||
| 470 | .audio = &sdp3430_audio, | ||
| 471 | }; | ||
| 472 | |||
| 473 | static struct twl4030_platform_data sdp3430_twldata = { | 402 | static struct twl4030_platform_data sdp3430_twldata = { |
| 474 | .irq_base = TWL4030_IRQ_BASE, | ||
| 475 | .irq_end = TWL4030_IRQ_END, | ||
| 476 | |||
| 477 | /* platform_data for children goes here */ | 403 | /* platform_data for children goes here */ |
| 478 | .bci = &sdp3430_bci_data, | ||
| 479 | .gpio = &sdp3430_gpio_data, | 404 | .gpio = &sdp3430_gpio_data, |
| 480 | .madc = &sdp3430_madc_data, | ||
| 481 | .keypad = &sdp3430_kp_data, | 405 | .keypad = &sdp3430_kp_data, |
| 482 | .usb = &sdp3430_usb_data, | ||
| 483 | .codec = &sdp3430_codec, | ||
| 484 | 406 | ||
| 485 | .vaux1 = &sdp3430_vaux1, | 407 | .vaux1 = &sdp3430_vaux1, |
