Commit bde2dcf7 authored by Damien Lespiau's avatar Damien Lespiau Committed by Daniel Vetter

drm: Introduce a crtc_clock for struct drm_display_mode

Just like the various timings, make it possible to have a clock field
what we can tweak before giving it to hardware.
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Acked-by: default avatarDave Airlie <airlied@gmail.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 65427b1e
...@@ -719,6 +719,7 @@ void drm_mode_set_crtcinfo(struct drm_display_mode *p, int adjust_flags) ...@@ -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)) if ((p == NULL) || ((p->type & DRM_MODE_TYPE_CRTC_C) == DRM_MODE_TYPE_BUILTIN))
return; return;
p->crtc_clock = p->clock;
p->crtc_hdisplay = p->hdisplay; p->crtc_hdisplay = p->hdisplay;
p->crtc_hsync_start = p->hsync_start; p->crtc_hsync_start = p->hsync_start;
p->crtc_hsync_end = p->hsync_end; p->crtc_hsync_end = p->hsync_end;
......
...@@ -156,6 +156,7 @@ struct drm_display_mode { ...@@ -156,6 +156,7 @@ struct drm_display_mode {
int height_mm; int height_mm;
/* Actual mode we give to hw */ /* Actual mode we give to hw */
int crtc_clock; /* in KHz */
int crtc_hdisplay; int crtc_hdisplay;
int crtc_hblank_start; int crtc_hblank_start;
int crtc_hblank_end; int crtc_hblank_end;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment