Skip to content

Commit bde2dcf

Browse files
Damien Lespiaudanvet
authored andcommitted
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: 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>
1 parent 65427b1 commit bde2dcf

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/gpu/drm/drm_modes.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ void drm_mode_set_crtcinfo(struct drm_display_mode *p, int adjust_flags)
719719
if ((p == NULL) || ((p->type & DRM_MODE_TYPE_CRTC_C) == DRM_MODE_TYPE_BUILTIN))
720720
return;
721721

722+
p->crtc_clock = p->clock;
722723
p->crtc_hdisplay = p->hdisplay;
723724
p->crtc_hsync_start = p->hsync_start;
724725
p->crtc_hsync_end = p->hsync_end;

‎include/drm/drm_crtc.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ struct drm_display_mode {
156156
int height_mm;
157157

158158
/* Actual mode we give to hw */
159+
int crtc_clock; /* in KHz */
159160
int crtc_hdisplay;
160161
int crtc_hblank_start;
161162
int crtc_hblank_end;

0 commit comments

Comments
 (0)