summaryrefslogtreecommitdiff
path: root/common/board_r.c
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2014-08-22 11:36:47 +0800
committerThomas Chou <thomas@wytron.com.tw>2014-08-24 11:28:10 +0800
commit5ff10aa7e76fc7dbd205ec13381757bfa2c99911 (patch)
treeb61f3a949766cb6cda4f537874bebe7790356c8e /common/board_r.c
parent70fbc46192dfd52896560f4b31e40daa3d16b99f (diff)
nios2: add generic board support
This patch implements the generic board init as described in doc/README.generic-board. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Scott McNutt <smcnutt@psyent.com> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'common/board_r.c')
-rw-r--r--common/board_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/board_r.c b/common/board_r.c
index ba9a68dc66..f9647e1358 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -133,7 +133,7 @@ static int initr_reloc_global_data(void)
{
#ifdef __ARM__
monitor_flash_len = _end - __image_copy_start;
-#elif !defined(CONFIG_SANDBOX)
+#elif !defined(CONFIG_SANDBOX) && !defined(CONFIG_NIOS2)
monitor_flash_len = (ulong)&__init_end - gd->relocaddr;
#endif
#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)