x86/amd-iommu: Add function to complete a tlb flush
[linux/fpc-iii.git] / drivers / video / omap / lcd_palmte.c
blob4bf3c79f3cc7b0317f6b955472975c55e74b57bc
1 /*
2 * LCD panel support for the Palm Tungsten E
4 * Original version : Romain Goyet <r.goyet@gmail.com>
5 * Current version : Laurent Gonzalez <palmte.linux@free.fr>
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>
24 #include <linux/io.h>
26 #include <mach/fpga.h>
27 #include <mach/omapfb.h>
29 static int palmte_panel_init(struct lcd_panel *panel,
30 struct omapfb_device *fbdev)
32 return 0;
35 static void palmte_panel_cleanup(struct lcd_panel *panel)
39 static int palmte_panel_enable(struct lcd_panel *panel)
41 return 0;
44 static void palmte_panel_disable(struct lcd_panel *panel)
48 static unsigned long palmte_panel_get_caps(struct lcd_panel *panel)
50 return 0;
53 struct lcd_panel palmte_panel = {
54 .name = "palmte",
55 .config = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
56 OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE |
57 OMAP_LCDC_HSVS_OPPOSITE,
59 .data_lines = 16,
60 .bpp = 8,
61 .pixel_clock = 12000,
62 .x_res = 320,
63 .y_res = 320,
64 .hsw = 4,
65 .hfp = 8,
66 .hbp = 28,
67 .vsw = 1,
68 .vfp = 8,
69 .vbp = 7,
70 .pcd = 0,
72 .init = palmte_panel_init,
73 .cleanup = palmte_panel_cleanup,
74 .enable = palmte_panel_enable,
75 .disable = palmte_panel_disable,
76 .get_caps = palmte_panel_get_caps,
79 static int palmte_panel_probe(struct platform_device *pdev)
81 omapfb_register_panel(&palmte_panel);
82 return 0;
85 static int palmte_panel_remove(struct platform_device *pdev)
87 return 0;
90 static int palmte_panel_suspend(struct platform_device *pdev, pm_message_t mesg)
92 return 0;
95 static int palmte_panel_resume(struct platform_device *pdev)
97 return 0;
100 struct platform_driver palmte_panel_driver = {
101 .probe = palmte_panel_probe,
102 .remove = palmte_panel_remove,
103 .suspend = palmte_panel_suspend,
104 .resume = palmte_panel_resume,
105 .driver = {
106 .name = "lcd_palmte",
107 .owner = THIS_MODULE,
111 static int __init palmte_panel_drv_init(void)
113 return platform_driver_register(&palmte_panel_driver);
116 static void __exit palmte_panel_drv_cleanup(void)
118 platform_driver_unregister(&palmte_panel_driver);
121 module_init(palmte_panel_drv_init);
122 module_exit(palmte_panel_drv_cleanup);