From: Colin Cross Date: Tue, 19 Oct 2010 21:49:56 +0000 (-0700) Subject: [ARM] tegra: stingray: HACK: Reserve old bootloader framebuffer X-Git-Tag: firefly_0821_release~9834^2~424 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5dc9aa2f7a1767fdf090e58e981b7f33996e44ec;p=firefly-linux-kernel-4.4.55.git [ARM] tegra: stingray: HACK: Reserve old bootloader framebuffer In bootloader 1021, the address of the framebuffer is not reported correctly. Manually reserve the location it is actually at. Change-Id: Ie989ea0c5d8d7c34893585431228e274c623372f Signed-off-by: Colin Cross --- diff --git a/arch/arm/mach-tegra/board-stingray.c b/arch/arm/mach-tegra/board-stingray.c index 0982984945f1..18cf15bf6aba 100644 --- a/arch/arm/mach-tegra/board-stingray.c +++ b/arch/arm/mach-tegra/board-stingray.c @@ -1057,6 +1057,19 @@ void __init stingray_reserve(void) ramconsole_start, ramconsole_size); tegra_reserve(SZ_128M, SZ_8M, SZ_16M); + + /* + * Bootloader 1021 passes the wrong address for the bootloader's + * framebuffer, so just reserve the location its using manually. + */ + tegra_bootloader_fb_start = 0x18018000; + tegra_bootloader_fb_size = 0x500000; + if (memblock_reserve(tegra_bootloader_fb_start, tegra_bootloader_fb_size)) + pr_info("Failed to reserve old framebuffer location\n"); + else + pr_info("HACK: Old framebuffer: %08lx - %08lx\n", + tegra_bootloader_fb_start, + tegra_bootloader_fb_start + tegra_bootloader_fb_size - 1); } MACHINE_START(STINGRAY, "stingray")