drm/omap: omap_display_timings: rename vbp to vback_porch
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 22 Sep 2016 11:06:53 +0000 (14:06 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 2 Nov 2016 08:48:18 +0000 (10:48 +0200)
In preparation to move the stack to use the generic videmode struct for
display timing information rename the vbp member to vback_porch.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
18 files changed:
drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c
drivers/gpu/drm/omapdrm/displays/connector-dvi.c
drivers/gpu/drm/omapdrm/displays/connector-hdmi.c
drivers/gpu/drm/omapdrm/displays/panel-lgphilips-lb035q02.c
drivers/gpu/drm/omapdrm/displays/panel-nec-nl8048hl11.c
drivers/gpu/drm/omapdrm/displays/panel-sharp-ls037v7dw01.c
drivers/gpu/drm/omapdrm/displays/panel-sony-acx565akm.c
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c
drivers/gpu/drm/omapdrm/displays/panel-tpo-td043mtea1.c
drivers/gpu/drm/omapdrm/dss/dispc.c
drivers/gpu/drm/omapdrm/dss/display.c
drivers/gpu/drm/omapdrm/dss/dsi.c
drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
drivers/gpu/drm/omapdrm/dss/hdmi_wp.c
drivers/gpu/drm/omapdrm/dss/omapdss.h
drivers/gpu/drm/omapdrm/dss/rfbi.c
drivers/gpu/drm/omapdrm/dss/venc.c
drivers/gpu/drm/omapdrm/omap_connector.c

index 51d0d45a66753000bf32dffc69fc18f7c4262831..d14cc2e3b8e295acec3d4d6d6b9be675d4860d9d 100644 (file)
@@ -38,7 +38,7 @@ static const struct omap_video_timings tvc_pal_timings = {
        .hback_porch    = 68,
        .vsync_len      = 5,
        .vfront_porch   = 5,
-       .vbp            = 41,
+       .vback_porch    = 41,
 
        .interlace      = true,
 };
index efd122760833056272497a22805b39a9503850c7..adbcd566a7eccf8ad4b2d38ccf18ea1391901ce7 100644 (file)
@@ -31,7 +31,7 @@ static const struct omap_video_timings dvic_default_timings = {
 
        .vfront_porch   = 3,
        .vsync_len      = 4,
-       .vbp            = 7,
+       .vback_porch    = 7,
 
        .vsync_level    = OMAPDSS_SIG_ACTIVE_HIGH,
        .hsync_level    = OMAPDSS_SIG_ACTIVE_HIGH,
index 7d60e465d35461111311f7ab51fce510dc3cb74c..00e3aa212202feb419ef0c3e9c492de132f026c7 100644 (file)
@@ -30,7 +30,7 @@ static const struct omap_video_timings hdmic_default_timings = {
        .hback_porch    = 48,
        .vsync_len      = 2,
        .vfront_porch   = 11,
-       .vbp            = 31,
+       .vback_porch    = 31,
 
        .vsync_level    = OMAPDSS_SIG_ACTIVE_LOW,
        .hsync_level    = OMAPDSS_SIG_ACTIVE_LOW,
index 66d30ba7db81e4525f8281a44f206b84ed84a60d..9c114da37a6bf895ceb79fdfa898faa0f6b77971 100644 (file)
@@ -31,7 +31,7 @@ static struct omap_video_timings lb035q02_timings = {
 
        .vsync_len      = 2,
        .vfront_porch   = 4,
-       .vbp            = 18,
+       .vback_porch    = 18,
 
        .vsync_level    = OMAPDSS_SIG_ACTIVE_LOW,
        .hsync_level    = OMAPDSS_SIG_ACTIVE_LOW,
index 9cb02c4bce41ee29b8ab7adc3be6920516fda854..1e1acc6e06cba5e94dcae763f69004639bcb31ac 100644 (file)
@@ -74,7 +74,7 @@ static const struct omap_video_timings nec_8048_panel_timings = {
        .hback_porch    = 4,
        .vfront_porch   = 3,
        .vsync_len      = 1,
-       .vbp            = 4,
+       .vback_porch    = 4,
 
        .vsync_level    = OMAPDSS_SIG_ACTIVE_LOW,
        .hsync_level    = OMAPDSS_SIG_ACTIVE_LOW,
index 3b23aaf2676debc4ee51c09b4874454706f732e6..79cb8bde1cca37877c326cb06260651621fd9df3 100644 (file)
@@ -47,7 +47,7 @@ static const struct omap_video_timings sharp_ls_timings = {
 
        .vsync_len      = 1,
        .vfront_porch   = 1,
-       .vbp            = 1,
+       .vback_porch    = 1,
 
        .vsync_level    = OMAPDSS_SIG_ACTIVE_LOW,
        .hsync_level    = OMAPDSS_SIG_ACTIVE_LOW,
index 6b1140b82f6eba7fee21843fc9222bd5f4173150..30d689818518d368d232b445b59dc18935bb2504 100644 (file)
@@ -101,7 +101,7 @@ static const struct omap_video_timings acx565akm_panel_timings = {
        .hback_porch    = 24,
        .vfront_porch   = 3,
        .vsync_len      = 3,
-       .vbp            = 4,
+       .vback_porch    = 4,
 
        .vsync_level    = OMAPDSS_SIG_ACTIVE_LOW,
        .hsync_level    = OMAPDSS_SIG_ACTIVE_LOW,
index 48fa05974158d4b3bd91cae9a83d56c096854ea5..a367b615d8086a4ea4890ddd2d19072b747179c5 100644 (file)
@@ -51,7 +51,7 @@ static struct omap_video_timings td028ttec1_panel_timings = {
        .hback_porch    = 8,
        .vfront_porch   = 4,
        .vsync_len      = 2,
-       .vbp            = 2,
+       .vback_porch    = 2,
 
        .vsync_level    = OMAPDSS_SIG_ACTIVE_LOW,
        .hsync_level    = OMAPDSS_SIG_ACTIVE_LOW,
index 2d3bda3c937697c0c6315b8310ebed71421f1a18..16d24381b270d1e5d98589c58652fe3ba42faf5e 100644 (file)
@@ -84,7 +84,7 @@ static const struct omap_video_timings tpo_td043_timings = {
 
        .vsync_len      = 1,
        .vfront_porch   = 39,
-       .vbp            = 34,
+       .vback_porch    = 34,
 
        .vsync_level    = OMAPDSS_SIG_ACTIVE_LOW,
        .hsync_level    = OMAPDSS_SIG_ACTIVE_LOW,
index c732d6c70c66872002f85c562823ebafce560a2c..d46a0a2c6b7b90476155c8b32791589da294111f 100644 (file)
@@ -2870,7 +2870,7 @@ int dispc_wb_setup(const struct omap_dss_writeback_info *wi,
                int wbdelay;
 
                wbdelay = min(mgr_timings->vfront_porch +
-                             mgr_timings->vsync_len + mgr_timings->vbp, 255);
+                             mgr_timings->vsync_len + mgr_timings->vback_porch, 255);
 
                /* WBDELAYCOUNT */
                REG_FLD_MOD(DISPC_OVL_ATTRIBUTES2(plane), wbdelay, 7, 0);
@@ -3134,7 +3134,7 @@ bool dispc_mgr_timings_ok(enum omap_channel channel,
                if (!_dispc_lcd_timings_ok(timings->hsync_len,
                                timings->hfront_porch, timings->hback_porch,
                                timings->vsync_len, timings->vfront_porch,
-                               timings->vbp))
+                               timings->vback_porch))
                        return false;
        }
 
@@ -3270,13 +3270,14 @@ void dispc_mgr_set_timings(enum omap_channel channel,
        }
 
        if (dss_mgr_is_lcd(channel)) {
-               _dispc_mgr_set_lcd_timings(channel, t.hsync_len, t.hfront_porch,
-                               t.hback_porch, t.vsync_len, t.vfront_porch, t.vbp,
+               _dispc_mgr_set_lcd_timings(channel,
+                               t.hsync_len, t.hfront_porch, t.hback_porch,
+                               t.vsync_len, t.vfront_porch, t.vback_porch,
                                t.vsync_level, t.hsync_level, t.data_pclk_edge,
                                t.de_level, t.sync_pclk_edge);
 
                xtot = t.hactive + t.hfront_porch + t.hsync_len + t.hback_porch;
-               ytot = t.vactive + t.vfront_porch + t.vsync_len + t.vbp;
+               ytot = t.vactive + t.vfront_porch + t.vsync_len + t.vback_porch;
 
                ht = timings->pixelclock / xtot;
                vt = timings->pixelclock / xtot / ytot;
@@ -3284,7 +3285,7 @@ void dispc_mgr_set_timings(enum omap_channel channel,
                DSSDBG("pck %u\n", timings->pixelclock);
                DSSDBG("hsync_len %d hfp %d hbp %d vsw %d vfp %d vbp %d\n",
                        t.hsync_len, t.hfront_porch, t.hback_porch,
-                       t.vsync_len, t.vfront_porch, t.vbp);
+                       t.vsync_len, t.vfront_porch, t.vback_porch);
                DSSDBG("vsync_level %d hsync_level %d data_pclk_edge %d de_level %d sync_pclk_edge %d\n",
                        t.vsync_level, t.hsync_level, t.data_pclk_edge,
                        t.de_level, t.sync_pclk_edge);
@@ -4228,7 +4229,7 @@ static const struct dispc_errata_i734_data {
                .hactive = 8, .vactive = 1,
                .pixelclock = 16000000,
                .hsync_len = 8, .hfront_porch = 4, .hback_porch = 4,
-               .vsync_len = 1, .vfront_porch = 1, .vbp = 1,
+               .vsync_len = 1, .vfront_porch = 1, .vback_porch = 1,
                .vsync_level = OMAPDSS_SIG_ACTIVE_LOW,
                .hsync_level = OMAPDSS_SIG_ACTIVE_LOW,
                .interlace = false,
index 30060b5e46a22fb4fb8c3cb79c4d05591ab3d8d6..d63ea2d5d8125d4e274f4cfa67303fd4ecb0e009 100644 (file)
@@ -229,7 +229,7 @@ void videomode_to_omap_video_timings(const struct videomode *vm,
        ovt->hfront_porch = vm->hfront_porch;
        ovt->hsync_len = vm->hsync_len;
        ovt->vactive = vm->vactive;
-       ovt->vbp = vm->vback_porch;
+       ovt->vback_porch = vm->vback_porch;
        ovt->vfront_porch = vm->vfront_porch;
        ovt->vsync_len = vm->vsync_len;
 
@@ -262,7 +262,7 @@ void omap_video_timings_to_videomode(const struct omap_video_timings *ovt,
        vm->hfront_porch = ovt->hfront_porch;
        vm->hsync_len = ovt->hsync_len;
        vm->vactive = ovt->vactive;
-       vm->vback_porch = ovt->vbp;
+       vm->vback_porch = ovt->vback_porch;
        vm->vfront_porch = ovt->vfront_porch;
        vm->vsync_len = ovt->vsync_len;
 
index f7857bbfda4e4568b8e1b0228f2476693a6e9f84..e1fdb2a63309e390d12a3c405da9848193a64c0f 100644 (file)
@@ -4424,7 +4424,7 @@ static bool dsi_cm_calc_dispc_cb(int lckd, int pckd, unsigned long lck,
        t->hactive = ctx->config->timings->hactive;
        t->vactive = ctx->config->timings->vactive;
        t->hsync_len = t->hfront_porch = t->hback_porch = t->vsync_len = 1;
-       t->vfront_porch = t->vbp = 0;
+       t->vfront_porch = t->vback_porch = 0;
 
        return true;
 }
@@ -4635,7 +4635,7 @@ static bool dsi_vm_calc_blanking(struct dsi_clk_calc_ctx *ctx)
        dsi_vm->hfp = hfp;
 
        dsi_vm->vsa = req_vm->vsync_len;
-       dsi_vm->vbp = req_vm->vbp;
+       dsi_vm->vbp = req_vm->vback_porch;
        dsi_vm->vact = req_vm->vactive;
        dsi_vm->vfp = req_vm->vfront_porch;
 
index 932975b372c0b0bfb868b835dcbf704709eb88c7..457dbd2f93a253c57941632d908908e385847306 100644 (file)
@@ -299,8 +299,8 @@ static void hdmi_core_init(struct hdmi_core_vid_config *video_cfg,
        video_cfg->hblank = cfg->timings.hfront_porch +
                            cfg->timings.hback_porch + cfg->timings.hsync_len;
        video_cfg->vblank_osc = 0;
-       video_cfg->vblank = cfg->timings.vsync_len +
-                               cfg->timings.vfront_porch + cfg->timings.vbp;
+       video_cfg->vblank = cfg->timings.vsync_len + cfg->timings.vfront_porch +
+                           cfg->timings.vback_porch;
        video_cfg->v_fc_config.hdmi_dvi_mode = cfg->hdmi_dvi_mode;
 
        if (cfg->timings.interlace) {
@@ -312,7 +312,7 @@ static void hdmi_core_init(struct hdmi_core_vid_config *video_cfg,
                video_cfg->vblank /= 2;
                video_cfg->v_fc_config.timings.vfront_porch /= 2;
                video_cfg->v_fc_config.timings.vsync_len /= 2;
-               video_cfg->v_fc_config.timings.vbp /= 2;
+               video_cfg->v_fc_config.timings.vback_porch /= 2;
        }
 
        if (cfg->timings.double_pixel) {
index ed6ce7474baded62dc611979e673ceeca65c1662..90a36b009b1ce7237478d0e4ee7a615d74b7d394 100644 (file)
@@ -186,7 +186,7 @@ void hdmi_wp_video_config_timing(struct hdmi_wp_data *wp,
        timing_h |= FLD_VAL(timings->hsync_len - hsync_len_offset, 7, 0);
        hdmi_write_reg(wp->base, HDMI_WP_VIDEO_TIMING_H, timing_h);
 
-       timing_v |= FLD_VAL(timings->vbp, 31, 20);
+       timing_v |= FLD_VAL(timings->vback_porch, 31, 20);
        timing_v |= FLD_VAL(timings->vfront_porch, 19, 8);
        timing_v |= FLD_VAL(timings->vsync_len, 7, 0);
        hdmi_write_reg(wp->base, HDMI_WP_VIDEO_TIMING_V, timing_v);
@@ -204,7 +204,7 @@ void hdmi_wp_init_vid_fmt_timings(struct hdmi_video_format *video_fmt,
        timings->hback_porch = param->timings.hback_porch;
        timings->hfront_porch = param->timings.hfront_porch;
        timings->hsync_len = param->timings.hsync_len;
-       timings->vbp = param->timings.vbp;
+       timings->vback_porch = param->timings.vback_porch;
        timings->vfront_porch = param->timings.vfront_porch;
        timings->vsync_len = param->timings.vsync_len;
 
@@ -215,7 +215,7 @@ void hdmi_wp_init_vid_fmt_timings(struct hdmi_video_format *video_fmt,
 
        if (param->timings.interlace) {
                video_fmt->y_res /= 2;
-               timings->vbp /= 2;
+               timings->vback_porch /= 2;
                timings->vfront_porch /= 2;
                timings->vsync_len /= 2;
        }
index 141bcb34db78ed1d79490c30233d0061b4562f83..aca9d302815577414da058d96c43f4c3e86b2bfd 100644 (file)
@@ -317,7 +317,7 @@ struct omap_video_timings {
        /* Unit: line clocks */
        u16 vfront_porch;       /* Vertical front porch */
        /* Unit: line clocks */
-       u16 vbp;        /* Vertical back porch */
+       u16 vback_porch;        /* Vertical back porch */
 
        /* Vsync logic level */
        enum omap_dss_signal_level vsync_level;
index de7f904f6e91f9d276ef01480c1090cb4ccbac49..cc59e644ea5276b2392ff8f03f42548fd3729cbf 100644 (file)
@@ -863,7 +863,7 @@ static void rfbi_config_lcd_manager(struct omap_dss_device *dssdev)
        rfbi.timings.hback_porch = 1;
        rfbi.timings.vsync_len = 1;
        rfbi.timings.vfront_porch = 0;
-       rfbi.timings.vbp = 0;
+       rfbi.timings.vback_porch = 0;
 
        rfbi.timings.interlace = false;
        rfbi.timings.hsync_level = OMAPDSS_SIG_ACTIVE_HIGH;
index 77d4c826b2e51a6b5b26d9e80d1f35a8a3602ba0..411eea6bc99fc54b46d94bb5ffd9c9f83c620cd7 100644 (file)
@@ -271,7 +271,7 @@ const struct omap_video_timings omap_dss_pal_timings = {
        .hback_porch    = 68,
        .vsync_len      = 5,
        .vfront_porch   = 5,
-       .vbp            = 41,
+       .vback_porch    = 41,
 
        .interlace      = true,
 
@@ -292,7 +292,7 @@ const struct omap_video_timings omap_dss_ntsc_timings = {
        .hback_porch    = 58,
        .vsync_len      = 6,
        .vfront_porch   = 6,
-       .vbp            = 31,
+       .vback_porch    = 31,
 
        .interlace      = true,
 
index 3798617b1d7b8a24300aefe2e391e9bed070b22e..d6c4dc1c1fcb428ed7b782093be3e9302d9ec578 100644 (file)
@@ -55,7 +55,7 @@ void copy_timings_omap_to_drm(struct drm_display_mode *mode,
        mode->vdisplay = timings->vactive;
        mode->vsync_start = mode->vdisplay + timings->vfront_porch;
        mode->vsync_end = mode->vsync_start + timings->vsync_len;
-       mode->vtotal = mode->vsync_end + timings->vbp;
+       mode->vtotal = mode->vsync_end + timings->vback_porch;
 
        mode->flags = 0;
 
@@ -89,7 +89,7 @@ void copy_timings_drm_to_omap(struct omap_video_timings *timings,
        timings->vactive = mode->vdisplay;
        timings->vfront_porch = mode->vsync_start - mode->vdisplay;
        timings->vsync_len = mode->vsync_end - mode->vsync_start;
-       timings->vbp = mode->vtotal - mode->vsync_end;
+       timings->vback_porch = mode->vtotal - mode->vsync_end;
 
        timings->interlace = !!(mode->flags & DRM_MODE_FLAG_INTERLACE);
        timings->double_pixel = !!(mode->flags & DRM_MODE_FLAG_DBLCLK);