• Timur Tabi's avatar
    drivers/video: fsl-diu-fb: don't initialize the THRESHOLDS registers · 5e7b911f
    Timur Tabi authored
    The THRESHOLDS register configures thresholds for two interrupts, but
    these interrupts are not used in the DIU driver.  An early version of the
    driver may have used the "lines before vsync" interrupt, which requires
    the LS_BF_VS of THRESHOLDS to be initialized.
    
    Unfortunately, the initialization of this register does not do a
    read-modify-write to set only LS_BF_VS.  On the MPC8610, the value
    written is correct.  On other chips, like the P1022, the value overwrites
    some reserved bits.  This results in a performance drop on the P1022.
    
    Since the default value is acceptable as-is on all SOCs, we should just
    avoid touching this register.
    Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
    Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
    5e7b911f
fsl-diu-fb.c 44.7 KB