1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * LCD panel support for the Palm Tungsten E
4  *
5  * Original version : Romain Goyet <r.goyet@gmail.com>
6  * Current version : Laurent Gonzalez <palmte.linux@free.fr>
7  */
8 
9 #include <linux/module.h>
10 #include <linux/platform_device.h>
11 #include <linux/io.h>
12 
13 #include "omapfb.h"
14 
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,
20 
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,
33 };
34 
palmte_panel_probe(struct platform_device * pdev)35 static int palmte_panel_probe(struct platform_device *pdev)
36 {
37 	omapfb_register_panel(&palmte_panel);
38 	return 0;
39 }
40 
41 static struct platform_driver palmte_panel_driver = {
42 	.probe		= palmte_panel_probe,
43 	.driver		= {
44 		.name	= "lcd_palmte",
45 	},
46 };
47 
48 module_platform_driver(palmte_panel_driver);
49 
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");
53