2 * LCD panel support for the TI OMAP1510 Innovator board
4 * Copyright (C) 2004 Nokia Corporation
5 * Author: Imre Deak <imre.deak@nokia.com>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #include <linux/module.h>
23 #include <linux/platform_device.h>
26 #include <mach/hardware.h>
30 static int innovator1510_panel_enable(struct lcd_panel
*panel
)
32 __raw_writeb(0x7, OMAP1510_FPGA_LCD_PANEL_CONTROL
);
36 static void innovator1510_panel_disable(struct lcd_panel
*panel
)
38 __raw_writeb(0x0, OMAP1510_FPGA_LCD_PANEL_CONTROL
);
41 static struct lcd_panel innovator1510_panel
= {
43 .config
= OMAP_LCDC_PANEL_TFT
,
58 .enable
= innovator1510_panel_enable
,
59 .disable
= innovator1510_panel_disable
,
62 static int innovator1510_panel_probe(struct platform_device
*pdev
)
64 omapfb_register_panel(&innovator1510_panel
);
68 static struct platform_driver innovator1510_panel_driver
= {
69 .probe
= innovator1510_panel_probe
,
71 .name
= "lcd_inn1510",
75 module_platform_driver(innovator1510_panel_driver
);
77 MODULE_AUTHOR("Imre Deak");
78 MODULE_DESCRIPTION("LCD panel support for the TI OMAP1510 Innovator board");
79 MODULE_LICENSE("GPL");