]> git.sur5r.net Git - u-boot/commitdiff
video: stm32: stm32_ltdc: missing set of line interrupt position
authoryannick fertre <yannick.fertre@st.com>
Fri, 2 Mar 2018 14:59:24 +0000 (15:59 +0100)
committerAnatolij Gustschin <agust@denx.de>
Mon, 19 Mar 2018 09:52:09 +0000 (10:52 +0100)
Set LIPCR (line interrupt position conf) register with line length.

Signed-off-by: yannick fertre <yannick.fertre@st.com>
drivers/video/stm32/stm32_ltdc.c

index 08e0afcc9ea6c0fc440bbb690224c78ea6b20968..6c3557b06f2cbb52765c5bba75f2835648da1613 100644 (file)
@@ -219,6 +219,8 @@ static void stm32_ltdc_set_mode(struct stm32_ltdc_priv *priv)
        val = (total_w << 16) | total_h;
        clrsetbits_le32(regs + LTDC_TWCR, TWCR_TOTALH | TWCR_TOTALW, val);
 
+       setbits_le32(regs + LTDC_LIPCR, acc_act_h + 1);
+
        /* Signal polarities */
        val = 0;
        debug("%s: timing->flags 0x%08x\n", __func__, timing->flags);