Cory Maccarrone | 9c2816f | 2009-11-22 10:11:34 -0800 | [diff] [blame] | 1 | /* |
| 2 | * File: drivers/video/omap/lcd-htcherald.c |
| 3 | * |
| 4 | * LCD panel support for the HTC Herald |
| 5 | * |
| 6 | * Copyright (C) 2009 Cory Maccarrone <darkstar6262@gmail.com> |
| 7 | * Copyright (C) 2009 Wing Linux |
| 8 | * |
| 9 | * Based on the lcd_htcwizard.c file from the linwizard project: |
| 10 | * Copyright (C) linwizard.sourceforge.net |
| 11 | * Author: Angelo Arrifano <miknix@gmail.com> |
| 12 | * Based on lcd_h4 by Imre Deak <imre.deak@nokia.com> |
| 13 | * |
| 14 | * This program is free software; you can redistribute it and/or modify it |
| 15 | * under the terms of the GNU General Public License as published by the |
| 16 | * Free Software Foundation; either version 2 of the License, or (at your |
| 17 | * option) any later version. |
| 18 | * |
| 19 | * This program is distributed in the hope that it will be useful, but |
| 20 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 | * General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU General Public License along |
| 25 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 26 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 27 | */ |
| 28 | |
| 29 | #include <linux/module.h> |
| 30 | #include <linux/platform_device.h> |
| 31 | |
Tomi Valkeinen | 91773a0 | 2009-08-03 15:06:36 +0300 | [diff] [blame] | 32 | #include "omapfb.h" |
Cory Maccarrone | 9c2816f | 2009-11-22 10:11:34 -0800 | [diff] [blame] | 33 | |
Cory Maccarrone | 9c2816f | 2009-11-22 10:11:34 -0800 | [diff] [blame] | 34 | /* Found on WIZ200 (miknix) and some HERA110 models (darkstar62) */ |
Lars-Peter Clausen | b2c1e8a | 2017-01-30 17:39:49 +0100 | [diff] [blame] | 35 | static struct lcd_panel htcherald_panel_1 = { |
Cory Maccarrone | 9c2816f | 2009-11-22 10:11:34 -0800 | [diff] [blame] | 36 | .name = "lcd_herald", |
| 37 | .config = OMAP_LCDC_PANEL_TFT | |
| 38 | OMAP_LCDC_INV_HSYNC | |
| 39 | OMAP_LCDC_INV_VSYNC | |
| 40 | OMAP_LCDC_INV_PIX_CLOCK, |
| 41 | .bpp = 16, |
| 42 | .data_lines = 16, |
| 43 | .x_res = 240, |
| 44 | .y_res = 320, |
| 45 | .pixel_clock = 6093, |
| 46 | .pcd = 0, /* 15 */ |
| 47 | .hsw = 10, |
| 48 | .hfp = 10, |
| 49 | .hbp = 20, |
| 50 | .vsw = 3, |
| 51 | .vfp = 2, |
| 52 | .vbp = 2, |
Cory Maccarrone | 9c2816f | 2009-11-22 10:11:34 -0800 | [diff] [blame] | 53 | }; |
| 54 | |
| 55 | static int htcherald_panel_probe(struct platform_device *pdev) |
| 56 | { |
| 57 | omapfb_register_panel(&htcherald_panel_1); |
| 58 | return 0; |
| 59 | } |
| 60 | |
Axel Lin | f990544 | 2011-12-09 09:37:57 +0800 | [diff] [blame] | 61 | static struct platform_driver htcherald_panel_driver = { |
Cory Maccarrone | 9c2816f | 2009-11-22 10:11:34 -0800 | [diff] [blame] | 62 | .probe = htcherald_panel_probe, |
Cory Maccarrone | 9c2816f | 2009-11-22 10:11:34 -0800 | [diff] [blame] | 63 | .driver = { |
| 64 | .name = "lcd_htcherald", |
Cory Maccarrone | 9c2816f | 2009-11-22 10:11:34 -0800 | [diff] [blame] | 65 | }, |
| 66 | }; |
| 67 | |
Axel Lin | f806f9b | 2011-12-09 09:59:56 +0800 | [diff] [blame] | 68 | module_platform_driver(htcherald_panel_driver); |
Arnd Bergmann | 1bde9f2 | 2018-06-08 18:08:12 +0200 | [diff] [blame] | 69 | |
| 70 | MODULE_AUTHOR("Cory Maccarrone"); |
| 71 | MODULE_LICENSE("GPL"); |
| 72 | MODULE_DESCRIPTION("LCD panel support for the HTC Herald"); |