X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fvideo%2Fipu_disp.c;h=47d741796e9abaa63e5a95dc8268572402392bc1;hb=26f50fbed2f19edf0c4a2eb80e7fa12941764660;hp=e08ddd4a4e9fa78472fb0bd3b95e217ee155788f;hpb=4a421a67b6f36678bfd27b7fedc0de35faf94c76;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;