diff options
author | Mark Jackson <mpfj@mimc.co.uk> | 2009-06-03 06:16:38 -0400 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2009-06-03 09:10:04 -0400 |
commit | c878b7d60418a45c36d99c2dc876ebb76035d404 (patch) | |
tree | e62243424e3911f9f653522b1726c2c42dfb6a2e | |
parent | c076b9937f4912ffc09b30e155fe5246f002f21a (diff) |
Fix MIMC200 board LCD init
This patch updates the LCD init code for the MIMC200 board.
V2 fixes a .yres typo and corrects an incorrect setup value
in the call to at32_add_device_lcdc()
Without this patch, the lcd setup is wrong and won't display images
correctly (if at all !!)
Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
-rw-r--r-- | arch/avr32/boards/mimc200/setup.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/arch/avr32/boards/mimc200/setup.c b/arch/avr32/boards/mimc200/setup.c index c1b2175b4fea..523d8e183bef 100644 --- a/arch/avr32/boards/mimc200/setup.c +++ b/arch/avr32/boards/mimc200/setup.c | |||
@@ -43,16 +43,16 @@ unsigned long at32_board_osc_rates[3] = { | |||
43 | /* Initialized by bootloader-specific startup code. */ | 43 | /* Initialized by bootloader-specific startup code. */ |
44 | struct tag *bootloader_tags __initdata; | 44 | struct tag *bootloader_tags __initdata; |
45 | 45 | ||
46 | static struct fb_videomode __initdata tx14d14_modes[] = { | 46 | static struct fb_videomode __initdata pt0434827_modes[] = { |
47 | { | 47 | { |
48 | .name = "640x480 @ 60", | 48 | .name = "480x272 @ 72", |
49 | .refresh = 60, | 49 | .refresh = 72, |
50 | .xres = 640, .yres = 480, | 50 | .xres = 480, .yres = 272, |
51 | .pixclock = KHZ2PICOS(11666), | 51 | .pixclock = KHZ2PICOS(10000), |
52 | 52 | ||
53 | .left_margin = 80, .right_margin = 1, | 53 | .left_margin = 1, .right_margin = 1, |
54 | .upper_margin = 13, .lower_margin = 2, | 54 | .upper_margin = 12, .lower_margin = 1, |
55 | .hsync_len = 64, .vsync_len = 1, | 55 | .hsync_len = 42, .vsync_len = 1, |
56 | 56 | ||
57 | .sync = 0, | 57 | .sync = 0, |
58 | .vmode = FB_VMODE_NONINTERLACED, | 58 | .vmode = FB_VMODE_NONINTERLACED, |
@@ -60,14 +60,14 @@ static struct fb_videomode __initdata tx14d14_modes[] = { | |||
60 | }; | 60 | }; |
61 | 61 | ||
62 | static struct fb_monspecs __initdata mimc200_default_monspecs = { | 62 | static struct fb_monspecs __initdata mimc200_default_monspecs = { |
63 | .manufacturer = "HIT", | 63 | .manufacturer = "PT", |
64 | .monitor = "TX14D14VM1BAB", | 64 | .monitor = "PT0434827-A401", |
65 | .modedb = tx14d14_modes, | 65 | .modedb = pt0434827_modes, |
66 | .modedb_len = ARRAY_SIZE(tx14d14_modes), | 66 | .modedb_len = ARRAY_SIZE(pt0434827_modes), |
67 | .hfmin = 14820, | 67 | .hfmin = 14820, |
68 | .hfmax = 22230, | 68 | .hfmax = 22230, |
69 | .vfmin = 60, | 69 | .vfmin = 60, |
70 | .vfmax = 73.3, | 70 | .vfmax = 85, |
71 | .dclkmax = 25200000, | 71 | .dclkmax = 25200000, |
72 | }; | 72 | }; |
73 | 73 | ||
@@ -228,7 +228,8 @@ static int __init mimc200_init(void) | |||
228 | i2c_register_board_info(0, i2c_info, ARRAY_SIZE(i2c_info)); | 228 | i2c_register_board_info(0, i2c_info, ARRAY_SIZE(i2c_info)); |
229 | 229 | ||
230 | at32_add_device_lcdc(0, &mimc200_lcdc_data, | 230 | at32_add_device_lcdc(0, &mimc200_lcdc_data, |
231 | fbmem_start, fbmem_size, 1); | 231 | fbmem_start, fbmem_size, |
232 | ATMEL_LCDC_CONTROL | ATMEL_LCDC_ALT_CONTROL | ATMEL_LCDC_ALT_24B_DATA); | ||
232 | 233 | ||
233 | return 0; | 234 | return 0; |
234 | } | 235 | } |