From: Paul Walmsley Date: Thu, 9 Oct 2008 23:22:22 +0000 (-0600) Subject: OMAP2xxx: move SRAM to fix boot hang X-Git-Tag: v2.6.27-omap1~55 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e641d796b5ca790f53ddcb885bdbaed1642e4544;p=linux-2.6-omap-h63xx.git OMAP2xxx: move SRAM to fix boot hang Commit 1c957036bbd912322793da676d05e169abf24782 breaks booting on OMAP2; it causes the SRAM to be mapped on top of the L4 interconnect. This causes the system to hang early in boot in omap_map_sram() during the TLB flush. Fix by moving SRAM elsewhere in the memory map. Reported by Jarkko Nikula . This patch is a collaboration with Tony Lindgren and Kevin Hilman . Boot-tested on 2430SDP (by Paul) and N810 (by Jarkko). Signed-off-by: Paul Walmsley Tested-by: Jarkko Nikula Cc: Kevin Hilman Cc: Tony Lindgren Cc: Måns Rullgård Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c index 853048d12ba..027b101e203 100644 --- a/arch/arm/plat-omap/sram.c +++ b/arch/arm/plat-omap/sram.c @@ -37,8 +37,8 @@ #define OMAP1_SRAM_VA VMALLOC_END #define OMAP2_SRAM_PA 0x40200000 #define OMAP2_SRAM_PUB_PA 0x4020f800 -#define OMAP2_SRAM_VA VMALLOC_END -#define OMAP2_SRAM_PUB_VA (VMALLOC_END + 0x800) +#define OMAP2_SRAM_VA 0xe3000000 +#define OMAP2_SRAM_PUB_VA (OMAP2_SRAM_VA + 0x800) #define OMAP3_SRAM_PA 0x40200000 #define OMAP3_SRAM_VA 0xd7000000 #define OMAP3_SRAM_PUB_PA 0x40208000