diff options
author | Krzysztof Helt <krzysztof.h1@wp.pl> | 2007-10-16 04:28:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:16 -0400 |
commit | 1f4115376c488d3bb3490259ae5b2c3b035760a5 (patch) | |
tree | 26d93492e72aed892d1d752ce5082508fd2bd703 /arch/arm/mach-s3c2410/mach-bast.c | |
parent | 09fe75f6f934597f765748342ca6fb378ee7ecdb (diff) |
s3c2410fb: add margin fields to s3c2410fb_display
This patch adds margins fields to the s3c2410fb_display
structure. It also sets display type and horizontal
margins in all platform files that use the s3c2410fb
driver.
Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm/mach-s3c2410/mach-bast.c')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-bast.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/mach-bast.c b/arch/arm/mach-s3c2410/mach-bast.c index be50201809a1..1b4f9f922c8a 100644 --- a/arch/arm/mach-s3c2410/mach-bast.c +++ b/arch/arm/mach-s3c2410/mach-bast.c | |||
@@ -469,10 +469,13 @@ static struct platform_device bast_device_axpp = { | |||
469 | 469 | ||
470 | static struct s3c2410fb_display __initdata bast_lcd_info[] = { | 470 | static struct s3c2410fb_display __initdata bast_lcd_info[] = { |
471 | { | 471 | { |
472 | .type = S3C2410_LCDCON1_TFT, | ||
472 | .width = 640, | 473 | .width = 640, |
473 | .height = 480, | 474 | .height = 480, |
474 | .xres = 320, | 475 | .xres = 320, |
475 | .yres = 240, | 476 | .yres = 240, |
477 | .left_margin = 40, | ||
478 | .right_margin = 20, | ||
476 | 479 | ||
477 | .bpp = 4, | 480 | .bpp = 4, |
478 | 481 | ||
@@ -485,12 +488,15 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { | |||
485 | } | 488 | } |
486 | }, | 489 | }, |
487 | { | 490 | { |
491 | .type = S3C2410_LCDCON1_TFT, | ||
488 | .width = 640, | 492 | .width = 640, |
489 | .height = 480, | 493 | .height = 480, |
490 | 494 | ||
491 | .xres = 640, | 495 | .xres = 640, |
492 | .yres = 480, | 496 | .yres = 480, |
493 | .bpp = 4, | 497 | .bpp = 4, |
498 | .left_margin = 40, | ||
499 | .right_margin = 20, | ||
494 | 500 | ||
495 | .regs = { | 501 | .regs = { |
496 | .lcdcon1 = 0x00000176, | 502 | .lcdcon1 = 0x00000176, |
@@ -501,12 +507,15 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { | |||
501 | } | 507 | } |
502 | }, | 508 | }, |
503 | { | 509 | { |
510 | .type = S3C2410_LCDCON1_TFT, | ||
504 | .width = 640, | 511 | .width = 640, |
505 | .height = 480, | 512 | .height = 480, |
506 | 513 | ||
507 | .xres = 800, | 514 | .xres = 800, |
508 | .yres = 600, | 515 | .yres = 600, |
509 | .bpp = 4, | 516 | .bpp = 4, |
517 | .left_margin = 40, | ||
518 | .right_margin = 20, | ||
510 | 519 | ||
511 | .regs = { | 520 | .regs = { |
512 | .lcdcon1 = 0x00000176, | 521 | .lcdcon1 = 0x00000176, |
@@ -517,12 +526,15 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { | |||
517 | } | 526 | } |
518 | }, | 527 | }, |
519 | { | 528 | { |
529 | .type = S3C2410_LCDCON1_TFT, | ||
520 | .width = 640, | 530 | .width = 640, |
521 | .height = 480, | 531 | .height = 480, |
522 | 532 | ||
523 | .xres = 320, | 533 | .xres = 320, |
524 | .yres = 240, | 534 | .yres = 240, |
525 | .bpp = 8, | 535 | .bpp = 8, |
536 | .left_margin = 40, | ||
537 | .right_margin = 20, | ||
526 | 538 | ||
527 | .regs = { | 539 | .regs = { |
528 | .lcdcon1 = 0x00000176, | 540 | .lcdcon1 = 0x00000176, |
@@ -533,12 +545,15 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { | |||
533 | } | 545 | } |
534 | }, | 546 | }, |
535 | { | 547 | { |
548 | .type = S3C2410_LCDCON1_TFT, | ||
536 | .width = 640, | 549 | .width = 640, |
537 | .height = 480, | 550 | .height = 480, |
538 | 551 | ||
539 | .xres = 640, | 552 | .xres = 640, |
540 | .yres = 480, | 553 | .yres = 480, |
541 | .bpp = 8, | 554 | .bpp = 8, |
555 | .left_margin = 40, | ||
556 | .right_margin = 20, | ||
542 | 557 | ||
543 | .regs = { | 558 | .regs = { |
544 | .lcdcon1 = 0x00000176, | 559 | .lcdcon1 = 0x00000176, |
@@ -549,12 +564,15 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { | |||
549 | } | 564 | } |
550 | }, | 565 | }, |
551 | { | 566 | { |
567 | .type = S3C2410_LCDCON1_TFT, | ||
552 | .width = 640, | 568 | .width = 640, |
553 | .height = 480, | 569 | .height = 480, |
554 | 570 | ||
555 | .xres = 800, | 571 | .xres = 800, |
556 | .yres = 600, | 572 | .yres = 600, |
557 | .bpp = 8, | 573 | .bpp = 8, |
574 | .left_margin = 40, | ||
575 | .right_margin = 20, | ||
558 | 576 | ||
559 | .regs = { | 577 | .regs = { |
560 | .lcdcon1 = 0x00000176, | 578 | .lcdcon1 = 0x00000176, |
@@ -565,12 +583,15 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { | |||
565 | } | 583 | } |
566 | }, | 584 | }, |
567 | { | 585 | { |
586 | .type = S3C2410_LCDCON1_TFT, | ||
568 | .width = 640, | 587 | .width = 640, |
569 | .height = 480, | 588 | .height = 480, |
570 | 589 | ||
571 | .xres = 320, | 590 | .xres = 320, |
572 | .yres = 240, | 591 | .yres = 240, |
573 | .bpp = 16, | 592 | .bpp = 16, |
593 | .left_margin = 40, | ||
594 | .right_margin = 20, | ||
574 | 595 | ||
575 | .regs = { | 596 | .regs = { |
576 | .lcdcon1 = 0x00000176, | 597 | .lcdcon1 = 0x00000176, |
@@ -581,12 +602,15 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { | |||
581 | } | 602 | } |
582 | }, | 603 | }, |
583 | { | 604 | { |
605 | .type = S3C2410_LCDCON1_TFT, | ||
584 | .width = 640, | 606 | .width = 640, |
585 | .height = 480, | 607 | .height = 480, |
586 | 608 | ||
587 | .xres = 640, | 609 | .xres = 640, |
588 | .yres = 480, | 610 | .yres = 480, |
589 | .bpp = 16, | 611 | .bpp = 16, |
612 | .left_margin = 40, | ||
613 | .right_margin = 20, | ||
590 | 614 | ||
591 | .regs = { | 615 | .regs = { |
592 | .lcdcon1 = 0x00000176, | 616 | .lcdcon1 = 0x00000176, |
@@ -597,12 +621,15 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { | |||
597 | } | 621 | } |
598 | }, | 622 | }, |
599 | { | 623 | { |
624 | .type = S3C2410_LCDCON1_TFT, | ||
600 | .width = 640, | 625 | .width = 640, |
601 | .height = 480, | 626 | .height = 480, |
602 | 627 | ||
603 | .xres = 800, | 628 | .xres = 800, |
604 | .yres = 600, | 629 | .yres = 600, |
605 | .bpp = 16, | 630 | .bpp = 16, |
631 | .left_margin = 40, | ||
632 | .right_margin = 20, | ||
606 | 633 | ||
607 | .regs = { | 634 | .regs = { |
608 | .lcdcon1 = 0x00000176, | 635 | .lcdcon1 = 0x00000176, |