summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLiu Ying <b17645@freescale.com>2009-04-23 11:40:01 +0800
committerJason Chen <b02280@freescale.com>2009-08-27 10:28:16 +0800
commit90bf8641872b757dd18c999c1ce63a4abf889a78 (patch)
tree8b61f22507bb1b501aa947a0d957793dd9ea9727 /include
parent1860b23e6aedae45d1ceb55c3600f84e0ebe4a4c (diff)
ENGR00108640 IPUv3:support DP DC switch
1)Support dynamic switch between DP and DC. 2)Simplify some operation related with MXC v4l2 output. Note: For IPUv3, the switch is recommended to be done with both LCD and TVout disabled. Please flow these steps to switch DP from LCD to TVout. 1)echo U:720x480i-60 > /sys/class/graphics/fb1/mode 2)echo 1 > /sys/class/graphics/fb0/blank 3)echo 1 > /sys/class/graphics/fb1/blank 4)echo 1 > /sys/class/graphics/fb2/blank 5)echo 1-layer-fb > /sys/class/graphics/fb0/fsl_disp_property 6)echo 0 > /sys/class/graphics/fb0/blank 7)echo 0 > /sys/class/graphics/fb1/blank Please flow these steps to do the switching DP from TVout to LCD. 1)echo U:720x480i-60 > /sys/class/graphics/fb1/mode 2)echo 1 > /sys/class/graphics/fb0/blank 3)echo 1 > /sys/class/graphics/fb1/blank 4)echo 1 > /sys/class/graphics/fb2/blank 5)echo 1-layer-fb > /sys/class/graphics/fb1/fsl_disp_property 6)echo 0 > /sys/class/graphics/fb0/blank 7)echo 0 > /sys/class/graphics/fb1/blank There are issues remain in these cases: a.For IPUv3D 1)If both LCD and TVout are enabled and TVout uses DP, disable/enable TVout will cause TVout display crash. 2)Not stable to run v4l output on DP-BG while DP is used by TVout and LCD is on. 3)If either TVout or LCD is on, switching will cause display issue on TVout and LCD. b.For IPUv3EX 1)Not stable to run v4l output on DP-BG while DP is used by TVout and LCD is on. 2)If both TVout and LCD are enabled, switching DP from LCD to TVout will cause flick issue on TVout. 3)If TVout is enabled and LCD is disabled, switching will cause flick issue on TVout. Signed-off-by: Liu Ying <b17645@freescale.com> (cherry picked from commit c4a8b416a57d71a7d6f6b20967e45fc89df8b588)
Diffstat (limited to 'include')
-rw-r--r--include/linux/ipu.h4
-rw-r--r--include/linux/mxcfb.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/ipu.h b/include/linux/ipu.h
index b1d27fb64af2..2f9fa4380593 100644
--- a/include/linux/ipu.h
+++ b/include/linux/ipu.h
@@ -717,7 +717,8 @@ enum {
typedef enum {
RGB,
YCbCr,
- YUV
+ YUV,
+ NONE
} ipu_color_space_t;
/*!
@@ -884,6 +885,7 @@ int32_t ipu_unlink_channels(ipu_channel_t src_ch, ipu_channel_t dest_ch);
int32_t ipu_is_channel_busy(ipu_channel_t channel);
int32_t ipu_enable_channel(ipu_channel_t channel);
int32_t ipu_disable_channel(ipu_channel_t channel, bool wait_for_stop);
+int32_t ipu_swap_channel(ipu_channel_t from_ch, ipu_channel_t to_ch);
int ipu_lowpwr_display_enable(void);
int ipu_lowpwr_display_disable(void);
diff --git a/include/linux/mxcfb.h b/include/linux/mxcfb.h
index f54a2c089fae..c91ef8699f18 100644
--- a/include/linux/mxcfb.h
+++ b/include/linux/mxcfb.h
@@ -49,7 +49,7 @@ struct mxcfb_pos {
#define MXCFB_SET_GBL_ALPHA _IOW('F', 0x21, struct mxcfb_gbl_alpha)
#define MXCFB_SET_CLR_KEY _IOW('F', 0x22, struct mxcfb_color_key)
#define MXCFB_SET_OVERLAY_POS _IOW('F', 0x24, struct mxcfb_pos)
-#define MXCFB_GET_FB_IPU_CHAN _IOR('F', 0x25, u_int32_t)
+#define MXCFB_GET_FB_IPU_CHAN _IOR('F', 0x25, u_int32_t)
#ifdef __KERNEL__