summaryrefslogtreecommitdiff
path: root/arch/powerpc/lib/Makefile
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2012-08-23 08:34:21 +0200
committerStefan Roese <sr@denx.de>2012-12-05 17:30:22 +0100
commitea8256f072ccc04c83fa10030673cdd4cd01cbd9 (patch)
tree85d8f4dbeb70c33a9be4a6bfb7fd9cc259bde15d /arch/powerpc/lib/Makefile
parent966b11c74909d2c1b38070dc4ab5708fba5be43d (diff)
downloadu-boot-imx-ea8256f072ccc04c83fa10030673cdd4cd01cbd9.zip
u-boot-imx-ea8256f072ccc04c83fa10030673cdd4cd01cbd9.tar.gz
u-boot-imx-ea8256f072ccc04c83fa10030673cdd4cd01cbd9.tar.bz2
SPL: Port SPL framework to powerpc
This patch enables the SPL framework to be used on powerpc platforms and not only ARM. timer_init() does not exist on PPC systems. The timer (decrementer) is initialized and enabled in interrupt_init() here. And currently interrupt_init() is called after relocation to SDRAM. Since the only powerpc SPL implementation (a3m071) doesn't need a timer, let's remove this timer_init() call for PPC systems. Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch/powerpc/lib/Makefile')
-rw-r--r--arch/powerpc/lib/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile
index 20c5c38..bf40676 100644
--- a/arch/powerpc/lib/Makefile
+++ b/arch/powerpc/lib/Makefile
@@ -79,6 +79,10 @@ endif
endif # not minimal
+ifdef CONFIG_SPL_BUILD
+COBJS-$(CONFIG_SPL_FRAMEWORK) += spl.o
+endif
+
COBJS += $(sort $(COBJS-y))
SRCS := $(GLSOBJS:.o=.S) $(GLCOBJS:.o=.c) \