Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1284b5f authored by Kevin Hilman's avatar Kevin Hilman Committed by Tony Lindgren
Browse files

ARM: OMAP: 2420 boot BUG(): failure to map SRAM



ARM: OMAP: Fix SRAM static mapping for EMU devices.

Fix SRAM static mapping for EMU devices.

Signed-off-by: default avatarKevin Hilman <khilman@deeprooted.net>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 93bda4c0
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -174,9 +174,6 @@ void __init omap_map_sram(void)
	if (cpu_is_omap24xx()) {
		omap_sram_io_desc[0].virtual = OMAP2_SRAM_VA;

		if (is_sram_locked())
			base = OMAP2_SRAM_PUB_PA;
		else
		base = OMAP2_SRAM_PA;
		base = ROUND_DOWN(base, PAGE_SIZE);
		omap_sram_io_desc[0].pfn = __phys_to_pfn(base);