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>
27 #include <linux/platform_device.h>
29 #include <asm/arch/gpio.h>
30 #include <asm/arch/mux.h>
31 #include <asm/arch/omapfb.h>
33 /* #define USE_35INCH_LCD 1 */
35 static int apollon_panel_init(struct lcd_panel *panel,
36 struct omapfb_device *fbdev)
38 /* configure LCD PWR_EN */
39 omap_cfg_reg(M21_242X_GPIO11);
43 static void apollon_panel_cleanup(struct lcd_panel *panel)
47 static int apollon_panel_enable(struct lcd_panel *panel)
52 static void apollon_panel_disable(struct lcd_panel *panel)
56 static unsigned long apollon_panel_get_caps(struct lcd_panel *panel)
61 struct lcd_panel apollon_panel = {
63 .config = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
89 .init = apollon_panel_init,
90 .cleanup = apollon_panel_cleanup,
91 .enable = apollon_panel_enable,
92 .disable = apollon_panel_disable,
93 .get_caps = apollon_panel_get_caps,
96 static int apollon_panel_probe(struct platform_device *pdev)
98 omapfb_register_panel(&apollon_panel);
102 static int apollon_panel_remove(struct platform_device *pdev)
107 static int apollon_panel_suspend(struct platform_device *pdev, pm_message_t mesg)
112 static int apollon_panel_resume(struct platform_device *pdev)
117 struct platform_driver apollon_panel_driver = {
118 .probe = apollon_panel_probe,
119 .remove = apollon_panel_remove,
120 .suspend = apollon_panel_suspend,
121 .resume = apollon_panel_resume,
123 .name = "apollon_lcd",
124 .owner = THIS_MODULE,
128 static int __init apollon_panel_drv_init(void)
130 return platform_driver_register(&apollon_panel_driver);
133 static void __exit apollon_panel_drv_exit(void)
135 platform_driver_unregister(&apollon_panel_driver);
138 module_init(apollon_panel_drv_init);
139 module_exit(apollon_panel_drv_exit);