ARM: tegra: cardhu: report height/width for E1506
Rakesh Iyer [Wed, 25 Jul 2012 21:10:35 +0000 (14:10 -0700)]
For accurate Dots-per-inch computation we need to report height/width for
the E1506 panel.

Bug 1014380.

Change-Id: Ic78b6843f65f44d6162e3c4313aae37bd0e96ba1
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/118438
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

arch/arm/mach-tegra/board-cardhu-panel.c

index e50a443..64a50d4 100644 (file)
@@ -1288,6 +1288,9 @@ static void cardhu_panel_preinit(void)
                        cardhu_dsi.panel_send_dc_frames = true,
                        cardhu_dsi_fb_data.xres = 720;
                        cardhu_dsi_fb_data.yres = 1280;
+                       /* Set height and width in mm. */
+                       cardhu_disp1_out.height = 95;
+                       cardhu_disp1_out.width = 53;
                }
 
                cardhu_disp1_pdata.fb = &cardhu_dsi_fb_data;