drm: Introduce a crtc_clock for struct drm_display_mode
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 25 Sep 2013 15:45:34 +0000 (16:45 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Oct 2013 05:45:35 +0000 (07:45 +0200)
Just like the various timings, make it possible to have a clock field
what we can tweak before giving it to hardware.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_modes.c
include/drm/drm_crtc.h

index c2cb2c80f945f862b3e1094ee622626828d68fd1..ef26eb28364a3c0880f95248b40b88d0dbf1e41c 100644 (file)
@@ -719,6 +719,7 @@ void drm_mode_set_crtcinfo(struct drm_display_mode *p, int adjust_flags)
        if ((p == NULL) || ((p->type & DRM_MODE_TYPE_CRTC_C) == DRM_MODE_TYPE_BUILTIN))
                return;
 
+       p->crtc_clock = p->clock;
        p->crtc_hdisplay = p->hdisplay;
        p->crtc_hsync_start = p->hsync_start;
        p->crtc_hsync_end = p->hsync_end;
index 8e9716e362e1f2f846d2be094dec41031d726d6a..73478bc8f9ee703452c09ee4cfcc377c4bc53470 100644 (file)
@@ -156,6 +156,7 @@ struct drm_display_mode {
        int height_mm;
 
        /* Actual mode we give to hw */
+       int crtc_clock;         /* in KHz */
        int crtc_hdisplay;
        int crtc_hblank_start;
        int crtc_hblank_end;