ARM: tegra: cardhu: report height/width for cardhu
Rakesh Iyer [Thu, 2 Aug 2012 12:19:17 +0000 (05:19 -0700)]
For accurate Dots-per-inch computation we need to report height/width for
all cardhu based panels.

Bug 1003707.

Change-Id: I06c5ee077aa82a9ffd958e1cc7c536b445523da3
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/120350
(cherry picked from commit 5647ca7f3fe44781a3b9a49f3215d8c629d78f49)
Reviewed-on: http://git-master/r/120625
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pradeep Thiruchelvam <pradeept@nvidia.com>

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

index 69dab01..b34a29b 100644 (file)
@@ -1249,11 +1249,9 @@ static void cardhu_panel_preinit(void)
                cardhu_disp1_out.n_modes = ARRAY_SIZE(cardhu_panel_modes);
                cardhu_disp1_out.enable = cardhu_panel_enable;
                cardhu_disp1_out.disable = cardhu_panel_disable;
-               if (board_info.board_id == BOARD_E1291) {
-                       /* Set height and width in mm. */
-                       cardhu_disp1_out.height = 127;
-                       cardhu_disp1_out.width = 216;
-               }
+               /* Set height and width in mm. */
+               cardhu_disp1_out.height = 127;
+               cardhu_disp1_out.width = 216;
 
                cardhu_disp1_pdata.fb = &cardhu_fb_data;
        } else {
@@ -1345,6 +1343,9 @@ int __init cardhu_panel_init(void)
 #else
                cardhu_disp1_out.depth = 24;
 #endif
+               /* Set height and width in mm. */
+               cardhu_disp1_out.height = 127;
+               cardhu_disp1_out.width = 203;
                cardhu_fb_data.xres = 1920;
                cardhu_fb_data.yres = 1200;