1 /*
2  * LCD panel support for the Palm Tungsten E
3  *
4  * Original version : Romain Goyet <r.goyet@gmail.com>
5  * Current version : Laurent Gonzalez <palmte.linux@free.fr>
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License as published by the
9  * Free Software Foundation; either version 2 of the License, or (at your
10  * option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20  */
21 
22 #include <linux/module.h>
23 #include <linux/platform_device.h>
24 #include <linux/io.h>
25 
26 #include "omapfb.h"
27 
28 static struct lcd_panel palmte_panel = {
29 	.name		= "palmte",
30 	.config		= OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
31 			  OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE |
32 			  OMAP_LCDC_HSVS_OPPOSITE,
33 
34 	.data_lines	= 16,
35 	.bpp		= 8,
36 	.pixel_clock	= 12000,
37 	.x_res		= 320,
38 	.y_res		= 320,
39 	.hsw		= 4,
40 	.hfp		= 8,
41 	.hbp		= 28,
42 	.vsw		= 1,
43 	.vfp		= 8,
44 	.vbp		= 7,
45 	.pcd		= 0,
46 };
47 
48 static int palmte_panel_probe(struct platform_device *pdev)
49 {
50 	omapfb_register_panel(&palmte_panel);
51 	return 0;
52 }
53 
54 static struct platform_driver palmte_panel_driver = {
55 	.probe		= palmte_panel_probe,
56 	.driver		= {
57 		.name	= "lcd_palmte",
58 	},
59 };
60 
61 module_platform_driver(palmte_panel_driver);
62