diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2011-03-10 21:05:49 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-03-10 21:05:49 -0500 |
commit | 4dbe8460e4c0ec7a242b6ac657be271ed86972c6 (patch) | |
tree | 5057ab14e6f164944e7566ebee3fd718e519c584 | |
parent | f4612798a1ca33e4c9b5b9152f4b9b3b23a2da58 (diff) | |
parent | 1d017fee97da8e291f521537c49a324ad3becd61 (diff) |
Merge branch 'next-s5p' into for-next
-rw-r--r-- | arch/arm/mach-s5pv210/mach-aquila.c | 52 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-goni.c | 103 |
2 files changed, 76 insertions, 79 deletions
diff --git a/arch/arm/mach-s5pv210/mach-aquila.c b/arch/arm/mach-s5pv210/mach-aquila.c index 557add4fc56c..e5acb36a7a51 100644 --- a/arch/arm/mach-s5pv210/mach-aquila.c +++ b/arch/arm/mach-s5pv210/mach-aquila.c | |||
@@ -296,13 +296,11 @@ static struct regulator_init_data aquila_ldo17_data = { | |||
296 | }; | 296 | }; |
297 | 297 | ||
298 | /* BUCK */ | 298 | /* BUCK */ |
299 | static struct regulator_consumer_supply buck1_consumer[] = { | 299 | static struct regulator_consumer_supply buck1_consumer = |
300 | { .supply = "vddarm", }, | 300 | REGULATOR_SUPPLY("vddarm", NULL); |
301 | }; | ||
302 | 301 | ||
303 | static struct regulator_consumer_supply buck2_consumer[] = { | 302 | static struct regulator_consumer_supply buck2_consumer = |
304 | { .supply = "vddint", }, | 303 | REGULATOR_SUPPLY("vddint", NULL); |
305 | }; | ||
306 | 304 | ||
307 | static struct regulator_init_data aquila_buck1_data = { | 305 | static struct regulator_init_data aquila_buck1_data = { |
308 | .constraints = { | 306 | .constraints = { |
@@ -313,8 +311,8 @@ static struct regulator_init_data aquila_buck1_data = { | |||
313 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | 311 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
314 | REGULATOR_CHANGE_STATUS, | 312 | REGULATOR_CHANGE_STATUS, |
315 | }, | 313 | }, |
316 | .num_consumer_supplies = ARRAY_SIZE(buck1_consumer), | 314 | .num_consumer_supplies = 1, |
317 | .consumer_supplies = buck1_consumer, | 315 | .consumer_supplies = &buck1_consumer, |
318 | }; | 316 | }; |
319 | 317 | ||
320 | static struct regulator_init_data aquila_buck2_data = { | 318 | static struct regulator_init_data aquila_buck2_data = { |
@@ -326,8 +324,8 @@ static struct regulator_init_data aquila_buck2_data = { | |||
326 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | 324 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
327 | REGULATOR_CHANGE_STATUS, | 325 | REGULATOR_CHANGE_STATUS, |
328 | }, | 326 | }, |
329 | .num_consumer_supplies = ARRAY_SIZE(buck2_consumer), | 327 | .num_consumer_supplies = 1, |
330 | .consumer_supplies = buck2_consumer, | 328 | .consumer_supplies = &buck2_consumer, |
331 | }; | 329 | }; |
332 | 330 | ||
333 | static struct regulator_init_data aquila_buck3_data = { | 331 | static struct regulator_init_data aquila_buck3_data = { |
@@ -391,26 +389,14 @@ static struct max8998_platform_data aquila_max8998_pdata = { | |||
391 | #endif | 389 | #endif |
392 | 390 | ||
393 | static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = { | 391 | static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = { |
394 | { | 392 | REGULATOR_SUPPLY("DBVDD", "5-001a"), |
395 | .dev_name = "5-001a", | 393 | REGULATOR_SUPPLY("AVDD2", "5-001a"), |
396 | .supply = "DBVDD", | 394 | REGULATOR_SUPPLY("CPVDD", "5-001a"), |
397 | }, { | ||
398 | .dev_name = "5-001a", | ||
399 | .supply = "AVDD2", | ||
400 | }, { | ||
401 | .dev_name = "5-001a", | ||
402 | .supply = "CPVDD", | ||
403 | }, | ||
404 | }; | 395 | }; |
405 | 396 | ||
406 | static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = { | 397 | static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = { |
407 | { | 398 | REGULATOR_SUPPLY("SPKVDD1", "5-001a"), |
408 | .dev_name = "5-001a", | 399 | REGULATOR_SUPPLY("SPKVDD2", "5-001a"), |
409 | .supply = "SPKVDD1", | ||
410 | }, { | ||
411 | .dev_name = "5-001a", | ||
412 | .supply = "SPKVDD2", | ||
413 | }, | ||
414 | }; | 400 | }; |
415 | 401 | ||
416 | static struct regulator_init_data wm8994_fixed_voltage0_init_data = { | 402 | static struct regulator_init_data wm8994_fixed_voltage0_init_data = { |
@@ -459,15 +445,11 @@ static struct platform_device wm8994_fixed_voltage1 = { | |||
459 | }, | 445 | }, |
460 | }; | 446 | }; |
461 | 447 | ||
462 | static struct regulator_consumer_supply wm8994_avdd1_supply = { | 448 | static struct regulator_consumer_supply wm8994_avdd1_supply = |
463 | .dev_name = "5-001a", | 449 | REGULATOR_SUPPLY("AVDD1", "5-001a"); |
464 | .supply = "AVDD1", | ||
465 | }; | ||
466 | 450 | ||
467 | static struct regulator_consumer_supply wm8994_dcvdd_supply = { | 451 | static struct regulator_consumer_supply wm8994_dcvdd_supply = |
468 | .dev_name = "5-001a", | 452 | REGULATOR_SUPPLY("DCVDD", "5-001a"); |
469 | .supply = "DCVDD", | ||
470 | }; | ||
471 | 453 | ||
472 | static struct regulator_init_data wm8994_ldo1_data = { | 454 | static struct regulator_init_data wm8994_ldo1_data = { |
473 | .constraints = { | 455 | .constraints = { |
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c index 056f5c769b0a..a431742884cd 100644 --- a/arch/arm/mach-s5pv210/mach-goni.c +++ b/arch/arm/mach-s5pv210/mach-goni.c | |||
@@ -108,6 +108,8 @@ static struct s3c_fb_pd_win goni_fb_win0 = { | |||
108 | }, | 108 | }, |
109 | .max_bpp = 32, | 109 | .max_bpp = 32, |
110 | .default_bpp = 16, | 110 | .default_bpp = 16, |
111 | .virtual_x = 480, | ||
112 | .virtual_y = 2 * 800, | ||
111 | }; | 113 | }; |
112 | 114 | ||
113 | static struct s3c_fb_platdata goni_lcd_pdata __initdata = { | 115 | static struct s3c_fb_platdata goni_lcd_pdata __initdata = { |
@@ -269,10 +271,30 @@ static void __init goni_tsp_init(void) | |||
269 | /* MAX8998 regulators */ | 271 | /* MAX8998 regulators */ |
270 | #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE) | 272 | #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE) |
271 | 273 | ||
274 | static struct regulator_consumer_supply goni_ldo3_consumers[] = { | ||
275 | REGULATOR_SUPPLY("vusb_a", "s3c-hsotg"), | ||
276 | }; | ||
277 | |||
272 | static struct regulator_consumer_supply goni_ldo5_consumers[] = { | 278 | static struct regulator_consumer_supply goni_ldo5_consumers[] = { |
273 | REGULATOR_SUPPLY("vmmc", "s3c-sdhci.0"), | 279 | REGULATOR_SUPPLY("vmmc", "s3c-sdhci.0"), |
274 | }; | 280 | }; |
275 | 281 | ||
282 | static struct regulator_consumer_supply goni_ldo8_consumers[] = { | ||
283 | REGULATOR_SUPPLY("vusb_d", "s3c-hsotg"), | ||
284 | }; | ||
285 | |||
286 | static struct regulator_consumer_supply goni_ldo11_consumers[] = { | ||
287 | REGULATOR_SUPPLY("vddio", "0-0030"), /* "CAM_IO_2.8V" */ | ||
288 | }; | ||
289 | |||
290 | static struct regulator_consumer_supply goni_ldo13_consumers[] = { | ||
291 | REGULATOR_SUPPLY("vdda", "0-0030"), /* "CAM_A_2.8V" */ | ||
292 | }; | ||
293 | |||
294 | static struct regulator_consumer_supply goni_ldo14_consumers[] = { | ||
295 | REGULATOR_SUPPLY("vdd_core", "0-0030"), /* "CAM_CIF_1.8V" */ | ||
296 | }; | ||
297 | |||
276 | static struct regulator_init_data goni_ldo2_data = { | 298 | static struct regulator_init_data goni_ldo2_data = { |
277 | .constraints = { | 299 | .constraints = { |
278 | .name = "VALIVE_1.1V", | 300 | .name = "VALIVE_1.1V", |
@@ -292,8 +314,10 @@ static struct regulator_init_data goni_ldo3_data = { | |||
292 | .min_uV = 1100000, | 314 | .min_uV = 1100000, |
293 | .max_uV = 1100000, | 315 | .max_uV = 1100000, |
294 | .apply_uV = 1, | 316 | .apply_uV = 1, |
295 | .always_on = 1, | 317 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
296 | }, | 318 | }, |
319 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo3_consumers), | ||
320 | .consumer_supplies = goni_ldo3_consumers, | ||
297 | }; | 321 | }; |
298 | 322 | ||
299 | static struct regulator_init_data goni_ldo4_data = { | 323 | static struct regulator_init_data goni_ldo4_data = { |
@@ -311,6 +335,7 @@ static struct regulator_init_data goni_ldo5_data = { | |||
311 | .min_uV = 2800000, | 335 | .min_uV = 2800000, |
312 | .max_uV = 2800000, | 336 | .max_uV = 2800000, |
313 | .apply_uV = 1, | 337 | .apply_uV = 1, |
338 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | ||
314 | }, | 339 | }, |
315 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo5_consumers), | 340 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo5_consumers), |
316 | .consumer_supplies = goni_ldo5_consumers, | 341 | .consumer_supplies = goni_ldo5_consumers, |
@@ -341,8 +366,10 @@ static struct regulator_init_data goni_ldo8_data = { | |||
341 | .min_uV = 3300000, | 366 | .min_uV = 3300000, |
342 | .max_uV = 3300000, | 367 | .max_uV = 3300000, |
343 | .apply_uV = 1, | 368 | .apply_uV = 1, |
344 | .always_on = 1, | 369 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
345 | }, | 370 | }, |
371 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo8_consumers), | ||
372 | .consumer_supplies = goni_ldo8_consumers, | ||
346 | }; | 373 | }; |
347 | 374 | ||
348 | static struct regulator_init_data goni_ldo9_data = { | 375 | static struct regulator_init_data goni_ldo9_data = { |
@@ -351,7 +378,6 @@ static struct regulator_init_data goni_ldo9_data = { | |||
351 | .min_uV = 2800000, | 378 | .min_uV = 2800000, |
352 | .max_uV = 2800000, | 379 | .max_uV = 2800000, |
353 | .apply_uV = 1, | 380 | .apply_uV = 1, |
354 | .always_on = 1, | ||
355 | }, | 381 | }, |
356 | }; | 382 | }; |
357 | 383 | ||
@@ -371,8 +397,10 @@ static struct regulator_init_data goni_ldo11_data = { | |||
371 | .min_uV = 2800000, | 397 | .min_uV = 2800000, |
372 | .max_uV = 2800000, | 398 | .max_uV = 2800000, |
373 | .apply_uV = 1, | 399 | .apply_uV = 1, |
374 | .always_on = 1, | 400 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
375 | }, | 401 | }, |
402 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo11_consumers), | ||
403 | .consumer_supplies = goni_ldo11_consumers, | ||
376 | }; | 404 | }; |
377 | 405 | ||
378 | static struct regulator_init_data goni_ldo12_data = { | 406 | static struct regulator_init_data goni_ldo12_data = { |
@@ -381,7 +409,6 @@ static struct regulator_init_data goni_ldo12_data = { | |||
381 | .min_uV = 1200000, | 409 | .min_uV = 1200000, |
382 | .max_uV = 1200000, | 410 | .max_uV = 1200000, |
383 | .apply_uV = 1, | 411 | .apply_uV = 1, |
384 | .always_on = 1, | ||
385 | }, | 412 | }, |
386 | }; | 413 | }; |
387 | 414 | ||
@@ -391,8 +418,10 @@ static struct regulator_init_data goni_ldo13_data = { | |||
391 | .min_uV = 2800000, | 418 | .min_uV = 2800000, |
392 | .max_uV = 2800000, | 419 | .max_uV = 2800000, |
393 | .apply_uV = 1, | 420 | .apply_uV = 1, |
394 | .always_on = 1, | 421 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
395 | }, | 422 | }, |
423 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo13_consumers), | ||
424 | .consumer_supplies = goni_ldo13_consumers, | ||
396 | }; | 425 | }; |
397 | 426 | ||
398 | static struct regulator_init_data goni_ldo14_data = { | 427 | static struct regulator_init_data goni_ldo14_data = { |
@@ -401,8 +430,10 @@ static struct regulator_init_data goni_ldo14_data = { | |||
401 | .min_uV = 1800000, | 430 | .min_uV = 1800000, |
402 | .max_uV = 1800000, | 431 | .max_uV = 1800000, |
403 | .apply_uV = 1, | 432 | .apply_uV = 1, |
404 | .always_on = 1, | 433 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
405 | }, | 434 | }, |
435 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo14_consumers), | ||
436 | .consumer_supplies = goni_ldo14_consumers, | ||
406 | }; | 437 | }; |
407 | 438 | ||
408 | static struct regulator_init_data goni_ldo15_data = { | 439 | static struct regulator_init_data goni_ldo15_data = { |
@@ -411,7 +442,6 @@ static struct regulator_init_data goni_ldo15_data = { | |||
411 | .min_uV = 3300000, | 442 | .min_uV = 3300000, |
412 | .max_uV = 3300000, | 443 | .max_uV = 3300000, |
413 | .apply_uV = 1, | 444 | .apply_uV = 1, |
414 | .always_on = 1, | ||
415 | }, | 445 | }, |
416 | }; | 446 | }; |
417 | 447 | ||
@@ -421,7 +451,6 @@ static struct regulator_init_data goni_ldo16_data = { | |||
421 | .min_uV = 1800000, | 451 | .min_uV = 1800000, |
422 | .max_uV = 1800000, | 452 | .max_uV = 1800000, |
423 | .apply_uV = 1, | 453 | .apply_uV = 1, |
424 | .always_on = 1, | ||
425 | }, | 454 | }, |
426 | }; | 455 | }; |
427 | 456 | ||
@@ -436,13 +465,11 @@ static struct regulator_init_data goni_ldo17_data = { | |||
436 | }; | 465 | }; |
437 | 466 | ||
438 | /* BUCK */ | 467 | /* BUCK */ |
439 | static struct regulator_consumer_supply buck1_consumer[] = { | 468 | static struct regulator_consumer_supply buck1_consumer = |
440 | { .supply = "vddarm", }, | 469 | REGULATOR_SUPPLY("vddarm", NULL); |
441 | }; | ||
442 | 470 | ||
443 | static struct regulator_consumer_supply buck2_consumer[] = { | 471 | static struct regulator_consumer_supply buck2_consumer = |
444 | { .supply = "vddint", }, | 472 | REGULATOR_SUPPLY("vddint", NULL); |
445 | }; | ||
446 | 473 | ||
447 | static struct regulator_init_data goni_buck1_data = { | 474 | static struct regulator_init_data goni_buck1_data = { |
448 | .constraints = { | 475 | .constraints = { |
@@ -453,8 +480,8 @@ static struct regulator_init_data goni_buck1_data = { | |||
453 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | 480 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
454 | REGULATOR_CHANGE_STATUS, | 481 | REGULATOR_CHANGE_STATUS, |
455 | }, | 482 | }, |
456 | .num_consumer_supplies = ARRAY_SIZE(buck1_consumer), | 483 | .num_consumer_supplies = 1, |
457 | .consumer_supplies = buck1_consumer, | 484 | .consumer_supplies = &buck1_consumer, |
458 | }; | 485 | }; |
459 | 486 | ||
460 | static struct regulator_init_data goni_buck2_data = { | 487 | static struct regulator_init_data goni_buck2_data = { |
@@ -466,8 +493,8 @@ static struct regulator_init_data goni_buck2_data = { | |||
466 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | 493 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
467 | REGULATOR_CHANGE_STATUS, | 494 | REGULATOR_CHANGE_STATUS, |
468 | }, | 495 | }, |
469 | .num_consumer_supplies = ARRAY_SIZE(buck2_consumer), | 496 | .num_consumer_supplies = 1, |
470 | .consumer_supplies = buck2_consumer, | 497 | .consumer_supplies = &buck2_consumer, |
471 | }; | 498 | }; |
472 | 499 | ||
473 | static struct regulator_init_data goni_buck3_data = { | 500 | static struct regulator_init_data goni_buck3_data = { |
@@ -531,26 +558,14 @@ static struct max8998_platform_data goni_max8998_pdata = { | |||
531 | #endif | 558 | #endif |
532 | 559 | ||
533 | static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = { | 560 | static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = { |
534 | { | 561 | REGULATOR_SUPPLY("DBVDD", "5-001a"), |
535 | .dev_name = "5-001a", | 562 | REGULATOR_SUPPLY("AVDD2", "5-001a"), |
536 | .supply = "DBVDD", | 563 | REGULATOR_SUPPLY("CPVDD", "5-001a"), |
537 | }, { | ||
538 | .dev_name = "5-001a", | ||
539 | .supply = "AVDD2", | ||
540 | }, { | ||
541 | .dev_name = "5-001a", | ||
542 | .supply = "CPVDD", | ||
543 | }, | ||
544 | }; | 564 | }; |
545 | 565 | ||
546 | static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = { | 566 | static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = { |
547 | { | 567 | REGULATOR_SUPPLY("SPKVDD1", "5-001a"), |
548 | .dev_name = "5-001a", | 568 | REGULATOR_SUPPLY("SPKVDD2", "5-001a"), |
549 | .supply = "SPKVDD1", | ||
550 | }, { | ||
551 | .dev_name = "5-001a", | ||
552 | .supply = "SPKVDD2", | ||
553 | }, | ||
554 | }; | 569 | }; |
555 | 570 | ||
556 | static struct regulator_init_data wm8994_fixed_voltage0_init_data = { | 571 | static struct regulator_init_data wm8994_fixed_voltage0_init_data = { |
@@ -599,15 +614,11 @@ static struct platform_device wm8994_fixed_voltage1 = { | |||
599 | }, | 614 | }, |
600 | }; | 615 | }; |
601 | 616 | ||
602 | static struct regulator_consumer_supply wm8994_avdd1_supply = { | 617 | static struct regulator_consumer_supply wm8994_avdd1_supply = |
603 | .dev_name = "5-001a", | 618 | REGULATOR_SUPPLY("AVDD1", "5-001a"); |
604 | .supply = "AVDD1", | ||
605 | }; | ||
606 | 619 | ||
607 | static struct regulator_consumer_supply wm8994_dcvdd_supply = { | 620 | static struct regulator_consumer_supply wm8994_dcvdd_supply = |
608 | .dev_name = "5-001a", | 621 | REGULATOR_SUPPLY("DCVDD", "5-001a"); |
609 | .supply = "DCVDD", | ||
610 | }; | ||
611 | 622 | ||
612 | static struct regulator_init_data wm8994_ldo1_data = { | 623 | static struct regulator_init_data wm8994_ldo1_data = { |
613 | .constraints = { | 624 | .constraints = { |
@@ -794,6 +805,7 @@ static struct platform_device *goni_devices[] __initdata = { | |||
794 | &goni_i2c_gpio5, | 805 | &goni_i2c_gpio5, |
795 | &mmc2_fixed_voltage, | 806 | &mmc2_fixed_voltage, |
796 | &goni_device_gpiokeys, | 807 | &goni_device_gpiokeys, |
808 | &s3c_device_i2c0, | ||
797 | &s5p_device_fimc0, | 809 | &s5p_device_fimc0, |
798 | &s5p_device_fimc1, | 810 | &s5p_device_fimc1, |
799 | &s5p_device_fimc2, | 811 | &s5p_device_fimc2, |
@@ -830,6 +842,9 @@ static void __init goni_machine_init(void) | |||
830 | /* Radio: call before I2C 1 registeration */ | 842 | /* Radio: call before I2C 1 registeration */ |
831 | goni_radio_init(); | 843 | goni_radio_init(); |
832 | 844 | ||
845 | /* I2C0 */ | ||
846 | s3c_i2c0_set_platdata(NULL); | ||
847 | |||
833 | /* I2C1 */ | 848 | /* I2C1 */ |
834 | s3c_i2c1_set_platdata(NULL); | 849 | s3c_i2c1_set_platdata(NULL); |
835 | i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); | 850 | i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); |