diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2008-10-28 11:40:37 -0400 |
---|---|---|
committer | Eric Miao <eric.miao@marvell.com> | 2008-12-02 01:43:48 -0500 |
commit | 31c9b284ae49093fdd9d1e9a347e458c7ebc37a9 (patch) | |
tree | 4cc42cf74a0d24b40840ce7cfcff6f4a0ee86599 /arch/arm/mach-pxa/tosa.c | |
parent | 4aa89f973f515a9e456bcf23e448d5904d428d7d (diff) |
[ARM] pxa/tosa: support tc6393xb/tmiofb.
Add platform data necessary to support tmiofb on tosa.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch/arm/mach-pxa/tosa.c')
-rw-r--r-- | arch/arm/mach-pxa/tosa.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 224897a67d15..366a533b33a9 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c | |||
@@ -733,6 +733,43 @@ static void tosa_tc6393xb_teardown(struct platform_device *dev) | |||
733 | gpio_free(TOSA_GPIO_CARD_VCC_ON); | 733 | gpio_free(TOSA_GPIO_CARD_VCC_ON); |
734 | } | 734 | } |
735 | 735 | ||
736 | static struct fb_videomode tosa_tc6393xb_lcd_mode[] = { | ||
737 | { | ||
738 | .xres = 480, | ||
739 | .yres = 640, | ||
740 | .pixclock = 0x002cdf00,/* PLL divisor */ | ||
741 | .left_margin = 0x004c, | ||
742 | .right_margin = 0x005b, | ||
743 | .upper_margin = 0x0001, | ||
744 | .lower_margin = 0x000d, | ||
745 | .hsync_len = 0x0002, | ||
746 | .vsync_len = 0x0001, | ||
747 | .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, | ||
748 | .vmode = FB_VMODE_NONINTERLACED, | ||
749 | },{ | ||
750 | .xres = 240, | ||
751 | .yres = 320, | ||
752 | .pixclock = 0x00e7f203,/* PLL divisor */ | ||
753 | .left_margin = 0x0024, | ||
754 | .right_margin = 0x002f, | ||
755 | .upper_margin = 0x0001, | ||
756 | .lower_margin = 0x000d, | ||
757 | .hsync_len = 0x0002, | ||
758 | .vsync_len = 0x0001, | ||
759 | .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, | ||
760 | .vmode = FB_VMODE_NONINTERLACED, | ||
761 | } | ||
762 | }; | ||
763 | |||
764 | static struct tmio_fb_data tosa_tc6393xb_fb_config = { | ||
765 | .lcd_set_power = tc6393xb_lcd_set_power, | ||
766 | .lcd_mode = tc6393xb_lcd_mode, | ||
767 | .num_modes = ARRAY_SIZE(tosa_tc6393xb_lcd_mode), | ||
768 | .modes = &tosa_tc6393xb_lcd_mode[0], | ||
769 | .height = 82, | ||
770 | .width = 60, | ||
771 | }; | ||
772 | |||
736 | static struct tc6393xb_platform_data tosa_tc6393xb_data = { | 773 | static struct tc6393xb_platform_data tosa_tc6393xb_data = { |
737 | .scr_pll2cr = 0x0cc1, | 774 | .scr_pll2cr = 0x0cc1, |
738 | .scr_gper = 0x3300, | 775 | .scr_gper = 0x3300, |
@@ -748,6 +785,7 @@ static struct tc6393xb_platform_data tosa_tc6393xb_data = { | |||
748 | .resume = tosa_tc6393xb_resume, | 785 | .resume = tosa_tc6393xb_resume, |
749 | 786 | ||
750 | .nand_data = &tosa_tc6393xb_nand_config, | 787 | .nand_data = &tosa_tc6393xb_nand_config, |
788 | .fb_data = &tosa_tc6393xb_fb_config, | ||
751 | 789 | ||
752 | .resume_restore = 1, | 790 | .resume_restore = 1, |
753 | }; | 791 | }; |