summaryrefslogtreecommitdiff
path: root/board/omap1510inn
diff options
context:
space:
mode:
Diffstat (limited to 'board/omap1510inn')
-rw-r--r--board/omap1510inn/platform.S11
1 files changed, 9 insertions, 2 deletions
diff --git a/board/omap1510inn/platform.S b/board/omap1510inn/platform.S
index 709fe04d2a..40b067eb25 100644
--- a/board/omap1510inn/platform.S
+++ b/board/omap1510inn/platform.S
@@ -159,8 +159,15 @@ lock_end:
*/
mov r0, #0x10000000 /* Load physical SDRAM base. */
mov r1, pc /* Get current execution location. */
- cmp r1, r0 /* Compare. */
- bge skip_sdram /* Skip over EMIF-fast initialization if running from SDRAM. */
+ /* Zero all but top 6 bits of PC, as they alone detect whether an
+ * address is in the range 0x1000:0000-0x13ff:ffff, the 64M sized
+ * valid range for SDRAM on the OMAP 1510/5910.
+ */
+ and r1, r1, #0xfc000000
+ cmp r1, r0 /* Compare. */
+ beq skip_sdram /* Skip over EMIF-fast initialization
+ * if running from SDRAM.
+ */
/*
* Delay for SDRAM initialization.