]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ARM: tegra: dalmore: clear fb if bl fb not defined.
authorJong Kim <jongk@nvidia.com>
Mon, 1 Jul 2013 20:40:32 +0000 (13:40 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:39:41 +0000 (13:39 -0700)
Clear primary framebuffer if bootloader framebuffer is not defined.
(Some bootloader such as u-boot may not support LCD display and not
supporting LCD in bootloader is purely customer's choice and the
kernel display driver should survive such configuration).

bug 1301464
bug 1264520

Change-Id: Ia37f1f9db08166509bf02673268180f277286dc2
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/243977
(cherry picked from commit 6e713daa1b729e341f682568a12bd0ef0249be72)
Reviewed-on: http://git-master/r/259254
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
arch/arm/mach-tegra/board-dalmore-panel.c

index 8f3a784fbb0bc64b76113214b84bfd1e9a2dbe8b..fe2f00f000e940c836ea5f5d1f6c4a1d047ec11c 100644 (file)
@@ -537,9 +537,13 @@ int __init dalmore_panel_init(void)
        res->end = tegra_fb_start + tegra_fb_size - 1;
 
        /* Copy the bootloader fb to the fb. */
-       __tegra_move_framebuffer(&dalmore_nvmap_device,
-               tegra_fb_start, tegra_bootloader_fb_start,
-                       min(tegra_fb_size, tegra_bootloader_fb_size));
+       if (tegra_bootloader_fb_size)
+               __tegra_move_framebuffer(&dalmore_nvmap_device,
+                               tegra_fb_start, tegra_bootloader_fb_start,
+                               min(tegra_fb_size, tegra_bootloader_fb_size));
+       else
+               __tegra_clear_framebuffer(&dalmore_nvmap_device,
+                                         tegra_fb_start, tegra_fb_size);
 
        res = platform_get_resource_byname(&dalmore_disp2_device,
                                         IORESOURCE_MEM, "fbmem");