]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - drivers/video/omap/lcd_palmte.c
3f25b732a4b2441f6bcf923f43947fcdfeaf4f61
[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
26 #include <asm/io.h>
27 #include <asm/arch/fpga.h>
28
29 #include "omapfb.h"
30
31 /* #define OMAPFB_DBG 1 */
32
33 #include "debug.h"
34
35 static int palmte_panel_init(struct lcd_panel *panel)
36 {
37         DBGENTER(1);
38         DBGLEAVE(1);
39         return 0;
40 }
41
42 static void palmte_panel_cleanup(struct lcd_panel *panel)
43 {
44         DBGENTER(1);
45         DBGLEAVE(1);
46 }
47
48 static int palmte_panel_enable(struct lcd_panel *panel)
49 {
50         DBGENTER(1);
51         DBGLEAVE(1);
52         return 0;
53 }
54
55 static void palmte_panel_disable(struct lcd_panel *panel)
56 {
57         DBGENTER(1);
58         DBGLEAVE(1);
59 }
60
61 static unsigned long palmte_panel_get_caps(struct lcd_panel *panel)
62 {
63         return 0;
64 }
65
66 struct lcd_panel palmte_panel = {
67         .name           = "palmte",
68         .config         = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
69                           OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE |
70                           OMAP_LCDC_HSVS_OPPOSITE;
71
72         .data_lines     = 16,
73         .bpp            = 8,
74         .pixel_clock    = 12500,
75         .x_res          = 320,
76         .y_res          = 320,
77         .hsw            = 4,
78         .hfp            = 8,
79         .hbp            = 28,
80         .vsw            = 1,
81         .vfp            = 8,
82         .vbp            = 7,
83         .pcd            = 5,
84
85         .init           = palmte_panel_init,
86         .cleanup        = palmte_panel_cleanup,
87         .enable         = palmte_panel_enable,
88         .disable        = palmte_panel_disable,
89         .get_caps       = palmte_panel_get_caps,
90 };
91