0001
0002
0003
0004
0005
0006
0007 #ifndef __ASM_ARCH_MX3FB_H__
0008 #define __ASM_ARCH_MX3FB_H__
0009
0010 #include <linux/device.h>
0011 #include <linux/fb.h>
0012
0013
0014 #define FB_SYNC_OE_ACT_HIGH 0x80000000
0015 #define FB_SYNC_CLK_INVERT 0x40000000
0016 #define FB_SYNC_DATA_INVERT 0x20000000
0017 #define FB_SYNC_CLK_IDLE_EN 0x10000000
0018 #define FB_SYNC_SHARP_MODE 0x08000000
0019 #define FB_SYNC_SWAP_RGB 0x04000000
0020 #define FB_SYNC_CLK_SEL_EN 0x02000000
0021
0022
0023
0024
0025
0026
0027 enum disp_data_mapping {
0028
0029 IPU_DISP_DATA_MAPPING_RGB666,
0030
0031 IPU_DISP_DATA_MAPPING_RGB565,
0032
0033 IPU_DISP_DATA_MAPPING_RGB888,
0034 };
0035
0036
0037
0038
0039
0040
0041
0042 struct mx3fb_platform_data {
0043 struct device *dma_dev;
0044 const char *name;
0045 const struct fb_videomode *mode;
0046 int num_modes;
0047 enum disp_data_mapping disp_data_fmt;
0048 };
0049
0050 #endif