summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Mayo <jmayo@nvidia.com>2014-07-22 10:50:29 -0700
committerMatthew Pedro <mapedro@nvidia.com>2014-11-06 12:56:06 -0800
commit00457fe1c08f591cd82b133425cbf3e00be19ef7 (patch)
tree80364e73b5829112b40e44865a5e88119f7e2659
parent29264b6eeb185410ec3f2e69797640df62fa3f7b (diff)
video: tegra: dc: increase V_REF_TO_SYNC
Increase V_REF_TO_SYNC value to the maximum size. This adjusts where the flip activation occurs and permits spool up to include more of the front porch time. Bug 1528419 Change-Id: I981d3ffca49c694acf0806279bcf87d92084169c Signed-off-by: Jon Mayo <jmayo@nvidia.com> Reviewed-on: http://git-master/r/440817 (cherry picked from commit 1c9c042b31735bb1b04780037ba5d7b6aee9fcd2) Reviewed-on: http://git-master/r/441378 (cherry picked from commit 24afa49b1c471bdd90f06a5cee840d8101761b31) Reviewed-on: http://git-master/r/592932 Reviewed-by: Automatic_Commit_Validation_User
-rw-r--r--drivers/video/tegra/dc/mode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/mode.c b/drivers/video/tegra/dc/mode.c
index b38e51489b7a..b600c70286e3 100644
--- a/drivers/video/tegra/dc/mode.c
+++ b/drivers/video/tegra/dc/mode.c
@@ -71,7 +71,9 @@ static int calc_h_ref_to_sync(const struct tegra_dc_mode *mode, int *href)
static int calc_v_ref_to_sync(const struct tegra_dc_mode *mode, int *vref)
{
long a;
- a = 1; /* Constraint 5: V_REF_TO_SYNC >= 1 */
+
+ /* Constraint 5: V_REF_TO_SYNC >= 1 */
+ a = mode->v_front_porch - 1;
/* Constraint 2: V_REF_TO_SYNC + V_SYNC_WIDTH + V_BACK_PORCH > 1 */
if (a + mode->v_sync_width + mode->v_back_porch <= 1)