diff options
author | Rakesh Iyer <riyer@nvidia.com> | 2012-08-06 14:06:17 -0700 |
---|---|---|
committer | Lokesh Pathak <lpathak@nvidia.com> | 2012-08-14 06:26:35 -0700 |
commit | 61a9d84f74163c7f2dbc6868836b916903724f3c (patch) | |
tree | a8bd51cfb528f407a891394147e5cc8e9702830f | |
parent | 71f038602f3417417aec99470fabb287ec8886fd (diff) |
ARM: tegra: cardhu: report correct height/width
We will report the exact width/height instead of rounding it off for
Android's bucketed dpi values. The determination of the bucketed dpi
values is handled in user mode.
Bug 1003707.
Change-Id: Id3d4b9fc325187067e2d3df895ff6a753b730633
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/121431
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu-panel.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-panel.c b/arch/arm/mach-tegra/board-cardhu-panel.c index c106a4317bc0..530fcfc4ba09 100644 --- a/arch/arm/mach-tegra/board-cardhu-panel.c +++ b/arch/arm/mach-tegra/board-cardhu-panel.c @@ -1246,8 +1246,8 @@ static void cardhu_panel_preinit(void) cardhu_disp1_out.enable = cardhu_panel_enable; cardhu_disp1_out.disable = cardhu_panel_disable; /* Set height and width in mm. */ - cardhu_disp1_out.height = 127; - cardhu_disp1_out.width = 216; + cardhu_disp1_out.height = 125; + cardhu_disp1_out.width = 223; cardhu_disp1_pdata.fb = &cardhu_fb_data; } else { @@ -1269,12 +1269,18 @@ static void cardhu_panel_preinit(void) ARRAY_SIZE(cardhu_dsi_modes_218); cardhu_dsi_fb_data.xres = 864; cardhu_dsi_fb_data.yres = 480; + /* Set height and width in mm. */ + cardhu_disp1_out.height = 47; + cardhu_disp1_out.width = 84; } else if (is_panel_219) { cardhu_disp1_out.modes = cardhu_dsi_modes_219; cardhu_disp1_out.n_modes = ARRAY_SIZE(cardhu_dsi_modes_219); cardhu_dsi_fb_data.xres = 540; cardhu_dsi_fb_data.yres = 960; + /* Set height and width in mm. */ + cardhu_disp1_out.height = 95; + cardhu_disp1_out.width = 53; } else if (is_panel_1506) { cardhu_disp1_out.modes = cardhu_dsi_modes_1506; cardhu_disp1_out.n_modes = @@ -1340,8 +1346,8 @@ int __init cardhu_panel_init(void) cardhu_disp1_out.depth = 24; #endif /* Set height and width in mm. */ - cardhu_disp1_out.height = 127; - cardhu_disp1_out.width = 203; + cardhu_disp1_out.height = 135; + cardhu_disp1_out.width = 217; cardhu_fb_data.xres = 1920; cardhu_fb_data.yres = 1200; |