/* * Copyright (C) 2009, Lars-Peter Clausen * * 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. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. * */ #ifndef __GSC3280_LCDFB_H__ #define __GSC3280_LCDFB_H__ #include #define GSC3280_REG_LCD_CTRL 0x00 #define GSC3280_REG_LCD_STAT 0x04 #define GSC3280_REG_LCD_HTIM 0x08 #define GSC3280_REG_LCD_VTIM 0x0C #define GSC3280_REG_LCD_HVLEN 0x10 #define GSC3280_REG_LCD_VBAR 0x14 #define GSC3280_REG_LCD_XYPOS 0x18 #define GSC3280_REG_LCD_CBAR 0x1C #define GSC3280_REG_LCD_CEN 0x20 #define GSC3280_REG_LCD_PCLT 0x24 #define GSC3280_REG_LCD_PLATE 0x45e00 #define GSC3280_PM_OPS NULL /* * width: width of the lcd display in mm * height: height of the lcd display in mm * num_modes: size of modes * modes: list of valid video modes * bpp: bits per pixel for the lcd * lcd_type: lcd type */ struct gsc3280_fb_platform_data { u8 bpp; u8 num_modes; struct fb_videomode *modes; }; extern int my_vga_mode; extern int wire1_backlight_control(u8 bl_data); #endif