summaryrefslogtreecommitdiff
path: root/board/omap1510inn/platform.S
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-10-10 22:44:24 +0000
committerwdenk <wdenk>2004-10-10 22:44:24 +0000
commitc15f3120eca5359ed7ec1a359085312bbafca169 (patch)
tree46ca2ff3275513348b742298ec715677112f1737 /board/omap1510inn/platform.S
parent656658dd1577b62d5192ba2db4d9b8a3be1dbee3 (diff)
* Patch by Michael Bendzick, 30 Aug 2004:
- Improve platform.S code for omap1510inn that detects whether code is running from SDRAM or not. Patch allows SDRAM to be configured if code is running out of SRAM at 0x20000000. * Patch by Frederick Klatt, 30 Aug 2004: Add support for the Wind River SBC8540/SBC8560 boards
Diffstat (limited to 'board/omap1510inn/platform.S')
-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.