2 * LCD panel support for the Samsung OMAP2 Apollon board
4 * Copyright (C) 2005,2006 Samsung Electronics
5 * Author: Kyungmin Park <kyungmin.park@samsung.com>
7 * Derived from drivers/video/omap/lcd-h4.c
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>
25 #include <linux/platform_device.h>
27 #include <mach/gpio.h>
29 #include <mach/omapfb.h>
31 /* #define USE_35INCH_LCD 1 */
33 static int apollon_panel_init(struct lcd_panel
*panel
,
34 struct omapfb_device
*fbdev
)
36 /* configure LCD PWR_EN */
37 omap_cfg_reg(M21_242X_GPIO11
);
41 static void apollon_panel_cleanup(struct lcd_panel
*panel
)
45 static int apollon_panel_enable(struct lcd_panel
*panel
)
50 static void apollon_panel_disable(struct lcd_panel
*panel
)
54 static unsigned long apollon_panel_get_caps(struct lcd_panel
*panel
)
59 struct lcd_panel apollon_panel
= {
61 .config
= OMAP_LCDC_PANEL_TFT
| OMAP_LCDC_INV_VSYNC
|
87 .init
= apollon_panel_init
,
88 .cleanup
= apollon_panel_cleanup
,
89 .enable
= apollon_panel_enable
,
90 .disable
= apollon_panel_disable
,
91 .get_caps
= apollon_panel_get_caps
,
94 static int apollon_panel_probe(struct platform_device
*pdev
)
96 omapfb_register_panel(&apollon_panel
);
100 static int apollon_panel_remove(struct platform_device
*pdev
)
105 static int apollon_panel_suspend(struct platform_device
*pdev
,
111 static int apollon_panel_resume(struct platform_device
*pdev
)
116 struct platform_driver apollon_panel_driver
= {
117 .probe
= apollon_panel_probe
,
118 .remove
= apollon_panel_remove
,
119 .suspend
= apollon_panel_suspend
,
120 .resume
= apollon_panel_resume
,
122 .name
= "apollon_lcd",
123 .owner
= THIS_MODULE
,
127 static int __init
apollon_panel_drv_init(void)
129 return platform_driver_register(&apollon_panel_driver
);
132 static void __exit
apollon_panel_drv_exit(void)
134 platform_driver_unregister(&apollon_panel_driver
);
137 module_init(apollon_panel_drv_init
);
138 module_exit(apollon_panel_drv_exit
);