Marek Vasut | dba8e7b | 2007-07-17 04:06:05 -0700 | [diff] [blame] | 1 | /* |
| 2 | * LCD panel support for Palm Tungsten|T |
| 3 | * Current version : Marek Vasut <marek.vasut@gmail.com> |
| 4 | * |
| 5 | * Modified from lcd_inn1510.c |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify it |
| 8 | * under the terms of the GNU General Public License as published by the |
| 9 | * Free Software Foundation; either version 2 of the License, or (at your |
| 10 | * option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License along |
| 18 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 19 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 20 | */ |
| 21 | |
| 22 | /* |
| 23 | GPIO11 - backlight |
| 24 | GPIO12 - screen blanking |
| 25 | GPIO13 - screen blanking |
| 26 | */ |
| 27 | |
| 28 | #include <linux/platform_device.h> |
| 29 | #include <linux/module.h> |
| 30 | #include <linux/io.h> |
Bjorn Helgaas | 288e6ea | 2016-02-02 13:53:23 -0600 | [diff] [blame] | 31 | #include <linux/gpio.h> |
Marek Vasut | dba8e7b | 2007-07-17 04:06:05 -0700 | [diff] [blame] | 32 | |
Tomi Valkeinen | 91773a0 | 2009-08-03 15:06:36 +0300 | [diff] [blame] | 33 | #include "omapfb.h" |
Marek Vasut | dba8e7b | 2007-07-17 04:06:05 -0700 | [diff] [blame] | 34 | |
Marek Vasut | dba8e7b | 2007-07-17 04:06:05 -0700 | [diff] [blame] | 35 | static unsigned long palmtt_panel_get_caps(struct lcd_panel *panel) |
| 36 | { |
| 37 | return OMAPFB_CAPS_SET_BACKLIGHT; |
| 38 | } |
| 39 | |
Lars-Peter Clausen | b2c1e8a | 2017-01-30 17:39:49 +0100 | [diff] [blame] | 40 | static struct lcd_panel palmtt_panel = { |
Marek Vasut | dba8e7b | 2007-07-17 04:06:05 -0700 | [diff] [blame] | 41 | .name = "palmtt", |
| 42 | .config = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC | |
| 43 | OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE | |
| 44 | OMAP_LCDC_HSVS_OPPOSITE, |
| 45 | .bpp = 16, |
| 46 | .data_lines = 16, |
| 47 | .x_res = 320, |
| 48 | .y_res = 320, |
| 49 | .pixel_clock = 10000, |
| 50 | .hsw = 4, |
| 51 | .hfp = 8, |
| 52 | .hbp = 28, |
| 53 | .vsw = 1, |
| 54 | .vfp = 8, |
| 55 | .vbp = 7, |
| 56 | .pcd = 0, |
| 57 | |
Marek Vasut | dba8e7b | 2007-07-17 04:06:05 -0700 | [diff] [blame] | 58 | .get_caps = palmtt_panel_get_caps, |
| 59 | }; |
| 60 | |
| 61 | static int palmtt_panel_probe(struct platform_device *pdev) |
| 62 | { |
| 63 | omapfb_register_panel(&palmtt_panel); |
| 64 | return 0; |
| 65 | } |
| 66 | |
Axel Lin | f990544 | 2011-12-09 09:37:57 +0800 | [diff] [blame] | 67 | static struct platform_driver palmtt_panel_driver = { |
Marek Vasut | dba8e7b | 2007-07-17 04:06:05 -0700 | [diff] [blame] | 68 | .probe = palmtt_panel_probe, |
Marek Vasut | dba8e7b | 2007-07-17 04:06:05 -0700 | [diff] [blame] | 69 | .driver = { |
| 70 | .name = "lcd_palmtt", |
Marek Vasut | dba8e7b | 2007-07-17 04:06:05 -0700 | [diff] [blame] | 71 | }, |
| 72 | }; |
| 73 | |
Axel Lin | f806f9b | 2011-12-09 09:59:56 +0800 | [diff] [blame] | 74 | module_platform_driver(palmtt_panel_driver); |
Arnd Bergmann | 1bde9f2 | 2018-06-08 18:08:12 +0200 | [diff] [blame^] | 75 | |
| 76 | MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); |
| 77 | MODULE_DESCRIPTION("LCD panel support for Palm Tungsten|T"); |
| 78 | MODULE_LICENSE("GPL"); |