2 * LCD panel support for Palm Tungsten|T
3 * Current version : Marek Vasut <marek.vasut@gmail.com>
5 * Modified from lcd_inn1510.c
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.
24 GPIO12 - screen blanking
25 GPIO13 - screen blanking
28 #include <linux/platform_device.h>
29 #include <linux/module.h>
35 static int palmtt_panel_init(struct lcd_panel
*panel
,
36 struct omapfb_device
*fbdev
)
41 static void palmtt_panel_cleanup(struct lcd_panel
*panel
)
45 static int palmtt_panel_enable(struct lcd_panel
*panel
)
50 static void palmtt_panel_disable(struct lcd_panel
*panel
)
54 static unsigned long palmtt_panel_get_caps(struct lcd_panel
*panel
)
56 return OMAPFB_CAPS_SET_BACKLIGHT
;
59 struct lcd_panel palmtt_panel
= {
61 .config
= OMAP_LCDC_PANEL_TFT
| OMAP_LCDC_INV_VSYNC
|
62 OMAP_LCDC_INV_HSYNC
| OMAP_LCDC_HSVS_RISING_EDGE
|
63 OMAP_LCDC_HSVS_OPPOSITE
,
77 .init
= palmtt_panel_init
,
78 .cleanup
= palmtt_panel_cleanup
,
79 .enable
= palmtt_panel_enable
,
80 .disable
= palmtt_panel_disable
,
81 .get_caps
= palmtt_panel_get_caps
,
84 static int palmtt_panel_probe(struct platform_device
*pdev
)
86 omapfb_register_panel(&palmtt_panel
);
90 static int palmtt_panel_remove(struct platform_device
*pdev
)
95 static int palmtt_panel_suspend(struct platform_device
*pdev
, pm_message_t mesg
)
100 static int palmtt_panel_resume(struct platform_device
*pdev
)
105 struct platform_driver palmtt_panel_driver
= {
106 .probe
= palmtt_panel_probe
,
107 .remove
= palmtt_panel_remove
,
108 .suspend
= palmtt_panel_suspend
,
109 .resume
= palmtt_panel_resume
,
111 .name
= "lcd_palmtt",
112 .owner
= THIS_MODULE
,
116 static int __init
palmtt_panel_drv_init(void)
118 return platform_driver_register(&palmtt_panel_driver
);
121 static void __exit
palmtt_panel_drv_cleanup(void)
123 platform_driver_unregister(&palmtt_panel_driver
);
126 module_init(palmtt_panel_drv_init
);
127 module_exit(palmtt_panel_drv_cleanup
);