lcd_palmz71.c (1284B)
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * LCD panel support for the Palm Zire71 4 * 5 * Original version : Romain Goyet 6 * Current version : Laurent Gonzalez 7 * Modified for zire71 : Marek Vasut 8 */ 9 10#include <linux/module.h> 11#include <linux/platform_device.h> 12#include <linux/io.h> 13 14#include "omapfb.h" 15 16static unsigned long palmz71_panel_get_caps(struct lcd_panel *panel) 17{ 18 return OMAPFB_CAPS_SET_BACKLIGHT; 19} 20 21static struct lcd_panel palmz71_panel = { 22 .name = "palmz71", 23 .config = OMAP_LCDC_PANEL_TFT | OMAP_LCDC_INV_VSYNC | 24 OMAP_LCDC_INV_HSYNC | OMAP_LCDC_HSVS_RISING_EDGE | 25 OMAP_LCDC_HSVS_OPPOSITE, 26 .data_lines = 16, 27 .bpp = 16, 28 .pixel_clock = 24000, 29 .x_res = 320, 30 .y_res = 320, 31 .hsw = 4, 32 .hfp = 8, 33 .hbp = 28, 34 .vsw = 1, 35 .vfp = 8, 36 .vbp = 7, 37 .pcd = 0, 38 39 .get_caps = palmz71_panel_get_caps, 40}; 41 42static int palmz71_panel_probe(struct platform_device *pdev) 43{ 44 omapfb_register_panel(&palmz71_panel); 45 return 0; 46} 47 48static struct platform_driver palmz71_panel_driver = { 49 .probe = palmz71_panel_probe, 50 .driver = { 51 .name = "lcd_palmz71", 52 }, 53}; 54 55module_platform_driver(palmz71_panel_driver); 56 57MODULE_AUTHOR("Romain Goyet, Laurent Gonzalez, Marek Vasut"); 58MODULE_LICENSE("GPL"); 59MODULE_DESCRIPTION("LCD panel support for the Palm Zire71");