Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * File: drivers/video/omap/lcd-htcherald.c
0004  *
0005  * LCD panel support for the HTC Herald
0006  *
0007  * Copyright (C) 2009 Cory Maccarrone <darkstar6262@gmail.com>
0008  * Copyright (C) 2009 Wing Linux
0009  *
0010  * Based on the lcd_htcwizard.c file from the linwizard project:
0011  * Copyright (C) linwizard.sourceforge.net
0012  * Author: Angelo Arrifano <miknix@gmail.com>
0013  * Based on lcd_h4 by Imre Deak <imre.deak@nokia.com>
0014  */
0015 
0016 #include <linux/module.h>
0017 #include <linux/platform_device.h>
0018 
0019 #include "omapfb.h"
0020 
0021 /* Found on WIZ200 (miknix) and some HERA110 models (darkstar62) */
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, /* 15 */
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");