Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / video / fbdev / omap / lcd_palmte.c
blobb255158d7804439b20a5de90dcd346b066c5f4e5
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * LCD panel support for the Palm Tungsten E
5 * Original version : Romain Goyet <r.goyet@gmail.com>
6 * Current version : Laurent Gonzalez <palmte.linux@free.fr>
7 */
9 #include <linux/module.h>
10 #include <linux/platform_device.h>
11 #include <linux/io.h>
13 #include "omapfb.h"
15 static struct lcd_panel palmte_panel = {
16 .name = "palmte",
17 .config = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
18 OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE |
19 OMAP_LCDC_HSVS_OPPOSITE,
21 .data_lines = 16,
22 .bpp = 8,
23 .pixel_clock = 12000,
24 .x_res = 320,
25 .y_res = 320,
26 .hsw = 4,
27 .hfp = 8,
28 .hbp = 28,
29 .vsw = 1,
30 .vfp = 8,
31 .vbp = 7,
32 .pcd = 0,
35 static int palmte_panel_probe(struct platform_device *pdev)
37 omapfb_register_panel(&palmte_panel);
38 return 0;
41 static struct platform_driver palmte_panel_driver = {
42 .probe = palmte_panel_probe,
43 .driver = {
44 .name = "lcd_palmte",
48 module_platform_driver(palmte_panel_driver);
50 MODULE_AUTHOR("Romain Goyet <r.goyet@gmail.com>, Laurent Gonzalez <palmte.linux@free.fr>");
51 MODULE_DESCRIPTION("LCD panel support for the Palm Tungsten E");
52 MODULE_LICENSE("GPL");