summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTsiChungLiew <Tsi-Chung.Liew@freescale.com>2007-08-16 19:23:50 -0500
committerJohn Rigby <jrigby@freescale.com>2007-08-17 11:36:29 -0600
commit4a442d3186b31893b4f77c6e82f63c4517a5224b (patch)
tree7f0ad1c0464cbeeee6b3db4ccf9d7204d5d9819f /Makefile
parent8ae158cd87a4a25722b27835261b6ff0fa2aa6a7 (diff)
ColdFire: Add M5235EVB Platform for MCF523x
Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 22 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 201ad0e778..7b2b0252da 100644
--- a/Makefile
+++ b/Makefile
@@ -1639,6 +1639,25 @@ ZPC1900_config: unconfig
## Coldfire
#########################################################################
+M5235EVB_config \
+M5235EVB_Flash16_config \
+M5235EVB_Flash32_config: unconfig
+ @case "$@" in \
+ M5235EVB_config) FLASH=16;; \
+ M5235EVB_Flash16_config) FLASH=16;; \
+ M5235EVB_Flash32_config) FLASH=32;; \
+ esac; \
+ >include/config.h ; \
+ if [ "$${FLASH}" != "16" ] ; then \
+ echo "#define NORFLASH_PS32BIT 1" >> include/config.h ; \
+ echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
+ cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
+ else \
+ echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
+ cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
+ fi
+ @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
+
M5249EVB_config : unconfig
@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
@@ -1710,13 +1729,13 @@ M54455EVB_i66_config : unconfig
esac; \
>include/config.h ; \
if [ "$${FLASH}" == "INTEL" ] ; then \
- echo "#undef CFG_ATMEL_BOOT" >> include/config.h ; \
+ echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
echo "... with INTEL boot..." ; \
else \
- echo "#define CFG_ATMEL_BOOT" >> include/config.h ; \
+ echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
echo "... with ATMEL boot..." ; \
fi; \
- echo "#define CFG_INPUT_CLKSRC $${FREQ}" >>include/config.h ; \
+ echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
echo "... with $${FREQ}Hz input clock"
@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale