summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-ventana-panel.c
diff options
context:
space:
mode:
authorKevin Huang <kevinh@nvidia.com>2011-07-05 18:27:43 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-07-08 16:38:45 -0700
commit6acceddbb7ba642f0dbb2f55c91780723d12c994 (patch)
treea36a6fc65ed0fad83d31140b6291c52f458046ca /arch/arm/mach-tegra/board-ventana-panel.c
parent6ecace358d333417632b097c85b51c752dc18839 (diff)
arm: tegra: cardhu: Fix the issue of boot screen corruption.
- The issue is due to the corruption of bootloader fb during kernel initialization. This change reserves the bootloader fb and then frees it until bootloader fb is copied to fb for Cardhu, Ventana, Whistler, Enterprise and Aruba. - Change color depth of Cardhu and Harmony to 32-bit. Bug 828271 Bug 832016 Change-Id: I05ef5930ee68dcbd672a5cb59b4568a2c88a2e55 Reviewed-on: http://git-master/r/34966 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana-panel.c')
-rw-r--r--arch/arm/mach-tegra/board-ventana-panel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-ventana-panel.c b/arch/arm/mach-tegra/board-ventana-panel.c
index d30bf18426bc..0f32b109b397 100644
--- a/arch/arm/mach-tegra/board-ventana-panel.c
+++ b/arch/arm/mach-tegra/board-ventana-panel.c
@@ -214,6 +214,7 @@ static struct tegra_fb_data ventana_fb_data = {
.xres = 1366,
.yres = 768,
.bits_per_pixel = 32,
+ .flags = TEGRA_FB_FLIP_ON_PROBE,
};
static struct tegra_fb_data ventana_hdmi_fb_data = {
@@ -221,6 +222,7 @@ static struct tegra_fb_data ventana_hdmi_fb_data = {
.xres = 1366,
.yres = 768,
.bits_per_pixel = 32,
+ .flags = TEGRA_FB_FLIP_ON_PROBE,
};
static struct tegra_dc_out ventana_disp1_out = {
@@ -400,6 +402,10 @@ int __init ventana_panel_init(void)
res->start = tegra_fb2_start;
res->end = tegra_fb2_start + tegra_fb2_size - 1;
+ /* Copy the bootloader fb to the fb. */
+ tegra_move_framebuffer(tegra_fb_start, tegra_bootloader_fb_start,
+ min(tegra_fb_size, tegra_bootloader_fb_size));
+
if (!err)
err = nvhost_device_register(&ventana_disp1_device);