ARM: tegra: loki: remove fb flip flag
Vinayak Pane [Fri, 10 Jan 2014 01:17:33 +0000 (17:17 -0800)]
Removing TEGRA_FB_FLIP_ON_PROBE from board panel files.
Also copy framebuffer for seamless HDMI display.

Bug 1425201

Change-Id: I682872ea7af1bb39ccb910f5c77b68f425f0fd38
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/354680
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

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

index dc0b1ac..255fa9b 100644 (file)
@@ -288,7 +288,6 @@ static struct tegra_dc_out loki_disp2_out = {
 static struct tegra_fb_data loki_disp1_fb_data = {
        .win            = 0,
        .bits_per_pixel = 32,
-       .flags          = TEGRA_FB_FLIP_ON_PROBE,
 };
 
 static struct tegra_dc_platform_data loki_disp1_pdata = {
@@ -306,7 +305,6 @@ static struct tegra_fb_data loki_disp2_fb_data = {
        .xres           = 1024,
        .yres           = 600,
        .bits_per_pixel = 32,
-       .flags          = TEGRA_FB_FLIP_ON_PROBE,
 };
 
 static struct tegra_dc_platform_data loki_disp2_pdata = {
@@ -510,6 +508,14 @@ int __init loki_panel_init(int board_id)
                tegra_fb_start, tegra_bootloader_fb_start,
                        min(tegra_fb_size, tegra_bootloader_fb_size));
 
+       if (tegra_bootloader_fb2_size)
+               __tegra_move_framebuffer(&loki_nvmap_device,
+                       tegra_fb2_start, tegra_bootloader_fb2_start,
+                       min(tegra_fb2_size, tegra_bootloader_fb2_size));
+       else
+               __tegra_clear_framebuffer(&loki_nvmap_device,
+                               tegra_fb2_start, tegra_fb2_size);
+
        res = platform_get_resource_byname(&loki_disp2_device,
                                         IORESOURCE_MEM, "fbmem");
        res->start = tegra_fb2_start;