2 * Header file for TI DA8XX LCD controller platform data.
4 * Copyright (C) 2008-2009 MontaVista Software Inc.
5 * Copyright (C) 2008-2009 Texas Instruments Inc
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2. This program is licensed "as is" without any warranty of any
9 * kind, whether express or implied.
25 enum raster_load_mode
{
30 struct display_panel
{
31 enum panel_type panel_type
; /* QVGA */
34 enum panel_shade panel_shade
;
37 struct da8xx_lcdc_platform_data
{
38 const char manu_name
[10];
39 void *controller_data
;
43 struct lcd_ctrl_config
{
44 const struct display_panel
*p_disp_panel
;
46 /* AC Bias Pin Frequency */
49 /* AC Bias Pin Transitions per Interrupt */
58 /* FIFO DMA Request Delay */
61 /* TFT Alternative Signal Mapping (Only for active) */
62 unsigned char tft_alt_mode
;
64 /* 12 Bit Per Pixel (5-6-5) Mode (Only for passive) */
65 unsigned char stn_565_mode
;
67 /* Mono 8-bit Mode: 1=D0-D7 or 0=D0-D3 */
68 unsigned char mono_8bit_mode
;
70 /* Invert line clock */
71 unsigned char invert_line_clock
;
73 /* Invert frame clock */
74 unsigned char invert_frm_clock
;
76 /* Horizontal and Vertical Sync Edge: 0=rising 1=falling */
77 unsigned char sync_edge
;
79 /* Horizontal and Vertical Sync: Control: 0=ignore */
80 unsigned char sync_ctrl
;
82 /* Raster Data Order Select: 1=Most-to-least 0=Least-to-most */
83 unsigned char raster_order
;
93 #define FBIOGET_CONTRAST _IOR('F', 1, int)
94 #define FBIOPUT_CONTRAST _IOW('F', 2, int)
95 #define FBIGET_BRIGHTNESS _IOR('F', 3, int)
96 #define FBIPUT_BRIGHTNESS _IOW('F', 3, int)
97 #define FBIGET_COLOR _IOR('F', 5, int)
98 #define FBIPUT_COLOR _IOW('F', 6, int)
99 #define FBIPUT_HSYNC _IOW('F', 9, int)
100 #define FBIPUT_VSYNC _IOW('F', 10, int)
102 #endif /* ifndef DA8XX_FB_H */