]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00212529 MX6x show video to fb0 when bootup, the color space incorrect.
authorSandor Yu <R01008@freescale.com>
Wed, 6 Jun 2012 08:39:35 +0000 (16:39 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:47 +0000 (08:34 +0200)
DP CSC setting not update because incorrect DP sync flow SRM Mode.

Signed-off-by: Sandor Yu <R01008@freescale.com>
drivers/mxc/ipu3/ipu_disp.c

index 706dc2160f48bf2041e762d2320af9eb6e16e739..680361898e8ff1de0a4724e8e70e72756559f77f 100644 (file)
@@ -2010,16 +2010,8 @@ int32_t _ipu_disp_set_window_pos(struct ipu_soc *ipu, ipu_channel_t channel,
 
        ipu_dp_write(ipu, (x_pos << 16) | y_pos, DP_FG_POS(flow));
 
-       if (ipu_is_channel_busy(ipu, channel)) {
-               /* controled by FSU if channel enabled */
-               reg = ipu_cm_read(ipu, IPU_SRM_PRI2) & (~(0x3 << dp_srm_shift));
-               reg |= (0x1 << dp_srm_shift);
-               ipu_cm_write(ipu, reg, IPU_SRM_PRI2);
-       } else {
-               /* disable auto swap, controled by MCU if channel disabled */
-               reg = ipu_cm_read(ipu, IPU_SRM_PRI2) & (~(0x3 << dp_srm_shift));
-               ipu_cm_write(ipu, reg, IPU_SRM_PRI2);
-       }
+       reg = ipu_cm_read(ipu, IPU_SRM_PRI2) | 0x8;
+       ipu_cm_write(ipu, reg, IPU_SRM_PRI2);
 
        return 0;
 }