drm/i915/skl: vfuncs for skl eld and global resource
authorSatheeshakrishna M <[email protected]>
Tue, 8 Apr 2014 10:16:54 +0000 (15:46 +0530)
committerDaniel Vetter <[email protected]>
Wed, 24 Sep 2014 12:52:02 +0000 (14:52 +0200)
Set gen 9 function pointers for eld write and global resource.
Implementation remains same as HSW.

v2: Rebase on top of Sonika's untangling of the if/else ladder (Damien)

Reviewed-by: Rodrigo Vivi <[email protected]>
Signed-off-by: Satheeshakrishna M <[email protected]> (v1)
Signed-off-by: Damien Lespiau <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/i915/intel_display.c

index 901c035514ac06039fb33097cc184b52ae00aad9..2087e8baa3f9bd1f2c05442b66d2430fc2613bf7 100644 (file)
@@ -12758,6 +12758,10 @@ static void intel_init_display(struct drm_device *dev)
                dev_priv->display.modeset_global_resources =
                        valleyview_modeset_global_resources;
                dev_priv->display.write_eld = ironlake_write_eld;
+       } else if (INTEL_INFO(dev)->gen >= 9) {
+               dev_priv->display.write_eld = haswell_write_eld;
+               dev_priv->display.modeset_global_resources =
+                       haswell_modeset_global_resources;
        }
 
        /* Default just returns -ENODEV to indicate unsupported */