mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 1/4] ARM Ka-Ro TX25: fix running in SDRAM test
Date: Thu, 17 Jan 2013 10:37:41 +0100	[thread overview]
Message-ID: <1358415464-4657-2-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1358415464-4657-1-git-send-email-s.hauer@pengutronix.de>

The end of SDRAM is at 0x9fffffff, not at 0x8fffffff. This fixes starting
barebox when it is located in the second SDRAM bank.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/boards/karo-tx25/lowlevel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boards/karo-tx25/lowlevel.c b/arch/arm/boards/karo-tx25/lowlevel.c
index 9c5cc5c..d0afad2 100644
--- a/arch/arm/boards/karo-tx25/lowlevel.c
+++ b/arch/arm/boards/karo-tx25/lowlevel.c
@@ -130,7 +130,7 @@ void __bare_init __naked reset(void)
 
 	/* Skip SDRAM initialization if we run from RAM */
 	r = get_pc();
-	if (r > 0x80000000 && r < 0x90000000)
+	if (r > 0x80000000 && r < 0xa0000000)
 		board_init_lowlevel_return();
 
 	/* set to 3.3v SDRAM */
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2013-01-17  9:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-17  9:37 [PATCH] Ka-Ro TX25 updates Sascha Hauer
2013-01-17  9:37 ` Sascha Hauer [this message]
2013-01-17  9:37 ` [PATCH 2/4] ARM Ka-Ro TX25: fix compilation with external NAND boot enabled Sascha Hauer
2013-01-17  9:37 ` [PATCH 3/4] ARM Ka-Ro TX25: Increase NAND partitions Sascha Hauer
2013-01-17  9:37 ` [PATCH 4/4] ARM Ka-Ro Tx25: Switch to new environment Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1358415464-4657-2-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox