rk616: rgb screen no invert d_clk
authorZHW <zhw@rock-chips.com>
Tue, 8 Oct 2013 02:24:33 +0000 (10:24 +0800)
committerZHW <zhw@rock-chips.com>
Tue, 8 Oct 2013 02:24:33 +0000 (10:24 +0800)
drivers/mfd/rk616-vif.c

index ebc719066da1e4b162346cf47c8ab5d4a3c5843d..848606c6d467ed63683945529bfe31e620f3275c 100755 (executable)
@@ -737,7 +737,10 @@ static int rk616_dither_cfg(struct mfd_rk616 *rk616,rk_screen *screen,bool enabl
 {
        u32 val = 0;
        int ret = 0;
-       val = FRC_DCLK_INV | (FRC_DCLK_INV << 16);
+
+       if(screen->type != SCREEN_RGB) //if RGB screen , not invert D_CLK
+               val = FRC_DCLK_INV | (FRC_DCLK_INV << 16);
+       
        if((screen->face != OUT_P888) && enable)  //enable frc dither if the screen is not 24bit
                val |= FRC_DITHER_EN | (FRC_DITHER_EN << 16);
                //val |= (FRC_DITHER_EN << 16);