WIP FPC-III support
[linux/fpc-iii.git] / drivers / video / fbdev / omap / lcd_palmz71.c
bloba955c908ab146f8594f8580d0b8424b47a518488
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * LCD panel support for the Palm Zire71
5 * Original version : Romain Goyet
6 * Current version : Laurent Gonzalez
7 * Modified for zire71 : Marek Vasut
8 */
10 #include <linux/module.h>
11 #include <linux/platform_device.h>
12 #include <linux/io.h>
14 #include "omapfb.h"
16 static unsigned long palmz71_panel_get_caps(struct lcd_panel *panel)
18 return OMAPFB_CAPS_SET_BACKLIGHT;
21 static struct lcd_panel palmz71_panel = {
22 .name = "palmz71",
23 .config = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
24 OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE |
25 OMAP_LCDC_HSVS_OPPOSITE,
26 .data_lines = 16,
27 .bpp = 16,
28 .pixel_clock = 24000,
29 .x_res = 320,
30 .y_res = 320,
31 .hsw = 4,
32 .hfp = 8,
33 .hbp = 28,
34 .vsw = 1,
35 .vfp = 8,
36 .vbp = 7,
37 .pcd = 0,
39 .get_caps = palmz71_panel_get_caps,
42 static int palmz71_panel_probe(struct platform_device *pdev)
44 omapfb_register_panel(&palmz71_panel);
45 return 0;
48 static struct platform_driver palmz71_panel_driver = {
49 .probe = palmz71_panel_probe,
50 .driver = {
51 .name = "lcd_palmz71",
55 module_platform_driver(palmz71_panel_driver);
57 MODULE_AUTHOR("Romain Goyet, Laurent Gonzalez, Marek Vasut");
58 MODULE_LICENSE("GPL");
59 MODULE_DESCRIPTION("LCD panel support for the Palm Zire71");