2 * LCD panel support for the TI OMAP H4 board
4 * Copyright (C) 2004 Nokia Corporation
5 * Author: Imre Deak <imre.deak@nokia.com>
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.
22 #include <linux/module.h>
23 #include <linux/platform_device.h>
25 #include <mach/omapfb.h>
27 static int h4_panel_init(struct lcd_panel *panel, struct omapfb_device *fbdev)
32 static void h4_panel_cleanup(struct lcd_panel *panel)
36 static int h4_panel_enable(struct lcd_panel *panel)
41 static void h4_panel_disable(struct lcd_panel *panel)
45 static unsigned long h4_panel_get_caps(struct lcd_panel *panel)
50 static struct lcd_panel h4_panel = {
52 .config = OMAP_LCDC_PANEL_TFT,
66 .init = h4_panel_init,
67 .cleanup = h4_panel_cleanup,
68 .enable = h4_panel_enable,
69 .disable = h4_panel_disable,
70 .get_caps = h4_panel_get_caps,
73 static int h4_panel_probe(struct platform_device *pdev)
75 omapfb_register_panel(&h4_panel);
79 static int h4_panel_remove(struct platform_device *pdev)
84 static int h4_panel_suspend(struct platform_device *pdev, pm_message_t mesg)
89 static int h4_panel_resume(struct platform_device *pdev)
94 static struct platform_driver h4_panel_driver = {
95 .probe = h4_panel_probe,
96 .remove = h4_panel_remove,
97 .suspend = h4_panel_suspend,
98 .resume = h4_panel_resume,
101 .owner = THIS_MODULE,
105 static int __init h4_panel_drv_init(void)
107 return platform_driver_register(&h4_panel_driver);
110 static void __exit h4_panel_drv_cleanup(void)
112 platform_driver_unregister(&h4_panel_driver);
115 module_init(h4_panel_drv_init);
116 module_exit(h4_panel_drv_cleanup);