0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include <linux/module.h>
0017 #include <linux/platform_device.h>
0018
0019 #include "omapfb.h"
0020
0021
0022 static struct lcd_panel htcherald_panel_1 = {
0023 .name = "lcd_herald",
0024 .config = OMAP_LCDC_PANEL_TFT |
0025 OMAP_LCDC_INV_HSYNC |
0026 OMAP_LCDC_INV_VSYNC |
0027 OMAP_LCDC_INV_PIX_CLOCK,
0028 .bpp = 16,
0029 .data_lines = 16,
0030 .x_res = 240,
0031 .y_res = 320,
0032 .pixel_clock = 6093,
0033 .pcd = 0,
0034 .hsw = 10,
0035 .hfp = 10,
0036 .hbp = 20,
0037 .vsw = 3,
0038 .vfp = 2,
0039 .vbp = 2,
0040 };
0041
0042 static int htcherald_panel_probe(struct platform_device *pdev)
0043 {
0044 omapfb_register_panel(&htcherald_panel_1);
0045 return 0;
0046 }
0047
0048 static struct platform_driver htcherald_panel_driver = {
0049 .probe = htcherald_panel_probe,
0050 .driver = {
0051 .name = "lcd_htcherald",
0052 },
0053 };
0054
0055 module_platform_driver(htcherald_panel_driver);
0056
0057 MODULE_AUTHOR("Cory Maccarrone");
0058 MODULE_LICENSE("GPL");
0059 MODULE_DESCRIPTION("LCD panel support for the HTC Herald");