arm: tegra: ardbeg: Fix sharp 25x16 panel timings
Animesh Kishore [Fri, 6 Sep 2013 08:59:32 +0000 (13:59 +0530)]
Bug 1357180

Change-Id: If21ef99eb89e34b76ad8d22bd6c1bfb0003bc5e4
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/271397
(cherry picked from commit 9032a7524fb4f4fc54583be0ec15acab3e494f89)
Reviewed-on: http://git-master/r/273018
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

arch/arm/mach-tegra/panel-s-wqxga-10-1.c

index ecd6f9b..f9b5b0d 100644 (file)
@@ -149,19 +149,19 @@ static struct tegra_dsi_out dsi_s_wqxga_10_1_pdata = {
        .video_data_type = TEGRA_DSI_VIDEO_TYPE_COMMAND_MODE,
        .ganged_type = TEGRA_DSI_GANGED_SYMMETRIC_LEFT_RIGHT,
        .suspend_aggr = DSI_HOST_SUSPEND_LV2,
+       .refresh_rate = 62,
+       .rated_refresh_rate = 60,
+       .te_polarity_low = true,
 #else
        .ganged_type = TEGRA_DSI_GANGED_SYMMETRIC_EVEN_ODD,
        .video_data_type = TEGRA_DSI_VIDEO_TYPE_VIDEO_MODE,
        .video_burst_mode = TEGRA_DSI_VIDEO_NONE_BURST_MODE,
+       .refresh_rate = 60,
 #endif
 
        .pixel_format = TEGRA_DSI_PIXEL_FORMAT_24BIT_P,
-       .refresh_rate = 62,
-       .rated_refresh_rate = 60,
        .virtual_channel = TEGRA_DSI_VIRTUAL_CHANNEL_0,
 
-       .te_polarity_low = true,
-
        .panel_reset = DSI_PANEL_RESET,
        .power_saving_suspend = true,
        .video_clock_mode = TEGRA_DSI_VIDEO_CLOCK_TX_ONLY,
@@ -410,24 +410,20 @@ static int dsi_s_wqxga_10_1_postsuspend(void)
 static struct tegra_dc_mode dsi_s_wqxga_10_1_modes[] = {
        {
 #if DC_CTRL_MODE & TEGRA_DC_OUT_ONE_SHOT_MODE
-               .pclk = 292915280,
+               .pclk = 306156000, /* @62Hz */
 #else
-               .pclk = 277412800,
+               .pclk = 296280000, /* @60Hz */
 #endif
                .h_ref_to_sync = 4,
                .v_ref_to_sync = 1,
-               .h_sync_width = 16,
-               .v_sync_width = 2,
-               .h_back_porch = 16,
-               .v_back_porch = 33,
+               .h_sync_width = 32,
+               .v_sync_width = 6,
+               .h_back_porch = 80,
+               .v_back_porch = 37,
                .h_active = 2560,
                .v_active = 1600,
-#if DC_CTRL_MODE & TEGRA_DC_OUT_ONE_SHOT_MODE
-               .h_front_porch = 280,
-#else
-               .h_front_porch = 128,
-#endif
-               .v_front_porch = 10,
+               .h_front_porch = 328,
+               .v_front_porch = 3,
        },
 };