2 * File: drivers/video/omap_new/lcd-inn1510.c
4 * LCD panel support for the TI OMAP1510 Innovator board
6 * Copyright (C) 2004 Nokia Corporation
7 * Author: Imre Deak <imre.deak@nokia.com>
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.
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.
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.
24 #include <linux/module.h>
28 #include <asm/arch/fpga.h>
32 // #define OMAPFB_DBG 1
36 static int innovator1510_panel_init(struct lcd_panel *panel)
43 static void innovator1510_panel_cleanup(struct lcd_panel *panel)
49 static int innovator1510_panel_enable(struct lcd_panel *panel)
53 fpga_write(0x7, OMAP1510_FPGA_LCD_PANEL_CONTROL);
59 static void innovator1510_panel_disable(struct lcd_panel *panel)
63 fpga_write(0x0, OMAP1510_FPGA_LCD_PANEL_CONTROL);
68 static unsigned long innovator1510_panel_get_caps(struct lcd_panel *panel)
73 static struct lcdc_video_mode mode240x320 = {
87 struct lcd_panel innovator1510_panel = {
89 .config = LCD_PANEL_TFT,
90 .video_mode = &mode240x320,
92 .init = innovator1510_panel_init,
93 .cleanup = innovator1510_panel_cleanup,
94 .enable = innovator1510_panel_enable,
95 .disable = innovator1510_panel_disable,
96 .get_caps= innovator1510_panel_get_caps,