]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - drivers/video/omap/lcd_palmte.c
ARM: OMAP: Frambuffer driver CodingStyle changes.
[linux-2.6-omap-h63xx.git] / drivers / video / omap / lcd_palmte.c
1 /*
2  * LCD panel support for the Palm Tungsten E
3  *
4  * Original version : Romain Goyet
5  * Current version : Laurent Gonzalez
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
25 #include <asm/io.h>
26
27 #include <asm/arch/fpga.h>
28 #include <asm/arch/omapfb.h>
29
30 static int palmte_panel_init(struct lcd_panel *panel,
31                                 struct omapfb_device *fbdev)
32 {
33         return 0;
34 }
35
36 static void palmte_panel_cleanup(struct lcd_panel *panel)
37 {
38 }
39
40 static int palmte_panel_enable(struct lcd_panel *panel)
41 {
42         return 0;
43 }
44
45 static void palmte_panel_disable(struct lcd_panel *panel)
46 {
47 }
48
49 static unsigned long palmte_panel_get_caps(struct lcd_panel *panel)
50 {
51         return 0;
52 }
53
54 struct lcd_panel palmte_panel = {
55         .name           = "palmte",
56         .config         = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
57                           OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE |
58                           OMAP_LCDC_HSVS_OPPOSITE,
59
60         .data_lines     = 16,
61         .bpp            = 8,
62         .pixel_clock    = 12000,
63         .x_res          = 320,
64         .y_res          = 320,
65         .hsw            = 4,
66         .hfp            = 8,
67         .hbp            = 28,
68         .vsw            = 1,
69         .vfp            = 8,
70         .vbp            = 7,
71         .pcd            = 0,
72
73         .init           = palmte_panel_init,
74         .cleanup        = palmte_panel_cleanup,
75         .enable         = palmte_panel_enable,
76         .disable        = palmte_panel_disable,
77         .get_caps       = palmte_panel_get_caps,
78 };
79
80 static int palmte_panel_probe(struct platform_device *pdev)
81 {
82         omapfb_register_panel(&palmte_panel);
83         return 0;
84 }
85
86 static int palmte_panel_remove(struct platform_device *pdev)
87 {
88         return 0;
89 }
90
91 static int palmte_panel_suspend(struct platform_device *pdev, pm_message_t mesg)
92 {
93         return 0;
94 }
95
96 static int palmte_panel_resume(struct platform_device *pdev)
97 {
98         return 0;
99 }
100
101 struct platform_driver palmte_panel_driver = {
102         .probe          = palmte_panel_probe,
103         .remove         = palmte_panel_remove,
104         .suspend        = palmte_panel_suspend,
105         .resume         = palmte_panel_resume,
106         .driver         = {
107                 .name   = "lcd_palmte",
108                 .owner  = THIS_MODULE,
109         },
110 };
111
112 static int palmte_panel_drv_init(void)
113 {
114         return platform_driver_register(&palmte_panel_driver);
115 }
116
117 static void palmte_panel_drv_cleanup(void)
118 {
119         platform_driver_unregister(&palmte_panel_driver);
120 }
121
122 module_init(palmte_panel_drv_init);
123 module_exit(palmte_panel_drv_cleanup);
124