]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - drivers/video/omap/lcd_palmte.c
[PATCH] ARM: OMAP: Fix palmte lcd warnings
[linux-2.6-omap-h63xx.git] / drivers / video / omap / lcd_palmte.c
1 /*
2  * File: drivers/video/omap/lcd_palmte.c
3  *
4  * LCD panel support for the Palm Tungsten E
5  *
6  * Original version : Romain Goyet
7  * Current version : Laurent Gonzalez
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU General Public License as published by the
11  * Free Software Foundation; either version 2 of the License, or (at your
12  * option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License along
20  * with this program; if not, write to the Free Software Foundation, Inc.,
21  * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22  */
23
24 #include <linux/module.h>
25 #include <linux/platform_device.h>
26
27 #include <asm/io.h>
28
29 #include <asm/arch/fpga.h>
30 #include <asm/arch/omapfb.h>
31
32 /* #define OMAPFB_DBG 1 */
33
34 #include "debug.h"
35
36 static int palmte_panel_init(struct omapfb_device *panel)
37 {
38         DBGENTER(1);
39         DBGLEAVE(1);
40         return 0;
41 }
42
43 static void palmte_panel_cleanup(void)
44 {
45         DBGENTER(1);
46         DBGLEAVE(1);
47 }
48
49 static int palmte_panel_enable(void)
50 {
51         DBGENTER(1);
52         DBGLEAVE(1);
53         return 0;
54 }
55
56 static void palmte_panel_disable(void)
57 {
58         DBGENTER(1);
59         DBGLEAVE(1);
60 }
61
62 static unsigned long palmte_panel_get_caps(void)
63 {
64         return 0;
65 }
66
67 struct lcd_panel palmte_panel = {
68         .name           = "palmte",
69         .config         = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
70                           OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE |
71                           OMAP_LCDC_HSVS_OPPOSITE,
72
73         .data_lines     = 16,
74         .bpp            = 8,
75         .pixel_clock    = 12000,
76         .x_res          = 320,
77         .y_res          = 320,
78         .hsw            = 4,
79         .hfp            = 8,
80         .hbp            = 28,
81         .vsw            = 1,
82         .vfp            = 8,
83         .vbp            = 7,
84         .pcd            = 0,
85
86         .init           = palmte_panel_init,
87         .cleanup        = palmte_panel_cleanup,
88         .enable         = palmte_panel_enable,
89         .disable        = palmte_panel_disable,
90         .get_caps       = palmte_panel_get_caps,
91 };
92
93 static int palmte_panel_probe(struct platform_device *pdev)
94 {
95         DBGENTER(1);
96         omapfb_register_panel(&palmte_panel);
97         return 0;
98 }
99
100 static int palmte_panel_remove(struct platform_device *pdev)
101 {
102         DBGENTER(1);
103         return 0;
104 }
105
106 static int palmte_panel_suspend(struct platform_device *pdev, pm_message_t mesg)
107 {
108         DBGENTER(1);
109         return 0;
110 }
111
112 static int palmte_panel_resume(struct platform_device *pdev)
113 {
114         DBGENTER(1);
115         return 0;
116 }
117
118 struct platform_driver palmte_panel_driver = {
119         .probe          = palmte_panel_probe,
120         .remove         = palmte_panel_remove,
121         .suspend        = palmte_panel_suspend,
122         .resume         = palmte_panel_resume,
123         .driver         = {
124                 .name   = "lcd_palmte",
125                 .owner  = THIS_MODULE,
126         },
127 };
128
129 static int palmte_panel_drv_init(void)
130 {
131         return platform_driver_register(&palmte_panel_driver);
132 }
133
134 static void palmte_panel_drv_cleanup(void)
135 {
136         platform_driver_unregister(&palmte_panel_driver);
137 }
138
139 module_init(palmte_panel_drv_init);
140 module_exit(palmte_panel_drv_cleanup);