diff options
Diffstat (limited to 'arch/arm/mach-pxa/mainstone.c')
-rw-r--r-- | arch/arm/mach-pxa/mainstone.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/arch/arm/mach-pxa/mainstone.c b/arch/arm/mach-pxa/mainstone.c index a7e9b96f258a..7ba0447d6fa3 100644 --- a/arch/arm/mach-pxa/mainstone.c +++ b/arch/arm/mach-pxa/mainstone.c | |||
@@ -279,7 +279,7 @@ static void mainstone_backlight_power(int on) | |||
279 | } | 279 | } |
280 | } | 280 | } |
281 | 281 | ||
282 | static struct pxafb_mach_info toshiba_ltm04c380k __initdata = { | 282 | static struct pxafb_mode_info toshiba_ltm04c380k_mode = { |
283 | .pixclock = 50000, | 283 | .pixclock = 50000, |
284 | .xres = 640, | 284 | .xres = 640, |
285 | .yres = 480, | 285 | .yres = 480, |
@@ -291,12 +291,9 @@ static struct pxafb_mach_info toshiba_ltm04c380k __initdata = { | |||
291 | .upper_margin = 0, | 291 | .upper_margin = 0, |
292 | .lower_margin = 0, | 292 | .lower_margin = 0, |
293 | .sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, | 293 | .sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, |
294 | .lccr0 = LCCR0_Act, | ||
295 | .lccr3 = LCCR3_PCP, | ||
296 | .pxafb_backlight_power = mainstone_backlight_power, | ||
297 | }; | 294 | }; |
298 | 295 | ||
299 | static struct pxafb_mach_info toshiba_ltm035a776c __initdata = { | 296 | static struct pxafb_mode_info toshiba_ltm035a776c_mode = { |
300 | .pixclock = 110000, | 297 | .pixclock = 110000, |
301 | .xres = 240, | 298 | .xres = 240, |
302 | .yres = 320, | 299 | .yres = 320, |
@@ -308,6 +305,10 @@ static struct pxafb_mach_info toshiba_ltm035a776c __initdata = { | |||
308 | .upper_margin = 1, | 305 | .upper_margin = 1, |
309 | .lower_margin = 10, | 306 | .lower_margin = 10, |
310 | .sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, | 307 | .sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, |
308 | }; | ||
309 | |||
310 | static struct pxafb_mach_info mainstone_pxafb_info = { | ||
311 | .num_modes = 1, | ||
311 | .lccr0 = LCCR0_Act, | 312 | .lccr0 = LCCR0_Act, |
312 | .lccr3 = LCCR3_PCP, | 313 | .lccr3 = LCCR3_PCP, |
313 | .pxafb_backlight_power = mainstone_backlight_power, | 314 | .pxafb_backlight_power = mainstone_backlight_power, |
@@ -448,9 +449,11 @@ static void __init mainstone_init(void) | |||
448 | /* reading Mainstone's "Virtual Configuration Register" | 449 | /* reading Mainstone's "Virtual Configuration Register" |
449 | might be handy to select LCD type here */ | 450 | might be handy to select LCD type here */ |
450 | if (0) | 451 | if (0) |
451 | set_pxa_fb_info(&toshiba_ltm04c380k); | 452 | mainstone_pxafb_info.modes = &toshiba_ltm04c380k_mode; |
452 | else | 453 | else |
453 | set_pxa_fb_info(&toshiba_ltm035a776c); | 454 | mainstone_pxafb_info.modes = &toshiba_ltm035a776c_mode; |
455 | |||
456 | set_pxa_fb_info(&mainstone_pxafb_info); | ||
454 | 457 | ||
455 | pxa_set_mci_info(&mainstone_mci_platform_data); | 458 | pxa_set_mci_info(&mainstone_mci_platform_data); |
456 | pxa_set_ficp_info(&mainstone_ficp_platform_data); | 459 | pxa_set_ficp_info(&mainstone_ficp_platform_data); |