/*++ * linux/drivers/video/wmt/lcd-HANNSTAR-HSD101PFW2.c * WonderMedia video post processor (VPP) driver * * Copyright c 2013 WonderMedia Technologies, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * WonderMedia Technologies, Inc. * 4F, 533, Chung-Cheng Road, Hsin-Tien, Taipei 231, R.O.C --*/ #define LCD_EKING_HSD101PFW2_C /* #define DEBUG */ /*----------------------- DEPENDENCE -----------------------------------------*/ #include "../lcd.h" /*----------------------- PRIVATE MACRO --------------------------------------*/ /* #define LCD_HSD101PFW2_XXXX xxxx *//*Example*/ /*----------------------- PRIVATE CONSTANTS ----------------------------------*/ /* #define LCD_HSD101PFW2_XXXX 1 *//*Example*/ /*----------------------- PRIVATE TYPE --------------------------------------*/ /* typedef xxxx lcd_xxx_t; *//*Example*/ /*----------EXPORTED PRIVATE VARIABLES are defined in lcd.h -------------*/ static void lcd_HSD101PFW2_power_on(void); static void lcd_HSD101PFW2_power_off(void); /*----------------------- INTERNAL PRIVATE VARIABLES - -----------------------*/ /* int lcd_xxx; *//*Example*/ lcd_parm_t lcd_HSD101PFW2_parm = { .bits_per_pixel = 18, .capability = 0, .vmode = { .name = "HANNSTAR HSD101PFW2", .refresh = 60, .xres = 1024, .yres = 600, .pixclock = KHZ2PICOS(45000), .left_margin = 44, .right_margin = 88, .upper_margin = 10, .lower_margin = 5, .hsync_len = 44, .vsync_len = 10, .sync = FB_SYNC_VERT_HIGH_ACT, .vmode = 0, .flag = 0, }, .initial = lcd_HSD101PFW2_power_on, .uninitial = lcd_HSD101PFW2_power_off, }; /*--------------------- INTERNAL PRIVATE FUNCTIONS ---------------------------*/ /* void lcd_xxx(void); *//*Example*/ /*----------------------- Function Body --------------------------------------*/ static void lcd_HSD101PFW2_power_on(void) { DPRINT("lcd_HSD101PFW2_power_on\n"); /* TODO */ } static void lcd_HSD101PFW2_power_off(void) { DPRINT("lcd_HSD101PFW2_power_off\n"); /* TODO */ } lcd_parm_t *lcd_HSD101PFW2_get_parm(int arg) { return &lcd_HSD101PFW2_parm; } int lcd_HSD101PFW2_init(void) { int ret; ret = lcd_panel_register(LCD_HANNSTAR_HSD101PFW2, (void *) lcd_HSD101PFW2_get_parm); return ret; } /* End of lcd_oem_init */ module_init(lcd_HSD101PFW2_init); /*--------------------End of Function Body -----------------------------------*/ #undef LCD_EKING_HSD101PFW2_C