[PATCH 2/2] pcm043: fix wrong test
Eric Bénard
eric at eukrea.com
Mon May 24 06:37:52 EDT 2010
* actually the condition will never be met
Signed-off-by: Eric Bénard <eric at eukrea.com>
---
board/pcm043/lowlevel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/board/pcm043/lowlevel.c b/board/pcm043/lowlevel.c
index d4059db..9eff5a6 100644
--- a/board/pcm043/lowlevel.c
+++ b/board/pcm043/lowlevel.c
@@ -194,7 +194,7 @@ void __bare_init __naked board_init_lowlevel(void)
#ifdef CONFIG_NAND_IMX_BOOT
/* skip NAND boot if not running from NFC space */
r = get_pc();
- if (r < IMX_NFC_BASE && r > IMX_NFC_BASE + 0x800)
+ if (r < IMX_NFC_BASE || r > IMX_NFC_BASE + 0x800)
board_init_lowlevel_return();
src = (unsigned int *)IMX_NFC_BASE;
--
1.6.3.3
More information about the barebox
mailing list