]> git.sur5r.net Git - u-boot/blobdiff - drivers/video/ipu_disp.c
rockchip: video: rk_hdmi: migrate to livetree
[u-boot] / drivers / video / ipu_disp.c
index e08ddd4a4e9fa78472fb0bd3b95e217ee155788f..47d741796e9abaa63e5a95dc8268572402392bc1 100644 (file)
@@ -15,7 +15,7 @@
 
 #include <common.h>
 #include <linux/types.h>
-#include <asm/errno.h>
+#include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
@@ -611,11 +611,9 @@ void ipu_dp_dc_enable(ipu_channel_t channel)
        uint32_t reg;
        uint32_t dc_chan;
 
-       if (channel == MEM_FG_SYNC)
-               dc_chan = 5;
        if (channel == MEM_DC_SYNC)
                dc_chan = 1;
-       else if (channel == MEM_BG_SYNC)
+       else if ((channel == MEM_BG_SYNC) || (channel == MEM_FG_SYNC))
                dc_chan = 5;
        else
                return;