4 * (c) 2006 Ian Molton <spyro@f2s.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
12 #include <linux/vsfb.h>
13 #include <linux/platform_device.h>
15 #include <asm/mach-types.h>
17 static struct fb_var_screeninfo e330_vsfb_var
= {
26 .activate
= FB_ACTIVATE_NOW
,
29 .vmode
= FB_VMODE_NONINTERLACED
,
32 static struct fb_fix_screeninfo e330_vsfb_fix
= {
34 .smem_start
= 0x0c042000,
35 .smem_len
= 240*320*2,
36 .type
= FB_TYPE_PACKED_PIXELS
,
37 .visual
= FB_VISUAL_TRUECOLOR
,
38 .line_length
= 240*2, // For gods sake fix this
39 .accel
= FB_ACCEL_NONE
,
42 static struct vsfb_deviceinfo e330_vsfb_deviceinfo
= {
43 .fix
= &e330_vsfb_fix
,
44 .var
= &e330_vsfb_var
,
47 static struct platform_device e330_vsfb_device
= {
51 .platform_data
= &e330_vsfb_deviceinfo
,
55 static int e330_lcd_init (void) {
57 if (!machine_is_e330 ())
60 platform_device_register(&e330_vsfb_device
);
65 module_init (e330_lcd_init
);
66 //module_exit (e740_lcd_exit);
68 MODULE_AUTHOR("Ian Molton <spyro@f2s.com>");
69 MODULE_DESCRIPTION("e330 lcd driver");
70 MODULE_LICENSE("GPLv2");