summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-08-17 18:55:18 +0000
committerwdenk <wdenk>2003-08-17 18:55:18 +0000
commite0ac62d798ce60ec5d43125d4786e58b0d881836 (patch)
tree3f32c8f29ff9089ef61099b11d81d51039bf2162 /Makefile
parentae3af05ec986a8ac66dadb5eafe13db2d4a02c5c (diff)
downloadu-boot-imx-e0ac62d798ce60ec5d43125d4786e58b0d881836.zip
u-boot-imx-e0ac62d798ce60ec5d43125d4786e58b0d881836.tar.gz
u-boot-imx-e0ac62d798ce60ec5d43125d4786e58b0d881836.tar.bz2
* Make Ethernet autonegotiation on INCA-IP work for all clock rates;
allow selection of clock frequency as "make" target * Implement memory autosizing code for IceCube boards * Configure network port on INCA-IP for autonegotiation * Fix overflow problem in network timeout code * Patch by Richard Woodruff, 8 Aug 2003: Allow crc32 to be used at address 0x000 (crc32_no_comp, too).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 24 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f46103f..ad0de2c7 100644
--- a/Makefile
+++ b/Makefile
@@ -848,8 +848,30 @@ sc520_spunk_rel_config : unconfig
## MIPS32 4Kc
#########################################################################
-incaip_config : unconfig
- @./mkconfig $(@:_config=) mips mips incaip
+xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
+
+incaip_100MHz_config \
+incaip_133MHz_config \
+incaip_150MHz_config \
+incaip_config: unconfig
+ @ >include/config.h
+ @[ -z "$(findstring _100MHz,$@)" ] || \
+ { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
+ echo "... with 100MHz system clock" ; \
+ }
+ @[ -z "$(findstring _133MHz,$@)" ] || \
+ { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
+ echo "... with 133MHz system clock" ; \
+ }
+ @[ -z "$(findstring _150MHz,$@)" ] || \
+ { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
+ echo "... with 150MHz system clock" ; \
+ }
+ @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
+
+#########################################################################
+## MIPS64 5Kc
+#########################################################################
purple_config : unconfig
@./mkconfig $(@:_config=) mips mips purple