aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c2
-rw-r--r--drivers/gpu/drm/omapdrm/displays/connector-dvi.c2
-rw-r--r--drivers/gpu/drm/omapdrm/displays/connector-hdmi.c2
-rw-r--r--drivers/gpu/drm/omapdrm/displays/panel-lgphilips-lb035q02.c2
-rw-r--r--drivers/gpu/drm/omapdrm/displays/panel-nec-nl8048hl11.c2
-rw-r--r--drivers/gpu/drm/omapdrm/displays/panel-sharp-ls037v7dw01.c2
-rw-r--r--drivers/gpu/drm/omapdrm/displays/panel-sony-acx565akm.c2
-rw-r--r--drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c2
-rw-r--r--drivers/gpu/drm/omapdrm/displays/panel-tpo-td043mtea1.c2
-rw-r--r--drivers/gpu/drm/omapdrm/dss/dispc.c15
-rw-r--r--drivers/gpu/drm/omapdrm/dss/display.c4
-rw-r--r--drivers/gpu/drm/omapdrm/dss/dsi.c4
-rw-r--r--drivers/gpu/drm/omapdrm/dss/hdmi5_core.c6
-rw-r--r--drivers/gpu/drm/omapdrm/dss/hdmi_wp.c6
-rw-r--r--drivers/gpu/drm/omapdrm/dss/omapdss.h2
-rw-r--r--drivers/gpu/drm/omapdrm/dss/rfbi.c2
-rw-r--r--drivers/gpu/drm/omapdrm/dss/venc.c4
-rw-r--r--drivers/gpu/drm/omapdrm/omap_connector.c4
18 files changed, 33 insertions, 32 deletions
diff --git a/drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c b/drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c
index ce33f47f4eea..51d0d45a6675 100644
--- a/drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c
+++ b/drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c
@@ -37,7 +37,7 @@ static const struct omap_video_timings tvc_pal_timings = {
37 .hfront_porch = 12, 37 .hfront_porch = 12,
38 .hback_porch = 68, 38 .hback_porch = 68,
39 .vsync_len = 5, 39 .vsync_len = 5,
40 .vfp = 5, 40 .vfront_porch = 5,
41 .vbp = 41, 41 .vbp = 41,
42 42
43 .interlace = true, 43 .interlace = true,
diff --git a/drivers/gpu/drm/omapdrm/displays/connector-dvi.c b/drivers/gpu/drm/omapdrm/displays/connector-dvi.c
index 91516fbc711b..efd122760833 100644
--- a/drivers/gpu/drm/omapdrm/displays/connector-dvi.c
+++ b/drivers/gpu/drm/omapdrm/displays/connector-dvi.c
@@ -29,7 +29,7 @@ static const struct omap_video_timings dvic_default_timings = {
29 .hsync_len = 32, 29 .hsync_len = 32,
30 .hback_porch = 80, 30 .hback_porch = 80,
31 31
32 .vfp = 3, 32 .vfront_porch = 3,
33 .vsync_len = 4, 33 .vsync_len = 4,
34 .vbp = 7, 34 .vbp = 7,
35 35
diff --git a/drivers/gpu/drm/omapdrm/displays/connector-hdmi.c b/drivers/gpu/drm/omapdrm/displays/connector-hdmi.c
index 6e75da30dc9d..7d60e465d354 100644
--- a/drivers/gpu/drm/omapdrm/displays/connector-hdmi.c
+++ b/drivers/gpu/drm/omapdrm/displays/connector-hdmi.c
@@ -29,7 +29,7 @@ static const struct omap_video_timings hdmic_default_timings = {
29 .hfront_porch = 16, 29 .hfront_porch = 16,
30 .hback_porch = 48, 30 .hback_porch = 48,
31 .vsync_len = 2, 31 .vsync_len = 2,
32 .vfp = 11, 32 .vfront_porch = 11,
33 .vbp = 31, 33 .vbp = 31,
34 34
35 .vsync_level = OMAPDSS_SIG_ACTIVE_LOW, 35 .vsync_level = OMAPDSS_SIG_ACTIVE_LOW,
diff --git a/drivers/gpu/drm/omapdrm/displays/panel-lgphilips-lb035q02.c b/drivers/gpu/drm/omapdrm/displays/panel-lgphilips-lb035q02.c
index 5b2dd1e48705..66d30ba7db81 100644
--- a/drivers/gpu/drm/omapdrm/displays/panel-lgphilips-lb035q02.c
+++ b/drivers/gpu/drm/omapdrm/displays/panel-lgphilips-lb035q02.c
@@ -30,7 +30,7 @@ static struct omap_video_timings lb035q02_timings = {
30 .hback_porch = 68, 30 .hback_porch = 68,
31 31
32 .vsync_len = 2, 32 .vsync_len = 2,
33 .vfp = 4, 33 .vfront_porch = 4,
34 .vbp = 18, 34 .vbp = 18,
35 35
36 .vsync_level = OMAPDSS_SIG_ACTIVE_LOW, 36 .vsync_level = OMAPDSS_SIG_ACTIVE_LOW,
diff --git a/drivers/gpu/drm/omapdrm/displays/panel-nec-nl8048hl11.c b/drivers/gpu/drm/omapdrm/displays/panel-nec-nl8048hl11.c
index ce0ab77a6fcd..9cb02c4bce41 100644
--- a/drivers/gpu/drm/omapdrm/displays/panel-nec-nl8048hl11.c
+++ b/drivers/gpu/drm/omapdrm/displays/panel-nec-nl8048hl11.c
@@ -72,7 +72,7 @@ static const struct omap_video_timings nec_8048_panel_timings = {
72 .hfront_porch = 6, 72 .hfront_porch = 6,
73 .hsync_len = 1, 73 .hsync_len = 1,
74 .hback_porch = 4, 74 .hback_porch = 4,
75 .vfp = 3, 75 .vfront_porch = 3,
76 .vsync_len = 1, 76 .vsync_len = 1,
77 .vbp = 4, 77 .vbp = 4,
78 78
diff --git a/drivers/gpu/drm/omapdrm/displays/panel-sharp-ls037v7dw01.c b/drivers/gpu/drm/omapdrm/displays/panel-sharp-ls037v7dw01.c
index 917f145e8d88..3b23aaf2676d 100644
--- a/drivers/gpu/drm/omapdrm/displays/panel-sharp-ls037v7dw01.c
+++ b/drivers/gpu/drm/omapdrm/displays/panel-sharp-ls037v7dw01.c
@@ -46,7 +46,7 @@ static const struct omap_video_timings sharp_ls_timings = {
46 .hback_porch = 28, 46 .hback_porch = 28,
47 47
48 .vsync_len = 1, 48 .vsync_len = 1,
49 .vfp = 1, 49 .vfront_porch = 1,
50 .vbp = 1, 50 .vbp = 1,
51 51
52 .vsync_level = OMAPDSS_SIG_ACTIVE_LOW, 52 .vsync_level = OMAPDSS_SIG_ACTIVE_LOW,
diff --git a/drivers/gpu/drm/omapdrm/displays/panel-sony-acx565akm.c b/drivers/gpu/drm/omapdrm/displays/panel-sony-acx565akm.c
index 2a42985782fd..6b1140b82f6e 100644
--- a/drivers/gpu/drm/omapdrm/displays/panel-sony-acx565akm.c
+++ b/drivers/gpu/drm/omapdrm/displays/panel-sony-acx565akm.c
@@ -99,7 +99,7 @@ static const struct omap_video_timings acx565akm_panel_timings = {
99 .hfront_porch = 28, 99 .hfront_porch = 28,
100 .hsync_len = 4, 100 .hsync_len = 4,
101 .hback_porch = 24, 101 .hback_porch = 24,
102 .vfp = 3, 102 .vfront_porch = 3,
103 .vsync_len = 3, 103 .vsync_len = 3,
104 .vbp = 4, 104 .vbp = 4,
105 105
diff --git a/drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c b/drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c
index 693b9ec9326e..48fa05974158 100644
--- a/drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c
+++ b/drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c
@@ -49,7 +49,7 @@ static struct omap_video_timings td028ttec1_panel_timings = {
49 .hfront_porch = 24, 49 .hfront_porch = 24,
50 .hsync_len = 8, 50 .hsync_len = 8,
51 .hback_porch = 8, 51 .hback_porch = 8,
52 .vfp = 4, 52 .vfront_porch = 4,
53 .vsync_len = 2, 53 .vsync_len = 2,
54 .vbp = 2, 54 .vbp = 2,
55 55
diff --git a/drivers/gpu/drm/omapdrm/displays/panel-tpo-td043mtea1.c b/drivers/gpu/drm/omapdrm/displays/panel-tpo-td043mtea1.c
index 6301701c820e..2d3bda3c9376 100644
--- a/drivers/gpu/drm/omapdrm/displays/panel-tpo-td043mtea1.c
+++ b/drivers/gpu/drm/omapdrm/displays/panel-tpo-td043mtea1.c
@@ -83,7 +83,7 @@ static const struct omap_video_timings tpo_td043_timings = {
83 .hback_porch = 214, 83 .hback_porch = 214,
84 84
85 .vsync_len = 1, 85 .vsync_len = 1,
86 .vfp = 39, 86 .vfront_porch = 39,
87 .vbp = 34, 87 .vbp = 34,
88 88
89 .vsync_level = OMAPDSS_SIG_ACTIVE_LOW, 89 .vsync_level = OMAPDSS_SIG_ACTIVE_LOW,
diff --git a/drivers/gpu/drm/omapdrm/dss/dispc.c b/drivers/gpu/drm/omapdrm/dss/dispc.c
index ddb9d9d28157..c732d6c70c66 100644
--- a/drivers/gpu/drm/omapdrm/dss/dispc.c
+++ b/drivers/gpu/drm/omapdrm/dss/dispc.c
@@ -2869,8 +2869,8 @@ int dispc_wb_setup(const struct omap_dss_writeback_info *wi,
2869 } else { 2869 } else {
2870 int wbdelay; 2870 int wbdelay;
2871 2871
2872 wbdelay = min(mgr_timings->vfp + mgr_timings->vsync_len + 2872 wbdelay = min(mgr_timings->vfront_porch +
2873 mgr_timings->vbp, 255); 2873 mgr_timings->vsync_len + mgr_timings->vbp, 255);
2874 2874
2875 /* WBDELAYCOUNT */ 2875 /* WBDELAYCOUNT */
2876 REG_FLD_MOD(DISPC_OVL_ATTRIBUTES2(plane), wbdelay, 7, 0); 2876 REG_FLD_MOD(DISPC_OVL_ATTRIBUTES2(plane), wbdelay, 7, 0);
@@ -3133,7 +3133,8 @@ bool dispc_mgr_timings_ok(enum omap_channel channel,
3133 3133
3134 if (!_dispc_lcd_timings_ok(timings->hsync_len, 3134 if (!_dispc_lcd_timings_ok(timings->hsync_len,
3135 timings->hfront_porch, timings->hback_porch, 3135 timings->hfront_porch, timings->hback_porch,
3136 timings->vsync_len, timings->vfp, timings->vbp)) 3136 timings->vsync_len, timings->vfront_porch,
3137 timings->vbp))
3137 return false; 3138 return false;
3138 } 3139 }
3139 3140
@@ -3270,12 +3271,12 @@ void dispc_mgr_set_timings(enum omap_channel channel,
3270 3271
3271 if (dss_mgr_is_lcd(channel)) { 3272 if (dss_mgr_is_lcd(channel)) {
3272 _dispc_mgr_set_lcd_timings(channel, t.hsync_len, t.hfront_porch, 3273 _dispc_mgr_set_lcd_timings(channel, t.hsync_len, t.hfront_porch,
3273 t.hback_porch, t.vsync_len, t.vfp, t.vbp, 3274 t.hback_porch, t.vsync_len, t.vfront_porch, t.vbp,
3274 t.vsync_level, t.hsync_level, t.data_pclk_edge, 3275 t.vsync_level, t.hsync_level, t.data_pclk_edge,
3275 t.de_level, t.sync_pclk_edge); 3276 t.de_level, t.sync_pclk_edge);
3276 3277
3277 xtot = t.hactive + t.hfront_porch + t.hsync_len + t.hback_porch; 3278 xtot = t.hactive + t.hfront_porch + t.hsync_len + t.hback_porch;
3278 ytot = t.vactive + t.vfp + t.vsync_len + t.vbp; 3279 ytot = t.vactive + t.vfront_porch + t.vsync_len + t.vbp;
3279 3280
3280 ht = timings->pixelclock / xtot; 3281 ht = timings->pixelclock / xtot;
3281 vt = timings->pixelclock / xtot / ytot; 3282 vt = timings->pixelclock / xtot / ytot;
@@ -3283,7 +3284,7 @@ void dispc_mgr_set_timings(enum omap_channel channel,
3283 DSSDBG("pck %u\n", timings->pixelclock); 3284 DSSDBG("pck %u\n", timings->pixelclock);
3284 DSSDBG("hsync_len %d hfp %d hbp %d vsw %d vfp %d vbp %d\n", 3285 DSSDBG("hsync_len %d hfp %d hbp %d vsw %d vfp %d vbp %d\n",
3285 t.hsync_len, t.hfront_porch, t.hback_porch, 3286 t.hsync_len, t.hfront_porch, t.hback_porch,
3286 t.vsync_len, t.vfp, t.vbp); 3287 t.vsync_len, t.vfront_porch, t.vbp);
3287 DSSDBG("vsync_level %d hsync_level %d data_pclk_edge %d de_level %d sync_pclk_edge %d\n", 3288 DSSDBG("vsync_level %d hsync_level %d data_pclk_edge %d de_level %d sync_pclk_edge %d\n",
3288 t.vsync_level, t.hsync_level, t.data_pclk_edge, 3289 t.vsync_level, t.hsync_level, t.data_pclk_edge,
3289 t.de_level, t.sync_pclk_edge); 3290 t.de_level, t.sync_pclk_edge);
@@ -4227,7 +4228,7 @@ static const struct dispc_errata_i734_data {
4227 .hactive = 8, .vactive = 1, 4228 .hactive = 8, .vactive = 1,
4228 .pixelclock = 16000000, 4229 .pixelclock = 16000000,
4229 .hsync_len = 8, .hfront_porch = 4, .hback_porch = 4, 4230 .hsync_len = 8, .hfront_porch = 4, .hback_porch = 4,
4230 .vsync_len = 1, .vfp = 1, .vbp = 1, 4231 .vsync_len = 1, .vfront_porch = 1, .vbp = 1,
4231 .vsync_level = OMAPDSS_SIG_ACTIVE_LOW, 4232 .vsync_level = OMAPDSS_SIG_ACTIVE_LOW,
4232 .hsync_level = OMAPDSS_SIG_ACTIVE_LOW, 4233 .hsync_level = OMAPDSS_SIG_ACTIVE_LOW,
4233 .interlace = false, 4234 .interlace = false,
diff --git a/drivers/gpu/drm/omapdrm/dss/display.c b/drivers/gpu/drm/omapdrm/dss/display.c
index 372a16ad770f..30060b5e46a2 100644
--- a/drivers/gpu/drm/omapdrm/dss/display.c
+++ b/drivers/gpu/drm/omapdrm/dss/display.c
@@ -230,7 +230,7 @@ void videomode_to_omap_video_timings(const struct videomode *vm,
230 ovt->hsync_len = vm->hsync_len; 230 ovt->hsync_len = vm->hsync_len;
231 ovt->vactive = vm->vactive; 231 ovt->vactive = vm->vactive;
232 ovt->vbp = vm->vback_porch; 232 ovt->vbp = vm->vback_porch;
233 ovt->vfp = vm->vfront_porch; 233 ovt->vfront_porch = vm->vfront_porch;
234 ovt->vsync_len = vm->vsync_len; 234 ovt->vsync_len = vm->vsync_len;
235 235
236 ovt->vsync_level = vm->flags & DISPLAY_FLAGS_VSYNC_HIGH ? 236 ovt->vsync_level = vm->flags & DISPLAY_FLAGS_VSYNC_HIGH ?
@@ -263,7 +263,7 @@ void omap_video_timings_to_videomode(const struct omap_video_timings *ovt,
263 vm->hsync_len = ovt->hsync_len; 263 vm->hsync_len = ovt->hsync_len;
264 vm->vactive = ovt->vactive; 264 vm->vactive = ovt->vactive;
265 vm->vback_porch = ovt->vbp; 265 vm->vback_porch = ovt->vbp;
266 vm->vfront_porch = ovt->vfp; 266 vm->vfront_porch = ovt->vfront_porch;
267 vm->vsync_len = ovt->vsync_len; 267 vm->vsync_len = ovt->vsync_len;
268 268
269 if (ovt->hsync_level == OMAPDSS_SIG_ACTIVE_HIGH) 269 if (ovt->hsync_level == OMAPDSS_SIG_ACTIVE_HIGH)
diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c
index 850478b2ee7c..f7857bbfda4e 100644
--- a/drivers/gpu/drm/omapdrm/dss/dsi.c
+++ b/drivers/gpu/drm/omapdrm/dss/dsi.c
@@ -4424,7 +4424,7 @@ static bool dsi_cm_calc_dispc_cb(int lckd, int pckd, unsigned long lck,
4424 t->hactive = ctx->config->timings->hactive; 4424 t->hactive = ctx->config->timings->hactive;
4425 t->vactive = ctx->config->timings->vactive; 4425 t->vactive = ctx->config->timings->vactive;
4426 t->hsync_len = t->hfront_porch = t->hback_porch = t->vsync_len = 1; 4426 t->hsync_len = t->hfront_porch = t->hback_porch = t->vsync_len = 1;
4427 t->vfp = t->vbp = 0; 4427 t->vfront_porch = t->vbp = 0;
4428 4428
4429 return true; 4429 return true;
4430} 4430}
@@ -4637,7 +4637,7 @@ static bool dsi_vm_calc_blanking(struct dsi_clk_calc_ctx *ctx)
4637 dsi_vm->vsa = req_vm->vsync_len; 4637 dsi_vm->vsa = req_vm->vsync_len;
4638 dsi_vm->vbp = req_vm->vbp; 4638 dsi_vm->vbp = req_vm->vbp;
4639 dsi_vm->vact = req_vm->vactive; 4639 dsi_vm->vact = req_vm->vactive;
4640 dsi_vm->vfp = req_vm->vfp; 4640 dsi_vm->vfp = req_vm->vfront_porch;
4641 4641
4642 dsi_vm->trans_mode = cfg->trans_mode; 4642 dsi_vm->trans_mode = cfg->trans_mode;
4643 4643
diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c b/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
index 39944749c160..932975b372c0 100644
--- a/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
+++ b/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
@@ -300,7 +300,7 @@ static void hdmi_core_init(struct hdmi_core_vid_config *video_cfg,
300 cfg->timings.hback_porch + cfg->timings.hsync_len; 300 cfg->timings.hback_porch + cfg->timings.hsync_len;
301 video_cfg->vblank_osc = 0; 301 video_cfg->vblank_osc = 0;
302 video_cfg->vblank = cfg->timings.vsync_len + 302 video_cfg->vblank = cfg->timings.vsync_len +
303 cfg->timings.vfp + cfg->timings.vbp; 303 cfg->timings.vfront_porch + cfg->timings.vbp;
304 video_cfg->v_fc_config.hdmi_dvi_mode = cfg->hdmi_dvi_mode; 304 video_cfg->v_fc_config.hdmi_dvi_mode = cfg->hdmi_dvi_mode;
305 305
306 if (cfg->timings.interlace) { 306 if (cfg->timings.interlace) {
@@ -310,7 +310,7 @@ static void hdmi_core_init(struct hdmi_core_vid_config *video_cfg,
310 310
311 video_cfg->v_fc_config.timings.vactive /= 2; 311 video_cfg->v_fc_config.timings.vactive /= 2;
312 video_cfg->vblank /= 2; 312 video_cfg->vblank /= 2;
313 video_cfg->v_fc_config.timings.vfp /= 2; 313 video_cfg->v_fc_config.timings.vfront_porch /= 2;
314 video_cfg->v_fc_config.timings.vsync_len /= 2; 314 video_cfg->v_fc_config.timings.vsync_len /= 2;
315 video_cfg->v_fc_config.timings.vbp /= 2; 315 video_cfg->v_fc_config.timings.vbp /= 2;
316 } 316 }
@@ -373,7 +373,7 @@ static void hdmi_core_video_config(struct hdmi_core_data *core,
373 373
374 /* set vertical sync offset */ 374 /* set vertical sync offset */
375 REG_FLD_MOD(base, HDMI_CORE_FC_VSYNCINDELAY, 375 REG_FLD_MOD(base, HDMI_CORE_FC_VSYNCINDELAY,
376 cfg->v_fc_config.timings.vfp, 7, 0); 376 cfg->v_fc_config.timings.vfront_porch, 7, 0);
377 377
378 /* set horizontal sync pulse width */ 378 /* set horizontal sync pulse width */
379 REG_FLD_MOD(base, HDMI_CORE_FC_HSYNCINWIDTH1, 379 REG_FLD_MOD(base, HDMI_CORE_FC_HSYNCINWIDTH1,
diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi_wp.c b/drivers/gpu/drm/omapdrm/dss/hdmi_wp.c
index ba964c12148d..ed6ce7474bad 100644
--- a/drivers/gpu/drm/omapdrm/dss/hdmi_wp.c
+++ b/drivers/gpu/drm/omapdrm/dss/hdmi_wp.c
@@ -187,7 +187,7 @@ void hdmi_wp_video_config_timing(struct hdmi_wp_data *wp,
187 hdmi_write_reg(wp->base, HDMI_WP_VIDEO_TIMING_H, timing_h); 187 hdmi_write_reg(wp->base, HDMI_WP_VIDEO_TIMING_H, timing_h);
188 188
189 timing_v |= FLD_VAL(timings->vbp, 31, 20); 189 timing_v |= FLD_VAL(timings->vbp, 31, 20);
190 timing_v |= FLD_VAL(timings->vfp, 19, 8); 190 timing_v |= FLD_VAL(timings->vfront_porch, 19, 8);
191 timing_v |= FLD_VAL(timings->vsync_len, 7, 0); 191 timing_v |= FLD_VAL(timings->vsync_len, 7, 0);
192 hdmi_write_reg(wp->base, HDMI_WP_VIDEO_TIMING_V, timing_v); 192 hdmi_write_reg(wp->base, HDMI_WP_VIDEO_TIMING_V, timing_v);
193} 193}
@@ -205,7 +205,7 @@ void hdmi_wp_init_vid_fmt_timings(struct hdmi_video_format *video_fmt,
205 timings->hfront_porch = param->timings.hfront_porch; 205 timings->hfront_porch = param->timings.hfront_porch;
206 timings->hsync_len = param->timings.hsync_len; 206 timings->hsync_len = param->timings.hsync_len;
207 timings->vbp = param->timings.vbp; 207 timings->vbp = param->timings.vbp;
208 timings->vfp = param->timings.vfp; 208 timings->vfront_porch = param->timings.vfront_porch;
209 timings->vsync_len = param->timings.vsync_len; 209 timings->vsync_len = param->timings.vsync_len;
210 210
211 timings->vsync_level = param->timings.vsync_level; 211 timings->vsync_level = param->timings.vsync_level;
@@ -216,7 +216,7 @@ void hdmi_wp_init_vid_fmt_timings(struct hdmi_video_format *video_fmt,
216 if (param->timings.interlace) { 216 if (param->timings.interlace) {
217 video_fmt->y_res /= 2; 217 video_fmt->y_res /= 2;
218 timings->vbp /= 2; 218 timings->vbp /= 2;
219 timings->vfp /= 2; 219 timings->vfront_porch /= 2;
220 timings->vsync_len /= 2; 220 timings->vsync_len /= 2;
221 } 221 }
222 222
diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h b/drivers/gpu/drm/omapdrm/dss/omapdss.h
index c761583b0b24..141bcb34db78 100644
--- a/drivers/gpu/drm/omapdrm/dss/omapdss.h
+++ b/drivers/gpu/drm/omapdrm/dss/omapdss.h
@@ -315,7 +315,7 @@ struct omap_video_timings {
315 /* Unit: line clocks */ 315 /* Unit: line clocks */
316 u16 vsync_len; /* Vertical synchronization pulse width */ 316 u16 vsync_len; /* Vertical synchronization pulse width */
317 /* Unit: line clocks */ 317 /* Unit: line clocks */
318 u16 vfp; /* Vertical front porch */ 318 u16 vfront_porch; /* Vertical front porch */
319 /* Unit: line clocks */ 319 /* Unit: line clocks */
320 u16 vbp; /* Vertical back porch */ 320 u16 vbp; /* Vertical back porch */
321 321
diff --git a/drivers/gpu/drm/omapdrm/dss/rfbi.c b/drivers/gpu/drm/omapdrm/dss/rfbi.c
index b90348ad2e31..de7f904f6e91 100644
--- a/drivers/gpu/drm/omapdrm/dss/rfbi.c
+++ b/drivers/gpu/drm/omapdrm/dss/rfbi.c
@@ -862,7 +862,7 @@ static void rfbi_config_lcd_manager(struct omap_dss_device *dssdev)
862 rfbi.timings.hfront_porch = 1; 862 rfbi.timings.hfront_porch = 1;
863 rfbi.timings.hback_porch = 1; 863 rfbi.timings.hback_porch = 1;
864 rfbi.timings.vsync_len = 1; 864 rfbi.timings.vsync_len = 1;
865 rfbi.timings.vfp = 0; 865 rfbi.timings.vfront_porch = 0;
866 rfbi.timings.vbp = 0; 866 rfbi.timings.vbp = 0;
867 867
868 rfbi.timings.interlace = false; 868 rfbi.timings.interlace = false;
diff --git a/drivers/gpu/drm/omapdrm/dss/venc.c b/drivers/gpu/drm/omapdrm/dss/venc.c
index 5e8ea7e00b68..77d4c826b2e5 100644
--- a/drivers/gpu/drm/omapdrm/dss/venc.c
+++ b/drivers/gpu/drm/omapdrm/dss/venc.c
@@ -270,7 +270,7 @@ const struct omap_video_timings omap_dss_pal_timings = {
270 .hfront_porch = 12, 270 .hfront_porch = 12,
271 .hback_porch = 68, 271 .hback_porch = 68,
272 .vsync_len = 5, 272 .vsync_len = 5,
273 .vfp = 5, 273 .vfront_porch = 5,
274 .vbp = 41, 274 .vbp = 41,
275 275
276 .interlace = true, 276 .interlace = true,
@@ -291,7 +291,7 @@ const struct omap_video_timings omap_dss_ntsc_timings = {
291 .hfront_porch = 16, 291 .hfront_porch = 16,
292 .hback_porch = 58, 292 .hback_porch = 58,
293 .vsync_len = 6, 293 .vsync_len = 6,
294 .vfp = 6, 294 .vfront_porch = 6,
295 .vbp = 31, 295 .vbp = 31,
296 296
297 .interlace = true, 297 .interlace = true,
diff --git a/drivers/gpu/drm/omapdrm/omap_connector.c b/drivers/gpu/drm/omapdrm/omap_connector.c
index 2c9b429da5cc..3798617b1d7b 100644
--- a/drivers/gpu/drm/omapdrm/omap_connector.c
+++ b/drivers/gpu/drm/omapdrm/omap_connector.c
@@ -53,7 +53,7 @@ void copy_timings_omap_to_drm(struct drm_display_mode *mode,
53 mode->htotal = mode->hsync_end + timings->hback_porch; 53 mode->htotal = mode->hsync_end + timings->hback_porch;
54 54
55 mode->vdisplay = timings->vactive; 55 mode->vdisplay = timings->vactive;
56 mode->vsync_start = mode->vdisplay + timings->vfp; 56 mode->vsync_start = mode->vdisplay + timings->vfront_porch;
57 mode->vsync_end = mode->vsync_start + timings->vsync_len; 57 mode->vsync_end = mode->vsync_start + timings->vsync_len;
58 mode->vtotal = mode->vsync_end + timings->vbp; 58 mode->vtotal = mode->vsync_end + timings->vbp;
59 59
@@ -87,7 +87,7 @@ void copy_timings_drm_to_omap(struct omap_video_timings *timings,
87 timings->hback_porch = mode->htotal - mode->hsync_end; 87 timings->hback_porch = mode->htotal - mode->hsync_end;
88 88
89 timings->vactive = mode->vdisplay; 89 timings->vactive = mode->vdisplay;
90 timings->vfp = mode->vsync_start - mode->vdisplay; 90 timings->vfront_porch = mode->vsync_start - mode->vdisplay;
91 timings->vsync_len = mode->vsync_end - mode->vsync_start; 91 timings->vsync_len = mode->vsync_end - mode->vsync_start;
92 timings->vbp = mode->vtotal - mode->vsync_end; 92 timings->vbp = mode->vtotal - mode->vsync_end;
93 93