aboutsummaryrefslogtreecommitdiffstats
path: root/include/video
diff options
context:
space:
mode:
Diffstat (limited to 'include/video')
-rw-r--r--include/video/da8xx-fb.h106
1 files changed, 106 insertions, 0 deletions
diff --git a/include/video/da8xx-fb.h b/include/video/da8xx-fb.h
new file mode 100644
index 000000000000..5f7767547fa0
--- /dev/null
+++ b/include/video/da8xx-fb.h
@@ -0,0 +1,106 @@
1/*
2 * Header file for TI DA8XX LCD controller platform data.
3 *
4 * Copyright (C) 2008-2009 MontaVista Software Inc.
5 * Copyright (C) 2008-2009 Texas Instruments Inc
6 *
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.
10 */
11
12#ifndef DA8XX_FB_H
13#define DA8XX_FB_H
14
15enum panel_type {
16 QVGA = 0
17};
18
19enum panel_shade {
20 MONOCHROME = 0,
21 COLOR_ACTIVE,
22 COLOR_PASSIVE,
23};
24
25enum raster_load_mode {
26 LOAD_DATA = 1,
27 LOAD_PALETTE,
28};
29
30struct display_panel {
31 enum panel_type panel_type; /* QVGA */
32 int max_bpp;
33 int min_bpp;
34 enum panel_shade panel_shade;
35};
36
37struct da8xx_lcdc_platform_data {
38 const char manu_name[10];
39 void *controller_data;
40 const char type[25];
41};
42
43struct lcd_ctrl_config {
44 const struct display_panel *p_disp_panel;
45
46 /* AC Bias Pin Frequency */
47 int ac_bias;
48
49 /* AC Bias Pin Transitions per Interrupt */
50 int ac_bias_intrpt;
51
52 /* DMA burst size */
53 int dma_burst_sz;
54
55 /* Bits per pixel */
56 int bpp;
57
58 /* FIFO DMA Request Delay */
59 int fdd;
60
61 /* TFT Alternative Signal Mapping (Only for active) */
62 unsigned char tft_alt_mode;
63
64 /* 12 Bit Per Pixel (5-6-5) Mode (Only for passive) */
65 unsigned char stn_565_mode;
66
67 /* Mono 8-bit Mode: 1=D0-D7 or 0=D0-D3 */
68 unsigned char mono_8bit_mode;
69
70 /* Invert pixel clock */
71 unsigned char invert_pxl_clock;
72
73 /* Invert line clock */
74 unsigned char invert_line_clock;
75
76 /* Invert frame clock */
77 unsigned char invert_frm_clock;
78
79 /* Horizontal and Vertical Sync Edge: 0=rising 1=falling */
80 unsigned char sync_edge;
81
82 /* Horizontal and Vertical Sync: Control: 0=ignore */
83 unsigned char sync_ctrl;
84
85 /* Raster Data Order Select: 1=Most-to-least 0=Least-to-most */
86 unsigned char raster_order;
87};
88
89struct lcd_sync_arg {
90 int back_porch;
91 int front_porch;
92 int pulse_width;
93};
94
95/* ioctls */
96#define FBIOGET_CONTRAST _IOR('F', 1, int)
97#define FBIOPUT_CONTRAST _IOW('F', 2, int)
98#define FBIGET_BRIGHTNESS _IOR('F', 3, int)
99#define FBIPUT_BRIGHTNESS _IOW('F', 3, int)
100#define FBIGET_COLOR _IOR('F', 5, int)
101#define FBIPUT_COLOR _IOW('F', 6, int)
102#define FBIPUT_HSYNC _IOW('F', 9, int)
103#define FBIPUT_VSYNC _IOW('F', 10, int)
104
105#endif /* ifndef DA8XX_FB_H */
106