summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorGabriel Huau <contact@huau-gabriel.fr>2014-07-26 11:35:43 -0700
committerStefano Babic <sbabic@denx.de>2014-08-20 11:52:54 +0200
commita76df7090882c32e9551590673fb76708346f85d (patch)
treeb23341c861c1d167fd15c7c066785898497d17bf /common
parent015e215bbf70214d7c3bec2eca691edb6b73b28e (diff)
downloadu-boot-a76df7090882c32e9551590673fb76708346f85d.tar.gz
mx6: add support of multi-processor command
This allows u-boot to load different OS or Bare Metal application on different cores of the i.MX6 SoC. For example: running Android on cpu0 and a RT OS like QNX/FreeRTOS on cpu1. Signed-off-by: Gabriel Huau <contact@huau-gabriel.fr> Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'common')
-rw-r--r--common/board_f.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 6203d85619..e1dbdf3c95 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -34,6 +34,9 @@
#ifdef CONFIG_MPC5xxx
#include <mpc5xxx.h>
#endif
+#if (defined(CONFIG_MPC86xx) || defined(CONFIG_E500))
+#include <asm/mp.h>
+#endif
#include <os.h>
#include <post.h>
@@ -43,9 +46,6 @@
#include <watchdog.h>
#include <asm/errno.h>
#include <asm/io.h>
-#ifdef CONFIG_MP
-#include <asm/mp.h>
-#endif
#include <asm/sections.h>
#ifdef CONFIG_X86
#include <asm/init_helpers.h>
@@ -381,7 +381,7 @@ static int setup_dest_addr(void)
gd->ram_top = board_get_usable_ram_top(gd->mon_len);
gd->relocaddr = gd->ram_top;
debug("Ram top: %08lX\n", (ulong)gd->ram_top);
-#if defined(CONFIG_MP) && (defined(CONFIG_MPC86xx) || defined(CONFIG_E500))
+#if (defined(CONFIG_MPC86xx) || defined(CONFIG_E500))
/*
* We need to make sure the location we intend to put secondary core
* boot code is reserved and not used by any part of u-boot