2 * File: drivers/video/omap/lcd_palmte.c
4 * LCD panel support for the Palm Tungsten E
6 * Original version : Romain Goyet
7 * Current version : Laurent Gonzalez
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>
29 #include <asm/arch/fpga.h>
30 #include <asm/arch/omapfb.h>
32 /* #define OMAPFB_DBG 1 */
36 static int palmte_panel_init(struct omapfb_device *panel)
43 static void palmte_panel_cleanup(void)
49 static int palmte_panel_enable(void)
56 static void palmte_panel_disable(void)
62 static unsigned long palmte_panel_get_caps(void)
67 struct lcd_panel palmte_panel = {
69 .config = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
70 OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE |
71 OMAP_LCDC_HSVS_OPPOSITE,
86 .init = palmte_panel_init,
87 .cleanup = palmte_panel_cleanup,
88 .enable = palmte_panel_enable,
89 .disable = palmte_panel_disable,
90 .get_caps = palmte_panel_get_caps,
93 static int palmte_panel_probe(struct platform_device *pdev)
96 omapfb_register_panel(&palmte_panel);
100 static int palmte_panel_remove(struct platform_device *pdev)
106 static int palmte_panel_suspend(struct platform_device *pdev, pm_message_t mesg)
112 static int palmte_panel_resume(struct platform_device *pdev)
118 struct platform_driver palmte_panel_driver = {
119 .probe = palmte_panel_probe,
120 .remove = palmte_panel_remove,
121 .suspend = palmte_panel_suspend,
122 .resume = palmte_panel_resume,
124 .name = "lcd_palmte",
125 .owner = THIS_MODULE,
129 static int palmte_panel_drv_init(void)
131 return platform_driver_register(&palmte_panel_driver);
134 static void palmte_panel_drv_cleanup(void)
136 platform_driver_unregister(&palmte_panel_driver);
139 module_init(palmte_panel_drv_init);
140 module_exit(palmte_panel_drv_cleanup);