summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-09-09 17:44:35 +0000
committerwdenk <wdenk>2004-09-09 17:44:35 +0000
commit1d6f97209ee1efc60e37b983046e3189f359e22a (patch)
tree3114bdfc74120813fee73e85028f201dddd36605 /Makefile
parenteedcd078fe1434d93b84322c4e14c52f80282a41 (diff)
Fix SysClk handling for PPChameleon and CATcenter boards
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 16 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index ba52bdd3776..c693b6afa61 100644
--- a/Makefile
+++ b/Makefile
@@ -680,9 +680,19 @@ BUBINGA405EP_config: unconfig
CANBT_config: unconfig
@./mkconfig $(@:_config=) ppc ppc4xx canbt esd
-CATcenter_config: unconfig
+CATcenter_config \
+CATcenter_25_config \
+CATcenter_33_config: unconfig
@ echo "/* CATcenter uses PPChameleon Model ME */" > include/config.h
@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h
+ @[ -z "$(findstring _25,$@)" ] || \
+ { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
+ echo "SysClk = 25MHz" ; \
+ }
+ @[ -z "$(findstring _33,$@)" ] || \
+ { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
+ echo "SysClk = 33MHz" ; \
+ }
@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
CPCI405_config \
@@ -771,25 +781,25 @@ PPChameleonEVB_BA_33_config \
PPChameleonEVB_ME_33_config \
PPChameleonEVB_HI_33_config: unconfig
@ >include/config.h
- @[ -z "$(findstring _MODEL_BA,$@)" ] || \
+ @[ -z "$(findstring EVB_BA,$@)" ] || \
{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
echo "... BASIC model" ; \
}
- @[ -z "$(findstring _MODEL_ME,$@)" ] || \
+ @[ -z "$(findstring EVB_ME,$@)" ] || \
{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
echo "... MEDIUM model" ; \
}
- @[ -z "$(findstring _MODEL_HI,$@)" ] || \
+ @[ -z "$(findstring EVB_HI,$@)" ] || \
{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
echo "... HIGH-END model" ; \
}
@[ -z "$(findstring _25,$@)" ] || \
{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
- echo " SysClk = 25MHz" ; \
+ echo "SysClk = 25MHz" ; \
}
@[ -z "$(findstring _33,$@)" ] || \
{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
- echo " SysClk = 33MHz" ; \
+ echo "SysClk = 33MHz" ; \
}
@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave