@ echo "#define CONFIG_$(@:_config=) 1" >include/config.h
@./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
-PM520_config: unconfig
- @./mkconfig $(@:_config=) ppc mpc5xxx pm520
+PM520_config \
+PM520_DDR_config \
+PM520_ROMBOOT_config \
+PM520_ROMBOOT_DDR_config: unconfig
+ @ >include/config.h
+ @[ -z "$(findstring DDR,$@)" ] || \
+ { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \
+ echo "... DDR memory revision" ; \
+ }
+ @[ -z "$(findstring ROMBOOT,$@)" ] || \
+ { echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
+ echo "... booting from 8-bit flash" ; \
+ }
+ @./mkconfig -a PM520 ppc mpc5xxx pm520
#########################################################################
## MPC8xx Systems
#########################################################################
-AdderII_config: unconfig
- @./mkconfig $(@:_config=) ppc mpc8xx adderII
+Adder_config \
+Adder87x_config \
+AdderII_config \
+ : unconfig
+ $(if $(findstring AdderII,$@), \
+ @echo "#define CONFIG_MPC852T" > include/config.h)
+ @./mkconfig -a Adder ppc mpc8xx adder
ADS860_config \
FADS823_config \
RPXlite_config: unconfig
@./mkconfig $(@:_config=) ppc mpc8xx RPXlite
+RPXlite_DW_64_config \
+RPXlite_DW_LCD_config \
+RPXlite_DW_64_LCD_config \
+RPXlite_DW_NVRAM_config \
+RPXlite_DW_NVRAM_64_config \
+RPXlite_DW_NVRAM_LCD_config \
+RPXlite_DW_NVRAM_64_LCD_config \
+RPXlite_DW_config: unconfig
+ @ >include/config.h
+ @[ -z "$(findstring _64,$@)" ] || \
+ { echo "#define RPXlite_64MHz" >>include/config.h ; \
+ echo "... with 64MHz system clock ..."; \
+ }
+ @[ -z "$(findstring _LCD,$@)" ] || \
+ { echo "#define CONFIG_LCD" >>include/config.h ; \
+ echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \
+ echo "... with LCD display ..."; \
+ }
+ @[ -z "$(findstring _NVRAM,$@)" ] || \
+ { echo "#define CFG_ENV_IS_IN_NVRAM" >>include/config.h ; \
+ echo "... with ENV in NVRAM ..."; \
+ }
+ @./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw
+
rmu_config: unconfig
@./mkconfig $(@:_config=) ppc mpc8xx rmu
#########################################################################
## PPC4xx Systems
#########################################################################
-xtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1))))
+xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
ADCIOP_config: unconfig
@./mkconfig $(@:_config=) ppc ppc4xx adciop esd
PMC405_config: unconfig
@./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
-PPChameleonEVB_MODEL_BA_config \
-PPChameleonEVB_MODEL_ME_config \
-PPChameleonEVB_MODEL_HI_config \
-PPChameleonEVB_config: unconfig
+PPChameleonEVB_BA_25_config \
+PPChameleonEVB_ME_25_config \
+PPChameleonEVB_HI_25_config \
+PPChameleonEVB_BA_33_config \
+PPChameleonEVB_ME_33_config \
+PPChameleonEVB_HI_33_config: unconfig
@ >include/config.h
@[ -z "$(findstring _MODEL_BA,$@)" ] || \
{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
{ 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" ; \
+ }
+ @[ -z "$(findstring _33,$@)" ] || \
+ { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
+ echo " SysClk = 33MHz" ; \
+ }
@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
VOH405_config: unconfig
IPHASE4539_config: unconfig
@./mkconfig $(@:_config=) ppc mpc8260 iphase4539
+ISPAN_config \
+ISPAN_REVB_config: unconfig
+ @if [ "$(findstring _REVB_,$@)" ] ; then \
+ echo "#define CFG_REV_B" > include/config.h ; \
+ fi
+ @./mkconfig -a ISPAN ppc mpc8260 ispan
+
MPC8260ADS_config \
MPC8260ADS_33MHz_config \
MPC8260ADS_40MHz_config \
## MPC85xx Systems
#########################################################################
-MPC8540ADS_config: unconfig
+MPC8540ADS_config: unconfig
@./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
-MPC8560ADS_config: unconfig
+MPC8560ADS_config: unconfig
@./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
-stxgp3_config: unconfig
+stxgp3_config: unconfig
@./mkconfig $(@:_config=) ppc mpc85xx stxgp3
+SBC8560_33_config \
+SBC8560_66_config: unconfig
+ @if [ "$(findstring _66_,$@)" ] ; then \
+ echo "#define CONFIG_PCI_66" >>include/config.h ; \
+ echo "... 66 MHz PCI" ; \
+ else \
+ >include/config.h ; \
+ echo "... 33 MHz PCI" ; \
+ fi
+ @./mkconfig -a SBC8560 ppc mpc85xx sbc8560
+
#########################################################################
## 74xx/7xx Systems
#########################################################################
xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
-xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
+xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
-SX1_config : unconfig
- @./mkconfig $(@:_config=) arm arm925t sx1
-
integratorcp_config : unconfig
@./mkconfig $(@:_config=) arm arm926ejs integratorcp
integratorap_config : unconfig
@./mkconfig $(@:_config=) arm arm926ejs integratorap
-versatile_config : unconfig
- @./mkconfig $(@:_config=) arm arm926ejs versatile
+lpd7a400_config \
+lpd7a404_config: unconfig
+ @./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
omap1510inn_config : unconfig
@./mkconfig $(@:_config=) arm arm925t omap1510inn
omap1610inn_config \
omap1610inn_cs0boot_config \
omap1610inn_cs3boot_config \
+omap1610inn_cs_autoboot_config \
omap1610h2_config \
omap1610h2_cs0boot_config \
-omap1610h2_cs3boot_config : unconfig
+omap1610h2_cs3boot_config \
+omap1610h2_cs_autoboot_config: unconfig
@if [ "$(findstring _cs0boot_, $@)" ] ; then \
echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
echo "... configured for CS0 boot"; \
+ elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
+ echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
+ echo "... configured for CS_AUTO boot"; \
else \
echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
echo "... configured for CS3 boot"; \
smdk2410_config : unconfig
@./mkconfig $(@:_config=) arm arm920t smdk2410
+SX1_config : unconfig
+ @./mkconfig $(@:_config=) arm arm925t sx1
+
# TRAB default configuration: 8 MB Flash, 32 MB RAM
trab_config \
trab_bigram_config \
VCMA9_config : unconfig
@./mkconfig $(@:_config=) arm arm920t vcma9 mpl
+versatile_config : unconfig
+ @./mkconfig $(@:_config=) arm arm926ejs versatile
#########################################################################
## S3C44B0 Systems
@./mkconfig $(@:_config=) arm s3c44b0 B2 dave
#########################################################################
-## ARM720T Systems
+## MC9328 (Dragonball) Systems
#########################################################################
-impa7_config : unconfig
- @./mkconfig $(@:_config=) arm arm720t impa7
+mx1ads_config : unconfig
+ @./mkconfig $(@:_config=) arm mc9328 mx1ads
+
+#########################################################################
+## ARM720T Systems
+#########################################################################
ep7312_config : unconfig
@./mkconfig $(@:_config=) arm arm720t ep7312
+impa7_config : unconfig
+ @./mkconfig $(@:_config=) arm arm720t impa7
+
modnet50_config : unconfig
@./mkconfig $(@:_config=) arm arm720t modnet50
+evb4510_config : unconfig
+ @./mkconfig $(@:_config=) arm arm720t evb4510
+
#########################################################################
## AT91RM9200 Systems
#########################################################################
xm250_config : unconfig
@./mkconfig $(@:_config=) arm pxa xm250
+xsengine_config : unconfig
+ @./mkconfig $(@:_config=) arm pxa xsengine
+
#========================================================================
# i386
#========================================================================
rm -f board/trab/trab_fkt
clobber: clean
- find . -type f \
- \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
- -print \
- | xargs rm -f
+ find . -type f \( -name .depend \
+ -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
+ -print0 \
+ | xargs -0 rm -f
rm -f $(OBJS) *.bak tags TAGS
rm -fr *.*~
rm -f u-boot u-boot.map $(ALL)