diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-01-07 11:57:52 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-01-07 11:57:52 +0100 |
commit | 29b6d429f690f744b8958f67720d67610aa92fec (patch) | |
tree | ad5607c0c01a0ec1df8f5d3229309e332a767180 /arch/arm/mach-imx | |
parent | dd28a45d9defb7fcdd221134def588bf811a4fb1 (diff) | |
parent | 8a01dea639e4530dad1a945b1d5efbe903a9407e (diff) | |
download | barebox-29b6d429f690f744b8958f67720d67610aa92fec.tar.gz barebox-29b6d429f690f744b8958f67720d67610aa92fec.tar.xz |
Merge branch 'for-next/video'
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/include/mach/imx-ipu-fb.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/include/mach/imx-ipu-fb.h b/arch/arm/mach-imx/include/mach/imx-ipu-fb.h index 74a1a88b56..73028d26cf 100644 --- a/arch/arm/mach-imx/include/mach/imx-ipu-fb.h +++ b/arch/arm/mach-imx/include/mach/imx-ipu-fb.h @@ -22,16 +22,38 @@ #define FB_SYNC_CLK_SEL_EN 0x02000000 /* + * Specify the way your display is connected. The IPU can arbitrarily + * map the internal colors to the external data lines. We only support + * the following mappings at the moment. + */ +enum disp_data_mapping { + /* blue -> d[0..5], green -> d[6..11], red -> d[12..17] */ + IPU_DISP_DATA_MAPPING_RGB666, + /* blue -> d[0..4], green -> d[5..10], red -> d[11..15] */ + IPU_DISP_DATA_MAPPING_RGB565, + /* blue -> d[0..7], green -> d[8..15], red -> d[16..23] */ + IPU_DISP_DATA_MAPPING_RGB888, +}; + +/* * struct mx3fb_platform_data - mx3fb platform data */ struct imx_ipu_fb_platform_data { struct fb_videomode *mode; unsigned char bpp; u_int num_modes; + enum disp_data_mapping disp_data_fmt; void __iomem *framebuffer; + unsigned long framebuffer_size; void __iomem *framebuffer_ovl; + unsigned long framebuffer_ovl_size; /** hook to enable backlight and stuff */ void (*enable)(int enable); + /* + * Fractional pixelclock divider causes jitter which some displays + * or LVDS transceivers can't handle. Disable it if necessary. + */ + int disable_fractional_divider; }; #endif /* __MACH_IMX_IPU_FB_H__ */ |