1
2
3
4
5
6
7
8
9
10
11
12#ifndef DA8XX_FB_H
13#define DA8XX_FB_H
14
15enum panel_shade {
16 MONOCHROME = 0,
17 COLOR_ACTIVE,
18 COLOR_PASSIVE,
19};
20
21enum raster_load_mode {
22 LOAD_DATA = 1,
23 LOAD_PALETTE,
24};
25
26enum da8xx_frame_complete {
27 DA8XX_FRAME_WAIT,
28 DA8XX_FRAME_NOWAIT,
29};
30
31struct da8xx_lcdc_platform_data {
32 const char manu_name[10];
33 void *controller_data;
34 const char type[25];
35 void (*panel_power_ctrl)(int);
36};
37
38struct lcd_ctrl_config {
39 enum panel_shade panel_shade;
40
41
42 int ac_bias;
43
44
45 int ac_bias_intrpt;
46
47
48 int dma_burst_sz;
49
50
51 int bpp;
52
53
54 int fdd;
55
56
57 unsigned char tft_alt_mode;
58
59
60 unsigned char stn_565_mode;
61
62
63 unsigned char mono_8bit_mode;
64
65
66 unsigned char sync_edge;
67
68
69 unsigned char raster_order;
70
71
72 int fifo_th;
73};
74
75struct lcd_sync_arg {
76 int back_porch;
77 int front_porch;
78 int pulse_width;
79};
80
81
82#define FBIOGET_CONTRAST _IOR('F', 1, int)
83#define FBIOPUT_CONTRAST _IOW('F', 2, int)
84#define FBIGET_BRIGHTNESS _IOR('F', 3, int)
85#define FBIPUT_BRIGHTNESS _IOW('F', 3, int)
86#define FBIGET_COLOR _IOR('F', 5, int)
87#define FBIPUT_COLOR _IOW('F', 6, int)
88#define FBIPUT_HSYNC _IOW('F', 9, int)
89#define FBIPUT_VSYNC _IOW('F', 10, int)
90
91
92#define FB_SYNC_CLK_INVERT 0x40000000
93
94#endif
95
96