sync hh.org
[hh.org.git] / arch / arm / mach-pxa / eseries / e400_lcd.c
blob2a332934302bb3f45b68fd9d8f66700e64e5abd0
1 /* e400 LCD support.
2 * (c) 2005 Ian Molton <spyro@f2s.com>
3 */
5 #include <linux/kernel.h>
6 #include <linux/init.h>
7 #include <linux/module.h>
9 #include <asm/mach-types.h>
10 #include <asm/arch/pxa-regs.h>
11 #include <asm/arch/pxafb.h>
13 static struct pxafb_mode_info e400_pxafb_mode_info __initdata = {
14 .pixclock = 140703,
15 .xres = 240,
16 .yres = 320,
17 .bpp = 16,
18 .hsync_len = 4,
19 .left_margin = 28,
20 .right_margin = 8,
21 .vsync_len = 3,
22 .upper_margin = 5,
23 .lower_margin = 6,
24 .sync = 0,
27 static struct pxafb_mach_info e400_pxafb_mach_info __initdata = {
28 .modes = &e400_pxafb_mode_info,
29 .num_modes = 1,
30 .lccr0 = LCCR0_Color | LCCR0_Sngl | LCCR0_Act,
31 .lccr3 = 0,
32 .pxafb_backlight_power = NULL,
35 static int __init e400_lcd_init( void )
37 if(!machine_is_e400())
38 return -ENODEV;
40 set_pxa_fb_info(&e400_pxafb_mach_info);
41 return 0;
44 module_init(e400_lcd_init);
46 MODULE_AUTHOR("Ian Molton <spyro@f2s.com>");
47 MODULE_DESCRIPTION("e400 lcd driver");
48 MODULE_LICENSE("GPLv2");