1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23#include <linux/module.h>
24#include <linux/platform_device.h>
25#include <linux/io.h>
26
27#include "omapfb.h"
28
29static unsigned long palmz71_panel_get_caps(struct lcd_panel *panel)
30{
31 return OMAPFB_CAPS_SET_BACKLIGHT;
32}
33
34static struct lcd_panel palmz71_panel = {
35 .name = "palmz71",
36 .config = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC |
37 OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE |
38 OMAP_LCDC_HSVS_OPPOSITE,
39 .data_lines = 16,
40 .bpp = 16,
41 .pixel_clock = 24000,
42 .x_res = 320,
43 .y_res = 320,
44 .hsw = 4,
45 .hfp = 8,
46 .hbp = 28,
47 .vsw = 1,
48 .vfp = 8,
49 .vbp = 7,
50 .pcd = 0,
51
52 .get_caps = palmz71_panel_get_caps,
53};
54
55static int palmz71_panel_probe(struct platform_device *pdev)
56{
57 omapfb_register_panel(&palmz71_panel);
58 return 0;
59}
60
61static struct platform_driver palmz71_panel_driver = {
62 .probe = palmz71_panel_probe,
63 .driver = {
64 .name = "lcd_palmz71",
65 },
66};
67
68module_platform_driver(palmz71_panel_driver);
69