summaryrefslogtreecommitdiff
path: root/arch/powerpc/lib
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2011-01-31 15:51:20 -0600
committerKumar Gala <galak@kernel.crashing.org>2011-04-04 09:24:40 -0500
commit561e710a979c86a0c647dd70d143cafc123bcd64 (patch)
treedeb64200384da61104751949ed3d08447601dafe /arch/powerpc/lib
parentccc4a8d89f8abcd30c25ac67a5aa5e57ac2eb515 (diff)
downloadu-boot-imx-561e710a979c86a0c647dd70d143cafc123bcd64.zip
u-boot-imx-561e710a979c86a0c647dd70d143cafc123bcd64.tar.gz
u-boot-imx-561e710a979c86a0c647dd70d143cafc123bcd64.tar.bz2
powerpc: Move cpu specific lmb reserve to arch_lmb_reserve
We've been utilizing board_lmb_reserve to reserve the boot page for MP systems. We can just move this into arch_lmb_reserve for 85xx & 86xx systems rather than duplicating in each board port. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/lib')
-rw-r--r--arch/powerpc/lib/bootm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/lib/bootm.c b/arch/powerpc/lib/bootm.c
index 116d81b..c7f3d08 100644
--- a/arch/powerpc/lib/bootm.c
+++ b/arch/powerpc/lib/bootm.c
@@ -33,6 +33,7 @@
#include <bzlib.h>
#include <environment.h>
#include <asm/byteorder.h>
+#include <asm/mp.h>
#if defined(CONFIG_OF_LIBFDT)
#include <fdt.h>
@@ -166,6 +167,10 @@ void arch_lmb_reserve(struct lmb *lmb)
sp -= 4096;
lmb_reserve(lmb, sp, (CONFIG_SYS_SDRAM_BASE + get_effective_memsize() - sp));
+#ifdef CONFIG_MP
+ cpu_mp_lmb_reserve(lmb);
+#endif
+
return ;
}