Commit 37e6011b authored by Yannick Fertre's avatar Yannick Fertre Committed by Sam Ravnborg

drm/panel: rm68200: fix mode to 50fps

Compute new timings to get a framerate of 50fps with a pixel clock
@54Mhz.
Signed-off-by: default avatarYannick Fertre <yannick.fertre@st.com>
Tested-by: default avatarPhilippe Cornu <philippe.cornu@st.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200925141618.12097-1-yannick.fertre@st.com
parent 06dd6f30
...@@ -82,15 +82,15 @@ struct rm68200 { ...@@ -82,15 +82,15 @@ struct rm68200 {
}; };
static const struct drm_display_mode default_mode = { static const struct drm_display_mode default_mode = {
.clock = 52582, .clock = 54000,
.hdisplay = 720, .hdisplay = 720,
.hsync_start = 720 + 38, .hsync_start = 720 + 48,
.hsync_end = 720 + 38 + 8, .hsync_end = 720 + 48 + 9,
.htotal = 720 + 38 + 8 + 38, .htotal = 720 + 48 + 9 + 48,
.vdisplay = 1280, .vdisplay = 1280,
.vsync_start = 1280 + 12, .vsync_start = 1280 + 12,
.vsync_end = 1280 + 12 + 4, .vsync_end = 1280 + 12 + 5,
.vtotal = 1280 + 12 + 4 + 12, .vtotal = 1280 + 12 + 5 + 12,
.flags = 0, .flags = 0,
.width_mm = 68, .width_mm = 68,
.height_mm = 122, .height_mm = 122,
......
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