2 * File: drivers/video/omap/lcd_apollon.c
4 * LCD panel support for the Samsung OMAP2 Apollon board
6 * Copyright (C) 2005,2006 Samsung Electronics
7 * Author: Kyungmin Park <kyungmin.park@samsung.com>
9 * Derived from drivers/video/omap/lcd-h4.c
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the
13 * Free Software Foundation; either version 2 of the License, or (at your
14 * option) any later version.
16 * This program is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.
21 * You should have received a copy of the GNU General Public License along
22 * with this program; if not, write to the Free Software Foundation, Inc.,
23 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #include <linux/module.h>
28 #include <asm/arch/gpio.h>
29 #include <asm/arch/mux.h>
30 #include <asm/arch/omapfb.h>
32 /* #define OMAPFB_DBG 1 */
34 /* #define USE_35INCH_LCD 1 */
38 static int apollon_panel_init(struct omapfb_device *fbdev)
45 static void apollon_panel_cleanup(void)
51 static int apollon_panel_enable(void)
56 /* configure LCD PWR_EN */
57 omap_cfg_reg(M21_242X_GPIO11);
63 static void apollon_panel_disable(void)
69 static unsigned long apollon_panel_get_caps(void)
74 struct lcd_panel apollon_panel = {
76 .config = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
102 .init = apollon_panel_init,
103 .cleanup = apollon_panel_cleanup,
104 .enable = apollon_panel_enable,
105 .disable = apollon_panel_disable,
106 .get_caps = apollon_panel_get_caps,