1
2
3
4
5
6
7 #ifndef __ASM_ARCH_MX3FB_H__
8 #define __ASM_ARCH_MX3FB_H__
9
10 #include <linux/device.h>
11 #include <linux/fb.h>
12
13
14 #define FB_SYNC_OE_ACT_HIGH 0x80000000
15 #define FB_SYNC_CLK_INVERT 0x40000000
16 #define FB_SYNC_DATA_INVERT 0x20000000
17 #define FB_SYNC_CLK_IDLE_EN 0x10000000
18 #define FB_SYNC_SHARP_MODE 0x08000000
19 #define FB_SYNC_SWAP_RGB 0x04000000
20 #define FB_SYNC_CLK_SEL_EN 0x02000000
21
22
23
24
25
26
27 enum disp_data_mapping {
28
29 IPU_DISP_DATA_MAPPING_RGB666,
30
31 IPU_DISP_DATA_MAPPING_RGB565,
32
33 IPU_DISP_DATA_MAPPING_RGB888,
34 };
35
36
37
38
39
40
41
42 struct mx3fb_platform_data {
43 struct device *dma_dev;
44 const char *name;
45 const struct fb_videomode *mode;
46 int num_modes;
47 enum disp_data_mapping disp_data_fmt;
48 };
49
50 #endif