2 * File: drivers/video/omap/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>
29 #include <asm/arch/omapfb.h>
31 /* #define OMAPFB_DBG 1 */
35 static int innovator1510_panel_init(struct omapfb_device *fbdev)
42 static void innovator1510_panel_cleanup(void)
48 static int innovator1510_panel_enable(void)
52 fpga_write(0x7, OMAP1510_FPGA_LCD_PANEL_CONTROL);
58 static void innovator1510_panel_disable(void)
62 fpga_write(0x0, OMAP1510_FPGA_LCD_PANEL_CONTROL);
67 static unsigned long innovator1510_panel_get_caps(void)
72 struct lcd_panel innovator1510_panel = {
74 .config = OMAP_LCDC_PANEL_TFT,
89 .init = innovator1510_panel_init,
90 .cleanup = innovator1510_panel_cleanup,
91 .enable = innovator1510_panel_enable,
92 .disable = innovator1510_panel_disable,
93 .get_caps = innovator1510_panel_get_caps,