17ebf7443Swdenk# 25e5f9ed2Swdenk# (C) Copyright 2000-2005 37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 47ebf7443Swdenk# 57ebf7443Swdenk# See file CREDITS for list of people who contributed to this 67ebf7443Swdenk# project. 77ebf7443Swdenk# 87ebf7443Swdenk# This program is free software; you can redistribute it and/or 97ebf7443Swdenk# modify it under the terms of the GNU General Public License as 107ebf7443Swdenk# published by the Free Software Foundation; either version 2 of 117ebf7443Swdenk# the License, or (at your option) any later version. 127ebf7443Swdenk# 137ebf7443Swdenk# This program is distributed in the hope that it will be useful, 147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of 157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 167ebf7443Swdenk# GNU General Public License for more details. 177ebf7443Swdenk# 187ebf7443Swdenk# You should have received a copy of the GNU General Public License 197ebf7443Swdenk# along with this program; if not, write to the Free Software 207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 217ebf7443Swdenk# MA 02111-1307 USA 227ebf7443Swdenk# 237ebf7443Swdenk 247ebf7443SwdenkHOSTARCH := $(shell uname -m | \ 257ebf7443Swdenk sed -e s/i.86/i386/ \ 267ebf7443Swdenk -e s/sun4u/sparc64/ \ 277ebf7443Swdenk -e s/arm.*/arm/ \ 287ebf7443Swdenk -e s/sa110/arm/ \ 297ebf7443Swdenk -e s/powerpc/ppc/ \ 307ebf7443Swdenk -e s/macppc/ppc/) 317ebf7443Swdenk 32f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ 337ebf7443Swdenk sed -e 's/\(cygwin\).*/cygwin/') 347ebf7443Swdenk 35f9d77ed3SWolfgang Denkexport HOSTARCH HOSTOS 367ebf7443Swdenk 377ebf7443Swdenk# Deal with colliding definitions from tcsh etc. 387ebf7443SwdenkVENDOR= 397ebf7443Swdenk 407ebf7443Swdenk######################################################################### 417ebf7443Swdenk 427ebf7443SwdenkTOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) 437ebf7443Swdenkexport TOPDIR 447ebf7443Swdenk 457ebf7443Swdenkifeq (include/config.mk,$(wildcard include/config.mk)) 467ebf7443Swdenk# load ARCH, BOARD, and CPU configuration 477ebf7443Swdenkinclude include/config.mk 481d9f4105Swdenkexport ARCH CPU BOARD VENDOR SOC 497ebf7443Swdenk# load other configuration 507ebf7443Swdenkinclude $(TOPDIR)/config.mk 517ebf7443Swdenk 527ebf7443Swdenkifndef CROSS_COMPILE 537ebf7443Swdenkifeq ($(HOSTARCH),ppc) 547ebf7443SwdenkCROSS_COMPILE = 557ebf7443Swdenkelse 567ebf7443Swdenkifeq ($(ARCH),ppc) 57f046ccd1SEran LibertyCROSS_COMPILE = powerpc-linux- 587ebf7443Swdenkendif 597ebf7443Swdenkifeq ($(ARCH),arm) 60dc7c9a1aSwdenkCROSS_COMPILE = arm-linux- 617ebf7443Swdenkendif 622262cfeeSwdenkifeq ($(ARCH),i386) 637a8e9bedSwdenkifeq ($(HOSTARCH),i386) 647a8e9bedSwdenkCROSS_COMPILE = 657a8e9bedSwdenkelse 667a8e9bedSwdenkCROSS_COMPILE = i386-linux- 677a8e9bedSwdenkendif 682262cfeeSwdenkendif 6943d9616cSwdenkifeq ($(ARCH),mips) 7043d9616cSwdenkCROSS_COMPILE = mips_4KC- 7143d9616cSwdenkendif 724a551709Swdenkifeq ($(ARCH),nios) 734a551709SwdenkCROSS_COMPILE = nios-elf- 744a551709Swdenkendif 755c952cf0Swdenkifeq ($(ARCH),nios2) 765c952cf0SwdenkCROSS_COMPILE = nios2-elf- 775c952cf0Swdenkendif 784e5ca3ebSwdenkifeq ($(ARCH),m68k) 794e5ca3ebSwdenkCROSS_COMPILE = m68k-elf- 804e5ca3ebSwdenkendif 81507bbe3eSwdenkifeq ($(ARCH),microblaze) 82507bbe3eSwdenkCROSS_COMPILE = mb- 83507bbe3eSwdenkendif 847ebf7443Swdenkendif 857ebf7443Swdenkendif 867ebf7443Swdenk 877ebf7443Swdenkexport CROSS_COMPILE 887ebf7443Swdenk 897ebf7443Swdenk######################################################################### 907ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first) 917ebf7443Swdenk 927ebf7443SwdenkOBJS = cpu/$(CPU)/start.o 932262cfeeSwdenkifeq ($(CPU),i386) 942262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o 952262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o 962262cfeeSwdenkendif 977ebf7443Swdenkifeq ($(CPU),ppc4xx) 987ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o 997ebf7443Swdenkendif 100f046ccd1SEran Libertyifeq ($(CPU),mpc83xx) 101f046ccd1SEran LibertyOBJS += cpu/$(CPU)/resetvec.o 102f046ccd1SEran Libertyendif 10342d1f039Swdenkifeq ($(CPU),mpc85xx) 10442d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o 10542d1f039Swdenkendif 1067ebf7443Swdenk 1079fd5e31fSwdenkLIBS = lib_generic/libgeneric.a 1089fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a 1097ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a 1101d9f4105Swdenkifdef SOC 1111d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a 1121d9f4105Swdenkendif 1137ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a 114518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 115c419d1d6Sstroese fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a 1167ebf7443SwdenkLIBS += net/libnet.a 1177ebf7443SwdenkLIBS += disk/libdisk.a 1187ebf7443SwdenkLIBS += rtc/librtc.a 1197ebf7443SwdenkLIBS += dtt/libdtt.a 1207ebf7443SwdenkLIBS += drivers/libdrivers.a 1217152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a 1227ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a 1237ebf7443SwdenkLIBS += common/libcommon.a 1249fd5e31fSwdenk.PHONY : $(LIBS) 125a8c7c708Swdenk 1264f7cb08eSwdenk# Add GCC lib 1271a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 1283d3befa7Swdenk 1297ebf7443Swdenk 130a8c7c708Swdenk# The "tools" are needed early, so put this first 131a8c7c708Swdenk# Don't include stuff already done in $(LIBS) 132a8c7c708SwdenkSUBDIRS = tools \ 133a8c7c708Swdenk examples \ 134a8c7c708Swdenk post \ 135a8c7c708Swdenk post/cpu 136b028f715Swdenk.PHONY : $(SUBDIRS) 137a8c7c708Swdenk 1387ebf7443Swdenk######################################################################### 139bdccc4feSwdenk######################################################################### 1407ebf7443Swdenk 141bdccc4feSwdenkALL = u-boot.srec u-boot.bin System.map 1427ebf7443Swdenk 143bdccc4feSwdenkall: $(ALL) 1447ebf7443Swdenk 1456310eb9dSwdenku-boot.hex: u-boot 1466310eb9dSwdenk $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 1476310eb9dSwdenk 1487ebf7443Swdenku-boot.srec: u-boot 1497ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 1507ebf7443Swdenk 1517ebf7443Swdenku-boot.bin: u-boot 1527ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 1537ebf7443Swdenk 154bdccc4feSwdenku-boot.img: u-boot.bin 155bdccc4feSwdenk ./tools/mkimage -A $(ARCH) -T firmware -C none \ 156bdccc4feSwdenk -a $(TEXT_BASE) -e 0 \ 157bdccc4feSwdenk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \ 158bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 159bdccc4feSwdenk -d $< $@ 160bdccc4feSwdenk 1617ebf7443Swdenku-boot.dis: u-boot 1627ebf7443Swdenk $(OBJDUMP) -d $< > $@ 1637ebf7443Swdenk 164a8c7c708Swdenku-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) 1658bde7f77Swdenk UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 1668bde7f77Swdenk $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \ 1671a344f29Swdenk --start-group $(LIBS) --end-group $(PLATFORM_LIBS) \ 168b2184c31Swdenk -Map u-boot.map -o u-boot 1697ebf7443Swdenk 170a8c7c708Swdenk$(LIBS): 171a8c7c708Swdenk $(MAKE) -C `dirname $@` 172a8c7c708Swdenk 173a8c7c708Swdenk$(SUBDIRS): 174b028f715Swdenk $(MAKE) -C $@ all 1757ebf7443Swdenk 1768f713fdfSdzugdbtools: 1778f713fdfSdzu $(MAKE) -C tools/gdb || exit 1 1788f713fdfSdzu 1797ebf7443Swdenkdepend dep: 1807ebf7443Swdenk @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done 1817ebf7443Swdenk 1827ebf7443Swdenktags: 1837ebf7443Swdenk ctags -w `find $(SUBDIRS) include \ 184bda6c8aeSwdenk lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \ 185bda6c8aeSwdenk fs/cramfs fs/fat fs/fdos fs/jffs2 \ 186bda6c8aeSwdenk net disk rtc dtt drivers drivers/sk98lin common \ 1877ebf7443Swdenk \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 1887ebf7443Swdenk 1897ebf7443Swdenketags: 1907ebf7443Swdenk etags -a `find $(SUBDIRS) include \ 191eedcd078Swdenk lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \ 192eedcd078Swdenk fs/cramfs fs/fat fs/fdos fs/jffs2 \ 193eedcd078Swdenk net disk rtc dtt drivers drivers/sk98lin common \ 1947ebf7443Swdenk \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` 1957ebf7443Swdenk 1967ebf7443SwdenkSystem.map: u-boot 1977ebf7443Swdenk @$(NM) $< | \ 1987ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 1997ebf7443Swdenk sort > System.map 2007ebf7443Swdenk 2017ebf7443Swdenk######################################################################### 2027ebf7443Swdenkelse 2037ebf7443Swdenkall install u-boot u-boot.srec depend dep: 2047ebf7443Swdenk @echo "System not configured - see README" >&2 2057ebf7443Swdenk @ exit 1 2067ebf7443Swdenkendif 2077ebf7443Swdenk 2087ebf7443Swdenk######################################################################### 2097ebf7443Swdenk 2107ebf7443Swdenkunconfig: 21117d704ebSwdenk @rm -f include/config.h include/config.mk board/*/config.tmp 2127ebf7443Swdenk 2137ebf7443Swdenk#======================================================================== 2147ebf7443Swdenk# PowerPC 2157ebf7443Swdenk#======================================================================== 2160db5bca8Swdenk 2170db5bca8Swdenk######################################################################### 2180db5bca8Swdenk## MPC5xx Systems 2190db5bca8Swdenk######################################################################### 2200db5bca8Swdenk 2215e5f9ed2Swdenkcanmb_config: unconfig 2225e5f9ed2Swdenk @./mkconfig -a canmb ppc mpc5xxx canmb 2235e5f9ed2Swdenk 2240db5bca8Swdenkcmi_mpc5xx_config: unconfig 2250db5bca8Swdenk @./mkconfig $(@:_config=) ppc mpc5xx cmi 2260db5bca8Swdenk 227b6e4c403SwdenkPATI_config: unconfig 228b6e4c403Swdenk @./mkconfig $(@:_config=) ppc mpc5xx pati mpl 229b6e4c403Swdenk 2307ebf7443Swdenk######################################################################### 231945af8d7Swdenk## MPC5xxx Systems 232945af8d7Swdenk######################################################################### 233a87589daSwdenk 234dafba16eSWolfgang Denkaev_config: unconfig 235dafba16eSWolfgang Denk @./mkconfig -a aev ppc mpc5xxx tqm5200 236dafba16eSWolfgang Denk 237a87589daSwdenkhmi1001_config: unconfig 238a87589daSwdenk @./mkconfig hmi1001 ppc mpc5xxx hmi1001 239a87589daSwdenk 240e35745bbSwdenkLite5200_config \ 241e35745bbSwdenkLite5200_LOWBOOT_config \ 242e35745bbSwdenkLite5200_LOWBOOT08_config \ 243e35745bbSwdenkicecube_5200_config \ 244e35745bbSwdenkicecube_5200_LOWBOOT_config \ 245e35745bbSwdenkicecube_5200_LOWBOOT08_config \ 246b2001f27Swdenkicecube_5200_DDR_config \ 24779d696fcSwdenkicecube_5200_DDR_LOWBOOT_config \ 24879d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config \ 249e35745bbSwdenkicecube_5100_config: unconfig 250945af8d7Swdenk @ >include/config.h 25117d704ebSwdenk @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 25217d704ebSwdenk { if [ "$(findstring DDR,$@)" ] ; \ 25317d704ebSwdenk then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \ 25417d704ebSwdenk else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \ 25517d704ebSwdenk fi ; \ 2565cf9da48Swdenk echo "... with LOWBOOT configuration" ; \ 2575cf9da48Swdenk } 2585cf9da48Swdenk @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 2595cf9da48Swdenk { echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \ 2605cf9da48Swdenk echo "... with 8 MB flash only" ; \ 26117d704ebSwdenk echo "... with LOWBOOT configuration" ; \ 2625cf9da48Swdenk } 263b2001f27Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 264b2001f27Swdenk { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \ 265b2001f27Swdenk echo "... DDR memory revision" ; \ 266b2001f27Swdenk } 267d4ca31c4Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 268d4ca31c4Swdenk { echo "#define CONFIG_MPC5200" >>include/config.h ; \ 269d4ca31c4Swdenk echo "... with MPC5200 processor" ; \ 270d4ca31c4Swdenk } 271a0f2fe52Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 272945af8d7Swdenk { echo "#define CONFIG_MGT5100" >>include/config.h ; \ 273945af8d7Swdenk echo "... with MGT5100 processor" ; \ 274945af8d7Swdenk } 275945af8d7Swdenk @./mkconfig -a IceCube ppc mpc5xxx icecube 276945af8d7Swdenk 277138ff60cSwdenkinka4x0_config: unconfig 278138ff60cSwdenk @./mkconfig inka4x0 ppc mpc5xxx inka4x0 279138ff60cSwdenk 28089394047SwdenkPM520_config \ 28189394047SwdenkPM520_DDR_config \ 28289394047SwdenkPM520_ROMBOOT_config \ 28389394047SwdenkPM520_ROMBOOT_DDR_config: unconfig 28489394047Swdenk @ >include/config.h 28589394047Swdenk @[ -z "$(findstring DDR,$@)" ] || \ 28689394047Swdenk { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \ 28789394047Swdenk echo "... DDR memory revision" ; \ 28889394047Swdenk } 28989394047Swdenk @[ -z "$(findstring ROMBOOT,$@)" ] || \ 29089394047Swdenk { echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \ 29189394047Swdenk echo "... booting from 8-bit flash" ; \ 29289394047Swdenk } 29389394047Swdenk @./mkconfig -a PM520 ppc mpc5xxx pm520 29489394047Swdenk 295d4ca31c4SwdenkMINI5200_config \ 296d4ca31c4SwdenkEVAL5200_config \ 297d4ca31c4SwdenkTOP5200_config: unconfig 298d4ca31c4Swdenk @ echo "#define CONFIG_$(@:_config=) 1" >include/config.h 299d4ca31c4Swdenk @./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk 300d4ca31c4Swdenk 3016c7a1408SwdenkTotal5100_config \ 3026c7a1408SwdenkTotal5200_config \ 3036c7a1408SwdenkTotal5200_lowboot_config \ 3046c7a1408SwdenkTotal5200_Rev2_config \ 3056c7a1408SwdenkTotal5200_Rev2_lowboot_config: unconfig 3066c7a1408Swdenk @ >include/config.h 3076c7a1408Swdenk @[ -z "$(findstring 5100,$@)" ] || \ 3086c7a1408Swdenk { echo "#define CONFIG_MGT5100" >>include/config.h ; \ 3096c7a1408Swdenk echo "... with MGT5100 processor" ; \ 3106c7a1408Swdenk } 3116c7a1408Swdenk @[ -z "$(findstring 5200,$@)" ] || \ 3126c7a1408Swdenk { echo "#define CONFIG_MPC5200" >>include/config.h ; \ 3136c7a1408Swdenk echo "... with MPC5200 processor" ; \ 3146c7a1408Swdenk } 3156c7a1408Swdenk @[ -n "$(findstring Rev,$@)" ] || \ 3166c7a1408Swdenk { echo "#define CONFIG_TOTAL5200_REV 1" >>include/config.h ; \ 3176c7a1408Swdenk echo "... revision 1 board" ; \ 3186c7a1408Swdenk } 3196c7a1408Swdenk @[ -z "$(findstring Rev2_,$@)" ] || \ 3206c7a1408Swdenk { echo "#define CONFIG_TOTAL5200_REV 2" >>include/config.h ; \ 3216c7a1408Swdenk echo "... revision 2 board" ; \ 3226c7a1408Swdenk } 3236c7a1408Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 3246c7a1408Swdenk { echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \ 3256c7a1408Swdenk echo "... with lowboot configuration" ; \ 3266c7a1408Swdenk } 3276c7a1408Swdenk @./mkconfig -a Total5200 ppc mpc5xxx total5200 3286c7a1408Swdenk 3297e6bf358SwdenkTQM5200_auto_config \ 33056523f12SwdenkTQM5200_AA_config \ 33156523f12SwdenkTQM5200_AB_config \ 33256523f12SwdenkTQM5200_AC_config \ 33356523f12SwdenkMiniFAP_config: unconfig 33456523f12Swdenk @ >include/config.h 33589394047Swdenk @[ -z "$(findstring MiniFAP,$@)" ] || \ 33656523f12Swdenk { echo "#define CONFIG_MINIFAP" >>include/config.h ; \ 33756523f12Swdenk echo "#define CONFIG_TQM5200_AC" >>include/config.h ; \ 33889394047Swdenk echo "... TQM5200_AC on MiniFAP" ; \ 33956523f12Swdenk } 34056523f12Swdenk @[ -z "$(findstring AA,$@)" ] || \ 34156523f12Swdenk { echo "#define CONFIG_TQM5200_AA" >>include/config.h ; \ 34256523f12Swdenk echo "... with 4 MB Flash, 16 MB SDRAM, 32 kB EEPROM" ; \ 34356523f12Swdenk } 34456523f12Swdenk @[ -z "$(findstring AB,$@)" ] || \ 34556523f12Swdenk { echo "#define CONFIG_TQM5200_AB" >>include/config.h ; \ 34656523f12Swdenk echo "... with 64 MB Flash, 64 MB SDRAM, 32 kB EEPROM, 512 kB SRAM" ; \ 34731a64923Swdenk echo "... with Graphics Controller"; \ 34856523f12Swdenk } 34956523f12Swdenk @[ -z "$(findstring AC,$@)" ] || \ 35056523f12Swdenk { echo "#define CONFIG_TQM5200_AC" >>include/config.h ; \ 35156523f12Swdenk echo "... with 4 MB Flash, 128 MB SDRAM" ; \ 35231a64923Swdenk echo "... with Graphics Controller"; \ 35356523f12Swdenk } 3547e6bf358Swdenk @[ -z "$(findstring auto,$@)" ] || \ 3557e6bf358Swdenk { echo "#define CONFIG_CS_AUTOCONF" >>include/config.h ; \ 3567e6bf358Swdenk echo "... with automatic CS configuration" ; \ 3577e6bf358Swdenk } 35856523f12Swdenk @./mkconfig -a TQM5200 ppc mpc5xxx tqm5200 35956523f12Swdenk 360eece159cSWolfgang Denkspieval_config: unconfig 361eece159cSWolfgang Denk echo "#define CONFIG_CS_AUTOCONF">>include/config.h 362eece159cSWolfgang Denk echo "... with automatic CS configuration" 363eece159cSWolfgang Denk @./mkconfig -a spieval ppc mpc5xxx tqm5200 364eece159cSWolfgang Denk 365945af8d7Swdenk######################################################################### 3667ebf7443Swdenk## MPC8xx Systems 3677ebf7443Swdenk######################################################################### 3687ebf7443Swdenk 3692d24a3a7SwdenkAdder_config \ 3702d24a3a7SwdenkAdder87x_config \ 37126238132SwdenkAdderII_config \ 3722d24a3a7Swdenk : unconfig 37326238132Swdenk $(if $(findstring AdderII,$@), \ 3742d24a3a7Swdenk @echo "#define CONFIG_MPC852T" > include/config.h) 3752d24a3a7Swdenk @./mkconfig -a Adder ppc mpc8xx adder 3762d24a3a7Swdenk 377180d3f74SwdenkADS860_config \ 378180d3f74SwdenkFADS823_config \ 379180d3f74SwdenkFADS850SAR_config \ 380180d3f74SwdenkMPC86xADS_config \ 3811114257cSwdenkMPC885ADS_config \ 382180d3f74SwdenkFADS860T_config: unconfig 3837ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx fads 3847ebf7443Swdenk 3857ebf7443SwdenkAMX860_config : unconfig 3867ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel 3877ebf7443Swdenk 3887ebf7443Swdenkc2mon_config: unconfig 3897ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx c2mon 3907ebf7443Swdenk 3917ebf7443SwdenkCCM_config: unconfig 3927ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens 3937ebf7443Swdenk 3947ebf7443Swdenkcogent_mpc8xx_config: unconfig 3957ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx cogent 3967ebf7443Swdenk 3973bac3513SwdenkELPT860_config: unconfig 3983bac3513Swdenk @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX 3993bac3513Swdenk 4007ebf7443SwdenkESTEEM192E_config: unconfig 4017ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx esteem192e 4027ebf7443Swdenk 4037ebf7443SwdenkETX094_config : unconfig 4047ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx etx094 4057ebf7443Swdenk 4067ebf7443SwdenkFLAGADM_config: unconfig 4077ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx flagadm 4087ebf7443Swdenk 4097aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 4107aa78614Swdenk 4117aa78614SwdenkGEN860T_SC_config \ 4127ebf7443SwdenkGEN860T_config: unconfig 4137aa78614Swdenk @ >include/config.h 4147aa78614Swdenk @[ -z "$(findstring _SC,$@)" ] || \ 4157aa78614Swdenk { echo "#define CONFIG_SC" >>include/config.h ; \ 4167aa78614Swdenk echo "With reduced H/W feature set (SC)..." ; \ 4177aa78614Swdenk } 4187aa78614Swdenk @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 4197ebf7443Swdenk 4207ebf7443SwdenkGENIETV_config: unconfig 4217ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx genietv 4227ebf7443Swdenk 4237ebf7443SwdenkGTH_config: unconfig 4247ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx gth 4257ebf7443Swdenk 4267ebf7443Swdenkhermes_config : unconfig 4277ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx hermes 4287ebf7443Swdenk 429c40b2956SwdenkHMI10_config : unconfig 430c40b2956Swdenk @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx 431c40b2956Swdenk 4327ebf7443SwdenkIAD210_config: unconfig 4337ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens 4347ebf7443Swdenk 4357ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 4367ebf7443Swdenk 4377ebf7443SwdenkICU862_100MHz_config \ 4387ebf7443SwdenkICU862_config: unconfig 4397ebf7443Swdenk @ >include/config.h 4407ebf7443Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 4417ebf7443Swdenk { echo "#define CONFIG_100MHz" >>include/config.h ; \ 4427ebf7443Swdenk echo "... with 100MHz system clock" ; \ 4437ebf7443Swdenk } 4447ebf7443Swdenk @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 4457ebf7443Swdenk 4467ebf7443SwdenkIP860_config : unconfig 4477ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx ip860 4487ebf7443Swdenk 4497ebf7443SwdenkIVML24_256_config \ 4507ebf7443SwdenkIVML24_128_config \ 4517ebf7443SwdenkIVML24_config: unconfig 4527ebf7443Swdenk @ >include/config.h 4537ebf7443Swdenk @[ -z "$(findstring IVML24_config,$@)" ] || \ 4547ebf7443Swdenk { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \ 4557ebf7443Swdenk } 4567ebf7443Swdenk @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 4577ebf7443Swdenk { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \ 4587ebf7443Swdenk } 4597ebf7443Swdenk @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 4607ebf7443Swdenk { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \ 4617ebf7443Swdenk } 4627ebf7443Swdenk @./mkconfig -a IVML24 ppc mpc8xx ivm 4637ebf7443Swdenk 4647ebf7443SwdenkIVMS8_256_config \ 4657ebf7443SwdenkIVMS8_128_config \ 4667ebf7443SwdenkIVMS8_config: unconfig 4677ebf7443Swdenk @ >include/config.h 4687ebf7443Swdenk @[ -z "$(findstring IVMS8_config,$@)" ] || \ 4697ebf7443Swdenk { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \ 4707ebf7443Swdenk } 4717ebf7443Swdenk @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 4727ebf7443Swdenk { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \ 4737ebf7443Swdenk } 4747ebf7443Swdenk @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 4757ebf7443Swdenk { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \ 4767ebf7443Swdenk } 4777ebf7443Swdenk @./mkconfig -a IVMS8 ppc mpc8xx ivm 4787ebf7443Swdenk 47956f94be3SwdenkKUP4K_config : unconfig 4800608e04dSwdenk @./mkconfig $(@:_config=) ppc mpc8xx kup4k kup 4810608e04dSwdenk 4820608e04dSwdenkKUP4X_config : unconfig 4830608e04dSwdenk @./mkconfig $(@:_config=) ppc mpc8xx kup4x kup 48456f94be3Swdenk 4857ebf7443SwdenkLANTEC_config : unconfig 4867ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx lantec 4877ebf7443Swdenk 4887ebf7443Swdenklwmon_config: unconfig 4897ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx lwmon 4907ebf7443Swdenk 4917ebf7443SwdenkMBX_config \ 4927ebf7443SwdenkMBX860T_config: unconfig 4937ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx 4947ebf7443Swdenk 4957ebf7443SwdenkMHPC_config: unconfig 4967ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec 4977ebf7443Swdenk 4987ebf7443SwdenkMVS1_config : unconfig 4997ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx mvs1 5007ebf7443Swdenk 501993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 502993cad93Swdenk 503993cad93SwdenkNETVIA_V2_config \ 5047ebf7443SwdenkNETVIA_config: unconfig 505993cad93Swdenk @ >include/config.h 506993cad93Swdenk @[ -z "$(findstring NETVIA_config,$@)" ] || \ 507993cad93Swdenk { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \ 508993cad93Swdenk echo "... Version 1" ; \ 509993cad93Swdenk } 510993cad93Swdenk @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 511993cad93Swdenk { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \ 512993cad93Swdenk echo "... Version 2" ; \ 513993cad93Swdenk } 514993cad93Swdenk @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 5157ebf7443Swdenk 516c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) 517c26e454dSwdenk 518c26e454dSwdenkNETPHONE_V2_config \ 51904a85b3bSwdenkNETPHONE_config: unconfig 520c26e454dSwdenk @ >include/config.h 521c26e454dSwdenk @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 522c26e454dSwdenk { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \ 523c26e454dSwdenk } 524c26e454dSwdenk @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 525c26e454dSwdenk { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \ 526c26e454dSwdenk } 527c26e454dSwdenk @./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone 52804a85b3bSwdenk 52979fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) 53004a85b3bSwdenk 53179fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \ 53279fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \ 53379fa88f3SwdenkNETTA_6412_SWAPHOOK_config \ 53479fa88f3SwdenkNETTA_SWAPHOOK_config \ 53579fa88f3SwdenkNETTA_ISDN_6412_config \ 53604a85b3bSwdenkNETTA_ISDN_config \ 53779fa88f3SwdenkNETTA_6412_config \ 53804a85b3bSwdenkNETTA_config: unconfig 53904a85b3bSwdenk @ >include/config.h 54079fa88f3Swdenk @[ -z "$(findstring ISDN_,$@)" ] || \ 54104a85b3bSwdenk { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \ 54204a85b3bSwdenk } 54379fa88f3Swdenk @[ -n "$(findstring ISDN_,$@)" ] || \ 54479fa88f3Swdenk { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \ 54579fa88f3Swdenk } 54679fa88f3Swdenk @[ -z "$(findstring 6412_,$@)" ] || \ 54779fa88f3Swdenk { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \ 54879fa88f3Swdenk } 54979fa88f3Swdenk @[ -n "$(findstring 6412_,$@)" ] || \ 55079fa88f3Swdenk { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \ 55179fa88f3Swdenk } 55279fa88f3Swdenk @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 55379fa88f3Swdenk { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \ 55479fa88f3Swdenk } 55579fa88f3Swdenk @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 55679fa88f3Swdenk { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \ 55779fa88f3Swdenk } 55804a85b3bSwdenk @./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta 55904a85b3bSwdenk 56079fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) 56179fa88f3Swdenk 56279fa88f3SwdenkNETTA2_V2_config \ 56379fa88f3SwdenkNETTA2_config: unconfig 56479fa88f3Swdenk @ >include/config.h 56579fa88f3Swdenk @[ -z "$(findstring NETTA2_config,$@)" ] || \ 56679fa88f3Swdenk { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \ 56779fa88f3Swdenk } 56879fa88f3Swdenk @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 56979fa88f3Swdenk { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \ 57079fa88f3Swdenk } 57179fa88f3Swdenk @./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 57279fa88f3Swdenk 5737ca202f5SwdenkNC650_config: unconfig 5747ca202f5Swdenk @./mkconfig $(@:_config=) ppc mpc8xx nc650 5757ca202f5Swdenk 5767ebf7443SwdenkNX823_config: unconfig 5777ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx nx823 5787ebf7443Swdenk 5797ebf7443Swdenkpcu_e_config: unconfig 5807ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens 5817ebf7443Swdenk 5823bbc899fSwdenkQS850_config: unconfig 5833bbc899fSwdenk @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc 5843bbc899fSwdenk 5853bbc899fSwdenkQS823_config: unconfig 5863bbc899fSwdenk @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc 5873bbc899fSwdenk 5883bbc899fSwdenkQS860T_config: unconfig 5893bbc899fSwdenk @./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc 5903bbc899fSwdenk 591da93ed81Swdenkquantum_config: unconfig 592da93ed81Swdenk @./mkconfig $(@:_config=) ppc mpc8xx quantum 593da93ed81Swdenk 5947ebf7443SwdenkR360MPI_config: unconfig 5957ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx r360mpi 5967ebf7443Swdenk 597682011ffSwdenkRBC823_config: unconfig 598682011ffSwdenk @./mkconfig $(@:_config=) ppc mpc8xx rbc823 599682011ffSwdenk 6007ebf7443SwdenkRPXClassic_config: unconfig 6017ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic 6027ebf7443Swdenk 6037ebf7443SwdenkRPXlite_config: unconfig 6047ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RPXlite 6057ebf7443Swdenk 606e63c8ee3SwdenkRPXlite_DW_64_config \ 607e63c8ee3SwdenkRPXlite_DW_LCD_config \ 608e63c8ee3SwdenkRPXlite_DW_64_LCD_config \ 609e63c8ee3SwdenkRPXlite_DW_NVRAM_config \ 610e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config \ 611e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config \ 612e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config \ 613e63c8ee3SwdenkRPXlite_DW_config: unconfig 614e63c8ee3Swdenk @ >include/config.h 615e63c8ee3Swdenk @[ -z "$(findstring _64,$@)" ] || \ 616e63c8ee3Swdenk { echo "#define RPXlite_64MHz" >>include/config.h ; \ 617e63c8ee3Swdenk echo "... with 64MHz system clock ..."; \ 618e63c8ee3Swdenk } 619e63c8ee3Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 620e63c8ee3Swdenk { echo "#define CONFIG_LCD" >>include/config.h ; \ 621e63c8ee3Swdenk echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \ 622e63c8ee3Swdenk echo "... with LCD display ..."; \ 623e63c8ee3Swdenk } 624e63c8ee3Swdenk @[ -z "$(findstring _NVRAM,$@)" ] || \ 625e63c8ee3Swdenk { echo "#define CFG_ENV_IS_IN_NVRAM" >>include/config.h ; \ 626e63c8ee3Swdenk echo "... with ENV in NVRAM ..."; \ 627e63c8ee3Swdenk } 628e63c8ee3Swdenk @./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw 629e63c8ee3Swdenk 63073a8b27cSwdenkrmu_config: unconfig 63173a8b27cSwdenk @./mkconfig $(@:_config=) ppc mpc8xx rmu 63273a8b27cSwdenk 6337ebf7443SwdenkRRvision_config: unconfig 6347ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx RRvision 6357ebf7443Swdenk 6367ebf7443SwdenkRRvision_LCD_config: unconfig 6377ebf7443Swdenk @echo "#define CONFIG_LCD" >include/config.h 6387ebf7443Swdenk @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h 6397ebf7443Swdenk @./mkconfig -a RRvision ppc mpc8xx RRvision 6407ebf7443Swdenk 6417ebf7443SwdenkSM850_config : unconfig 6427ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx 6437ebf7443Swdenk 6447ebf7443SwdenkSPD823TS_config: unconfig 6457ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx spd8xx 6467ebf7443Swdenk 647dc7c9a1aSwdenksvm_sc8xx_config: unconfig 648dc7c9a1aSwdenk @ >include/config.h 649dc7c9a1aSwdenk @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx 650dc7c9a1aSwdenk 6517ebf7443SwdenkSXNI855T_config: unconfig 6527ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8xx sixnet 6537ebf7443Swdenk 654db2f721fSwdenk# EMK MPC8xx based modules 655db2f721fSwdenkTOP860_config: unconfig 656db2f721fSwdenk @./mkconfig $(@:_config=) ppc mpc8xx top860 emk 657db2f721fSwdenk 6587ebf7443Swdenk# Play some tricks for configuration selection 659e9132ea9Swdenk# Only 855 and 860 boards may come with FEC 660e9132ea9Swdenk# and only 823 boards may have LCD support 661e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1)) 6627ebf7443Swdenk 6637ebf7443SwdenkFPS850L_config \ 664384ae025SwdenkFPS860L_config \ 665f12e568cSwdenkNSCU_config \ 6667ebf7443SwdenkTQM823L_config \ 6677ebf7443SwdenkTQM823L_LCD_config \ 6687ebf7443SwdenkTQM850L_config \ 6697ebf7443SwdenkTQM855L_config \ 6707ebf7443SwdenkTQM860L_config \ 671d126bfbdSwdenkTQM862L_config \ 672ae3af05eSwdenkTQM823M_config \ 673ae3af05eSwdenkTQM850M_config \ 674f12e568cSwdenkTQM855M_config \ 675f12e568cSwdenkTQM860M_config \ 676f12e568cSwdenkTQM862M_config \ 677c178d3daSwdenkTQM866M_config: unconfig 6787ebf7443Swdenk @ >include/config.h 6797ebf7443Swdenk @[ -z "$(findstring _LCD,$@)" ] || \ 6807ebf7443Swdenk { echo "#define CONFIG_LCD" >>include/config.h ; \ 681fd3103bbSwdenk echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \ 6827ebf7443Swdenk echo "... with LCD display" ; \ 6837ebf7443Swdenk } 6847ebf7443Swdenk @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 6857ebf7443Swdenk 6867ebf7443SwdenkTTTech_config: unconfig 6877ebf7443Swdenk @echo "#define CONFIG_LCD" >include/config.h 6887ebf7443Swdenk @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h 6897ebf7443Swdenk @./mkconfig -a TQM823L ppc mpc8xx tqm8xx 6907ebf7443Swdenk 691ec0aee7bSwdenkuc100_config : unconfig 692f7d1572bSwdenk @./mkconfig $(@:_config=) ppc mpc8xx uc100 693f7d1572bSwdenk 694608c9146Swdenkv37_config: unconfig 695608c9146Swdenk @echo "#define CONFIG_LCD" >include/config.h 696608c9146Swdenk @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h 697608c9146Swdenk @./mkconfig $(@:_config=) ppc mpc8xx v37 698608c9146Swdenk 69991e940d9Sdzuwtk_config: unconfig 70091e940d9Sdzu @echo "#define CONFIG_LCD" >include/config.h 70191e940d9Sdzu @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h 70291e940d9Sdzu @./mkconfig -a TQM823L ppc mpc8xx tqm8xx 70391e940d9Sdzu 7047ebf7443Swdenk######################################################################### 7057ebf7443Swdenk## PPC4xx Systems 7067ebf7443Swdenk######################################################################### 707e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) 7087ebf7443Swdenk 7097ebf7443SwdenkADCIOP_config: unconfig 7107ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx adciop esd 7117ebf7443Swdenk 712c419d1d6SstroeseAPC405_config: unconfig 713c419d1d6Sstroese @./mkconfig $(@:_config=) ppc ppc4xx apc405 esd 714c419d1d6Sstroese 7157ebf7443SwdenkAR405_config: unconfig 7167ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd 7177ebf7443Swdenk 718549826eaSstroeseASH405_config: unconfig 719549826eaSstroese @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd 720549826eaSstroese 7218a316c9bSStefan Roesebamboo_config: unconfig 7228a316c9bSStefan Roese @./mkconfig $(@:_config=) ppc ppc4xx bamboo amcc 7238a316c9bSStefan Roese 7248a316c9bSStefan Roesebubinga_config: unconfig 7258a316c9bSStefan Roese @./mkconfig $(@:_config=) ppc ppc4xx bubinga amcc 726549826eaSstroese 7277ebf7443SwdenkCANBT_config: unconfig 7287ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx canbt esd 7297ebf7443Swdenk 7301d6f9720SwdenkCATcenter_config \ 7311d6f9720SwdenkCATcenter_25_config \ 7321d6f9720SwdenkCATcenter_33_config: unconfig 73310767ccbSwdenk @ echo "/* CATcenter uses PPChameleon Model ME */" > include/config.h 73410767ccbSwdenk @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h 7351d6f9720Swdenk @[ -z "$(findstring _25,$@)" ] || \ 7361d6f9720Swdenk { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \ 7371d6f9720Swdenk echo "SysClk = 25MHz" ; \ 7381d6f9720Swdenk } 7391d6f9720Swdenk @[ -z "$(findstring _33,$@)" ] || \ 7401d6f9720Swdenk { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \ 7411d6f9720Swdenk echo "SysClk = 33MHz" ; \ 7421d6f9720Swdenk } 74310767ccbSwdenk @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 74410767ccbSwdenk 7457ebf7443SwdenkCPCI405_config \ 746549826eaSstroeseCPCI4052_config \ 747c419d1d6SstroeseCPCI405DT_config \ 748549826eaSstroeseCPCI405AB_config: unconfig 7497ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd 7507ebf7443Swdenk @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk 7517ebf7443Swdenk 7527ebf7443SwdenkCPCI440_config: unconfig 7537ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd 7547ebf7443Swdenk 7557ebf7443SwdenkCPCIISER4_config: unconfig 7567ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd 7577ebf7443Swdenk 7587ebf7443SwdenkCRAYL1_config: unconfig 7597ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx L1 cray 7607ebf7443Swdenk 761cd0a9de6Swdenkcsb272_config: unconfig 762cd0a9de6Swdenk @./mkconfig $(@:_config=) ppc ppc4xx csb272 763cd0a9de6Swdenk 764aa245090Swdenkcsb472_config: unconfig 765aa245090Swdenk @./mkconfig $(@:_config=) ppc ppc4xx csb472 766aa245090Swdenk 7677ebf7443SwdenkDASA_SIM_config: unconfig 7687ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd 7697ebf7443Swdenk 77072cd5aa7SstroeseDP405_config: unconfig 77172cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd 77272cd5aa7Sstroese 7737ebf7443SwdenkDU405_config: unconfig 7747ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx du405 esd 7757ebf7443Swdenk 7768a316c9bSStefan Roeseebony_config: unconfig 7778a316c9bSStefan Roese @./mkconfig $(@:_config=) ppc ppc4xx ebony amcc 7787ebf7443Swdenk 7797ebf7443SwdenkERIC_config: unconfig 7807ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx eric 7817ebf7443Swdenk 782d1cbe85bSwdenkEXBITGEN_config: unconfig 783d1cbe85bSwdenk @./mkconfig $(@:_config=) ppc ppc4xx exbitgen 784d1cbe85bSwdenk 785c419d1d6SstroeseG2000_config: unconfig 786c419d1d6Sstroese @./mkconfig $(@:_config=) ppc ppc4xx g2000 787c419d1d6Sstroese 788c419d1d6SstroeseHH405_config: unconfig 789c419d1d6Sstroese @./mkconfig $(@:_config=) ppc ppc4xx hh405 esd 790c419d1d6Sstroese 79172cd5aa7SstroeseHUB405_config: unconfig 79272cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd 79372cd5aa7Sstroese 794db01a2eaSwdenkJSE_config: unconfig 795db01a2eaSwdenk @./mkconfig $(@:_config=) ppc ppc4xx jse 796db01a2eaSwdenk 797*b79316f2SStefan RoeseKAREF_config: unconfig 798*b79316f2SStefan Roese @./mkconfig $(@:_config=) ppc ppc4xx karef sandburst 799*b79316f2SStefan Roese 800*b79316f2SStefan RoeseMETROBOX_config: unconfig 801*b79316f2SStefan Roese @./mkconfig $(@:_config=) ppc ppc4xx metrobox sandburst 802*b79316f2SStefan Roese 8037ebf7443SwdenkMIP405_config: unconfig 8047ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl 8057ebf7443Swdenk 806f3e0de60SwdenkMIP405T_config: unconfig 807f3e0de60Swdenk @echo "#define CONFIG_MIP405T" >include/config.h 808f3e0de60Swdenk @echo "Enable subset config for MIP405T" 809f3e0de60Swdenk @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl 810f3e0de60Swdenk 8117ebf7443SwdenkML2_config: unconfig 8127ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ml2 8137ebf7443Swdenk 814028ab6b5Swdenkml300_config: unconfig 815028ab6b5Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx 816028ab6b5Swdenk 8178a316c9bSStefan Roeseocotea_config: unconfig 8188a316c9bSStefan Roese @./mkconfig $(@:_config=) ppc ppc4xx ocotea amcc 8190e6d798cSwdenk 8207ebf7443SwdenkOCRTC_config \ 8217ebf7443SwdenkORSG_config: unconfig 8227ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd 8237ebf7443Swdenk 8247ebf7443SwdenkPCI405_config: unconfig 8257ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd 8267ebf7443Swdenk 8277ebf7443SwdenkPIP405_config: unconfig 8287ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl 8297ebf7443Swdenk 83072cd5aa7SstroesePLU405_config: unconfig 83172cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd 83272cd5aa7Sstroese 833549826eaSstroesePMC405_config: unconfig 834549826eaSstroese @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd 835549826eaSstroese 836281e00a3SwdenkPPChameleonEVB_config \ 837e55ca7e2SwdenkPPChameleonEVB_BA_25_config \ 838e55ca7e2SwdenkPPChameleonEVB_ME_25_config \ 839e55ca7e2SwdenkPPChameleonEVB_HI_25_config \ 840e55ca7e2SwdenkPPChameleonEVB_BA_33_config \ 841e55ca7e2SwdenkPPChameleonEVB_ME_33_config \ 842e55ca7e2SwdenkPPChameleonEVB_HI_33_config: unconfig 843fbe4b5cbSwdenk @ >include/config.h 8441d6f9720Swdenk @[ -z "$(findstring EVB_BA,$@)" ] || \ 845fbe4b5cbSwdenk { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \ 846fbe4b5cbSwdenk echo "... BASIC model" ; \ 847fbe4b5cbSwdenk } 8481d6f9720Swdenk @[ -z "$(findstring EVB_ME,$@)" ] || \ 849fbe4b5cbSwdenk { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \ 850fbe4b5cbSwdenk echo "... MEDIUM model" ; \ 851fbe4b5cbSwdenk } 8521d6f9720Swdenk @[ -z "$(findstring EVB_HI,$@)" ] || \ 853fbe4b5cbSwdenk { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \ 854fbe4b5cbSwdenk echo "... HIGH-END model" ; \ 855fbe4b5cbSwdenk } 856e55ca7e2Swdenk @[ -z "$(findstring _25,$@)" ] || \ 857e55ca7e2Swdenk { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \ 858e55ca7e2Swdenk echo "SysClk = 25MHz" ; \ 859e55ca7e2Swdenk } 860e55ca7e2Swdenk @[ -z "$(findstring _33,$@)" ] || \ 861e55ca7e2Swdenk { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \ 862e55ca7e2Swdenk echo "SysClk = 33MHz" ; \ 863e55ca7e2Swdenk } 864fbe4b5cbSwdenk @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 86512f34241Swdenk 866652a10c0Swdenksbc405_config: unconfig 867652a10c0Swdenk @./mkconfig $(@:_config=) ppc ppc4xx sbc405 868652a10c0Swdenk 8698a316c9bSStefan Roesesycamore_config: unconfig 8708a316c9bSStefan Roese @echo "Configuring for sycamore board as subset of walnut..." 8718a316c9bSStefan Roese @./mkconfig -a walnut ppc ppc4xx walnut amcc 8728a316c9bSStefan Roese 87372cd5aa7SstroeseVOH405_config: unconfig 87472cd5aa7Sstroese @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd 87572cd5aa7Sstroese 876c419d1d6SstroeseVOM405_config: unconfig 877c419d1d6Sstroese @./mkconfig $(@:_config=) ppc ppc4xx vom405 esd 878c419d1d6Sstroese 8797ebf7443SwdenkW7OLMC_config \ 8807ebf7443SwdenkW7OLMG_config: unconfig 8817ebf7443Swdenk @./mkconfig $(@:_config=) ppc ppc4xx w7o 8827ebf7443Swdenk 8838a316c9bSStefan Roesewalnut_config: unconfig 8848a316c9bSStefan Roese @./mkconfig $(@:_config=) ppc ppc4xx walnut amcc 8857ebf7443Swdenk 886c419d1d6SstroeseWUH405_config: unconfig 887c419d1d6Sstroese @./mkconfig $(@:_config=) ppc ppc4xx wuh405 esd 888c419d1d6Sstroese 889ba56f625SwdenkXPEDITE1K_config: unconfig 890ba56f625Swdenk @./mkconfig $(@:_config=) ppc ppc4xx xpedite1k 891ba56f625Swdenk 8928a316c9bSStefan Roeseyosemite_config: unconfig 8938a316c9bSStefan Roese @./mkconfig $(@:_config=) ppc ppc4xx yosemite amcc 8948a316c9bSStefan Roese 8958a316c9bSStefan Roeseyellowstone_config: unconfig 8968a316c9bSStefan Roese @./mkconfig $(@:_config=) ppc ppc4xx yellowstone amcc 8978a316c9bSStefan Roese 8987ebf7443Swdenk######################################################################### 899983fda83Swdenk## MPC8220 Systems 900983fda83Swdenk######################################################################### 901dc17fb6dSWolfgang Denk 902dc17fb6dSWolfgang DenkAlaska8220_config \ 903dc17fb6dSWolfgang DenkYukon8220_config: unconfig 904983fda83Swdenk @./mkconfig $(@:_config=) ppc mpc8220 alaska 905983fda83Swdenk 90612b43d51Swdenksorcery_config: unconfig 90712b43d51Swdenk @./mkconfig $(@:_config=) ppc mpc8220 sorcery 90812b43d51Swdenk 909983fda83Swdenk######################################################################### 9107ebf7443Swdenk## MPC824x Systems 9117ebf7443Swdenk######################################################################### 912efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) 9133bac3513Swdenk 9140332990bSwdenkA3000_config: unconfig 9150332990bSwdenk @./mkconfig $(@:_config=) ppc mpc824x a3000 9160332990bSwdenk 9177ebf7443SwdenkBMW_config: unconfig 9187ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x bmw 9197ebf7443Swdenk 9203bac3513SwdenkCPC45_config \ 9213bac3513SwdenkCPC45_ROMBOOT_config: unconfig 9223bac3513Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45 9233bac3513Swdenk @cd ./include ; \ 9243bac3513Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 9253bac3513Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 9263bac3513Swdenk echo "... booting from 8-bit flash" ; \ 9273bac3513Swdenk else \ 9283bac3513Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 9293bac3513Swdenk echo "... booting from 64-bit flash" ; \ 9303bac3513Swdenk fi; \ 9313bac3513Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 9323bac3513Swdenk 9337ebf7443SwdenkCU824_config: unconfig 9347ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x cu824 9357ebf7443Swdenk 9367abf0c58Swdenkdebris_config: unconfig 9377abf0c58Swdenk @./mkconfig $(@:_config=) ppc mpc824x debris etin 9387abf0c58Swdenk 93980885a9dSwdenkeXalion_config: unconfig 94080885a9dSwdenk @./mkconfig $(@:_config=) ppc mpc824x eXalion 94180885a9dSwdenk 942756f586aSwdenkHIDDEN_DRAGON_config: unconfig 943756f586aSwdenk @./mkconfig $(@:_config=) ppc mpc824x hidden_dragon 944756f586aSwdenk 9457ebf7443SwdenkMOUSSE_config: unconfig 9467ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x mousse 9477ebf7443Swdenk 9487ebf7443SwdenkMUSENKI_config: unconfig 9497ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x musenki 9507ebf7443Swdenk 951b4676a25SwdenkMVBLUE_config: unconfig 952b4676a25Swdenk @./mkconfig $(@:_config=) ppc mpc824x mvblue 953b4676a25Swdenk 9547ebf7443SwdenkOXC_config: unconfig 9557ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x oxc 9567ebf7443Swdenk 9577ebf7443SwdenkPN62_config: unconfig 9587ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x pn62 9597ebf7443Swdenk 9607ebf7443SwdenkSandpoint8240_config: unconfig 9617ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x sandpoint 9627ebf7443Swdenk 9637ebf7443SwdenkSandpoint8245_config: unconfig 9647ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x sandpoint 9657ebf7443Swdenk 966466b7410Swdenksbc8240_config: unconfig 967466b7410Swdenk @./mkconfig $(@:_config=) ppc mpc824x sbc8240 968466b7410Swdenk 969d1cbe85bSwdenkSL8245_config: unconfig 970d1cbe85bSwdenk @./mkconfig $(@:_config=) ppc mpc824x sl8245 971d1cbe85bSwdenk 9727ebf7443Swdenkutx8245_config: unconfig 9737ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc824x utx8245 9747ebf7443Swdenk 975a562e1bdSwdenkcobra5272_config : unconfig 976a562e1bdSwdenk @./mkconfig $(@:_config=) m68k mcf52x2 cobra5272 977a562e1bdSwdenk 9787ebf7443Swdenk######################################################################### 9797ebf7443Swdenk## MPC8260 Systems 9807ebf7443Swdenk######################################################################### 9817ebf7443Swdenk 98254387ac9Swdenkatc_config: unconfig 98354387ac9Swdenk @./mkconfig $(@:_config=) ppc mpc8260 atc 98454387ac9Swdenk 9857ebf7443Swdenkcogent_mpc8260_config: unconfig 9867ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 cogent 9877ebf7443Swdenk 9887ebf7443SwdenkCPU86_config \ 9897ebf7443SwdenkCPU86_ROMBOOT_config: unconfig 9907ebf7443Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86 9917ebf7443Swdenk @cd ./include ; \ 9927ebf7443Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 9937ebf7443Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 9947ebf7443Swdenk echo "... booting from 8-bit flash" ; \ 9957ebf7443Swdenk else \ 9967ebf7443Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 9977ebf7443Swdenk echo "... booting from 64-bit flash" ; \ 9987ebf7443Swdenk fi; \ 9997ebf7443Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 10007ebf7443Swdenk 1001384cc687SwdenkCPU87_config \ 1002384cc687SwdenkCPU87_ROMBOOT_config: unconfig 1003384cc687Swdenk @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu87 1004384cc687Swdenk @cd ./include ; \ 1005384cc687Swdenk if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1006384cc687Swdenk echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1007384cc687Swdenk echo "... booting from 8-bit flash" ; \ 1008384cc687Swdenk else \ 1009384cc687Swdenk echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1010384cc687Swdenk echo "... booting from 64-bit flash" ; \ 1011384cc687Swdenk fi; \ 1012384cc687Swdenk echo "export CONFIG_BOOT_ROM" >> config.mk; 1013384cc687Swdenk 1014f901a83bSWolfgang Denkep8248_config \ 1015f901a83bSWolfgang Denkep8248E_config : unconfig 1016f901a83bSWolfgang Denk @./mkconfig ep8248 ppc mpc8260 ep8248 1017f901a83bSWolfgang Denk 10187ebf7443Swdenkep8260_config: unconfig 10197ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 ep8260 10207ebf7443Swdenk 10217ebf7443Swdenkgw8260_config: unconfig 10227ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 gw8260 10237ebf7443Swdenk 10247ebf7443Swdenkhymod_config: unconfig 10257ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 hymod 10267ebf7443Swdenk 10279dd41a7bSwdenkIDS8247_config: unconfig 10289dd41a7bSwdenk @./mkconfig $(@:_config=) ppc mpc8260 ids8247 10299dd41a7bSwdenk 10307ebf7443SwdenkIPHASE4539_config: unconfig 10317ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 iphase4539 10327ebf7443Swdenk 1033c3c7f861SwdenkISPAN_config \ 1034c3c7f861SwdenkISPAN_REVB_config: unconfig 1035c3c7f861Swdenk @if [ "$(findstring _REVB_,$@)" ] ; then \ 1036c3c7f861Swdenk echo "#define CFG_REV_B" > include/config.h ; \ 1037c3c7f861Swdenk fi 1038c3c7f861Swdenk @./mkconfig -a ISPAN ppc mpc8260 ispan 1039c3c7f861Swdenk 104004a85b3bSwdenkMPC8260ADS_config \ 1041901787d6SwdenkMPC8260ADS_lowboot_config \ 104204a85b3bSwdenkMPC8260ADS_33MHz_config \ 1043901787d6SwdenkMPC8260ADS_33MHz_lowboot_config \ 104404a85b3bSwdenkMPC8260ADS_40MHz_config \ 1045901787d6SwdenkMPC8260ADS_40MHz_lowboot_config \ 104604a85b3bSwdenkMPC8272ADS_config \ 1047901787d6SwdenkMPC8272ADS_lowboot_config \ 104804a85b3bSwdenkPQ2FADS_config \ 1049901787d6SwdenkPQ2FADS_lowboot_config \ 105004a85b3bSwdenkPQ2FADS-VR_config \ 1051901787d6SwdenkPQ2FADS-VR_lowboot_config \ 105204a85b3bSwdenkPQ2FADS-ZU_config \ 1053901787d6SwdenkPQ2FADS-ZU_lowboot_config \ 105404a85b3bSwdenkPQ2FADS-ZU_66MHz_config \ 1055901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config \ 105604a85b3bSwdenk : unconfig 105704a85b3bSwdenk $(if $(findstring PQ2FADS,$@), \ 105804a85b3bSwdenk @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \ 105904a85b3bSwdenk @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h) 106004a85b3bSwdenk $(if $(findstring MHz,$@), \ 106104a85b3bSwdenk @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \ 106204a85b3bSwdenk $(if $(findstring VR,$@), \ 106304a85b3bSwdenk @echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h)) 1064901787d6Swdenk @[ -z "$(findstring lowboot_,$@)" ] || \ 1065901787d6Swdenk { echo "TEXT_BASE = 0xFF800000" >board/mpc8260ads/config.tmp ; \ 1066901787d6Swdenk echo "... with lowboot configuration" ; \ 1067901787d6Swdenk } 106804a85b3bSwdenk @./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads 10697ebf7443Swdenk 1070db2f721fSwdenkMPC8266ADS_config: unconfig 1071db2f721fSwdenk @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads 1072db2f721fSwdenk 1073efa329cbSwdenk# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 107410f67017SwdenkPM825_config \ 1075efa329cbSwdenkPM825_ROMBOOT_config \ 1076efa329cbSwdenkPM825_BIGFLASH_config \ 1077efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config \ 10787ebf7443SwdenkPM826_config \ 1079efa329cbSwdenkPM826_ROMBOOT_config \ 1080efa329cbSwdenkPM826_BIGFLASH_config \ 1081efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config: unconfig 1082efa329cbSwdenk @if [ "$(findstring PM825_,$@)" ] ; then \ 1083efa329cbSwdenk echo "#define CONFIG_PCI" >include/config.h ; \ 10847ebf7443Swdenk else \ 1085efa329cbSwdenk >include/config.h ; \ 1086efa329cbSwdenk fi 1087efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1088efa329cbSwdenk echo "... booting from 8-bit flash" ; \ 1089efa329cbSwdenk echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \ 1090efa329cbSwdenk echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \ 1091efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1092efa329cbSwdenk echo "... with 32 MB Flash" ; \ 1093efa329cbSwdenk echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \ 10947ebf7443Swdenk fi; \ 1095efa329cbSwdenk else \ 1096efa329cbSwdenk echo "... booting from 64-bit flash" ; \ 1097efa329cbSwdenk if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1098efa329cbSwdenk echo "... with 32 MB Flash" ; \ 1099efa329cbSwdenk echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \ 1100efa329cbSwdenk echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \ 1101efa329cbSwdenk else \ 1102efa329cbSwdenk echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \ 1103efa329cbSwdenk fi; \ 1104efa329cbSwdenk fi 1105efa329cbSwdenk @./mkconfig -a PM826 ppc mpc8260 pm826 1106efa329cbSwdenk 1107efa329cbSwdenkPM828_config \ 1108efa329cbSwdenkPM828_PCI_config \ 1109efa329cbSwdenkPM828_ROMBOOT_config \ 1110efa329cbSwdenkPM828_ROMBOOT_PCI_config: unconfig 1111efa329cbSwdenk @if [ -z "$(findstring _PCI_,$@)" ] ; then \ 1112efa329cbSwdenk echo "#define CONFIG_PCI" >>include/config.h ; \ 1113efa329cbSwdenk echo "... with PCI enabled" ; \ 1114efa329cbSwdenk else \ 1115efa329cbSwdenk >include/config.h ; \ 1116efa329cbSwdenk fi 1117efa329cbSwdenk @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1118efa329cbSwdenk echo "... booting from 8-bit flash" ; \ 1119efa329cbSwdenk echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \ 1120efa329cbSwdenk echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \ 1121efa329cbSwdenk fi 1122efa329cbSwdenk @./mkconfig -a PM828 ppc mpc8260 pm828 11237ebf7443Swdenk 11247ebf7443Swdenkppmc8260_config: unconfig 11257ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260 11267ebf7443Swdenk 11278b0bfc68SwdenkRattler8248_config \ 11288b0bfc68SwdenkRattler_config: unconfig 11298b0bfc68Swdenk $(if $(findstring 8248,$@), \ 11308b0bfc68Swdenk @echo "#define CONFIG_MPC8248" > include/config.h) 11318b0bfc68Swdenk @./mkconfig -a Rattler ppc mpc8260 rattler 11328b0bfc68Swdenk 11337ebf7443SwdenkRPXsuper_config: unconfig 11347ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper 11357ebf7443Swdenk 11367ebf7443Swdenkrsdproto_config: unconfig 11377ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 rsdproto 11387ebf7443Swdenk 11397ebf7443Swdenksacsng_config: unconfig 11407ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 sacsng 11417ebf7443Swdenk 11427ebf7443Swdenksbc8260_config: unconfig 11437ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 sbc8260 11447ebf7443Swdenk 11457ebf7443SwdenkSCM_config: unconfig 11467ebf7443Swdenk @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens 11477ebf7443Swdenk 114827b207fdSwdenkTQM8255_AA_config \ 114927b207fdSwdenkTQM8260_AA_config \ 115027b207fdSwdenkTQM8260_AB_config \ 115127b207fdSwdenkTQM8260_AC_config \ 115227b207fdSwdenkTQM8260_AD_config \ 115327b207fdSwdenkTQM8260_AE_config \ 115427b207fdSwdenkTQM8260_AF_config \ 115527b207fdSwdenkTQM8260_AG_config \ 115627b207fdSwdenkTQM8260_AH_config \ 115727b207fdSwdenkTQM8265_AA_config: unconfig 115827b207fdSwdenk @case "$@" in \ 115927b207fdSwdenk TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 116027b207fdSwdenk TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 116127b207fdSwdenk TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 116227b207fdSwdenk TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 116327b207fdSwdenk TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 116427b207fdSwdenk TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 116527b207fdSwdenk TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 116627b207fdSwdenk TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 116727b207fdSwdenk TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 116827b207fdSwdenk TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 116927b207fdSwdenk esac; \ 117027b207fdSwdenk >include/config.h ; \ 117127b207fdSwdenk if [ "$${CTYPE}" != "MPC8260" ] ; then \ 117227b207fdSwdenk echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \ 117327b207fdSwdenk fi; \ 117427b207fdSwdenk echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \ 117527b207fdSwdenk echo "... with $${CFREQ}MHz system clock" ; \ 117627b207fdSwdenk if [ "$${CACHE}" == "yes" ] ; then \ 11777ebf7443Swdenk echo "#define CONFIG_L2_CACHE" >>include/config.h ; \ 117827b207fdSwdenk echo "... with L2 Cache support" ; \ 11797ebf7443Swdenk else \ 11807ebf7443Swdenk echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \ 11817ebf7443Swdenk echo "... without L2 Cache support" ; \ 118227b207fdSwdenk fi; \ 118327b207fdSwdenk if [ "$${BMODE}" == "60x" ] ; then \ 118427b207fdSwdenk echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \ 118527b207fdSwdenk echo "... with 60x Bus Mode" ; \ 118627b207fdSwdenk else \ 118727b207fdSwdenk echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \ 118827b207fdSwdenk echo "... without 60x Bus Mode" ; \ 11897ebf7443Swdenk fi 11904532cb69Swdenk @./mkconfig -a TQM8260 ppc mpc8260 tqm8260 11917ebf7443Swdenk 1192ba91e26aSwdenkVoVPN-GW_66MHz_config \ 1193ba91e26aSwdenkVoVPN-GW_100MHz_config: unconfig 1194ba91e26aSwdenk @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > include/config.h 1195ba91e26aSwdenk @./mkconfig -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk 1196ba91e26aSwdenk 119754387ac9SwdenkZPC1900_config: unconfig 119854387ac9Swdenk @./mkconfig $(@:_config=) ppc mpc8260 zpc1900 11997aa78614Swdenk 12004e5ca3ebSwdenk#======================================================================== 12014e5ca3ebSwdenk# M68K 12024e5ca3ebSwdenk#======================================================================== 12034e5ca3ebSwdenk######################################################################### 12044e5ca3ebSwdenk## Coldfire 12054e5ca3ebSwdenk######################################################################### 12064e5ca3ebSwdenk 12074e5ca3ebSwdenkM5272C3_config : unconfig 1208bf9e3b38Swdenk @./mkconfig $(@:_config=) m68k mcf52x2 m5272c3 12094e5ca3ebSwdenk 12104e5ca3ebSwdenkM5282EVB_config : unconfig 1211bf9e3b38Swdenk @./mkconfig $(@:_config=) m68k mcf52x2 m5282evb 12124e5ca3ebSwdenk 1213c419d1d6SstroeseTASREG_config : unconfig 1214c419d1d6Sstroese @./mkconfig $(@:_config=) m68k mcf52x2 tasreg esd 1215c419d1d6Sstroese 12167ebf7443Swdenk######################################################################### 1217f046ccd1SEran Liberty## MPC83xx Systems 1218f046ccd1SEran Liberty######################################################################### 1219f046ccd1SEran Liberty 1220f046ccd1SEran LibertyMPC8349ADS_config: unconfig 1221f046ccd1SEran Liberty @./mkconfig $(@:_config=) ppc mpc83xx mpc8349ads 1222f046ccd1SEran Liberty 1223f046ccd1SEran Liberty######################################################################### 122442d1f039Swdenk## MPC85xx Systems 122542d1f039Swdenk######################################################################### 122642d1f039Swdenk 122742d1f039SwdenkMPC8540ADS_config: unconfig 122842d1f039Swdenk @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads 122942d1f039Swdenk 1230b0e32949SLunsheng WangMPC8540EVAL_config \ 1231b0e32949SLunsheng WangMPC8540EVAL_33_config \ 1232b0e32949SLunsheng WangMPC8540EVAL_66_config \ 1233b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \ 1234b0e32949SLunsheng WangMPC8540EVAL_66_slave_config: unconfig 1235b0e32949SLunsheng Wang @echo "" >include/config.h ; \ 1236b0e32949SLunsheng Wang if [ "$(findstring _33_,$@)" ] ; then \ 1237b0e32949SLunsheng Wang echo -n "... 33 MHz PCI" ; \ 1238b0e32949SLunsheng Wang else \ 1239b0e32949SLunsheng Wang echo "#define CONFIG_SYSCLK_66M" >>include/config.h ; \ 1240b0e32949SLunsheng Wang echo -n "... 66 MHz PCI" ; \ 1241b0e32949SLunsheng Wang fi ; \ 1242b0e32949SLunsheng Wang if [ "$(findstring _slave_,$@)" ] ; then \ 1243b0e32949SLunsheng Wang echo "#define CONFIG_PCI_SLAVE" >>include/config.h ; \ 1244b0e32949SLunsheng Wang echo " slave" ; \ 1245b0e32949SLunsheng Wang else \ 1246b0e32949SLunsheng Wang echo " host" ; \ 1247b0e32949SLunsheng Wang fi 1248b0e32949SLunsheng Wang @./mkconfig -a MPC8540EVAL ppc mpc85xx mpc8540eval 1249b0e32949SLunsheng Wang 125042d1f039SwdenkMPC8560ADS_config: unconfig 125142d1f039Swdenk @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads 125242d1f039Swdenk 125303f5c550SwdenkMPC8541CDS_config: unconfig 125403f5c550Swdenk @./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds 125503f5c550Swdenk 1256d9b94f28SJon LoeligerMPC8548CDS_config: unconfig 1257d9b94f28SJon Loeliger @./mkconfig $(@:_config=) ppc mpc85xx mpc8548cds cds 1258d9b94f28SJon Loeliger 125903f5c550SwdenkMPC8555CDS_config: unconfig 126003f5c550Swdenk @./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds 12617abf0c58Swdenk 1262384cc687SwdenkPM854_config: unconfig 1263384cc687Swdenk @./mkconfig $(@:_config=) ppc mpc85xx pm854 1264384cc687Swdenk 1265b20d0032SWolfgang DenkPM856_config: unconfig 1266b20d0032SWolfgang Denk @./mkconfig $(@:_config=) ppc mpc85xx pm856 1267b20d0032SWolfgang Denk 1268c15f3120Swdenksbc8540_config \ 1269c15f3120Swdenksbc8540_33_config \ 1270c15f3120Swdenksbc8540_66_config: unconfig 1271c15f3120Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 1272c15f3120Swdenk echo "#define CONFIG_PCI_66" >>include/config.h ; \ 1273c15f3120Swdenk echo "... 66 MHz PCI" ; \ 1274c15f3120Swdenk else \ 1275c15f3120Swdenk >include/config.h ; \ 1276c15f3120Swdenk echo "... 33 MHz PCI" ; \ 1277c15f3120Swdenk fi 1278c15f3120Swdenk @./mkconfig -a SBC8540 ppc mpc85xx sbc8560 1279c15f3120Swdenk 1280466b7410Swdenksbc8560_config \ 1281466b7410Swdenksbc8560_33_config \ 1282466b7410Swdenksbc8560_66_config: unconfig 12838b07a110Swdenk @if [ "$(findstring _66_,$@)" ] ; then \ 12848b07a110Swdenk echo "#define CONFIG_PCI_66" >>include/config.h ; \ 12858b07a110Swdenk echo "... 66 MHz PCI" ; \ 12868b07a110Swdenk else \ 12878b07a110Swdenk >include/config.h ; \ 12888b07a110Swdenk echo "... 33 MHz PCI" ; \ 12898b07a110Swdenk fi 1290466b7410Swdenk @./mkconfig -a sbc8560 ppc mpc85xx sbc8560 12918b07a110Swdenk 129203f5c550Swdenkstxgp3_config: unconfig 129303f5c550Swdenk @./mkconfig $(@:_config=) ppc mpc85xx stxgp3 129403f5c550Swdenk 12959d46ea4aSwdenkTQM8540_config: unconfig 12969d46ea4aSwdenk @./mkconfig $(@:_config=) ppc mpc85xx tqm8540 12979d46ea4aSwdenk 1298f5c5ef4aSwdenkTQM8560_config: unconfig 1299f5c5ef4aSwdenk @./mkconfig $(@:_config=) ppc mpc85xx tqm8560 1300f5c5ef4aSwdenk 130142d1f039Swdenk######################################################################### 13027ebf7443Swdenk## 74xx/7xx Systems 13037ebf7443Swdenk######################################################################### 13047ebf7443Swdenk 1305c7de829cSwdenkAmigaOneG3SE_config: unconfig 1306c7de829cSwdenk @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 1307c7de829cSwdenk 130815647dc7SwdenkBAB7xx_config: unconfig 130915647dc7Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec 131015647dc7Swdenk 1311c419d1d6SstroeseCPCI750_config: unconfig 1312c419d1d6Sstroese @./mkconfig CPCI750 ppc 74xx_7xx cpci750 esd 1313c419d1d6Sstroese 13143a473b2aSwdenkDB64360_config: unconfig 13153a473b2aSwdenk @./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell 13163a473b2aSwdenk 13173a473b2aSwdenkDB64460_config: unconfig 13183a473b2aSwdenk @./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell 13193a473b2aSwdenk 132015647dc7SwdenkELPPC_config: unconfig 132115647dc7Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec 132215647dc7Swdenk 13237ebf7443SwdenkEVB64260_config \ 13247ebf7443SwdenkEVB64260_750CX_config: unconfig 13257ebf7443Swdenk @./mkconfig EVB64260 ppc 74xx_7xx evb64260 13267ebf7443Swdenk 132715647dc7SwdenkP3G4_config: unconfig 13287ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 13297ebf7443Swdenk 13307ebf7443SwdenkPCIPPC2_config \ 13317ebf7443SwdenkPCIPPC6_config: unconfig 13327ebf7443Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2 13337ebf7443Swdenk 133415647dc7SwdenkZUMA_config: unconfig 133512f34241Swdenk @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 133612f34241Swdenk 13377ebf7443Swdenk#======================================================================== 13387ebf7443Swdenk# ARM 13397ebf7443Swdenk#======================================================================== 13407ebf7443Swdenk######################################################################### 13417ebf7443Swdenk## StrongARM Systems 13427ebf7443Swdenk######################################################################### 13437ebf7443Swdenk 1344ea66bc88Swdenkassabet_config : unconfig 1345ea66bc88Swdenk @./mkconfig $(@:_config=) arm sa1100 assabet 1346ea66bc88Swdenk 13477ebf7443Swdenkdnp1110_config : unconfig 13487ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 dnp1110 13497ebf7443Swdenk 1350855a496fSwdenkgcplus_config : unconfig 1351855a496fSwdenk @./mkconfig $(@:_config=) arm sa1100 gcplus 1352855a496fSwdenk 1353855a496fSwdenklart_config : unconfig 1354855a496fSwdenk @./mkconfig $(@:_config=) arm sa1100 lart 1355855a496fSwdenk 13567ebf7443Swdenkshannon_config : unconfig 13577ebf7443Swdenk @./mkconfig $(@:_config=) arm sa1100 shannon 13587ebf7443Swdenk 13597ebf7443Swdenk######################################################################### 13602e5983d2Swdenk## ARM92xT Systems 13617ebf7443Swdenk######################################################################### 13627ebf7443Swdenk 1363b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 136443d9616cSwdenk 13653ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 136663e73c9aSwdenk 1367a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 1368a56bd922Swdenk 1369a85f9f21Swdenkat91rm9200dk_config : unconfig 1370a85f9f21Swdenk @./mkconfig $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200 1371a85f9f21Swdenk 1372a85f9f21Swdenkcmc_pu2_config : unconfig 1373a85f9f21Swdenk @./mkconfig $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200 1374a85f9f21Swdenk 13753d3befa7Swdenkintegratorap_config : unconfig 13763d3befa7Swdenk @./mkconfig $(@:_config=) arm arm926ejs integratorap 13773d3befa7Swdenk 137825d6712aSwdenkintegratorcp_config : unconfig 137925d6712aSwdenk @./mkconfig $(@:_config=) arm arm926ejs integratorcp 138025d6712aSwdenk 1381f832d8a1Swdenklpd7a400_config \ 1382f832d8a1Swdenklpd7a404_config: unconfig 13832d24a3a7Swdenk @./mkconfig $(@:_config=) arm lh7a40x lpd7a40x 13843d3befa7Swdenk 1385281e00a3Swdenkmx1ads_config : unconfig 13861d9f4105Swdenk @./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx 1387281e00a3Swdenk 1388281e00a3Swdenkmx1fs2_config : unconfig 13891d9f4105Swdenk @./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx 1390281e00a3Swdenk 13912e5983d2Swdenkomap1510inn_config : unconfig 13922e5983d2Swdenk @./mkconfig $(@:_config=) arm arm925t omap1510inn 13932e5983d2Swdenk 13941eaeb58eSwdenkomap5912osk_config : unconfig 13951eaeb58eSwdenk @./mkconfig $(@:_config=) arm arm926ejs omap5912osk 13961eaeb58eSwdenk 139763e73c9aSwdenkomap1610inn_config \ 139863e73c9aSwdenkomap1610inn_cs0boot_config \ 139963e73c9aSwdenkomap1610inn_cs3boot_config \ 14003ff02c27Swdenkomap1610inn_cs_autoboot_config \ 140163e73c9aSwdenkomap1610h2_config \ 140263e73c9aSwdenkomap1610h2_cs0boot_config \ 14033ff02c27Swdenkomap1610h2_cs3boot_config \ 14043ff02c27Swdenkomap1610h2_cs_autoboot_config: unconfig 140563e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 140663e73c9aSwdenk echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \ 1407b79a11ccSwdenk echo "... configured for CS0 boot"; \ 14083ff02c27Swdenk elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 14093ff02c27Swdenk echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \ 14103ff02c27Swdenk echo "... configured for CS_AUTO boot"; \ 141163e73c9aSwdenk else \ 141263e73c9aSwdenk echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \ 1413b79a11ccSwdenk echo "... configured for CS3 boot"; \ 141463e73c9aSwdenk fi; 141563e73c9aSwdenk @./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn 14166f21347dSwdenk 1417a56bd922Swdenkomap730p2_config \ 1418a56bd922Swdenkomap730p2_cs0boot_config \ 1419a56bd922Swdenkomap730p2_cs3boot_config : unconfig 1420a56bd922Swdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 1421a56bd922Swdenk echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \ 1422a56bd922Swdenk echo "... configured for CS0 boot"; \ 1423a56bd922Swdenk else \ 1424a56bd922Swdenk echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \ 1425a56bd922Swdenk echo "... configured for CS3 boot"; \ 1426a56bd922Swdenk fi; 1427a56bd922Swdenk @./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 1428a56bd922Swdenk 1429281e00a3Swdenkscb9328_config : unconfig 14301d9f4105Swdenk @./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx 1431281e00a3Swdenk 14327ebf7443Swdenksmdk2400_config : unconfig 14331d9f4105Swdenk @./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0 14347ebf7443Swdenk 14357ebf7443Swdenksmdk2410_config : unconfig 14361d9f4105Swdenk @./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0 14377ebf7443Swdenk 14382d24a3a7SwdenkSX1_config : unconfig 14392d24a3a7Swdenk @./mkconfig $(@:_config=) arm arm925t sx1 14402d24a3a7Swdenk 1441b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 144243d9616cSwdenktrab_config \ 1443b0639ca3Swdenktrab_bigram_config \ 1444b0639ca3Swdenktrab_bigflash_config \ 1445f54ebdfaSwdenktrab_old_config: unconfig 144643d9616cSwdenk @ >include/config.h 1447b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 1448b0639ca3Swdenk { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \ 1449b2001f27Swdenk echo "#define CONFIG_RAM_32MB" >>include/config.h ; \ 1450b0639ca3Swdenk echo "... with 8 MB Flash, 32 MB RAM" ; \ 1451b0639ca3Swdenk } 1452b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 1453b2001f27Swdenk { echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \ 1454b2001f27Swdenk echo "#define CONFIG_RAM_16MB" >>include/config.h ; \ 1455b0639ca3Swdenk echo "... with 16 MB Flash, 16 MB RAM" ; \ 1456a8c7c708Swdenk echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \ 1457b0639ca3Swdenk } 1458f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 1459b2001f27Swdenk { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \ 1460b2001f27Swdenk echo "#define CONFIG_RAM_16MB" >>include/config.h ; \ 1461b2001f27Swdenk echo "... with 8 MB Flash, 16 MB RAM" ; \ 1462a8c7c708Swdenk echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \ 146343d9616cSwdenk } 14641d9f4105Swdenk @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 14657ebf7443Swdenk 14661cb8e980SwdenkVCMA9_config : unconfig 14671d9f4105Swdenk @./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0 14681cb8e980Swdenk 14692d24a3a7Swdenkversatile_config : unconfig 14702d24a3a7Swdenk @./mkconfig $(@:_config=) arm arm926ejs versatile 1471074cff0dSwdenk 14723c2b3d45Swdenkvoiceblue_smallflash_config \ 14733c2b3d45Swdenkvoiceblue_config: unconfig 14743c2b3d45Swdenk @if [ "$(findstring _smallflash_,$@)" ] ; then \ 14753c2b3d45Swdenk echo "... boot from lower flash bank" ; \ 14763c2b3d45Swdenk echo "#define VOICEBLUE_SMALL_FLASH" >>include/config.h ; \ 14773c2b3d45Swdenk echo "VOICEBLUE_SMALL_FLASH=y" >board/voiceblue/config.tmp ; \ 14783c2b3d45Swdenk else \ 14793c2b3d45Swdenk echo "... boot from upper flash bank" ; \ 14803c2b3d45Swdenk >include/config.h ; \ 14813c2b3d45Swdenk echo "VOICEBLUE_SMALL_FLASH=n" >board/voiceblue/config.tmp ; \ 14823c2b3d45Swdenk fi 14833c2b3d45Swdenk @./mkconfig -a voiceblue arm arm925t voiceblue 14843c2b3d45Swdenk 148516b013e7Swdenkcm4008_config : unconfig 148616b013e7Swdenk @./mkconfig $(@:_config=) arm arm920t cm4008 NULL ks8695 148716b013e7Swdenk 148816b013e7Swdenkcm41xx_config : unconfig 148916b013e7Swdenk @./mkconfig $(@:_config=) arm arm920t cm41xx NULL ks8695 149016b013e7Swdenk 1491074cff0dSwdenk######################################################################### 1492074cff0dSwdenk## S3C44B0 Systems 1493074cff0dSwdenk######################################################################### 1494074cff0dSwdenk 1495074cff0dSwdenkB2_config : unconfig 1496074cff0dSwdenk @./mkconfig $(@:_config=) arm s3c44b0 B2 dave 1497074cff0dSwdenk 14987ebf7443Swdenk######################################################################### 14997ebf7443Swdenk## ARM720T Systems 15007ebf7443Swdenk######################################################################### 15017ebf7443Swdenk 15027ebf7443Swdenkep7312_config : unconfig 15037ebf7443Swdenk @./mkconfig $(@:_config=) arm arm720t ep7312 15047ebf7443Swdenk 15052d24a3a7Swdenkimpa7_config : unconfig 15062d24a3a7Swdenk @./mkconfig $(@:_config=) arm arm720t impa7 15072d24a3a7Swdenk 15082d1a537dSwdenkmodnet50_config : unconfig 15092d1a537dSwdenk @./mkconfig $(@:_config=) arm arm720t modnet50 15102d1a537dSwdenk 151139539887Swdenkevb4510_config : unconfig 151239539887Swdenk @./mkconfig $(@:_config=) arm arm720t evb4510 151339539887Swdenk 15147ebf7443Swdenk######################################################################### 151543d9616cSwdenk## XScale Systems 15167ebf7443Swdenk######################################################################### 15177ebf7443Swdenk 151820787e23Swdenkadsvix_config : unconfig 151920787e23Swdenk @./mkconfig $(@:_config=) arm pxa adsvix 152020787e23Swdenk 1521fabd46acSwdenkcerf250_config : unconfig 1522fabd46acSwdenk @./mkconfig $(@:_config=) arm pxa cerf250 1523fabd46acSwdenk 15247ebf7443Swdenkcradle_config : unconfig 15254c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa cradle 15267ebf7443Swdenk 15277ebf7443Swdenkcsb226_config : unconfig 15284c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa csb226 15297ebf7443Swdenk 153043d9616cSwdenkinnokom_config : unconfig 15314c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa innokom 153243d9616cSwdenk 15332d5b561eSwdenkixdp425_config : unconfig 15342d5b561eSwdenk @./mkconfig $(@:_config=) arm ixp ixdp425 15352d5b561eSwdenk 153643d9616cSwdenklubbock_config : unconfig 15374c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa lubbock 153843d9616cSwdenk 153952f52c14Swdenklogodl_config : unconfig 154052f52c14Swdenk @./mkconfig $(@:_config=) arm pxa logodl 154152f52c14Swdenk 15423e38691eSwdenkwepep250_config : unconfig 15434c3b21a5Swdenk @./mkconfig $(@:_config=) arm pxa wepep250 15443e38691eSwdenk 15454ec3a7f0Swdenkxaeniax_config : unconfig 15464ec3a7f0Swdenk @./mkconfig $(@:_config=) arm pxa xaeniax 15474ec3a7f0Swdenk 1548efa329cbSwdenkxm250_config : unconfig 1549efa329cbSwdenk @./mkconfig $(@:_config=) arm pxa xm250 1550efa329cbSwdenk 1551ca0e7748Swdenkxsengine_config : unconfig 1552ca0e7748Swdenk @./mkconfig $(@:_config=) arm pxa xsengine 1553ca0e7748Swdenk 15548ed96046Swdenk######################################################################### 15558ed96046Swdenk## ARM1136 Systems 15568ed96046Swdenk######################################################################### 15578ed96046Swdenkomap2420h4_config : unconfig 15588ed96046Swdenk @./mkconfig $(@:_config=) arm arm1136 omap2420h4 15598ed96046Swdenk 15602262cfeeSwdenk#======================================================================== 15612262cfeeSwdenk# i386 15622262cfeeSwdenk#======================================================================== 15632262cfeeSwdenk######################################################################### 15642262cfeeSwdenk## AMD SC520 CDP 15652262cfeeSwdenk######################################################################### 15662262cfeeSwdenksc520_cdp_config : unconfig 15672262cfeeSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_cdp 15682262cfeeSwdenk 15697a8e9bedSwdenksc520_spunk_config : unconfig 15707a8e9bedSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_spunk 15717a8e9bedSwdenk 15727a8e9bedSwdenksc520_spunk_rel_config : unconfig 15737a8e9bedSwdenk @./mkconfig $(@:_config=) i386 i386 sc520_spunk 15747a8e9bedSwdenk 157543d9616cSwdenk#======================================================================== 157643d9616cSwdenk# MIPS 157743d9616cSwdenk#======================================================================== 15787ebf7443Swdenk######################################################################### 157943d9616cSwdenk## MIPS32 4Kc 158043d9616cSwdenk######################################################################### 158143d9616cSwdenk 1582e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 1583e0ac62d7Swdenk 1584e0ac62d7Swdenkincaip_100MHz_config \ 1585e0ac62d7Swdenkincaip_133MHz_config \ 1586e0ac62d7Swdenkincaip_150MHz_config \ 158743d9616cSwdenkincaip_config: unconfig 1588e0ac62d7Swdenk @ >include/config.h 1589e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 1590e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \ 1591e0ac62d7Swdenk echo "... with 100MHz system clock" ; \ 1592e0ac62d7Swdenk } 1593e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 1594e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \ 1595e0ac62d7Swdenk echo "... with 133MHz system clock" ; \ 1596e0ac62d7Swdenk } 1597e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 1598e0ac62d7Swdenk { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \ 1599e0ac62d7Swdenk echo "... with 150MHz system clock" ; \ 1600e0ac62d7Swdenk } 1601e0ac62d7Swdenk @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip 1602e0ac62d7Swdenk 1603f4863a7aSwdenktb0229_config: unconfig 1604f4863a7aSwdenk @./mkconfig $(@:_config=) mips mips tb0229 1605f4863a7aSwdenk 1606e0ac62d7Swdenk######################################################################### 160769459791Swdenk## MIPS32 AU1X00 160869459791Swdenk######################################################################### 160969459791Swdenkdbau1000_config : unconfig 161069459791Swdenk @ >include/config.h 161169459791Swdenk @echo "#define CONFIG_DBAU1000 1" >>include/config.h 161269459791Swdenk @./mkconfig -a dbau1x00 mips mips dbau1x00 161369459791Swdenk 161469459791Swdenkdbau1100_config : unconfig 161569459791Swdenk @ >include/config.h 161669459791Swdenk @echo "#define CONFIG_DBAU1100 1" >>include/config.h 161769459791Swdenk @./mkconfig -a dbau1x00 mips mips dbau1x00 161869459791Swdenk 161969459791Swdenkdbau1500_config : unconfig 162069459791Swdenk @ >include/config.h 162169459791Swdenk @echo "#define CONFIG_DBAU1500 1" >>include/config.h 162269459791Swdenk @./mkconfig -a dbau1x00 mips mips dbau1x00 162369459791Swdenk 1624ff36fd85Swdenkdbau1550_config : unconfig 1625ff36fd85Swdenk @ >include/config.h 1626ff36fd85Swdenk @echo "#define CONFIG_DBAU1550 1" >>include/config.h 1627ff36fd85Swdenk @./mkconfig -a dbau1x00 mips mips dbau1x00 1628ff36fd85Swdenk 1629ff36fd85Swdenkdbau1550_el_config : unconfig 1630ff36fd85Swdenk @ >include/config.h 1631ff36fd85Swdenk @echo "#define CONFIG_DBAU1550 1" >>include/config.h 163221919230SWolfgang Denk @./mkconfig -a dbau1x00 mips mips dbau1x00 1633ff36fd85Swdenk 163469459791Swdenk######################################################################### 1635e0ac62d7Swdenk## MIPS64 5Kc 1636e0ac62d7Swdenk######################################################################### 163743d9616cSwdenk 16383e38691eSwdenkpurple_config : unconfig 16393e38691eSwdenk @./mkconfig $(@:_config=) mips mips purple 164043d9616cSwdenk 16414a551709Swdenk#======================================================================== 16424a551709Swdenk# Nios 16434a551709Swdenk#======================================================================== 16444a551709Swdenk######################################################################### 16454a551709Swdenk## Nios32 16464a551709Swdenk######################################################################### 16474a551709Swdenk 1648c935d3bdSwdenkDK1C20_safe_32_config \ 1649c935d3bdSwdenkDK1C20_standard_32_config \ 16504a551709SwdenkDK1C20_config: unconfig 1651c935d3bdSwdenk @ >include/config.h 1652c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 1653c935d3bdSwdenk { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \ 1654c935d3bdSwdenk echo "... NIOS 'safe_32' configuration" ; \ 1655c935d3bdSwdenk } 1656c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 1657c935d3bdSwdenk { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1658c935d3bdSwdenk echo "... NIOS 'standard_32' configuration" ; \ 1659c935d3bdSwdenk } 1660c935d3bdSwdenk @[ -z "$(findstring DK1C20_config,$@)" ] || \ 1661c935d3bdSwdenk { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1662c935d3bdSwdenk echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 1663c935d3bdSwdenk } 1664c935d3bdSwdenk @./mkconfig -a DK1C20 nios nios dk1c20 altera 1665c935d3bdSwdenk 1666c935d3bdSwdenkDK1S10_safe_32_config \ 1667c935d3bdSwdenkDK1S10_standard_32_config \ 1668ec4c544bSwdenkDK1S10_mtx_ldk_20_config \ 1669c935d3bdSwdenkDK1S10_config: unconfig 1670c935d3bdSwdenk @ >include/config.h 1671c935d3bdSwdenk @[ -z "$(findstring _safe_32,$@)" ] || \ 1672c935d3bdSwdenk { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \ 1673c935d3bdSwdenk echo "... NIOS 'safe_32' configuration" ; \ 1674c935d3bdSwdenk } 1675c935d3bdSwdenk @[ -z "$(findstring _standard_32,$@)" ] || \ 1676c935d3bdSwdenk { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1677c935d3bdSwdenk echo "... NIOS 'standard_32' configuration" ; \ 1678c935d3bdSwdenk } 1679ec4c544bSwdenk @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 1680ec4c544bSwdenk { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \ 1681ec4c544bSwdenk echo "... NIOS 'mtx_ldk_20' configuration" ; \ 1682ec4c544bSwdenk } 1683c935d3bdSwdenk @[ -z "$(findstring DK1S10_config,$@)" ] || \ 1684c935d3bdSwdenk { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ 1685c935d3bdSwdenk echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 1686c935d3bdSwdenk } 1687c935d3bdSwdenk @./mkconfig -a DK1S10 nios nios dk1s10 altera 16884a551709Swdenk 1689aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config \ 1690aaf224abSwdenkADNPESC1_base_32_config \ 1691aaf224abSwdenkADNPESC1_config: unconfig 1692aaf224abSwdenk @ >include/config.h 1693aaf224abSwdenk @[ -z "$(findstring _DNPEVA2,$@)" ] || \ 1694aaf224abSwdenk { echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \ 1695aaf224abSwdenk echo "... DNP/EVA2 configuration" ; \ 1696aaf224abSwdenk } 1697aaf224abSwdenk @[ -z "$(findstring _base_32,$@)" ] || \ 1698aaf224abSwdenk { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \ 1699aaf224abSwdenk echo "... NIOS 'base_32' configuration" ; \ 1700aaf224abSwdenk } 1701aaf224abSwdenk @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ 1702aaf224abSwdenk { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \ 1703aaf224abSwdenk echo "... NIOS 'base_32' configuration (DEFAULT)" ; \ 1704aaf224abSwdenk } 1705aaf224abSwdenk @./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv 1706aaf224abSwdenk 17075c952cf0Swdenk######################################################################### 17085c952cf0Swdenk## Nios-II 17095c952cf0Swdenk######################################################################### 17105c952cf0Swdenk 17115c952cf0SwdenkPK1C20_config : unconfig 17125c952cf0Swdenk @./mkconfig PK1C20 nios2 nios2 pk1c20 psyent 17135c952cf0Swdenk 17145c952cf0SwdenkPCI5441_config : unconfig 17155c952cf0Swdenk @./mkconfig PCI5441 nios2 nios2 pci5441 psyent 17164a551709Swdenk 1717507bbe3eSwdenk#======================================================================== 1718507bbe3eSwdenk# MicroBlaze 1719507bbe3eSwdenk#======================================================================== 1720507bbe3eSwdenk######################################################################### 1721507bbe3eSwdenk## Microblaze 1722507bbe3eSwdenk######################################################################### 1723507bbe3eSwdenksuzaku_config: unconfig 1724507bbe3eSwdenk @ >include/config.h 1725507bbe3eSwdenk @echo "#define CONFIG_SUZAKU 1" >> include/config.h 1726507bbe3eSwdenk @./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno 1727507bbe3eSwdenk 17283e38691eSwdenk######################################################################### 17293e38691eSwdenk######################################################################### 17307ebf7443Swdenk 17317ebf7443Swdenkclean: 17327ebf7443Swdenk find . -type f \ 17337ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 17347ebf7443Swdenk -o -name '*.o' -o -name '*.a' \) -print \ 17357ebf7443Swdenk | xargs rm -f 173685ec0bccSwdenk rm -f examples/hello_world examples/timer \ 17373e38691eSwdenk examples/eepro100_eeprom examples/sched \ 1738ed16fefcSwdenk examples/mem_to_mem_idma2intr examples/82559_eeprom \ 1739ed16fefcSwdenk examples/test_burst 17407ebf7443Swdenk rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr 1741eedcd078Swdenk rm -f tools/mpc86x_clk tools/ncb 17427ebf7443Swdenk rm -f tools/easylogo/easylogo tools/bmp_logo 17437ebf7443Swdenk rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend 1744228f29acSwdenk rm -f tools/env/fw_printenv tools/env/fw_setenv 17457f70e853Swdenk rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image 17460e1fb5eeSWolfgang Denk rm -f board/trab/trab_fkt board/voiceblue/eeprom 17477ebf7443Swdenk 17487ebf7443Swdenkclobber: clean 17494c0d4c3bSwdenk find . -type f \( -name .depend \ 17504c0d4c3bSwdenk -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 17514c0d4c3bSwdenk -print0 \ 17524c0d4c3bSwdenk | xargs -0 rm -f 17537ebf7443Swdenk rm -f $(OBJS) *.bak tags TAGS 17547ebf7443Swdenk rm -fr *.*~ 17556310eb9dSwdenk rm -f u-boot u-boot.map u-boot.hex $(ALL) 1756228f29acSwdenk rm -f tools/crc32.c tools/environment.c tools/env/crc32.c 17573e38691eSwdenk rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c 1758b783edaeSwdenk rm -f include/asm/proc include/asm/arch include/asm 17597ebf7443Swdenk 17607ebf7443Swdenkmrproper \ 17617ebf7443Swdenkdistclean: clobber unconfig 17627ebf7443Swdenk 17637ebf7443Swdenkbackup: 17647ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 17657ebf7443Swdenk gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 17667ebf7443Swdenk 17677ebf7443Swdenk######################################################################### 1768