1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22#include <linux/module.h>
23#include <linux/platform_device.h>
24#include <linux/io.h>
25
26#include <mach/hardware.h>
27
28#include "omapfb.h"
29
30static int innovator1510_panel_enable(struct lcd_panel *panel)
31{
32 __raw_writeb(0x7, OMAP1510_FPGA_LCD_PANEL_CONTROL);
33 return 0;
34}
35
36static void innovator1510_panel_disable(struct lcd_panel *panel)
37{
38 __raw_writeb(0x0, OMAP1510_FPGA_LCD_PANEL_CONTROL);
39}
40
41static struct lcd_panel innovator1510_panel = {
42 .name = "inn1510",
43 .config = OMAP_LCDC_PANEL_TFT,
44
45 .bpp = 16,
46 .data_lines = 16,
47 .x_res = 240,
48 .y_res = 320,
49 .pixel_clock = 12500,
50 .hsw = 40,
51 .hfp = 40,
52 .hbp = 72,
53 .vsw = 1,
54 .vfp = 1,
55 .vbp = 0,
56 .pcd = 12,
57
58 .enable = innovator1510_panel_enable,
59 .disable = innovator1510_panel_disable,
60};
61
62static int innovator1510_panel_probe(struct platform_device *pdev)
63{
64 omapfb_register_panel(&innovator1510_panel);
65 return 0;
66}
67
68static struct platform_driver innovator1510_panel_driver = {
69 .probe = innovator1510_panel_probe,
70 .driver = {
71 .name = "lcd_inn1510",
72 },
73};
74
75module_platform_driver(innovator1510_panel_driver);
76