diff options
author | Jason Chen <b02280@freescale.com> | 2010-11-17 17:29:12 +0800 |
---|---|---|
committer | Lily Zhang <r58066@freescale.com> | 2010-11-22 09:39:27 +0800 |
commit | b3a024fea9669d6ec2a17160b77548d46a1130a1 (patch) | |
tree | 10247897dd3b64c8fdc46ce0b26e85f6856c3b19 /include | |
parent | 03d7293a10614be9f3a55589b0c25ab80ed0a80d (diff) |
ENGR00122167-1 ipuv3: adding VGA support.
Add VGA support for ipu basic driver and fb driver.
Signed-off-by: Jason Chen <b02280@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ipu.h | 8 | ||||
-rw-r--r-- | include/linux/mxcfb.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/ipu.h b/include/linux/ipu.h index 493a4ce25664..ab5867700ca2 100644 --- a/include/linux/ipu.h +++ b/include/linux/ipu.h @@ -111,6 +111,7 @@ typedef enum { #define IPU_PIX_FMT_BGR666 fourcc('B', 'G', 'R', '6') /*!< 18 BGR-6-6-6 */ #define IPU_PIX_FMT_BGR24 fourcc('B', 'G', 'R', '3') /*!< 24 BGR-8-8-8 */ #define IPU_PIX_FMT_RGB24 fourcc('R', 'G', 'B', '3') /*!< 24 RGB-8-8-8 */ +#define IPU_PIX_FMT_GBR24 fourcc('G', 'B', 'R', '3') /*!< 24 GBR-8-8-8 */ #define IPU_PIX_FMT_BGR32 fourcc('B', 'G', 'R', '4') /*!< 32 BGR-8-8-8-8 */ #define IPU_PIX_FMT_BGRA32 fourcc('B', 'G', 'R', 'A') /*!< 32 BGR-8-8-8-8 */ #define IPU_PIX_FMT_RGB32 fourcc('R', 'G', 'B', '4') /*!< 32 RGB-8-8-8-8 */ @@ -971,6 +972,13 @@ int ipu_init_async_panel(int disp, int type, uint32_t cycle_time, void ipu_disp_direct_write(ipu_channel_t channel, u32 value, u32 offset); void ipu_reset_disp_panel(void); +void ipu_set_vga_delayed_hsync_vsync(uint32_t width, uint32_t height, + uint32_t h_start_width, uint32_t h_sync_width, + uint32_t h_end_width, uint32_t v_start_width, + uint32_t v_sync_width, uint32_t v_end_width, + uint32_t hsync_delay, uint32_t vsync_delay, + uint32_t hsync_polarity, uint32_t vsync_polarity); + /* ADC API */ int32_t ipu_adc_write_template(display_port_t disp, uint32_t *pCmd, bool write); diff --git a/include/linux/mxcfb.h b/include/linux/mxcfb.h index babf3f293680..1733f91426e1 100644 --- a/include/linux/mxcfb.h +++ b/include/linux/mxcfb.h @@ -125,6 +125,7 @@ struct mxcfb_waveform_modes { #define MXCFB_GET_FB_IPU_DI _IOR('F', 0x29, u_int32_t) #define MXCFB_GET_DIFMT _IOR('F', 0x2A, u_int32_t) #define MXCFB_GET_FB_BLANK _IOR('F', 0x2B, u_int32_t) +#define MXCFB_SET_DIFMT _IOW('F', 0x2C, u_int32_t) /* IOCTLs for E-ink panel updates */ #define MXCFB_SET_WAVEFORM_MODES _IOW('F', 0x2B, struct mxcfb_waveform_modes) |