diff options
author | Wolfgang Denk <wd@denx.de> | 2009-06-14 20:58:47 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-07-14 00:02:41 +0200 |
commit | 7629f1c06b6dea36bbc7bf70820b824e9b6d2227 (patch) | |
tree | 5e16623d76147730634a34aae1939187fa850efb /cpu/mpc512x/Makefile | |
parent | 0549353a6ba5aa03420c0962b9072e9cf1fa49d9 (diff) |
MPC512x: factor out common code
Now that we have 3 boards for the MPC512x it turns out that they all
use the very same fixed_sdram() code.
This patch factors out this common code into cpu/mpc512x/fixed_sdram.c
and adds a new header file, include/asm-ppc/mpc512x.h, with some
macros, inline functions and prototype definitions specific to MPC512x
systems.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Reinhard Arlt <reinhard.arlt@esd-electronics.com>
Diffstat (limited to 'cpu/mpc512x/Makefile')
-rw-r--r-- | cpu/mpc512x/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cpu/mpc512x/Makefile b/cpu/mpc512x/Makefile index 022c676decc..427db7ae046 100644 --- a/cpu/mpc512x/Makefile +++ b/cpu/mpc512x/Makefile @@ -27,7 +27,15 @@ $(shell mkdir -p $(OBJTREE)/board/freescale/common) LIB = $(obj)lib$(CPU).a START = start.o -COBJS-y := traps.o cpu.o cpu_init.o speed.o interrupts.o serial.o i2c.o iopin.o +COBJS-y := cpu.o +COBJS-y += traps.o +COBJS-y += cpu_init.o +COBJS-y += fixed_sdram.o +COBJS-y += i2c.o +COBJS-y += interrupts.o +COBJS-y += iopin.o +COBJS-y += serial.o +COBJS-y += speed.o COBJS-${CONFIG_FSL_DIU_FB} += diu.o COBJS-${CONFIG_FSL_DIU_FB} += ../../board/freescale/common/fsl_diu_fb.o COBJS-${CONFIG_FSL_DIU_FB} += ../../board/freescale/common/fsl_logo_bmp.o |