xref: /openbmc/u-boot/Makefile (revision 463764c8)
17ebf7443Swdenk#
2881a87ecSWolfgang Denk# (C) Copyright 2000-2006
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
1045a212c4SWolfgang Denk# published by the Free Software Foundatio; 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
24881a87ecSWolfgang DenkVERSION = 1
25881a87ecSWolfgang DenkPATCHLEVEL = 1
26881a87ecSWolfgang DenkSUBLEVEL = 4
27881a87ecSWolfgang DenkEXTRAVERSION =
28881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29881a87ecSWolfgang DenkVERSION_FILE = include/version_autogenerated.h
30881a87ecSWolfgang Denk
317ebf7443SwdenkHOSTARCH := $(shell uname -m | \
327ebf7443Swdenk	sed -e s/i.86/i386/ \
337ebf7443Swdenk	    -e s/sun4u/sparc64/ \
347ebf7443Swdenk	    -e s/arm.*/arm/ \
357ebf7443Swdenk	    -e s/sa110/arm/ \
367ebf7443Swdenk	    -e s/powerpc/ppc/ \
377ebf7443Swdenk	    -e s/macppc/ppc/)
387ebf7443Swdenk
39f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
407ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
417ebf7443Swdenk
42f9d77ed3SWolfgang Denkexport	HOSTARCH HOSTOS
437ebf7443Swdenk
447ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
457ebf7443SwdenkVENDOR=
467ebf7443Swdenk
477ebf7443Swdenk#########################################################################
487ebf7443Swdenk
497ebf7443SwdenkTOPDIR	:= $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
507ebf7443Swdenkexport	TOPDIR
517ebf7443Swdenk
527ebf7443Swdenkifeq (include/config.mk,$(wildcard include/config.mk))
537ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
547ebf7443Swdenkinclude include/config.mk
551d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
567ebf7443Swdenkifndef CROSS_COMPILE
577ebf7443Swdenkifeq ($(HOSTARCH),ppc)
587ebf7443SwdenkCROSS_COMPILE =
597ebf7443Swdenkelse
607ebf7443Swdenkifeq ($(ARCH),ppc)
61f046ccd1SEran LibertyCROSS_COMPILE = powerpc-linux-
627ebf7443Swdenkendif
637ebf7443Swdenkifeq ($(ARCH),arm)
64dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
657ebf7443Swdenkendif
662262cfeeSwdenkifeq ($(ARCH),i386)
677a8e9bedSwdenkifeq ($(HOSTARCH),i386)
687a8e9bedSwdenkCROSS_COMPILE =
697a8e9bedSwdenkelse
707a8e9bedSwdenkCROSS_COMPILE = i386-linux-
717a8e9bedSwdenkendif
722262cfeeSwdenkendif
7343d9616cSwdenkifeq ($(ARCH),mips)
7443d9616cSwdenkCROSS_COMPILE = mips_4KC-
7543d9616cSwdenkendif
764a551709Swdenkifeq ($(ARCH),nios)
774a551709SwdenkCROSS_COMPILE = nios-elf-
784a551709Swdenkendif
795c952cf0Swdenkifeq ($(ARCH),nios2)
805c952cf0SwdenkCROSS_COMPILE = nios2-elf-
815c952cf0Swdenkendif
824e5ca3ebSwdenkifeq ($(ARCH),m68k)
834e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
844e5ca3ebSwdenkendif
85507bbe3eSwdenkifeq ($(ARCH),microblaze)
86507bbe3eSwdenkCROSS_COMPILE = mb-
87507bbe3eSwdenkendif
880afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
890afe519aSWolfgang DenkCROSS_COMPILE = bfin-elf-
900afe519aSWolfgang Denkendif
917ebf7443Swdenkendif
927ebf7443Swdenkendif
937ebf7443Swdenk
947ebf7443Swdenkexport	CROSS_COMPILE
957ebf7443Swdenk
9692b197f0SWolfgang Denk# load other configuration
9792b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
9892b197f0SWolfgang Denk
9992b197f0SWolfgang Denk
1007ebf7443Swdenk#########################################################################
1017ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1027ebf7443Swdenk
1037ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1042262cfeeSwdenkifeq ($(CPU),i386)
1052262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
1062262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
1072262cfeeSwdenkendif
1087ebf7443Swdenkifeq ($(CPU),ppc4xx)
1097ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
1107ebf7443Swdenkendif
111f046ccd1SEran Libertyifeq ($(CPU),mpc83xx)
112f046ccd1SEran LibertyOBJS += cpu/$(CPU)/resetvec.o
113f046ccd1SEran Libertyendif
11442d1f039Swdenkifeq ($(CPU),mpc85xx)
11542d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
11642d1f039Swdenkendif
1170afe519aSWolfgang Denkifeq ($(CPU),bf533)
1180afe519aSWolfgang DenkOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
1190afe519aSWolfgang DenkOBJS += cpu/$(CPU)/cplbhdlr.o	cpu/$(CPU)/cplbmgr.o	cpu/$(CPU)/flush.o
1200afe519aSWolfgang Denkendif
1217ebf7443Swdenk
1229fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
1239fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
1247ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
1251d9f4105Swdenkifdef SOC
1261d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
1271d9f4105Swdenkendif
1287ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
129518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
130c419d1d6Sstroese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
1317ebf7443SwdenkLIBS += net/libnet.a
1327ebf7443SwdenkLIBS += disk/libdisk.a
1337ebf7443SwdenkLIBS += rtc/librtc.a
1347ebf7443SwdenkLIBS += dtt/libdtt.a
1357ebf7443SwdenkLIBS += drivers/libdrivers.a
1366db39708SMarian BalakowiczLIBS += drivers/nand/libnand.a
1376db39708SMarian BalakowiczLIBS += drivers/nand_legacy/libnand_legacy.a
1387152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a
1397ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a
1407ebf7443SwdenkLIBS += common/libcommon.a
141038ccac5SBartlomiej SiekaLIBS += $(BOARDLIBS)
1429fd5e31fSwdenk.PHONY : $(LIBS)
143a8c7c708Swdenk
1444f7cb08eSwdenk# Add GCC lib
1451a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
1463d3befa7Swdenk
1477ebf7443Swdenk
148a8c7c708Swdenk# The "tools" are needed early, so put this first
149a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
150a8c7c708SwdenkSUBDIRS	= tools \
151a8c7c708Swdenk	  examples \
152a8c7c708Swdenk	  post \
153a8c7c708Swdenk	  post/cpu
154b028f715Swdenk.PHONY : $(SUBDIRS)
155a8c7c708Swdenk
1567ebf7443Swdenk#########################################################################
157bdccc4feSwdenk#########################################################################
1587ebf7443Swdenk
159bdccc4feSwdenkALL = u-boot.srec u-boot.bin System.map
1607ebf7443Swdenk
161bdccc4feSwdenkall:		$(ALL)
1627ebf7443Swdenk
1636310eb9dSwdenku-boot.hex:	u-boot
1646310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
1656310eb9dSwdenk
1667ebf7443Swdenku-boot.srec:	u-boot
1677ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
1687ebf7443Swdenk
1697ebf7443Swdenku-boot.bin:	u-boot
1707ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
1717ebf7443Swdenk
172bdccc4feSwdenku-boot.img:	u-boot.bin
173bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
174bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
175881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
176bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
177bdccc4feSwdenk		-d $< $@
178bdccc4feSwdenk
1797ebf7443Swdenku-boot.dis:	u-boot
1807ebf7443Swdenk		$(OBJDUMP) -d $< > $@
1817ebf7443Swdenk
182881a87ecSWolfgang Denku-boot:		depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
1838bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
1848bde7f77Swdenk		$(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
1851a344f29Swdenk			--start-group $(LIBS) --end-group $(PLATFORM_LIBS) \
186b2184c31Swdenk			-Map u-boot.map -o u-boot
1877ebf7443Swdenk
188a8c7c708Swdenk$(LIBS):
189a8c7c708Swdenk		$(MAKE) -C `dirname $@`
190a8c7c708Swdenk
191a8c7c708Swdenk$(SUBDIRS):
192b028f715Swdenk		$(MAKE) -C $@ all
1937ebf7443Swdenk
194881a87ecSWolfgang Denkversion:
195881a87ecSWolfgang Denk		@echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
196881a87ecSWolfgang Denk		echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
197881a87ecSWolfgang Denk		echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
198881a87ecSWolfgang Denk			 $(TOPDIR)) >> $(VERSION_FILE); \
199881a87ecSWolfgang Denk		echo "\"" >> $(VERSION_FILE)
200881a87ecSWolfgang Denk
2018f713fdfSdzugdbtools:
2028f713fdfSdzu		$(MAKE) -C tools/gdb || exit 1
2038f713fdfSdzu
2047ebf7443Swdenkdepend dep:
2057ebf7443Swdenk		@for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
2067ebf7443Swdenk
2077ebf7443Swdenktags:
2087ebf7443Swdenk		ctags -w `find $(SUBDIRS) include \
209bda6c8aeSwdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
210bda6c8aeSwdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
211bda6c8aeSwdenk				net disk rtc dtt drivers drivers/sk98lin common \
2127ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
2137ebf7443Swdenk
2147ebf7443Swdenketags:
2157ebf7443Swdenk		etags -a `find $(SUBDIRS) include \
216eedcd078Swdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
217eedcd078Swdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
218eedcd078Swdenk				net disk rtc dtt drivers drivers/sk98lin common \
2197ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
2207ebf7443Swdenk
2217ebf7443SwdenkSystem.map:	u-boot
2227ebf7443Swdenk		@$(NM) $< | \
2237ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
2247ebf7443Swdenk		sort > System.map
2257ebf7443Swdenk
2267ebf7443Swdenk#########################################################################
2277ebf7443Swdenkelse
2287ebf7443Swdenkall install u-boot u-boot.srec depend dep:
2297ebf7443Swdenk	@echo "System not configured - see README" >&2
2307ebf7443Swdenk	@ exit 1
2317ebf7443Swdenkendif
2327ebf7443Swdenk
2337ebf7443Swdenk#########################################################################
2347ebf7443Swdenk
2357ebf7443Swdenkunconfig:
23617d704ebSwdenk	@rm -f include/config.h include/config.mk board/*/config.tmp
2377ebf7443Swdenk
2387ebf7443Swdenk#========================================================================
2397ebf7443Swdenk# PowerPC
2407ebf7443Swdenk#========================================================================
2410db5bca8Swdenk
2420db5bca8Swdenk#########################################################################
2430db5bca8Swdenk## MPC5xx Systems
2440db5bca8Swdenk#########################################################################
2450db5bca8Swdenk
2465e5f9ed2Swdenkcanmb_config:	unconfig
2475e5f9ed2Swdenk	@./mkconfig -a canmb ppc mpc5xxx canmb
2485e5f9ed2Swdenk
2490db5bca8Swdenkcmi_mpc5xx_config:	unconfig
2500db5bca8Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx cmi
2510db5bca8Swdenk
252b6e4c403SwdenkPATI_config:		unconfig
253b6e4c403Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx pati mpl
254b6e4c403Swdenk
2557ebf7443Swdenk#########################################################################
256945af8d7Swdenk## MPC5xxx Systems
257945af8d7Swdenk#########################################################################
258a87589daSwdenk
259dafba16eSWolfgang Denkaev_config: unconfig
260dafba16eSWolfgang Denk	@./mkconfig -a aev ppc mpc5xxx tqm5200
261dafba16eSWolfgang Denk
2626ca24c64Sdzu@denx.deBC3450_config:	unconfig
2636ca24c64Sdzu@denx.de	@./mkconfig -a BC3450 ppc mpc5xxx bc3450
2646ca24c64Sdzu@denx.de
2655e4b3361SStefan Roesecpci5200_config:  unconfig
2665e4b3361SStefan Roese	@./mkconfig -a cpci5200  ppc mpc5xxx cpci5200 esd
2675e4b3361SStefan Roese
268a87589daSwdenkhmi1001_config:         unconfig
269a87589daSwdenk	@./mkconfig hmi1001 ppc mpc5xxx hmi1001
270a87589daSwdenk
271e35745bbSwdenkLite5200_config				\
272e35745bbSwdenkLite5200_LOWBOOT_config			\
273e35745bbSwdenkLite5200_LOWBOOT08_config		\
274e35745bbSwdenkicecube_5200_config			\
275e35745bbSwdenkicecube_5200_LOWBOOT_config		\
276e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
277b2001f27Swdenkicecube_5200_DDR_config 		\
27879d696fcSwdenkicecube_5200_DDR_LOWBOOT_config 	\
27979d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
280e35745bbSwdenkicecube_5100_config:			unconfig
281945af8d7Swdenk	@ >include/config.h
28217d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
28317d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
28417d704ebSwdenk			then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
28517d704ebSwdenk			else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
28617d704ebSwdenk		  fi ; \
2875cf9da48Swdenk		  echo "... with LOWBOOT configuration" ; \
2885cf9da48Swdenk		}
2895cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
2905cf9da48Swdenk		{ echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
2915cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
29217d704ebSwdenk		  echo "... with LOWBOOT configuration" ; \
2935cf9da48Swdenk		}
294b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
295b2001f27Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
296b2001f27Swdenk		  echo "... DDR memory revision" ; \
297b2001f27Swdenk		}
298d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
299d4ca31c4Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
300d4ca31c4Swdenk		  echo "... with MPC5200 processor" ; \
301d4ca31c4Swdenk		}
302a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
303945af8d7Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
304945af8d7Swdenk		  echo "... with MGT5100 processor" ; \
305945af8d7Swdenk		}
306945af8d7Swdenk	@./mkconfig -a IceCube ppc mpc5xxx icecube
307945af8d7Swdenk
308138ff60cSwdenkinka4x0_config:	unconfig
309138ff60cSwdenk	@./mkconfig inka4x0 ppc mpc5xxx inka4x0
310138ff60cSwdenk
31109e4b0c5SWolfgang Denklite5200b_config	\
31209e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
31309e4b0c5SWolfgang Denk	@ >include/config.h
31409e4b0c5SWolfgang Denk	@ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h
31509e4b0c5SWolfgang Denk	@ echo "... DDR memory revision"
31609e4b0c5SWolfgang Denk	@ echo "#define CONFIG_MPC5200"		>>include/config.h
31709e4b0c5SWolfgang Denk	@ echo "#define CONFIG_LITE5200B"	>>include/config.h
31809e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
31909e4b0c5SWolfgang Denk		{ echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
32009e4b0c5SWolfgang Denk		  echo "... with LOWBOOT configuration" ; \
32109e4b0c5SWolfgang Denk		}
32209e4b0c5SWolfgang Denk	@ echo "... with MPC5200B processor"
32309e4b0c5SWolfgang Denk	@./mkconfig -a IceCube  ppc mpc5xxx icecube
32409e4b0c5SWolfgang Denk
325f1ee9825SStefan Roesemcc200_config	\
3264819fad9SWolfgang Denkmcc200_SDRAM	\
3274819fad9SWolfgang Denkmcc200_highboot	\
328*463764c8SWolfgang Denkmcc200_COM12	\
3294819fad9SWolfgang Denkmcc200_highboot_SDRAM:	unconfig
330f1ee9825SStefan Roese	@ >include/config.h
3314819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
3324819fad9SWolfgang Denk		{ echo "... with lowboot configuration" ; \
333f1ee9825SStefan Roese		}
3344819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
3354819fad9SWolfgang Denk		{ echo "TEXT_BASE = 0xFFF00000" >board/mcc200/config.tmp ; \
3364819fad9SWolfgang Denk		  echo "... with highboot configuration" ; \
3374819fad9SWolfgang Denk		}
3384819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
3394819fad9SWolfgang Denk		{ echo "... with DDR" ; \
3404819fad9SWolfgang Denk		}
3414819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
3424819fad9SWolfgang Denk		{ echo "#define CONFIG_MCC200_SDRAM"	>>include/config.h ; \
3434819fad9SWolfgang Denk		  echo "... with SDRAM" ; \
3444819fad9SWolfgang Denk		}
345*463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
346*463764c8SWolfgang Denk		{ echo "#define CONFIG_CONSOLE_COM12"	>>include/config.h ; \
347*463764c8SWolfgang Denk		  echo "... with console on COM12" ; \
348*463764c8SWolfgang Denk		}
3494819fad9SWolfgang Denk	@./mkconfig -a mcc200 ppc mpc5xxx mcc200
35086ea5f93SWolfgang Denk
351df04a3dfSWolfgang Denko2dnt_config:
35286ea5f93SWolfgang Denk	@./mkconfig o2dnt ppc mpc5xxx o2dnt
353df04a3dfSWolfgang Denk
3545e4b3361SStefan Roesepf5200_config:  unconfig
35586ea5f93SWolfgang Denk	@./mkconfig pf5200  ppc mpc5xxx pf5200 esd
3565e4b3361SStefan Roese
35789394047SwdenkPM520_config \
35889394047SwdenkPM520_DDR_config \
35989394047SwdenkPM520_ROMBOOT_config \
36089394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
36189394047Swdenk	@ >include/config.h
36289394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
36389394047Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
36489394047Swdenk		  echo "... DDR memory revision" ; \
36589394047Swdenk		}
36689394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
36789394047Swdenk		{ echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
36889394047Swdenk		  echo "... booting from 8-bit flash" ; \
36989394047Swdenk		}
37089394047Swdenk	@./mkconfig -a PM520 ppc mpc5xxx pm520
37189394047Swdenk
3726624b687SWolfgang Denksmmaco4_config: unconfig
3736624b687SWolfgang Denk	@./mkconfig -a smmaco4 ppc mpc5xxx tqm5200
3749cdc8386SWolfgang Denk
3759cdc8386SWolfgang Denkspieval_config:	unconfig
3769cdc8386SWolfgang Denk	@./mkconfig -a spieval ppc mpc5xxx tqm5200
3779cdc8386SWolfgang Denk
37845a212c4SWolfgang DenkTB5200_B_config \
379b87dfd28SWolfgang DenkTB5200_config:	unconfig
38045a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
38145a212c4SWolfgang Denk		{ echo "#define CONFIG_TQM5200_B"	>>include/config.h ; \
38245a212c4SWolfgang Denk		  echo "... with MPC5200B processor" ; \
38345a212c4SWolfgang Denk		}
3845078cce8SWolfgang Denk	@./mkconfig -n $@ -a TB5200 ppc mpc5xxx tqm5200
385b87dfd28SWolfgang Denk
386d4ca31c4SwdenkMINI5200_config	\
387d4ca31c4SwdenkEVAL5200_config	\
388d4ca31c4SwdenkTOP5200_config:	unconfig
389d4ca31c4Swdenk	@ echo "#define CONFIG_$(@:_config=) 1"	>include/config.h
3905078cce8SWolfgang Denk	@./mkconfig -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
391d4ca31c4Swdenk
3926c7a1408SwdenkTotal5100_config		\
3936c7a1408SwdenkTotal5200_config		\
3946c7a1408SwdenkTotal5200_lowboot_config	\
3956c7a1408SwdenkTotal5200_Rev2_config		\
3966c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
3976c7a1408Swdenk	@ >include/config.h
3986c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
3996c7a1408Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
4006c7a1408Swdenk		  echo "... with MGT5100 processor" ; \
4016c7a1408Swdenk		}
4026c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
4036c7a1408Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
4046c7a1408Swdenk		  echo "... with MPC5200 processor" ; \
4056c7a1408Swdenk		}
4066c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
4076c7a1408Swdenk		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>include/config.h ; \
4086c7a1408Swdenk		  echo "... revision 1 board" ; \
4096c7a1408Swdenk		}
4106c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
4116c7a1408Swdenk		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>include/config.h ; \
4126c7a1408Swdenk		  echo "... revision 2 board" ; \
4136c7a1408Swdenk		}
4146c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
4156c7a1408Swdenk		{ echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \
4166c7a1408Swdenk		  echo "... with lowboot configuration" ; \
4176c7a1408Swdenk		}
4186c7a1408Swdenk	@./mkconfig -a Total5200 ppc mpc5xxx total5200
4196c7a1408Swdenk
420cd65a3dcSWolfgang DenkTQM5200_config	\
42145a212c4SWolfgang DenkTQM5200_B_config \
422978b1096SWolfgang DenkTQM5200_B_HIGHBOOT_config \
4235078cce8SWolfgang DenkTQM5200S_config \
4245078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
4255078cce8SWolfgang DenkTQM5200_STK100_config \
426135ae006SWolfgang Denkcam5200_config \
42756523f12SwdenkMiniFAP_config:	unconfig
42856523f12Swdenk	@ >include/config.h
42989394047Swdenk	@[ -z "$(findstring MiniFAP,$@)" ] || \
43056523f12Swdenk		{ echo "#define CONFIG_MINIFAP"	>>include/config.h ; \
43189394047Swdenk		  echo "... TQM5200_AC on MiniFAP" ; \
43256523f12Swdenk		}
433135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
434135ae006SWolfgang Denk		{ echo "#define CONFIG_CAM5200"	>>include/config.h ; \
4355078cce8SWolfgang Denk		  echo "#define CONFIG_TQM5200S"	>>include/config.h ; \
4365078cce8SWolfgang Denk		  echo "#define CONFIG_TQM5200_B"	>>include/config.h ; \
437135ae006SWolfgang Denk		  echo "... TQM5200S on Cam5200" ; \
4385078cce8SWolfgang Denk		}
439cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
440cd65a3dcSWolfgang Denk		{ echo "#define CONFIG_STK52XX_REV100"	>>include/config.h ; \
441cd65a3dcSWolfgang Denk		  echo "... on a STK52XX.100 base board" ; \
44256523f12Swdenk		}
4435078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
44445a212c4SWolfgang Denk		{ echo "#define CONFIG_TQM5200_B"	>>include/config.h ; \
4455078cce8SWolfgang Denk		}
4465078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
4475078cce8SWolfgang Denk		{ echo "#define CONFIG_TQM5200S"	>>include/config.h ; \
4485078cce8SWolfgang Denk		  echo "#define CONFIG_TQM5200_B"	>>include/config.h ; \
44945a212c4SWolfgang Denk		}
450978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
451978b1096SWolfgang Denk		{ echo "TEXT_BASE = 0xFFF00000" >board/tqm5200/config.tmp ; \
452978b1096SWolfgang Denk		}
4535078cce8SWolfgang Denk	@./mkconfig -n $@ -a TQM5200 ppc mpc5xxx tqm5200
45456523f12Swdenk
455945af8d7Swdenk#########################################################################
4567ebf7443Swdenk## MPC8xx Systems
4577ebf7443Swdenk#########################################################################
4587ebf7443Swdenk
4592d24a3a7SwdenkAdder_config    \
4602d24a3a7SwdenkAdder87x_config \
46126238132SwdenkAdderII_config  \
4622d24a3a7Swdenk	:		unconfig
46326238132Swdenk	$(if $(findstring AdderII,$@), \
4642d24a3a7Swdenk	@echo "#define CONFIG_MPC852T" > include/config.h)
4652d24a3a7Swdenk	@./mkconfig -a Adder ppc mpc8xx adder
4662d24a3a7Swdenk
467180d3f74SwdenkADS860_config     \
468180d3f74SwdenkFADS823_config    \
469180d3f74SwdenkFADS850SAR_config \
470180d3f74SwdenkMPC86xADS_config  \
4711114257cSwdenkMPC885ADS_config  \
472180d3f74SwdenkFADS860T_config:	unconfig
4737ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx fads
4747ebf7443Swdenk
4757ebf7443SwdenkAMX860_config	:	unconfig
4767ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
4777ebf7443Swdenk
4787ebf7443Swdenkc2mon_config:		unconfig
4797ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx c2mon
4807ebf7443Swdenk
4817ebf7443SwdenkCCM_config:		unconfig
4827ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
4837ebf7443Swdenk
4847ebf7443Swdenkcogent_mpc8xx_config:	unconfig
4857ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx cogent
4867ebf7443Swdenk
4873bac3513SwdenkELPT860_config:		unconfig
4883bac3513Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
4893bac3513Swdenk
49084c960ceSWolfgang DenkEP88x_config:		unconfig
49184c960ceSWolfgang Denk	@./mkconfig $(@:_config=) ppc mpc8xx ep88x
49284c960ceSWolfgang Denk
4937ebf7443SwdenkESTEEM192E_config:	unconfig
4947ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx esteem192e
4957ebf7443Swdenk
4967ebf7443SwdenkETX094_config	:	unconfig
4977ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx etx094
4987ebf7443Swdenk
4997ebf7443SwdenkFLAGADM_config:	unconfig
5007ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx flagadm
5017ebf7443Swdenk
5027aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
5037aa78614Swdenk
5047aa78614SwdenkGEN860T_SC_config	\
5057ebf7443SwdenkGEN860T_config: unconfig
5067aa78614Swdenk	@ >include/config.h
5077aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
5087aa78614Swdenk		{ echo "#define CONFIG_SC" >>include/config.h ; \
5097aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
5107aa78614Swdenk		}
5117aa78614Swdenk	@./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
5127ebf7443Swdenk
5137ebf7443SwdenkGENIETV_config:	unconfig
5147ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx genietv
5157ebf7443Swdenk
5167ebf7443SwdenkGTH_config:	unconfig
5177ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx gth
5187ebf7443Swdenk
5197ebf7443Swdenkhermes_config	:	unconfig
5207ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx hermes
5217ebf7443Swdenk
522c40b2956SwdenkHMI10_config	:	unconfig
523c40b2956Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
524c40b2956Swdenk
5257ebf7443SwdenkIAD210_config: unconfig
5267ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
5277ebf7443Swdenk
5287ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
5297ebf7443Swdenk
5307ebf7443SwdenkICU862_100MHz_config	\
5317ebf7443SwdenkICU862_config: unconfig
5327ebf7443Swdenk	@ >include/config.h
5337ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
5347ebf7443Swdenk		{ echo "#define CONFIG_100MHz"	>>include/config.h ; \
5357ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
5367ebf7443Swdenk		}
5377ebf7443Swdenk	@./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
5387ebf7443Swdenk
5397ebf7443SwdenkIP860_config	:	unconfig
5407ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx ip860
5417ebf7443Swdenk
5427ebf7443SwdenkIVML24_256_config \
5437ebf7443SwdenkIVML24_128_config \
5447ebf7443SwdenkIVML24_config:	unconfig
5457ebf7443Swdenk	@ >include/config.h
5467ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
5477ebf7443Swdenk		 { echo "#define CONFIG_IVML24_16M"	>>include/config.h ; \
5487ebf7443Swdenk		 }
5497ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
5507ebf7443Swdenk		 { echo "#define CONFIG_IVML24_32M"	>>include/config.h ; \
5517ebf7443Swdenk		 }
5527ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
5537ebf7443Swdenk		 { echo "#define CONFIG_IVML24_64M"	>>include/config.h ; \
5547ebf7443Swdenk		 }
5557ebf7443Swdenk	@./mkconfig -a IVML24 ppc mpc8xx ivm
5567ebf7443Swdenk
5577ebf7443SwdenkIVMS8_256_config \
5587ebf7443SwdenkIVMS8_128_config \
5597ebf7443SwdenkIVMS8_config:	unconfig
5607ebf7443Swdenk	@ >include/config.h
5617ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
5627ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_16M"	>>include/config.h ; \
5637ebf7443Swdenk		 }
5647ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
5657ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_32M"	>>include/config.h ; \
5667ebf7443Swdenk		 }
5677ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
5687ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_64M"	>>include/config.h ; \
5697ebf7443Swdenk		 }
5707ebf7443Swdenk	@./mkconfig -a IVMS8 ppc mpc8xx ivm
5717ebf7443Swdenk
57256f94be3SwdenkKUP4K_config	:	unconfig
5730608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4k kup
5740608e04dSwdenk
5750608e04dSwdenkKUP4X_config    :       unconfig
5760608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4x kup
57756f94be3Swdenk
5787ebf7443SwdenkLANTEC_config	:	unconfig
5797ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lantec
5807ebf7443Swdenk
5817ebf7443Swdenklwmon_config:		unconfig
5827ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lwmon
5837ebf7443Swdenk
5847ebf7443SwdenkMBX_config	\
5857ebf7443SwdenkMBX860T_config:	unconfig
5867ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
5877ebf7443Swdenk
5887ebf7443SwdenkMHPC_config:		unconfig
5897ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
5907ebf7443Swdenk
5917ebf7443SwdenkMVS1_config :		unconfig
5927ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mvs1
5937ebf7443Swdenk
594993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
595993cad93Swdenk
596993cad93SwdenkNETVIA_V2_config \
5977ebf7443SwdenkNETVIA_config:		unconfig
598993cad93Swdenk	@ >include/config.h
599993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
600993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
601993cad93Swdenk		  echo "... Version 1" ; \
602993cad93Swdenk		 }
603993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
604993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
605993cad93Swdenk		  echo "... Version 2" ; \
606993cad93Swdenk		 }
607993cad93Swdenk	@./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
6087ebf7443Swdenk
609c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
610c26e454dSwdenk
611c26e454dSwdenkNETPHONE_V2_config \
61204a85b3bSwdenkNETPHONE_config:	unconfig
613c26e454dSwdenk	@ >include/config.h
614c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
615c26e454dSwdenk		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \
616c26e454dSwdenk		 }
617c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
618c26e454dSwdenk		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \
619c26e454dSwdenk		 }
620c26e454dSwdenk	@./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
62104a85b3bSwdenk
62279fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
62304a85b3bSwdenk
62479fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
62579fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
62679fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
62779fa88f3SwdenkNETTA_SWAPHOOK_config \
62879fa88f3SwdenkNETTA_ISDN_6412_config \
62904a85b3bSwdenkNETTA_ISDN_config \
63079fa88f3SwdenkNETTA_6412_config \
63104a85b3bSwdenkNETTA_config:		unconfig
63204a85b3bSwdenk	@ >include/config.h
63379fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
63404a85b3bSwdenk		 { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \
63504a85b3bSwdenk		 }
63679fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
63779fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \
63879fa88f3Swdenk		 }
63979fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
64079fa88f3Swdenk		 { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \
64179fa88f3Swdenk		 }
64279fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
64379fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \
64479fa88f3Swdenk		 }
64579fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
64679fa88f3Swdenk		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \
64779fa88f3Swdenk		 }
64879fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
64979fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \
65079fa88f3Swdenk		 }
65104a85b3bSwdenk	@./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta
65204a85b3bSwdenk
65379fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
65479fa88f3Swdenk
65579fa88f3SwdenkNETTA2_V2_config \
65679fa88f3SwdenkNETTA2_config:		unconfig
65779fa88f3Swdenk	@ >include/config.h
65879fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
65979fa88f3Swdenk		 { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \
66079fa88f3Swdenk		 }
66179fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
66279fa88f3Swdenk		 { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \
66379fa88f3Swdenk		 }
66479fa88f3Swdenk	@./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
66579fa88f3Swdenk
666a367d426Sdzu@denx.deNC650_Rev1_config \
667a367d426Sdzu@denx.deNC650_Rev2_config \
668a367d426Sdzu@denx.deCP850_config:	unconfig
669a367d426Sdzu@denx.de	@ >include/config.h
670a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
671a367d426Sdzu@denx.de		 { echo "#define CONFIG_CP850 1" >>include/config.h ; \
672a367d426Sdzu@denx.de		   echo "#define CONFIG_IDS852_REV2 1" >>include/config.h ; \
673a367d426Sdzu@denx.de		 }
674a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
675a367d426Sdzu@denx.de		 { echo "#define CONFIG_IDS852_REV1 1" >>include/config.h ; \
676a367d426Sdzu@denx.de		 }
677a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
678a367d426Sdzu@denx.de		 { echo "#define CONFIG_IDS852_REV2 1" >>include/config.h ; \
679a367d426Sdzu@denx.de		 }
680a367d426Sdzu@denx.de	@./mkconfig -a NC650 ppc mpc8xx nc650
6817ca202f5Swdenk
6827ebf7443SwdenkNX823_config:		unconfig
6837ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx nx823
6847ebf7443Swdenk
6857ebf7443Swdenkpcu_e_config:		unconfig
6867ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
6877ebf7443Swdenk
6883bbc899fSwdenkQS850_config:	unconfig
6893bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
6903bbc899fSwdenk
6913bbc899fSwdenkQS823_config:	unconfig
6923bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
6933bbc899fSwdenk
6943bbc899fSwdenkQS860T_config:	unconfig
6953bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
6963bbc899fSwdenk
697da93ed81Swdenkquantum_config:	unconfig
698da93ed81Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx quantum
699da93ed81Swdenk
7007ebf7443SwdenkR360MPI_config:	unconfig
7017ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx r360mpi
7027ebf7443Swdenk
703682011ffSwdenkRBC823_config:	unconfig
704682011ffSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rbc823
705682011ffSwdenk
7067ebf7443SwdenkRPXClassic_config:	unconfig
7077ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
7087ebf7443Swdenk
7097ebf7443SwdenkRPXlite_config:		unconfig
7107ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXlite
7117ebf7443Swdenk
712e63c8ee3SwdenkRPXlite_DW_64_config  		\
713e63c8ee3SwdenkRPXlite_DW_LCD_config 		\
714e63c8ee3SwdenkRPXlite_DW_64_LCD_config 	\
715e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
716e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
717e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
718e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
719e63c8ee3SwdenkRPXlite_DW_config:         unconfig
720e63c8ee3Swdenk	@ >include/config.h
721e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
722e63c8ee3Swdenk		{ echo "#define RPXlite_64MHz"		>>include/config.h ; \
723e63c8ee3Swdenk		  echo "... with 64MHz system clock ..."; \
724e63c8ee3Swdenk		}
725e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
726e63c8ee3Swdenk		{ echo "#define CONFIG_LCD"          	>>include/config.h ; \
727e63c8ee3Swdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
728e63c8ee3Swdenk		  echo "... with LCD display ..."; \
729e63c8ee3Swdenk		}
730e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
731e63c8ee3Swdenk		{ echo "#define  CFG_ENV_IS_IN_NVRAM" 	>>include/config.h ; \
732e63c8ee3Swdenk		  echo "... with ENV in NVRAM ..."; \
733e63c8ee3Swdenk		}
734e63c8ee3Swdenk	@./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw
735e63c8ee3Swdenk
73673a8b27cSwdenkrmu_config:	unconfig
73773a8b27cSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rmu
73873a8b27cSwdenk
7397ebf7443SwdenkRRvision_config:	unconfig
7407ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RRvision
7417ebf7443Swdenk
7427ebf7443SwdenkRRvision_LCD_config:	unconfig
7437ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
7447ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
7457ebf7443Swdenk	@./mkconfig -a RRvision ppc mpc8xx RRvision
7467ebf7443Swdenk
7477ebf7443SwdenkSM850_config	:	unconfig
7487ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
7497ebf7443Swdenk
750b02d0177SMarkus Klotzbuecherspc1920_config:
751b02d0177SMarkus Klotzbuecher	@./mkconfig $(@:_config=) ppc mpc8xx spc1920
752b02d0177SMarkus Klotzbuecher
7537ebf7443SwdenkSPD823TS_config:	unconfig
7547ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx spd8xx
7557ebf7443Swdenk
7566bdf4306SWolfgang Denkstxxtc_config:	unconfig
7576bdf4306SWolfgang Denk	@./mkconfig $(@:_config=) ppc mpc8xx stxxtc
7586bdf4306SWolfgang Denk
759dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
760dc7c9a1aSwdenk	@ >include/config.h
761dc7c9a1aSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
762dc7c9a1aSwdenk
7637ebf7443SwdenkSXNI855T_config:	unconfig
7647ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx sixnet
7657ebf7443Swdenk
766db2f721fSwdenk# EMK MPC8xx based modules
767db2f721fSwdenkTOP860_config:		unconfig
768db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx top860 emk
769db2f721fSwdenk
7707ebf7443Swdenk# Play some tricks for configuration selection
771e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
772e9132ea9Swdenk# and only 823 boards may have LCD support
773e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
7747ebf7443Swdenk
7757ebf7443SwdenkFPS850L_config		\
776384ae025SwdenkFPS860L_config		\
777f12e568cSwdenkNSCU_config		\
7787ebf7443SwdenkTQM823L_config		\
7797ebf7443SwdenkTQM823L_LCD_config	\
7807ebf7443SwdenkTQM850L_config		\
7817ebf7443SwdenkTQM855L_config		\
7827ebf7443SwdenkTQM860L_config		\
783d126bfbdSwdenkTQM862L_config		\
784ae3af05eSwdenkTQM823M_config		\
785ae3af05eSwdenkTQM850M_config		\
786f12e568cSwdenkTQM855M_config		\
787f12e568cSwdenkTQM860M_config		\
788f12e568cSwdenkTQM862M_config		\
7898cba090cSWolfgang DenkTQM866M_config		\
790090eb735SMarkus KlotzbuecherTQM885D_config		\
7918cba090cSWolfgang Denkvirtlab2_config:	unconfig
7927ebf7443Swdenk	@ >include/config.h
7937ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
7947ebf7443Swdenk		{ echo "#define CONFIG_LCD"		>>include/config.h ; \
795fd3103bbSwdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
7967ebf7443Swdenk		  echo "... with LCD display" ; \
7977ebf7443Swdenk		}
7987ebf7443Swdenk	@./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
7997ebf7443Swdenk
8007ebf7443SwdenkTTTech_config:	unconfig
8017ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
8027ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
8037ebf7443Swdenk	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
8047ebf7443Swdenk
805ec0aee7bSwdenkuc100_config	:	unconfig
806f7d1572bSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx uc100
807f7d1572bSwdenk
808608c9146Swdenkv37_config:	unconfig
809608c9146Swdenk	@echo "#define CONFIG_LCD" >include/config.h
810608c9146Swdenk	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
811608c9146Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx v37
812608c9146Swdenk
81391e940d9Sdzuwtk_config:	unconfig
81491e940d9Sdzu	@echo "#define CONFIG_LCD" >include/config.h
81591e940d9Sdzu	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
81691e940d9Sdzu	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
81791e940d9Sdzu
8187ebf7443Swdenk#########################################################################
8197ebf7443Swdenk## PPC4xx Systems
8207ebf7443Swdenk#########################################################################
821e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
8227ebf7443Swdenk
8237ebf7443SwdenkADCIOP_config:	unconfig
8247ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx adciop esd
8257ebf7443Swdenk
8267521af1cSWolfgang DenkAP1000_config:unconfig
8277521af1cSWolfgang Denk	@./mkconfig $(@:_config=) ppc ppc4xx ap1000 amirix
8287521af1cSWolfgang Denk
829c419d1d6SstroeseAPC405_config:	unconfig
830c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx apc405 esd
831c419d1d6Sstroese
8327ebf7443SwdenkAR405_config:	unconfig
8337ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
8347ebf7443Swdenk
835549826eaSstroeseASH405_config:	unconfig
836549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
837549826eaSstroese
8388a316c9bSStefan Roesebamboo_config:	unconfig
8398a316c9bSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx bamboo amcc
8408a316c9bSStefan Roese
8418a316c9bSStefan Roesebubinga_config:	unconfig
8428a316c9bSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx bubinga amcc
843549826eaSstroese
8447ebf7443SwdenkCANBT_config:	unconfig
8457ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx canbt esd
8467ebf7443Swdenk
8471d6f9720SwdenkCATcenter_config	\
8481d6f9720SwdenkCATcenter_25_config	\
8491d6f9720SwdenkCATcenter_33_config:	unconfig
85010767ccbSwdenk	@ echo "/* CATcenter uses PPChameleon Model ME */"  > include/config.h
85110767ccbSwdenk	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h
8521d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
8531d6f9720Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
8541d6f9720Swdenk		  echo "SysClk = 25MHz" ; \
8551d6f9720Swdenk		}
8561d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
8571d6f9720Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
8581d6f9720Swdenk		  echo "SysClk = 33MHz" ; \
8591d6f9720Swdenk		}
86010767ccbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
86110767ccbSwdenk
8627644f16fSStefan RoeseCPCI2DP_config:	unconfig
8637644f16fSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx cpci2dp esd
8647644f16fSStefan Roese
8657ebf7443SwdenkCPCI405_config	\
866549826eaSstroeseCPCI4052_config	\
867c419d1d6SstroeseCPCI405DT_config	\
868549826eaSstroeseCPCI405AB_config:	unconfig
8697ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
8707ebf7443Swdenk	@echo "BOARD_REVISION = $(@:_config=)"	>>include/config.mk
8717ebf7443Swdenk
8727ebf7443SwdenkCPCI440_config:	unconfig
8737ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
8747ebf7443Swdenk
8757ebf7443SwdenkCPCIISER4_config:	unconfig
8767ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
8777ebf7443Swdenk
8787ebf7443SwdenkCRAYL1_config:	unconfig
8797ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx L1 cray
8807ebf7443Swdenk
881cd0a9de6Swdenkcsb272_config:	unconfig
882cd0a9de6Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb272
883cd0a9de6Swdenk
884aa245090Swdenkcsb472_config:	unconfig
885aa245090Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb472
886aa245090Swdenk
8877ebf7443SwdenkDASA_SIM_config: unconfig
8887ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
8897ebf7443Swdenk
89072cd5aa7SstroeseDP405_config:	unconfig
89172cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
89272cd5aa7Sstroese
8937ebf7443SwdenkDU405_config:	unconfig
8947ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx du405 esd
8957ebf7443Swdenk
8968a316c9bSStefan Roeseebony_config:	unconfig
8978a316c9bSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx ebony amcc
8987ebf7443Swdenk
8997ebf7443SwdenkERIC_config:	unconfig
9007ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx eric
9017ebf7443Swdenk
902d1cbe85bSwdenkEXBITGEN_config:	unconfig
903d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx exbitgen
904d1cbe85bSwdenk
905c419d1d6SstroeseG2000_config:	unconfig
906c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx g2000
907c419d1d6Sstroese
908c419d1d6SstroeseHH405_config:	unconfig
909c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx hh405 esd
910c419d1d6Sstroese
91172cd5aa7SstroeseHUB405_config:	unconfig
91272cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
91372cd5aa7Sstroese
914db01a2eaSwdenkJSE_config:	unconfig
915db01a2eaSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx jse
916db01a2eaSwdenk
917b79316f2SStefan RoeseKAREF_config: unconfig
918b79316f2SStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx karef sandburst
919b79316f2SStefan Roese
9206e7fb6eaSStefan Roeseluan_config:	unconfig
9216e7fb6eaSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx luan amcc
9226e7fb6eaSStefan Roese
923b79316f2SStefan RoeseMETROBOX_config: unconfig
924b79316f2SStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx metrobox sandburst
925b79316f2SStefan Roese
9267ebf7443SwdenkMIP405_config:	unconfig
9277ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
9287ebf7443Swdenk
929f3e0de60SwdenkMIP405T_config:	unconfig
930f3e0de60Swdenk	@echo "#define CONFIG_MIP405T" >include/config.h
931f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
932f3e0de60Swdenk	@./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
933f3e0de60Swdenk
9347ebf7443SwdenkML2_config:	unconfig
9357ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml2
9367ebf7443Swdenk
937028ab6b5Swdenkml300_config:	unconfig
938028ab6b5Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
939028ab6b5Swdenk
9408a316c9bSStefan Roeseocotea_config:	unconfig
9418a316c9bSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx ocotea amcc
9420e6d798cSwdenk
9437ebf7443SwdenkOCRTC_config		\
9447ebf7443SwdenkORSG_config:	unconfig
9457ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
9467ebf7443Swdenk
9475568e613SStefan Roesep3p440_config:	unconfig
9485568e613SStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx p3p440 prodrive
9495568e613SStefan Roese
9507ebf7443SwdenkPCI405_config:	unconfig
9517ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
9527ebf7443Swdenk
953a4c8d138SStefan Roesepcs440ep_config:	unconfig
954a4c8d138SStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx pcs440ep
955a4c8d138SStefan Roese
9567ebf7443SwdenkPIP405_config:	unconfig
9577ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
9587ebf7443Swdenk
95972cd5aa7SstroesePLU405_config:	unconfig
96072cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
96172cd5aa7Sstroese
962549826eaSstroesePMC405_config:	unconfig
963549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
964549826eaSstroese
965281e00a3SwdenkPPChameleonEVB_config		\
966e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
967e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
968e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
969e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
970e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
971e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
972fbe4b5cbSwdenk	@ >include/config.h
9731d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
974fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
975fbe4b5cbSwdenk		  echo "... BASIC model" ; \
976fbe4b5cbSwdenk		}
9771d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
978fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
979fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
980fbe4b5cbSwdenk		}
9811d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
982fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
983fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
984fbe4b5cbSwdenk		}
985e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
986e55ca7e2Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
987e55ca7e2Swdenk		  echo "SysClk = 25MHz" ; \
988e55ca7e2Swdenk		}
989e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
990e55ca7e2Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
991e55ca7e2Swdenk		  echo "SysClk = 33MHz" ; \
992e55ca7e2Swdenk		}
993fbe4b5cbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
99412f34241Swdenk
995652a10c0Swdenksbc405_config:	unconfig
996652a10c0Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx sbc405
997652a10c0Swdenk
9988a316c9bSStefan Roesesycamore_config:	unconfig
9998a316c9bSStefan Roese	@echo "Configuring for sycamore board as subset of walnut..."
10008a316c9bSStefan Roese	@./mkconfig -a walnut ppc ppc4xx walnut amcc
10018a316c9bSStefan Roese
100272cd5aa7SstroeseVOH405_config:	unconfig
100372cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
100472cd5aa7Sstroese
1005c419d1d6SstroeseVOM405_config:	unconfig
1006c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx vom405 esd
1007c419d1d6Sstroese
1008feaedfcfSStefan RoeseCMS700_config:	unconfig
1009feaedfcfSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx cms700 esd
1010feaedfcfSStefan Roese
10117ebf7443SwdenkW7OLMC_config	\
10127ebf7443SwdenkW7OLMG_config: unconfig
10137ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx w7o
10147ebf7443Swdenk
10158a316c9bSStefan Roesewalnut_config: unconfig
10168a316c9bSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx walnut amcc
10177ebf7443Swdenk
1018c419d1d6SstroeseWUH405_config:	unconfig
1019c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx wuh405 esd
1020c419d1d6Sstroese
1021ba56f625SwdenkXPEDITE1K_config:	unconfig
1022ba56f625Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
1023ba56f625Swdenk
10248a316c9bSStefan Roeseyosemite_config:	unconfig
10258a316c9bSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx yosemite amcc
10268a316c9bSStefan Roese
10278a316c9bSStefan Roeseyellowstone_config:	unconfig
10288a316c9bSStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx yellowstone amcc
10298a316c9bSStefan Roese
10306c5879f3SMarian Balakowiczyucca_config:	unconfig
10316c5879f3SMarian Balakowicz	@./mkconfig $(@:_config=) ppc ppc4xx yucca amcc
10326c5879f3SMarian Balakowicz
10337ebf7443Swdenk#########################################################################
1034983fda83Swdenk## MPC8220 Systems
1035983fda83Swdenk#########################################################################
1036dc17fb6dSWolfgang Denk
1037dc17fb6dSWolfgang DenkAlaska8220_config	\
1038dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1039983fda83Swdenk	@./mkconfig $(@:_config=) ppc mpc8220 alaska
1040983fda83Swdenk
104112b43d51Swdenksorcery_config:		unconfig
104212b43d51Swdenk	@./mkconfig $(@:_config=) ppc mpc8220 sorcery
104312b43d51Swdenk
1044983fda83Swdenk#########################################################################
10457ebf7443Swdenk## MPC824x Systems
10467ebf7443Swdenk#########################################################################
1047efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
10483bac3513Swdenk
10490332990bSwdenkA3000_config: unconfig
10500332990bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x a3000
10510332990bSwdenk
10528e6f1a8eSWolfgang Denkbarco_config: unconfig
10538e6f1a8eSWolfgang Denk	@./mkconfig $(@:_config=) ppc mpc824x barco
10548e6f1a8eSWolfgang Denk
10557ebf7443SwdenkBMW_config: unconfig
10567ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x bmw
10577ebf7443Swdenk
10583bac3513SwdenkCPC45_config	\
10593bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
10603bac3513Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
10613bac3513Swdenk	@cd ./include ;				\
10623bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
10633bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
10643bac3513Swdenk		echo "... booting from 8-bit flash" ; \
10653bac3513Swdenk	else \
10663bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
10673bac3513Swdenk		echo "... booting from 64-bit flash" ; \
10683bac3513Swdenk	fi; \
10693bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
10703bac3513Swdenk
10717ebf7443SwdenkCU824_config: unconfig
10727ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x cu824
10737ebf7443Swdenk
10747abf0c58Swdenkdebris_config: unconfig
10757abf0c58Swdenk	@./mkconfig $(@:_config=) ppc mpc824x debris etin
10767abf0c58Swdenk
107780885a9dSwdenkeXalion_config: unconfig
107880885a9dSwdenk	@./mkconfig $(@:_config=) ppc mpc824x eXalion
107980885a9dSwdenk
1080756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1081756f586aSwdenk	@./mkconfig $(@:_config=) ppc mpc824x hidden_dragon
1082756f586aSwdenk
108353dd6ce4SWolfgang Denkkvme080_config: unconfig
108453dd6ce4SWolfgang Denk	@./mkconfig $(@:_config=) ppc mpc824x kvme080 etin
108553dd6ce4SWolfgang Denk
10867ebf7443SwdenkMOUSSE_config: unconfig
10877ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mousse
10887ebf7443Swdenk
10897ebf7443SwdenkMUSENKI_config: unconfig
10907ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x musenki
10917ebf7443Swdenk
1092b4676a25SwdenkMVBLUE_config:	unconfig
1093b4676a25Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mvblue
1094b4676a25Swdenk
10957ebf7443SwdenkOXC_config: unconfig
10967ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x oxc
10977ebf7443Swdenk
10987ebf7443SwdenkPN62_config: unconfig
10997ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x pn62
11007ebf7443Swdenk
11017ebf7443SwdenkSandpoint8240_config: unconfig
11027ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
11037ebf7443Swdenk
11047ebf7443SwdenkSandpoint8245_config: unconfig
11057ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
11067ebf7443Swdenk
1107466b7410Swdenksbc8240_config: unconfig
1108466b7410Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sbc8240
1109466b7410Swdenk
1110d1cbe85bSwdenkSL8245_config: unconfig
1111d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x sl8245
1112d1cbe85bSwdenk
11137ebf7443Swdenkutx8245_config: unconfig
11147ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x utx8245
11157ebf7443Swdenk
11167ebf7443Swdenk#########################################################################
11177ebf7443Swdenk## MPC8260 Systems
11187ebf7443Swdenk#########################################################################
11197ebf7443Swdenk
112054387ac9Swdenkatc_config:	unconfig
112154387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 atc
112254387ac9Swdenk
11237ebf7443Swdenkcogent_mpc8260_config:	unconfig
11247ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 cogent
11257ebf7443Swdenk
11267ebf7443SwdenkCPU86_config	\
11277ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
11287ebf7443Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
11297ebf7443Swdenk	@cd ./include ;				\
11307ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
11317ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
11327ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
11337ebf7443Swdenk	else \
11347ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
11357ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
11367ebf7443Swdenk	fi; \
11377ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
11387ebf7443Swdenk
1139384cc687SwdenkCPU87_config	\
1140384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1141384cc687Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu87
1142384cc687Swdenk	@cd ./include ;				\
1143384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1144384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1145384cc687Swdenk		echo "... booting from 8-bit flash" ; \
1146384cc687Swdenk	else \
1147384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1148384cc687Swdenk		echo "... booting from 64-bit flash" ; \
1149384cc687Swdenk	fi; \
1150384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1151384cc687Swdenk
1152f901a83bSWolfgang Denkep8248_config	\
1153f901a83bSWolfgang Denkep8248E_config	:	unconfig
1154f901a83bSWolfgang Denk	@./mkconfig ep8248 ppc mpc8260 ep8248
1155f901a83bSWolfgang Denk
11567ebf7443Swdenkep8260_config:	unconfig
11577ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ep8260
11587ebf7443Swdenk
11597ebf7443Swdenkgw8260_config:	unconfig
11607ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 gw8260
11617ebf7443Swdenk
11627ebf7443Swdenkhymod_config:	unconfig
11637ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 hymod
11647ebf7443Swdenk
11659dd41a7bSwdenkIDS8247_config:	unconfig
11669dd41a7bSwdenk	@./mkconfig $(@:_config=) ppc mpc8260 ids8247
11679dd41a7bSwdenk
11687ebf7443SwdenkIPHASE4539_config:	unconfig
11697ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 iphase4539
11707ebf7443Swdenk
1171c3c7f861SwdenkISPAN_config		\
1172c3c7f861SwdenkISPAN_REVB_config:	unconfig
1173c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1174c3c7f861Swdenk		echo "#define CFG_REV_B" > include/config.h ; \
1175c3c7f861Swdenk	fi
1176c3c7f861Swdenk	@./mkconfig -a ISPAN ppc mpc8260 ispan
1177c3c7f861Swdenk
117804a85b3bSwdenkMPC8260ADS_config	\
1179901787d6SwdenkMPC8260ADS_lowboot_config	\
118004a85b3bSwdenkMPC8260ADS_33MHz_config	\
1181901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
118204a85b3bSwdenkMPC8260ADS_40MHz_config	\
1183901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
118404a85b3bSwdenkMPC8272ADS_config	\
1185901787d6SwdenkMPC8272ADS_lowboot_config	\
118604a85b3bSwdenkPQ2FADS_config		\
1187901787d6SwdenkPQ2FADS_lowboot_config		\
118804a85b3bSwdenkPQ2FADS-VR_config	\
1189901787d6SwdenkPQ2FADS-VR_lowboot_config	\
119004a85b3bSwdenkPQ2FADS-ZU_config	\
1191901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
119204a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1193901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
119404a85b3bSwdenk	:		unconfig
119504a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
119604a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
119704a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
119804a85b3bSwdenk	$(if $(findstring MHz,$@), \
119904a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
120004a85b3bSwdenk	$(if $(findstring VR,$@), \
120104a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
1202901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1203901787d6Swdenk		{ echo "TEXT_BASE = 0xFF800000" >board/mpc8260ads/config.tmp ; \
1204901787d6Swdenk		  echo "... with lowboot configuration" ; \
1205901787d6Swdenk		}
120604a85b3bSwdenk	@./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
12077ebf7443Swdenk
1208db2f721fSwdenkMPC8266ADS_config:	unconfig
1209db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
1210db2f721fSwdenk
1211efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
121210f67017SwdenkPM825_config	\
1213efa329cbSwdenkPM825_ROMBOOT_config	\
1214efa329cbSwdenkPM825_BIGFLASH_config	\
1215efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
12167ebf7443SwdenkPM826_config	\
1217efa329cbSwdenkPM826_ROMBOOT_config	\
1218efa329cbSwdenkPM826_BIGFLASH_config	\
1219efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1220efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1221efa329cbSwdenk		echo "#define CONFIG_PCI"	>include/config.h ; \
12227ebf7443Swdenk	else \
1223efa329cbSwdenk		>include/config.h ; \
1224efa329cbSwdenk	fi
1225efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1226efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1227efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1228efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1229efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1230efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1231efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
12327ebf7443Swdenk		fi; \
1233efa329cbSwdenk	else \
1234efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
1235efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1236efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1237efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
1238efa329cbSwdenk			echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
1239efa329cbSwdenk		else \
1240efa329cbSwdenk			echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
1241efa329cbSwdenk		fi; \
1242efa329cbSwdenk	fi
1243efa329cbSwdenk	@./mkconfig -a PM826 ppc mpc8260 pm826
1244efa329cbSwdenk
1245efa329cbSwdenkPM828_config	\
1246efa329cbSwdenkPM828_PCI_config	\
1247efa329cbSwdenkPM828_ROMBOOT_config	\
1248efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
124917076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1250efa329cbSwdenk		echo "#define CONFIG_PCI"  >>include/config.h ; \
1251efa329cbSwdenk		echo "... with PCI enabled" ; \
1252efa329cbSwdenk	else \
1253efa329cbSwdenk		>include/config.h ; \
1254efa329cbSwdenk	fi
1255efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1256efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1257efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1258efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1259efa329cbSwdenk	fi
1260efa329cbSwdenk	@./mkconfig -a PM828 ppc mpc8260 pm828
12617ebf7443Swdenk
12627ebf7443Swdenkppmc8260_config:	unconfig
12637ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
12647ebf7443Swdenk
12658b0bfc68SwdenkRattler8248_config	\
12668b0bfc68SwdenkRattler_config:		unconfig
12678b0bfc68Swdenk	$(if $(findstring 8248,$@), \
12688b0bfc68Swdenk	@echo "#define CONFIG_MPC8248" > include/config.h)
12698b0bfc68Swdenk	@./mkconfig -a Rattler ppc mpc8260 rattler
12708b0bfc68Swdenk
12717ebf7443SwdenkRPXsuper_config:	unconfig
12727ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
12737ebf7443Swdenk
12747ebf7443Swdenkrsdproto_config:	unconfig
12757ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rsdproto
12767ebf7443Swdenk
12777ebf7443Swdenksacsng_config:	unconfig
12787ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sacsng
12797ebf7443Swdenk
12807ebf7443Swdenksbc8260_config:	unconfig
12817ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sbc8260
12827ebf7443Swdenk
12837ebf7443SwdenkSCM_config:		unconfig
12847ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
12857ebf7443Swdenk
128627b207fdSwdenkTQM8255_AA_config \
128727b207fdSwdenkTQM8260_AA_config \
128827b207fdSwdenkTQM8260_AB_config \
128927b207fdSwdenkTQM8260_AC_config \
129027b207fdSwdenkTQM8260_AD_config \
129127b207fdSwdenkTQM8260_AE_config \
129227b207fdSwdenkTQM8260_AF_config \
129327b207fdSwdenkTQM8260_AG_config \
129427b207fdSwdenkTQM8260_AH_config \
12951f62bc2dSWolfgang DenkTQM8260_AI_config \
129627b207fdSwdenkTQM8265_AA_config:  unconfig
129727b207fdSwdenk	@case "$@" in \
129827b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
129927b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
130027b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
130127b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
130227b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
130327b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
130427b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
130527b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
130627b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
13071f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
130827b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
130927b207fdSwdenk	esac; \
131027b207fdSwdenk	>include/config.h ; \
131127b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
131227b207fdSwdenk		echo "#define CONFIG_$${CTYPE}"	>>include/config.h ; \
131327b207fdSwdenk	fi; \
131427b207fdSwdenk	echo "#define CONFIG_$${CFREQ}MHz"	>>include/config.h ; \
131527b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
131627b207fdSwdenk	if [ "$${CACHE}" == "yes" ] ; then \
13177ebf7443Swdenk		echo "#define CONFIG_L2_CACHE"	>>include/config.h ; \
131827b207fdSwdenk		echo "... with L2 Cache support" ; \
13197ebf7443Swdenk	else \
13207ebf7443Swdenk		echo "#undef CONFIG_L2_CACHE"	>>include/config.h ; \
13217ebf7443Swdenk		echo "... without L2 Cache support" ; \
132227b207fdSwdenk	fi; \
132327b207fdSwdenk	if [ "$${BMODE}" == "60x" ] ; then \
132427b207fdSwdenk		echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
132527b207fdSwdenk		echo "... with 60x Bus Mode" ; \
132627b207fdSwdenk	else \
132727b207fdSwdenk		echo "#undef CONFIG_BUSMODE_60x"  >>include/config.h ; \
132827b207fdSwdenk		echo "... without 60x Bus Mode" ; \
13297ebf7443Swdenk	fi
13304532cb69Swdenk	@./mkconfig -a TQM8260 ppc mpc8260 tqm8260
13317ebf7443Swdenk
1332ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1333ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1334ba91e26aSwdenk	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > include/config.h
1335ba91e26aSwdenk	@./mkconfig -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1336ba91e26aSwdenk
133754387ac9SwdenkZPC1900_config: unconfig
133854387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 zpc1900
13397aa78614Swdenk
13404e5ca3ebSwdenk#########################################################################
13414e5ca3ebSwdenk## Coldfire
13424e5ca3ebSwdenk#########################################################################
13434e5ca3ebSwdenk
13447481266eSWolfgang Denkcobra5272_config :		unconfig
13457481266eSWolfgang Denk	@./mkconfig $(@:_config=) m68k mcf52x2 cobra5272
13467481266eSWolfgang Denk
13474176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
13484176c799SWolfgang Denk	@ >include/config.h
13494176c799SWolfgang Denk	@echo "TEXT_BASE = 0xFFE00000"|tee board/BuS/EB+MCF-EV123/textbase.mk
13504176c799SWolfgang Denk	@./mkconfig EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
13514176c799SWolfgang Denk
13524176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
13534176c799SWolfgang Denk	@ >include/config.h
13544176c799SWolfgang Denk	@echo "TEXT_BASE = 0xF0000000"|tee board/BuS/EB+MCF-EV123/textbase.mk
13554176c799SWolfgang Denk	@./mkconfig EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
13564176c799SWolfgang Denk
13574176c799SWolfgang DenkM5271EVB_config :		unconfig
13584176c799SWolfgang Denk	@./mkconfig $(@:_config=) m68k mcf52x2 m5271evb
13594176c799SWolfgang Denk
13604e5ca3ebSwdenkM5272C3_config :		unconfig
1361bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
13624e5ca3ebSwdenk
13634e5ca3ebSwdenkM5282EVB_config :		unconfig
1364bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
13654e5ca3ebSwdenk
1366c419d1d6SstroeseTASREG_config :		unconfig
1367c419d1d6Sstroese	@./mkconfig $(@:_config=) m68k mcf52x2 tasreg esd
1368c419d1d6Sstroese
13693a108ed8SZachary P. Landaur5200_config :		unconfig
13703a108ed8SZachary P. Landau	@./mkconfig $(@:_config=) m68k mcf52x2 r5200
13713a108ed8SZachary P. Landau
13727ebf7443Swdenk#########################################################################
1373f046ccd1SEran Liberty## MPC83xx Systems
1374f046ccd1SEran Liberty#########################################################################
1375f046ccd1SEran Liberty
1376f046ccd1SEran LibertyMPC8349ADS_config:	unconfig
1377f046ccd1SEran Liberty	@./mkconfig $(@:_config=) ppc mpc83xx mpc8349ads
1378f046ccd1SEran Liberty
1379e6f2e902SMarian BalakowiczTQM834x_config:	unconfig
1380e6f2e902SMarian Balakowicz	@./mkconfig $(@:_config=) ppc mpc83xx tqm834x
1381e6f2e902SMarian Balakowicz
1382991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
1383991425feSMarian Balakowicz	@./mkconfig $(@:_config=) ppc mpc83xx mpc8349emds
1384991425feSMarian Balakowicz
1385f046ccd1SEran Liberty#########################################################################
138642d1f039Swdenk## MPC85xx Systems
138742d1f039Swdenk#########################################################################
138842d1f039Swdenk
138942d1f039SwdenkMPC8540ADS_config:	unconfig
139042d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
139142d1f039Swdenk
1392b0e32949SLunsheng WangMPC8540EVAL_config \
1393b0e32949SLunsheng WangMPC8540EVAL_33_config \
1394b0e32949SLunsheng WangMPC8540EVAL_66_config \
1395b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
1396b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:      unconfig
1397b0e32949SLunsheng Wang	@echo "" >include/config.h ; \
1398b0e32949SLunsheng Wang	if [ "$(findstring _33_,$@)" ] ; then \
1399b0e32949SLunsheng Wang		echo -n "... 33 MHz PCI" ; \
1400b0e32949SLunsheng Wang	else \
1401b0e32949SLunsheng Wang		echo "#define CONFIG_SYSCLK_66M" >>include/config.h ; \
1402b0e32949SLunsheng Wang		echo -n "... 66 MHz PCI" ; \
1403b0e32949SLunsheng Wang	fi ; \
1404b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
1405b0e32949SLunsheng Wang		echo "#define CONFIG_PCI_SLAVE" >>include/config.h ; \
1406b0e32949SLunsheng Wang		echo " slave" ; \
1407b0e32949SLunsheng Wang	else \
1408b0e32949SLunsheng Wang		echo " host" ; \
1409b0e32949SLunsheng Wang	fi
1410b0e32949SLunsheng Wang	@./mkconfig -a MPC8540EVAL ppc mpc85xx mpc8540eval
1411b0e32949SLunsheng Wang
141242d1f039SwdenkMPC8560ADS_config:	unconfig
141342d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
141442d1f039Swdenk
141503f5c550SwdenkMPC8541CDS_config:	unconfig
141603f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds
141703f5c550Swdenk
1418d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
1419d9b94f28SJon Loeliger	@./mkconfig $(@:_config=) ppc mpc85xx mpc8548cds cds
1420d9b94f28SJon Loeliger
142103f5c550SwdenkMPC8555CDS_config:	unconfig
142203f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds
14237abf0c58Swdenk
1424384cc687SwdenkPM854_config:	unconfig
1425384cc687Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx pm854
1426384cc687Swdenk
1427b20d0032SWolfgang DenkPM856_config:	unconfig
1428b20d0032SWolfgang Denk	@./mkconfig $(@:_config=) ppc mpc85xx pm856
1429b20d0032SWolfgang Denk
1430c15f3120Swdenksbc8540_config \
1431c15f3120Swdenksbc8540_33_config \
1432c15f3120Swdenksbc8540_66_config:	unconfig
1433c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
1434c15f3120Swdenk		echo "#define CONFIG_PCI_66"	>>include/config.h ; \
1435c15f3120Swdenk		echo "... 66 MHz PCI" ; \
1436c15f3120Swdenk	else \
1437c15f3120Swdenk		>include/config.h ; \
1438c15f3120Swdenk		echo "... 33 MHz PCI" ; \
1439c15f3120Swdenk	fi
1440c15f3120Swdenk	@./mkconfig -a SBC8540 ppc mpc85xx sbc8560
1441c15f3120Swdenk
1442466b7410Swdenksbc8560_config \
1443466b7410Swdenksbc8560_33_config \
1444466b7410Swdenksbc8560_66_config:      unconfig
14458b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
14468b07a110Swdenk		echo "#define CONFIG_PCI_66"	>>include/config.h ; \
14478b07a110Swdenk		echo "... 66 MHz PCI" ; \
14488b07a110Swdenk	else \
14498b07a110Swdenk		>include/config.h ; \
14508b07a110Swdenk		echo "... 33 MHz PCI" ; \
14518b07a110Swdenk	fi
1452466b7410Swdenk	@./mkconfig -a sbc8560 ppc mpc85xx sbc8560
14538b07a110Swdenk
145403f5c550Swdenkstxgp3_config:		unconfig
145503f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx stxgp3
145603f5c550Swdenk
1457d96f41e0SStefan RoeseTQM8540_config		\
1458d96f41e0SStefan RoeseTQM8541_config		\
1459d96f41e0SStefan RoeseTQM8555_config		\
1460f5c5ef4aSwdenkTQM8560_config:		unconfig
1461a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
1462d96f41e0SStefan Roese	>include/config.h ; \
1463d96f41e0SStefan Roese	echo "... TQM"$${CTYPE}; \
1464d96f41e0SStefan Roese	echo "#define CONFIG_MPC$${CTYPE}">>include/config.h; \
1465d96f41e0SStefan Roese	echo "#define CONFIG_TQM$${CTYPE}">>include/config.h; \
1466d96f41e0SStefan Roese	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>include/config.h; \
1467d96f41e0SStefan Roese	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>include/config.h; \
1468d96f41e0SStefan Roese	echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>include/config.h
1469d96f41e0SStefan Roese	@./mkconfig -a TQM85xx ppc mpc85xx tqm85xx
1470f5c5ef4aSwdenk
147142d1f039Swdenk#########################################################################
14727ebf7443Swdenk## 74xx/7xx Systems
14737ebf7443Swdenk#########################################################################
14747ebf7443Swdenk
1475c7de829cSwdenkAmigaOneG3SE_config:	unconfig
1476c7de829cSwdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1477c7de829cSwdenk
147815647dc7SwdenkBAB7xx_config: unconfig
147915647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
148015647dc7Swdenk
1481c419d1d6SstroeseCPCI750_config:        unconfig
1482c419d1d6Sstroese	@./mkconfig CPCI750 ppc 74xx_7xx cpci750 esd
1483c419d1d6Sstroese
14843a473b2aSwdenkDB64360_config:  unconfig
14853a473b2aSwdenk	@./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
14863a473b2aSwdenk
14873a473b2aSwdenkDB64460_config:  unconfig
14883a473b2aSwdenk	@./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
14893a473b2aSwdenk
149015647dc7SwdenkELPPC_config: unconfig
149115647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
149215647dc7Swdenk
14937ebf7443SwdenkEVB64260_config	\
14947ebf7443SwdenkEVB64260_750CX_config:	unconfig
14957ebf7443Swdenk	@./mkconfig EVB64260 ppc 74xx_7xx evb64260
14967ebf7443Swdenk
149715647dc7SwdenkP3G4_config: unconfig
14987ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
14997ebf7443Swdenk
15007ebf7443SwdenkPCIPPC2_config \
15017ebf7443SwdenkPCIPPC6_config: unconfig
15027ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
15037ebf7443Swdenk
150415647dc7SwdenkZUMA_config:	unconfig
150512f34241Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
150612f34241Swdenk
1507f5e0d039SHeiko Schocherppmc7xx_config: unconfig
1508f5e0d039SHeiko Schocher	@./mkconfig $(@:_config=) ppc 74xx_7xx ppmc7xx
1509f5e0d039SHeiko Schocher
15107ebf7443Swdenk#========================================================================
15117ebf7443Swdenk# ARM
15127ebf7443Swdenk#========================================================================
15137ebf7443Swdenk#########################################################################
15147ebf7443Swdenk## StrongARM Systems
15157ebf7443Swdenk#########################################################################
15167ebf7443Swdenk
1517ea66bc88Swdenkassabet_config	:	unconfig
1518ea66bc88Swdenk	@./mkconfig $(@:_config=) arm sa1100 assabet
1519ea66bc88Swdenk
15207ebf7443Swdenkdnp1110_config	:	unconfig
15217ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 dnp1110
15227ebf7443Swdenk
1523855a496fSwdenkgcplus_config	:	unconfig
1524855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 gcplus
1525855a496fSwdenk
1526855a496fSwdenklart_config	:	unconfig
1527855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 lart
1528855a496fSwdenk
15297ebf7443Swdenkshannon_config	:	unconfig
15307ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 shannon
15317ebf7443Swdenk
15327ebf7443Swdenk#########################################################################
15332e5983d2Swdenk## ARM92xT Systems
15347ebf7443Swdenk#########################################################################
15357ebf7443Swdenk
1536b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
153743d9616cSwdenk
15383ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
153963e73c9aSwdenk
1540a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1541a56bd922Swdenk
1542a85f9f21Swdenkat91rm9200dk_config	:	unconfig
1543a85f9f21Swdenk	@./mkconfig $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1544a85f9f21Swdenk
1545a85f9f21Swdenkcmc_pu2_config	:	unconfig
1546a85f9f21Swdenk	@./mkconfig $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1547a85f9f21Swdenk
1548645da510SWolfgang Denkcsb637_config	:	unconfig
1549645da510SWolfgang Denk	@./mkconfig $(@:_config=) arm arm920t csb637 NULL at91rm9200
1550645da510SWolfgang Denk
15510e4018d2SWolfgang Denkmp2usb_config	:	unconfig
15520e4018d2SWolfgang Denk	@./mkconfig $(@:_config=) arm arm920t mp2usb NULL at91rm9200
15530e4018d2SWolfgang Denk
155487cb6862SWolfgang Denk
155574f4304eSWolfgang Denk########################################################################
155687cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
155787cb6862SWolfgang Denkintegratorap_config	\
155887cb6862SWolfgang Denkap_config		\
155987cb6862SWolfgang Denkap966_config		\
156087cb6862SWolfgang Denkap922_config		\
156187cb6862SWolfgang Denkap922_XA10_config	\
156287cb6862SWolfgang Denkap7_config		\
156387cb6862SWolfgang Denkap720t_config  		\
156487cb6862SWolfgang Denkap920t_config		\
156587cb6862SWolfgang Denkap926ejs_config		\
156687cb6862SWolfgang Denkap946es_config: unconfig
156796782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
15683d3befa7Swdenk
156987cb6862SWolfgang Denkintegratorcp_config	\
157087cb6862SWolfgang Denkcp_config		\
157187cb6862SWolfgang Denkcp920t_config		\
157287cb6862SWolfgang Denkcp926ejs_config		\
157387cb6862SWolfgang Denkcp946es_config		\
157487cb6862SWolfgang Denkcp1136_config		\
157587cb6862SWolfgang Denkcp966_config		\
157687cb6862SWolfgang Denkcp922_config		\
157787cb6862SWolfgang Denkcp922_XA10_config	\
157887cb6862SWolfgang Denkcp1026_config: unconfig
157996782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
158025d6712aSwdenk
158199b0d285SWolfgang Denkkb9202_config	:	unconfig
158299b0d285SWolfgang Denk	@./mkconfig $(@:_config=) arm arm920t kb9202 NULL at91rm9200
158399b0d285SWolfgang Denk
1584f832d8a1Swdenklpd7a400_config \
1585f832d8a1Swdenklpd7a404_config:	unconfig
15862d24a3a7Swdenk	@./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
15873d3befa7Swdenk
1588281e00a3Swdenkmx1ads_config	:	unconfig
15891d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx
1590281e00a3Swdenk
1591281e00a3Swdenkmx1fs2_config	:	unconfig
15921d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx
1593281e00a3Swdenk
1594ac7eb8a3SWolfgang Denknetstar_32_config	\
1595ac7eb8a3SWolfgang Denknetstar_config:		unconfig
1596ac7eb8a3SWolfgang Denk	@if [ "$(findstring _32_,$@)" ] ; then \
1597ac7eb8a3SWolfgang Denk		echo "... 32MB SDRAM" ; \
1598ac7eb8a3SWolfgang Denk		echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>include/config.h ; \
1599ac7eb8a3SWolfgang Denk	else \
1600ac7eb8a3SWolfgang Denk		echo "... 64MB SDRAM" ; \
1601ac7eb8a3SWolfgang Denk		echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>include/config.h ; \
1602ac7eb8a3SWolfgang Denk	fi
1603ac7eb8a3SWolfgang Denk	@./mkconfig -a netstar arm arm925t netstar
1604ac7eb8a3SWolfgang Denk
16052e5983d2Swdenkomap1510inn_config :	unconfig
16062e5983d2Swdenk	@./mkconfig $(@:_config=) arm arm925t omap1510inn
16072e5983d2Swdenk
16081eaeb58eSwdenkomap5912osk_config :	unconfig
1609ff7fefe6SWolfgang Denk	@./mkconfig $(@:_config=) arm arm926ejs omap5912osk NULL omap
16101eaeb58eSwdenk
161163e73c9aSwdenkomap1610inn_config \
161263e73c9aSwdenkomap1610inn_cs0boot_config \
161363e73c9aSwdenkomap1610inn_cs3boot_config \
16143ff02c27Swdenkomap1610inn_cs_autoboot_config \
161563e73c9aSwdenkomap1610h2_config \
161663e73c9aSwdenkomap1610h2_cs0boot_config \
16173ff02c27Swdenkomap1610h2_cs3boot_config \
16183ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
161963e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
162063e73c9aSwdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1621b79a11ccSwdenk		echo "... configured for CS0 boot"; \
16223ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
16233ff02c27Swdenk		echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
16243ff02c27Swdenk		echo "... configured for CS_AUTO boot"; \
162563e73c9aSwdenk	else \
162663e73c9aSwdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1627b79a11ccSwdenk		echo "... configured for CS3 boot"; \
162863e73c9aSwdenk	fi;
1629ff7fefe6SWolfgang Denk	@./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
16306f21347dSwdenk
1631a56bd922Swdenkomap730p2_config \
1632a56bd922Swdenkomap730p2_cs0boot_config \
1633a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
1634a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
1635a56bd922Swdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1636a56bd922Swdenk		echo "... configured for CS0 boot"; \
1637a56bd922Swdenk	else \
1638a56bd922Swdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1639a56bd922Swdenk		echo "... configured for CS3 boot"; \
1640a56bd922Swdenk	fi;
1641ff7fefe6SWolfgang Denk	@./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
1642a56bd922Swdenk
164332cb2c70SWolfgang Denksbc2410x_config: unconfig
164432cb2c70SWolfgang Denk	@./mkconfig $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
164532cb2c70SWolfgang Denk
1646281e00a3Swdenkscb9328_config	:	unconfig
16471d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx
1648281e00a3Swdenk
16497ebf7443Swdenksmdk2400_config	:	unconfig
16501d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
16517ebf7443Swdenk
16527ebf7443Swdenksmdk2410_config	:	unconfig
16531d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
16547ebf7443Swdenk
16552d24a3a7SwdenkSX1_config :		unconfig
16562d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm925t sx1
16572d24a3a7Swdenk
1658b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
165943d9616cSwdenktrab_config \
1660b0639ca3Swdenktrab_bigram_config \
1661b0639ca3Swdenktrab_bigflash_config \
1662f54ebdfaSwdenktrab_old_config:	unconfig
166343d9616cSwdenk	@ >include/config.h
1664b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
1665b0639ca3Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1666b2001f27Swdenk		  echo "#define CONFIG_RAM_32MB"   >>include/config.h ; \
1667b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
1668b0639ca3Swdenk		}
1669b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
1670b2001f27Swdenk		{ echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
1671b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1672b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
1673a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
1674b0639ca3Swdenk		}
1675f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
1676b2001f27Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1677b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1678b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
1679a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
168043d9616cSwdenk		}
16811d9f4105Swdenk	@./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
16827ebf7443Swdenk
16831cb8e980SwdenkVCMA9_config	:	unconfig
16841d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0
16851cb8e980Swdenk
168687cb6862SWolfgang Denk#========================================================================
168787cb6862SWolfgang Denk# ARM supplied Versatile development boards
168887cb6862SWolfgang Denk#========================================================================
168987cb6862SWolfgang Denkversatile_config	\
169087cb6862SWolfgang Denkversatileab_config	\
169187cb6862SWolfgang Denkversatilepb_config :	unconfig
169296782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
1693074cff0dSwdenk
16943c2b3d45Swdenkvoiceblue_smallflash_config	\
16953c2b3d45Swdenkvoiceblue_config:	unconfig
16963c2b3d45Swdenk	@if [ "$(findstring _smallflash_,$@)" ] ; then \
16973c2b3d45Swdenk		echo "... boot from lower flash bank" ; \
16983c2b3d45Swdenk		echo "#define VOICEBLUE_SMALL_FLASH" >>include/config.h ; \
16993c2b3d45Swdenk		echo "VOICEBLUE_SMALL_FLASH=y" >board/voiceblue/config.tmp ; \
17003c2b3d45Swdenk	else \
17013c2b3d45Swdenk		echo "... boot from upper flash bank" ; \
17023c2b3d45Swdenk		>include/config.h ; \
17033c2b3d45Swdenk		echo "VOICEBLUE_SMALL_FLASH=n" >board/voiceblue/config.tmp ; \
17043c2b3d45Swdenk	fi
17053c2b3d45Swdenk	@./mkconfig -a voiceblue arm arm925t voiceblue
17063c2b3d45Swdenk
170716b013e7Swdenkcm4008_config	:	unconfig
170816b013e7Swdenk	@./mkconfig $(@:_config=) arm arm920t cm4008 NULL ks8695
170916b013e7Swdenk
171016b013e7Swdenkcm41xx_config	:	unconfig
171116b013e7Swdenk	@./mkconfig $(@:_config=) arm arm920t cm41xx NULL ks8695
171216b013e7Swdenk
17130c32d96dSWolfgang Denkgth2_config		: 	unconfig
17140c32d96dSWolfgang Denk	@ >include/config.h
17150c32d96dSWolfgang Denk	@echo "#define CONFIG_GTH2 1" >>include/config.h
17160c32d96dSWolfgang Denk	@./mkconfig -a gth2 mips mips gth2
17170c32d96dSWolfgang Denk
1718074cff0dSwdenk#########################################################################
1719074cff0dSwdenk## S3C44B0 Systems
1720074cff0dSwdenk#########################################################################
1721074cff0dSwdenk
1722074cff0dSwdenkB2_config	:	unconfig
1723074cff0dSwdenk	@./mkconfig $(@:_config=) arm s3c44b0 B2 dave
1724074cff0dSwdenk
17257ebf7443Swdenk#########################################################################
17267ebf7443Swdenk## ARM720T Systems
17277ebf7443Swdenk#########################################################################
17287ebf7443Swdenk
1729c570b2fdSWolfgang Denkarmadillo_config:	unconfig
1730c570b2fdSWolfgang Denk	@./mkconfig $(@:_config=) arm arm720t armadillo
1731c570b2fdSWolfgang Denk
17327ebf7443Swdenkep7312_config	:	unconfig
17337ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm720t ep7312
17347ebf7443Swdenk
17352d24a3a7Swdenkimpa7_config	:	unconfig
17362d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm720t impa7
17372d24a3a7Swdenk
17382d1a537dSwdenkmodnet50_config :	unconfig
17392d1a537dSwdenk	@./mkconfig $(@:_config=) arm arm720t modnet50
17402d1a537dSwdenk
174139539887Swdenkevb4510_config :	unconfig
174239539887Swdenk	@./mkconfig $(@:_config=) arm arm720t evb4510
174339539887Swdenk
17447ebf7443Swdenk#########################################################################
174543d9616cSwdenk## XScale Systems
17467ebf7443Swdenk#########################################################################
17477ebf7443Swdenk
174820787e23Swdenkadsvix_config	:	unconfig
174920787e23Swdenk	@./mkconfig $(@:_config=) arm pxa adsvix
175020787e23Swdenk
1751fabd46acSwdenkcerf250_config :	unconfig
1752fabd46acSwdenk	@./mkconfig $(@:_config=) arm pxa cerf250
1753fabd46acSwdenk
17547ebf7443Swdenkcradle_config	:	unconfig
17554c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa cradle
17567ebf7443Swdenk
17577ebf7443Swdenkcsb226_config	:	unconfig
17584c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa csb226
17597ebf7443Swdenk
17600be248faSWolfgang Denkdelta_config :
17610be248faSWolfgang Denk	@./mkconfig $(@:_config=) arm pxa delta
17620be248faSWolfgang Denk
176343d9616cSwdenkinnokom_config	:	unconfig
17644c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa innokom
176543d9616cSwdenk
17662d5b561eSwdenkixdp425_config	:	unconfig
17672d5b561eSwdenk	@./mkconfig $(@:_config=) arm ixp ixdp425
17682d5b561eSwdenk
1769ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
1770ba94a1bbSWolfgang Denk	@./mkconfig $(@:_config=) arm ixp ixdp425
1771ba94a1bbSWolfgang Denk
177243d9616cSwdenklubbock_config	:	unconfig
17734c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa lubbock
177443d9616cSwdenk
17755720df78SHeiko Schocherpleb2_config	:	unconfig
17765720df78SHeiko Schocher	@./mkconfig $(@:_config=) arm pxa pleb2
17775720df78SHeiko Schocher
177852f52c14Swdenklogodl_config	:	unconfig
177952f52c14Swdenk	@./mkconfig $(@:_config=) arm pxa logodl
178052f52c14Swdenk
1781ba94a1bbSWolfgang Denkpdnb3_config	:	unconfig
1782ba94a1bbSWolfgang Denk	@./mkconfig $(@:_config=) arm ixp pdnb3 prodrive
1783ba94a1bbSWolfgang Denk
1784f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
1785f57f70aaSWolfgang Denk	@./mkconfig $(@:_config=) arm pxa pxa255_idp
1786f57f70aaSWolfgang Denk
17873e38691eSwdenkwepep250_config	:	unconfig
17884c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa wepep250
17893e38691eSwdenk
17904ec3a7f0Swdenkxaeniax_config	:	unconfig
17914ec3a7f0Swdenk	@./mkconfig $(@:_config=) arm pxa xaeniax
17924ec3a7f0Swdenk
1793efa329cbSwdenkxm250_config	:	unconfig
1794efa329cbSwdenk	@./mkconfig $(@:_config=) arm pxa xm250
1795efa329cbSwdenk
1796ca0e7748Swdenkxsengine_config :	unconfig
1797ca0e7748Swdenk	@./mkconfig $(@:_config=) arm pxa xsengine
1798ca0e7748Swdenk
1799e0269579SMarkus Klotzbücherzylonite_config :
1800e0269579SMarkus Klotzbücher	@./mkconfig $(@:_config=) arm pxa zylonite
1801e0269579SMarkus Klotzbücher
18028ed96046Swdenk#########################################################################
18038ed96046Swdenk## ARM1136 Systems
18048ed96046Swdenk#########################################################################
18058ed96046Swdenkomap2420h4_config :    unconfig
18068ed96046Swdenk	@./mkconfig $(@:_config=) arm arm1136 omap2420h4
18078ed96046Swdenk
18082262cfeeSwdenk#========================================================================
18092262cfeeSwdenk# i386
18102262cfeeSwdenk#========================================================================
18112262cfeeSwdenk#########################################################################
18122262cfeeSwdenk## AMD SC520 CDP
18132262cfeeSwdenk#########################################################################
18142262cfeeSwdenksc520_cdp_config	:	unconfig
18152262cfeeSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_cdp
18162262cfeeSwdenk
18177a8e9bedSwdenksc520_spunk_config	:	unconfig
18187a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
18197a8e9bedSwdenk
18207a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
18217a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
18227a8e9bedSwdenk
182343d9616cSwdenk#========================================================================
182443d9616cSwdenk# MIPS
182543d9616cSwdenk#========================================================================
18267ebf7443Swdenk#########################################################################
182743d9616cSwdenk## MIPS32 4Kc
182843d9616cSwdenk#########################################################################
182943d9616cSwdenk
1830e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1831e0ac62d7Swdenk
1832e0ac62d7Swdenkincaip_100MHz_config	\
1833e0ac62d7Swdenkincaip_133MHz_config	\
1834e0ac62d7Swdenkincaip_150MHz_config	\
183543d9616cSwdenkincaip_config: unconfig
1836e0ac62d7Swdenk	@ >include/config.h
1837e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
1838e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
1839e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
1840e0ac62d7Swdenk		}
1841e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
1842e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
1843e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
1844e0ac62d7Swdenk		}
1845e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
1846e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
1847e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
1848e0ac62d7Swdenk		}
1849e0ac62d7Swdenk	@./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
1850e0ac62d7Swdenk
1851f4863a7aSwdenktb0229_config: unconfig
1852f4863a7aSwdenk	@./mkconfig $(@:_config=) mips mips tb0229
1853f4863a7aSwdenk
1854e0ac62d7Swdenk#########################################################################
185569459791Swdenk## MIPS32 AU1X00
185669459791Swdenk#########################################################################
185769459791Swdenkdbau1000_config		: 	unconfig
185869459791Swdenk	@ >include/config.h
185969459791Swdenk	@echo "#define CONFIG_DBAU1000 1" >>include/config.h
186069459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
186169459791Swdenk
186269459791Swdenkdbau1100_config		: 	unconfig
186369459791Swdenk	@ >include/config.h
186469459791Swdenk	@echo "#define CONFIG_DBAU1100 1" >>include/config.h
186569459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
186669459791Swdenk
186769459791Swdenkdbau1500_config		: 	unconfig
186869459791Swdenk	@ >include/config.h
186969459791Swdenk	@echo "#define CONFIG_DBAU1500 1" >>include/config.h
187069459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
187169459791Swdenk
1872ff36fd85Swdenkdbau1550_config		:	unconfig
1873ff36fd85Swdenk	@ >include/config.h
1874ff36fd85Swdenk	@echo "#define CONFIG_DBAU1550 1" >>include/config.h
1875ff36fd85Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
1876ff36fd85Swdenk
1877ff36fd85Swdenkdbau1550_el_config	:	unconfig
1878ff36fd85Swdenk	@ >include/config.h
1879ff36fd85Swdenk	@echo "#define CONFIG_DBAU1550 1" >>include/config.h
188021919230SWolfgang Denk	@./mkconfig -a dbau1x00 mips mips dbau1x00
1881ff36fd85Swdenk
1882265817c7SWolfgang Denkpb1000_config		: 	unconfig
1883265817c7SWolfgang Denk	@ >include/config.h
1884265817c7SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >>include/config.h
1885265817c7SWolfgang Denk	@./mkconfig -a pb1x00 mips mips pb1x00
1886265817c7SWolfgang Denk
188769459791Swdenk#########################################################################
1888e0ac62d7Swdenk## MIPS64 5Kc
1889e0ac62d7Swdenk#########################################################################
189043d9616cSwdenk
18913e38691eSwdenkpurple_config :		unconfig
18923e38691eSwdenk	@./mkconfig $(@:_config=) mips mips purple
189343d9616cSwdenk
18944a551709Swdenk#========================================================================
18954a551709Swdenk# Nios
18964a551709Swdenk#========================================================================
18974a551709Swdenk#########################################################################
18984a551709Swdenk## Nios32
18994a551709Swdenk#########################################################################
19004a551709Swdenk
1901c935d3bdSwdenkDK1C20_safe_32_config		\
1902c935d3bdSwdenkDK1C20_standard_32_config	\
19034a551709SwdenkDK1C20_config:	unconfig
1904c935d3bdSwdenk	@ >include/config.h
1905c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1906c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1907c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1908c935d3bdSwdenk		}
1909c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1910c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1911c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1912c935d3bdSwdenk		}
1913c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
1914c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1915c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1916c935d3bdSwdenk		}
1917c935d3bdSwdenk	@./mkconfig -a DK1C20 nios nios dk1c20 altera
1918c935d3bdSwdenk
1919c935d3bdSwdenkDK1S10_safe_32_config		\
1920c935d3bdSwdenkDK1S10_standard_32_config	\
1921ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
1922c935d3bdSwdenkDK1S10_config:	unconfig
1923c935d3bdSwdenk	@ >include/config.h
1924c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1925c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1926c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1927c935d3bdSwdenk		}
1928c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1929c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1930c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1931c935d3bdSwdenk		}
1932ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
1933ec4c544bSwdenk		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
1934ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
1935ec4c544bSwdenk		}
1936c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
1937c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1938c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1939c935d3bdSwdenk		}
1940c935d3bdSwdenk	@./mkconfig -a DK1S10 nios nios dk1s10 altera
19414a551709Swdenk
1942aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
1943aaf224abSwdenkADNPESC1_base_32_config		\
1944aaf224abSwdenkADNPESC1_config: unconfig
1945aaf224abSwdenk	@ >include/config.h
1946aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
1947aaf224abSwdenk		{ echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
1948aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
1949aaf224abSwdenk		}
1950aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
1951aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1952aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
1953aaf224abSwdenk		}
1954aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
1955aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1956aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
1957aaf224abSwdenk		}
1958aaf224abSwdenk	@./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
1959aaf224abSwdenk
19605c952cf0Swdenk#########################################################################
19615c952cf0Swdenk## Nios-II
19625c952cf0Swdenk#########################################################################
19635c952cf0Swdenk
19649cc83378SScott McNuttEP1C20_config : unconfig
19659cc83378SScott McNutt	@./mkconfig  EP1C20 nios2 nios2 ep1c20 altera
19669cc83378SScott McNutt
19679cc83378SScott McNuttEP1S10_config : unconfig
19689cc83378SScott McNutt	@./mkconfig  EP1S10 nios2 nios2 ep1s10 altera
19699cc83378SScott McNutt
19709cc83378SScott McNuttEP1S40_config : unconfig
19719cc83378SScott McNutt	@./mkconfig  EP1S40 nios2 nios2 ep1s40 altera
19729cc83378SScott McNutt
19735c952cf0SwdenkPK1C20_config : unconfig
19745c952cf0Swdenk	@./mkconfig  PK1C20 nios2 nios2 pk1c20 psyent
19755c952cf0Swdenk
19765c952cf0SwdenkPCI5441_config : unconfig
19775c952cf0Swdenk	@./mkconfig  PCI5441 nios2 nios2 pci5441 psyent
19784a551709Swdenk
1979507bbe3eSwdenk#========================================================================
1980507bbe3eSwdenk# MicroBlaze
1981507bbe3eSwdenk#========================================================================
1982507bbe3eSwdenk#########################################################################
1983507bbe3eSwdenk## Microblaze
1984507bbe3eSwdenk#########################################################################
1985507bbe3eSwdenksuzaku_config:	unconfig
1986507bbe3eSwdenk	@ >include/config.h
1987507bbe3eSwdenk	@echo "#define CONFIG_SUZAKU 1" >> include/config.h
1988507bbe3eSwdenk	@./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
1989507bbe3eSwdenk
19903e38691eSwdenk#########################################################################
19910afe519aSWolfgang Denk## Blackfin
19920afe519aSWolfgang Denk#########################################################################
19930afe519aSWolfgang Denkezkit533_config	:	unconfig
19940afe519aSWolfgang Denk	@./mkconfig $(@:_config=) blackfin bf533 ezkit533
19950afe519aSWolfgang Denk
19960afe519aSWolfgang Denkstamp_config	:	unconfig
19970afe519aSWolfgang Denk	@./mkconfig $(@:_config=) blackfin bf533 stamp
19980afe519aSWolfgang Denk
19990afe519aSWolfgang Denkdspstamp_config	:	unconfig
20000afe519aSWolfgang Denk	@./mkconfig $(@:_config=) blackfin bf533 dsp_stamp
20010afe519aSWolfgang Denk
20020afe519aSWolfgang Denk#########################################################################
20030afe519aSWolfgang Denk#########################################################################
20043e38691eSwdenk#########################################################################
20057ebf7443Swdenk
20067ebf7443Swdenkclean:
20077ebf7443Swdenk	find . -type f \
20087ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
20097ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
20107ebf7443Swdenk		| xargs rm -f
201185ec0bccSwdenk	rm -f examples/hello_world examples/timer \
20123e38691eSwdenk	      examples/eepro100_eeprom examples/sched \
2013ed16fefcSwdenk	      examples/mem_to_mem_idma2intr examples/82559_eeprom \
20140afe519aSWolfgang Denk	      examples/smc91111_eeprom \
2015ed16fefcSwdenk	      examples/test_burst
20167ebf7443Swdenk	rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
2017eedcd078Swdenk	rm -f tools/mpc86x_clk tools/ncb
20187ebf7443Swdenk	rm -f tools/easylogo/easylogo tools/bmp_logo
20197ebf7443Swdenk	rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
2020228f29acSwdenk	rm -f tools/env/fw_printenv tools/env/fw_setenv
20217f70e853Swdenk	rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
202284ef51a6SWolfgang Denk	rm -f board/netstar/eeprom board/netstar/crcek
202384ef51a6SWolfgang Denk	rm -f board/netstar/*.srec board/netstar/*.bin
20240e1fb5eeSWolfgang Denk	rm -f board/trab/trab_fkt board/voiceblue/eeprom
202587cb6862SWolfgang Denk	rm -f board/integratorap/u-boot.lds board/integratorcp/u-boot.lds
2026971a5dd1SMarian Balakowicz	rm -f include/bmp_logo.h
20277ebf7443Swdenk
20287ebf7443Swdenkclobber:	clean
20294c0d4c3bSwdenk	find . -type f \( -name .depend \
20304c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
20314c0d4c3bSwdenk		-print0 \
20324c0d4c3bSwdenk		| xargs -0 rm -f
2033881a87ecSWolfgang Denk	rm -f $(OBJS) *.bak tags TAGS include/version_autogenerated.h
20347ebf7443Swdenk	rm -fr *.*~
20356310eb9dSwdenk	rm -f u-boot u-boot.map u-boot.hex $(ALL)
2036228f29acSwdenk	rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
20373e38691eSwdenk	rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
2038b783edaeSwdenk	rm -f include/asm/proc include/asm/arch include/asm
20397ebf7443Swdenk
20407ebf7443Swdenkmrproper \
20417ebf7443Swdenkdistclean:	clobber unconfig
20427ebf7443Swdenk
20437ebf7443Swdenkbackup:
20447ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
20457ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
20467ebf7443Swdenk
20477ebf7443Swdenk#########################################################################
2048