From c15f3120eca5359ed7ec1a359085312bbafca169 Mon Sep 17 00:00:00 2001 From: wdenk Date: Sun, 10 Oct 2004 22:44:24 +0000 Subject: * 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 --- board/omap1510inn/platform.S | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'board/omap1510inn') diff --git a/board/omap1510inn/platform.S b/board/omap1510inn/platform.S index 709fe04..40b067e 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. -- cgit v1.1