X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fvideo%2Fipu_disp.c;h=47d741796e9abaa63e5a95dc8268572402392bc1;hb=9415b9a7d85c6c77698a551c47765720c2caef91;hp=e08ddd4a4e9fa78472fb0bd3b95e217ee155788f;hpb=c1924d85af4a07dc70aef1ef95c48b54a136733f;p=u-boot diff --git a/drivers/video/ipu_disp.c b/drivers/video/ipu_disp.c index e08ddd4a4e..47d741796e 100644 --- a/drivers/video/ipu_disp.c +++ b/drivers/video/ipu_disp.c @@ -15,7 +15,7 @@ #include #include -#include +#include #include #include #include @@ -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;