2 * File: drivers/video/omap/lcd-h4.c
4 * LCD panel support for the TI OMAP H4 board
6 * Copyright (C) 2004 Nokia Corporation
7 * Author: Imre Deak <imre.deak@nokia.com>
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 <asm/arch/omapfb.h>
29 static int h4_panel_init(struct lcd_panel *panel, struct omapfb_device *fbdev)
34 static void h4_panel_cleanup(struct lcd_panel *panel)
38 static int h4_panel_enable(struct lcd_panel *panel)
43 static void h4_panel_disable(struct lcd_panel *panel)
47 static unsigned long h4_panel_get_caps(struct lcd_panel *panel)
52 struct lcd_panel h4_panel = {
54 .config = OMAP_LCDC_PANEL_TFT,
68 .init = h4_panel_init,
69 .cleanup = h4_panel_cleanup,
70 .enable = h4_panel_enable,
71 .disable = h4_panel_disable,
72 .get_caps = h4_panel_get_caps,
75 static int h4_panel_probe(struct platform_device *pdev)
77 omapfb_register_panel(&h4_panel);
81 static int h4_panel_remove(struct platform_device *pdev)
86 static int h4_panel_suspend(struct platform_device *pdev, pm_message_t mesg)
91 static int h4_panel_resume(struct platform_device *pdev)
96 struct platform_driver h4_panel_driver = {
97 .probe = h4_panel_probe,
98 .remove = h4_panel_remove,
99 .suspend = h4_panel_suspend,
100 .resume = h4_panel_resume,
103 .owner = THIS_MODULE,
107 static int h4_panel_drv_init(void)
109 return platform_driver_register(&h4_panel_driver);
112 static void h4_panel_drv_cleanup(void)
114 platform_driver_unregister(&h4_panel_driver);
117 module_init(h4_panel_drv_init);
118 module_exit(h4_panel_drv_cleanup);