]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: dc: pass vrr param through DT
authorDaniel Solomon <daniels@nvidia.com>
Wed, 15 Jul 2015 23:17:46 +0000 (16:17 -0700)
committerMitch Luban <mluban@nvidia.com>
Mon, 10 Aug 2015 04:57:38 +0000 (21:57 -0700)
frame_len_fluct is panel-specific. Pass it through
DT instead of hard coding it.

Bug 200101518

Change-Id: If70325a561de24a9ff03254e330aebe23d2fece3
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/770714
(cherry picked from commit 5dd00496fa061e519abb0fc890fcb2f67a2940bb)
Reviewed-on: http://git-master/r/775804
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
drivers/video/tegra/dc/dc.c
drivers/video/tegra/dc/of_dc.c

index ee75866fc20e8d0e6c9bbcc6728691450c217662..74d6520cc448006730a6ad8c7188b50cf95a9595 100644 (file)
@@ -1773,7 +1773,6 @@ static void tegra_dc_setup_vrr(struct tegra_dc *dc)
        vrr->vfp_extend = vrr->v_front_porch_max;
        vrr->vfp_shrink = vrr->v_front_porch_min;
 
-       vrr->frame_len_fluct = 2000;
        vrr->frame_type = 0;
        vrr->frame_delta_us = 0;
 
index 716a1c600aec0dda03bee6e930ea8c69aff50d3f..40acd1f29fab67b6335f34b7190aca5200243513 100644 (file)
@@ -506,6 +506,11 @@ static int parse_vrr_settings(struct platform_device *ndev,
                OF_DC_LOG("vrr_min_fps %d\n", vrr_min_fps);
        }
 
+       if (!of_property_read_u32(np, "nvidia,frame_len_fluct", &temp)) {
+               vrr->frame_len_fluct = (unsigned) temp;
+               OF_DC_LOG("frame_len_fluct %d\n", frame_len_fluct);
+       } else
+               vrr->frame_len_fluct = 2000;
 
        /*
         * VRR capability is set when we have vrr_settings section in DT