diff options
Diffstat (limited to 'arch/arm/plat-mxc/include/mach/imxfb.h')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/imxfb.h | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/arch/arm/plat-mxc/include/mach/imxfb.h b/arch/arm/plat-mxc/include/mach/imxfb.h index 9f0101157ec1..5263506b7ddf 100644 --- a/arch/arm/plat-mxc/include/mach/imxfb.h +++ b/arch/arm/plat-mxc/include/mach/imxfb.h | |||
@@ -2,6 +2,8 @@ | |||
2 | * This structure describes the machine which we are running on. | 2 | * This structure describes the machine which we are running on. |
3 | */ | 3 | */ |
4 | 4 | ||
5 | #include <linux/fb.h> | ||
6 | |||
5 | #define PCR_TFT (1 << 31) | 7 | #define PCR_TFT (1 << 31) |
6 | #define PCR_COLOR (1 << 30) | 8 | #define PCR_COLOR (1 << 30) |
7 | #define PCR_PBSIZ_1 (0 << 28) | 9 | #define PCR_PBSIZ_1 (0 << 28) |
@@ -13,7 +15,8 @@ | |||
13 | #define PCR_BPIX_4 (2 << 25) | 15 | #define PCR_BPIX_4 (2 << 25) |
14 | #define PCR_BPIX_8 (3 << 25) | 16 | #define PCR_BPIX_8 (3 << 25) |
15 | #define PCR_BPIX_12 (4 << 25) | 17 | #define PCR_BPIX_12 (4 << 25) |
16 | #define PCR_BPIX_16 (4 << 25) | 18 | #define PCR_BPIX_16 (5 << 25) |
19 | #define PCR_BPIX_18 (6 << 25) | ||
17 | #define PCR_PIXPOL (1 << 24) | 20 | #define PCR_PIXPOL (1 << 24) |
18 | #define PCR_FLMPOL (1 << 23) | 21 | #define PCR_FLMPOL (1 << 23) |
19 | #define PCR_LPPOL (1 << 22) | 22 | #define PCR_LPPOL (1 << 22) |
@@ -46,29 +49,21 @@ | |||
46 | #define DMACR_HM(x) (((x) & 0xf) << 16) | 49 | #define DMACR_HM(x) (((x) & 0xf) << 16) |
47 | #define DMACR_TM(x) ((x) & 0xf) | 50 | #define DMACR_TM(x) ((x) & 0xf) |
48 | 51 | ||
49 | struct imx_fb_platform_data { | 52 | struct imx_fb_videomode { |
50 | u_long pixclock; | 53 | struct fb_videomode mode; |
51 | 54 | u32 pcr; | |
52 | u_short xres; | 55 | unsigned char bpp; |
53 | u_short yres; | 56 | }; |
54 | |||
55 | u_int nonstd; | ||
56 | u_char bpp; | ||
57 | u_char hsync_len; | ||
58 | u_char left_margin; | ||
59 | u_char right_margin; | ||
60 | 57 | ||
61 | u_char vsync_len; | 58 | struct imx_fb_platform_data { |
62 | u_char upper_margin; | 59 | struct imx_fb_videomode *mode; |
63 | u_char lower_margin; | 60 | int num_modes; |
64 | u_char sync; | ||
65 | 61 | ||
66 | u_int cmap_greyscale:1, | 62 | u_int cmap_greyscale:1, |
67 | cmap_inverse:1, | 63 | cmap_inverse:1, |
68 | cmap_static:1, | 64 | cmap_static:1, |
69 | unused:29; | 65 | unused:29; |
70 | 66 | ||
71 | u_int pcr; | ||
72 | u_int pwmr; | 67 | u_int pwmr; |
73 | u_int lscr1; | 68 | u_int lscr1; |
74 | u_int dmacr; | 69 | u_int dmacr; |