]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - drivers/video/omap/lcd_h4.c
48172477dba7e657f7a430236b9ca46d64402f31
[linux-2.6-omap-h63xx.git] / drivers / video / omap / lcd_h4.c
1 /*
2  * File: drivers/video/omap/lcd-h4.c
3  *
4  * LCD panel support for the TI OMAP H4 board
5  *
6  * Copyright (C) 2004 Nokia Corporation
7  * Author: Imre Deak <imre.deak@nokia.com>
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/arch/omapfb.h>
27
28 /* #define OMAPFB_DBG 1 */
29
30 #include "debug.h"
31
32 static int h4_panel_init(struct omapfb_device *fbdev)
33 {
34         DBGENTER(1);
35         DBGLEAVE(1);
36         return 0;
37 }
38
39 static void h4_panel_cleanup(void)
40 {
41         DBGENTER(1);
42         DBGLEAVE(1);
43 }
44
45 static int h4_panel_enable(void)
46 {
47
48         DBGENTER(1);
49         DBGLEAVE(1);
50         return 0;
51 }
52
53 static void h4_panel_disable(void)
54 {
55         DBGENTER(1);
56         DBGLEAVE(1);
57 }
58
59 static unsigned long h4_panel_get_caps(void)
60 {
61         return 0;
62 }
63
64 struct lcd_panel h4_panel = {
65         .name           = "h4",
66         .config         = OMAP_LCDC_PANEL_TFT,
67
68         .bpp            = 16,
69         .data_lines     = 16,
70         .x_res          = 240,
71         .y_res          = 320,
72         .pixel_clock    = 6250,
73         .hsw            = 15,
74         .hfp            = 15,
75         .hbp            = 60,
76         .vsw            = 1,
77         .vfp            = 1,
78         .vbp            = 1,
79
80         .init           = h4_panel_init,
81         .cleanup        = h4_panel_cleanup,
82         .enable         = h4_panel_enable,
83         .disable        = h4_panel_disable,
84         .get_caps       = h4_panel_get_caps,
85 };
86