• Daniel Vetter's avatar
    drm/i915: panel fitter hw state readout&check support · 2fa2fe9a
    Daniel Vetter authored
    Pfit state readout is a bit ugly on gen2/3 due to the intermingling
    with the lvds state, but alas.
    
    Also note that since state is always cleared to zero we can
    unconditonally compare all the state and completely neglect the actual
    platform we're running on.
    
    v2: Properly check for the pfit power domain on haswell.
    
    v3: Don't check pgm_ratios on gen4+, they're auto-computed by the hw.
    
    v4: Properly clear the lvds border bits, upset the state checker a
    bit.
    
    v5: Unconditionally read out panel dither settings on gen2/3.
    Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    2fa2fe9a
intel_lvds.c 30.8 KB