.vactive = 574,
.pixelclock = 13500000,
.hsync_len = 64,
- .hfp = 12,
+ .hfront_porch = 12,
.hbp = 68,
.vsw = 5,
.vfp = 5,
.pixelclock = 23500000,
- .hfp = 48,
+ .hfront_porch = 48,
.hsync_len = 32,
.hbp = 80,
.vactive = 480,
.pixelclock = 25175000,
.hsync_len = 96,
- .hfp = 16,
+ .hfront_porch = 16,
.hbp = 48,
.vsw = 2,
.vfp = 11,
.pixelclock = 6500000,
.hsync_len = 2,
- .hfp = 20,
+ .hfront_porch = 20,
.hbp = 68,
.vsw = 2,
.hactive = LCD_XRES,
.vactive = LCD_YRES,
.pixelclock = LCD_PIXEL_CLOCK,
- .hfp = 6,
+ .hfront_porch = 6,
.hsync_len = 1,
.hbp = 4,
.vfp = 3,
.pixelclock = 19200000,
.hsync_len = 2,
- .hfp = 1,
+ .hfront_porch = 1,
.hbp = 28,
.vsw = 1,
.hactive = 800,
.vactive = 480,
.pixelclock = 24000000,
- .hfp = 28,
+ .hfront_porch = 28,
.hsync_len = 4,
.hbp = 24,
.vfp = 3,
.hactive = 480,
.vactive = 640,
.pixelclock = 22153000,
- .hfp = 24,
+ .hfront_porch = 24,
.hsync_len = 8,
.hbp = 8,
.vfp = 4,
.pixelclock = 36000000,
.hsync_len = 1,
- .hfp = 68,
+ .hfront_porch = 68,
.hbp = 214,
.vsw = 1,
u64 val, blank;
int i;
- nonactive = t->hactive + t->hfp + t->hsync_len + t->hbp - out_width;
+ nonactive = t->hactive + t->hfront_porch + t->hsync_len +
+ t->hbp - out_width;
i = 0;
if (out_height < height)
i++;
if (out_width < width)
i++;
- blank = div_u64((u64)(t->hbp + t->hsync_len + t->hfp) * lclk, pclk);
+ blank = div_u64((u64)(t->hbp + t->hsync_len + t->hfront_porch) *
+ lclk, pclk);
DSSDBG("blanking period + ppl = %llu (limit = %u)\n", blank, limits[i]);
if (blank <= limits[i])
return -EINVAL;
if (timings->interlace)
return false;
- if (!_dispc_lcd_timings_ok(timings->hsync_len, timings->hfp,
- timings->hbp, timings->vsw, timings->vfp,
- timings->vbp))
+ if (!_dispc_lcd_timings_ok(timings->hsync_len,
+ timings->hfront_porch, timings->hbp,
+ timings->vsw, timings->vfp, timings->vbp))
return false;
}
}
if (dss_mgr_is_lcd(channel)) {
- _dispc_mgr_set_lcd_timings(channel, t.hsync_len, t.hfp, t.hbp,
- t.vsw, t.vfp, t.vbp, t.vsync_level,
+ _dispc_mgr_set_lcd_timings(channel, t.hsync_len, t.hfront_porch,
+ t.hbp, t.vsw, t.vfp, t.vbp, t.vsync_level,
t.hsync_level, t.data_pclk_edge, t.de_level,
t.sync_pclk_edge);
- xtot = t.hactive + t.hfp + t.hsync_len + t.hbp;
+ xtot = t.hactive + t.hfront_porch + t.hsync_len + t.hbp;
ytot = t.vactive + t.vfp + t.vsw + t.vbp;
ht = timings->pixelclock / xtot;
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.hfp, t.hbp, t.vsw, t.vfp, t.vbp);
+ t.hsync_len, t.hfront_porch, t.hbp, t.vsw, t.vfp, t.vbp);
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);
.timings = {
.hactive = 8, .vactive = 1,
.pixelclock = 16000000,
- .hsync_len = 8, .hfp = 4, .hbp = 4,
+ .hsync_len = 8, .hfront_porch = 4, .hbp = 4,
.vsw = 1, .vfp = 1, .vbp = 1,
.vsync_level = OMAPDSS_SIG_ACTIVE_LOW,
.hsync_level = OMAPDSS_SIG_ACTIVE_LOW,
ovt->pixelclock = vm->pixelclock;
ovt->hactive = vm->hactive;
ovt->hbp = vm->hback_porch;
- ovt->hfp = vm->hfront_porch;
+ ovt->hfront_porch = vm->hfront_porch;
ovt->hsync_len = vm->hsync_len;
ovt->vactive = vm->vactive;
ovt->vbp = vm->vback_porch;
vm->hactive = ovt->hactive;
vm->hback_porch = ovt->hbp;
- vm->hfront_porch = ovt->hfp;
+ vm->hfront_porch = ovt->hfront_porch;
vm->hsync_len = ovt->hsync_len;
vm->vactive = ovt->vactive;
vm->vback_porch = ovt->vbp;
wc = DIV_ROUND_UP(t->hact * t->bitspp, 8);
pps = DIV_ROUND_UP(wc + 6, t->ndl); /* pixel packet size */
- bl = t->hss + t->hsa + t->hse + t->hbp + t->hfp;
+ bl = t->hss + t->hsa + t->hse + t->hbp + t->hfront_porch;
tot = bl + pps;
#define TO_DSI_T(x) ((u32)div64_u64((u64)x * 1000000000llu, byteclk))
"%u/%u/%u/%u/%u/%u = %u + %u = %u\n",
str,
byteclk,
- t->hss, t->hsa, t->hse, t->hbp, pps, t->hfp,
+ t->hss, t->hsa, t->hse, t->hbp, pps, t->hfront_porch,
bl, pps, tot,
TO_DSI_T(t->hss),
TO_DSI_T(t->hsa),
TO_DSI_T(t->hse),
TO_DSI_T(t->hbp),
TO_DSI_T(pps),
- TO_DSI_T(t->hfp),
+ TO_DSI_T(t->hfront_porch),
TO_DSI_T(bl),
TO_DSI_T(pps),
int hact, bl, tot;
hact = t->hactive;
- bl = t->hsync_len + t->hbp + t->hfp;
+ bl = t->hsync_len + t->hbp + t->hfront_porch;
tot = hact + bl;
#define TO_DISPC_T(x) ((u32)div64_u64((u64)x * 1000000000llu, pck))
"%u/%u/%u/%u = %u + %u = %u\n",
str,
pck,
- t->hsync_len, t->hbp, hact, t->hfp,
+ t->hsync_len, t->hbp, hact, t->hfront_porch,
bl, hact, tot,
TO_DISPC_T(t->hsync_len),
TO_DISPC_T(t->hbp),
TO_DISPC_T(hact),
- TO_DISPC_T(t->hfp),
+ TO_DISPC_T(t->hfront_porch),
TO_DISPC_T(bl),
TO_DISPC_T(hact),
TO_DISPC_T(tot));
dsi_tput = (u64)byteclk * t->ndl * 8;
pck = (u32)div64_u64(dsi_tput, t->bitspp);
dsi_hact = DIV_ROUND_UP(DIV_ROUND_UP(t->hact * t->bitspp, 8) + 6, t->ndl);
- dsi_htot = t->hss + t->hsa + t->hse + t->hbp + dsi_hact + t->hfp;
+ dsi_htot = t->hss + t->hsa + t->hse + t->hbp + dsi_hact + t->hfront_porch;
vm.pixelclock = pck;
vm.hsync_len = div64_u64((u64)(t->hsa + t->hse) * pck, byteclk);
vm.hbp = div64_u64((u64)t->hbp * pck, byteclk);
- vm.hfp = div64_u64((u64)t->hfp * pck, byteclk);
+ vm.hfront_porch = div64_u64((u64)t->hfront_porch * pck, byteclk);
vm.hactive = t->hact;
print_dispc_vm(str, &vm);
t->pixelclock = pck;
t->hactive = ctx->config->timings->hactive;
t->vactive = ctx->config->timings->vactive;
- t->hsync_len = t->hfp = t->hbp = t->vsw = 1;
+ t->hsync_len = t->hfront_porch = t->hbp = t->vsw = 1;
t->vfp = t->vbp = 0;
return true;
xres = req_vm->hactive;
- panel_hbl = req_vm->hfp + req_vm->hbp + req_vm->hsync_len;
+ panel_hbl = req_vm->hfront_porch + req_vm->hbp + req_vm->hsync_len;
panel_htot = xres + panel_hbl;
dsi_hact = DIV_ROUND_UP(DIV_ROUND_UP(xres * bitspp, 8) + 6, ndl);
if (hfp < 1)
return false;
- dispc_vm->hfp = hfp;
+ dispc_vm->hfront_porch = hfp;
dispc_vm->hsync_len = hsa;
dispc_vm->hbp = hbp;
/* video core */
video_cfg->data_enable_pol = 1; /* It is always 1*/
- video_cfg->hblank = cfg->timings.hfp +
+ video_cfg->hblank = cfg->timings.hfront_porch +
cfg->timings.hbp + cfg->timings.hsync_len;
video_cfg->vblank_osc = 0;
video_cfg->vblank = cfg->timings.vsw +
if (cfg->timings.double_pixel) {
video_cfg->v_fc_config.timings.hactive *= 2;
video_cfg->hblank *= 2;
- video_cfg->v_fc_config.timings.hfp *= 2;
+ video_cfg->v_fc_config.timings.hfront_porch *= 2;
video_cfg->v_fc_config.timings.hsync_len *= 2;
video_cfg->v_fc_config.timings.hbp *= 2;
}
/* set horizontal sync offset */
REG_FLD_MOD(base, HDMI_CORE_FC_HSYNCINDELAY1,
- cfg->v_fc_config.timings.hfp >> 8, 4, 0);
+ cfg->v_fc_config.timings.hfront_porch >> 8, 4, 0);
REG_FLD_MOD(base, HDMI_CORE_FC_HSYNCINDELAY0,
- cfg->v_fc_config.timings.hfp & 0xFF, 7, 0);
+ cfg->v_fc_config.timings.hfront_porch & 0xFF, 7, 0);
/* set vertical sync offset */
REG_FLD_MOD(base, HDMI_CORE_FC_VSYNCINDELAY,
hsync_len_offset = 0;
timing_h |= FLD_VAL(timings->hbp, 31, 20);
- timing_h |= FLD_VAL(timings->hfp, 19, 8);
+ timing_h |= FLD_VAL(timings->hfront_porch, 19, 8);
timing_h |= FLD_VAL(timings->hsync_len - hsync_len_offset, 7, 0);
hdmi_write_reg(wp->base, HDMI_WP_VIDEO_TIMING_H, timing_h);
video_fmt->x_res = param->timings.hactive;
timings->hbp = param->timings.hbp;
- timings->hfp = param->timings.hfp;
+ timings->hfront_porch = param->timings.hfront_porch;
timings->hsync_len = param->timings.hsync_len;
timings->vbp = param->timings.vbp;
timings->vfp = param->timings.vfp;
if (param->timings.double_pixel) {
video_fmt->x_res *= 2;
- timings->hfp *= 2;
+ timings->hfront_porch *= 2;
timings->hsync_len *= 2;
timings->hbp *= 2;
}
/* Unit: pixel clocks */
u16 hsync_len; /* Horizontal synchronization pulse width */
/* Unit: pixel clocks */
- u16 hfp; /* Horizontal front porch */
+ u16 hfront_porch; /* Horizontal front porch */
/* Unit: pixel clocks */
u16 hbp; /* Horizontal back porch */
/* Unit: line clocks */
* omapdss_rfbi_set_size()
*/
rfbi.timings.hsync_len = 1;
- rfbi.timings.hfp = 1;
+ rfbi.timings.hfront_porch = 1;
rfbi.timings.hbp = 1;
rfbi.timings.vsw = 1;
rfbi.timings.vfp = 0;
.vactive = 574,
.pixelclock = 13500000,
.hsync_len = 64,
- .hfp = 12,
+ .hfront_porch = 12,
.hbp = 68,
.vsw = 5,
.vfp = 5,
.vactive = 482,
.pixelclock = 13500000,
.hsync_len = 64,
- .hfp = 16,
+ .hfront_porch = 16,
.hbp = 58,
.vsw = 6,
.vfp = 6,
mode->clock = timings->pixelclock / 1000;
mode->hdisplay = timings->hactive;
- mode->hsync_start = mode->hdisplay + timings->hfp;
+ mode->hsync_start = mode->hdisplay + timings->hfront_porch;
mode->hsync_end = mode->hsync_start + timings->hsync_len;
mode->htotal = mode->hsync_end + timings->hbp;
timings->pixelclock = mode->clock * 1000;
timings->hactive = mode->hdisplay;
- timings->hfp = mode->hsync_start - mode->hdisplay;
+ timings->hfront_porch = mode->hsync_start - mode->hdisplay;
timings->hsync_len = mode->hsync_end - mode->hsync_start;
timings->hbp = mode->htotal - mode->hsync_end;