xref: /openbmc/u-boot/Makefile (revision a200a7c0)
17ebf7443Swdenk#
2572e6179SDetlev Zundel# (C) Copyright 2000-2009
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
24aced78d8SWolfgang DenkVERSION = 2009
254946775cSWolfgang DenkPATCHLEVEL = 11
268b9e4787SWolfgang DenkSUBLEVEL =
27*a200a7c0SWolfgang DenkEXTRAVERSION =
288b9e4787SWolfgang Denkifneq "$(SUBLEVEL)" ""
29881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
308b9e4787SWolfgang Denkelse
318b9e4787SWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION)
328b9e4787SWolfgang Denkendif
33561858eeSPeter TyserTIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h
34f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h
35881a87ecSWolfgang Denk
367ebf7443SwdenkHOSTARCH := $(shell uname -m | \
377ebf7443Swdenk	sed -e s/i.86/i386/ \
387ebf7443Swdenk	    -e s/sun4u/sparc64/ \
397ebf7443Swdenk	    -e s/arm.*/arm/ \
407ebf7443Swdenk	    -e s/sa110/arm/ \
417ebf7443Swdenk	    -e s/powerpc/ppc/ \
42a2280646SKumar Gala	    -e s/ppc64/ppc/ \
437ebf7443Swdenk	    -e s/macppc/ppc/)
447ebf7443Swdenk
45f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
467ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
477ebf7443Swdenk
48cf7a7b99SPeter Tyser# Set shell to bash if possible, otherwise fall back to sh
49cf7a7b99SPeter TyserSHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
50cf7a7b99SPeter Tyser	else if [ -x /bin/bash ]; then echo /bin/bash; \
51cf7a7b99SPeter Tyser	else echo sh; fi; fi)
52cf7a7b99SPeter Tyser
53cf7a7b99SPeter Tyserexport	HOSTARCH HOSTOS SHELL
547ebf7443Swdenk
557ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
567ebf7443SwdenkVENDOR=
577ebf7443Swdenk
587ebf7443Swdenk#########################################################################
59ae6d1056SWolfgang Denk# Allow for silent builds
60ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS)))
61ae6d1056SWolfgang DenkXECHO = echo
62ae6d1056SWolfgang Denkelse
63ae6d1056SWolfgang DenkXECHO = :
64ae6d1056SWolfgang Denkendif
65ae6d1056SWolfgang Denk
66ae6d1056SWolfgang Denk#########################################################################
67f9328639SMarian Balakowicz#
68f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
69f9328639SMarian Balakowicz# directory. Two use cases are supported:
70f9328639SMarian Balakowicz#
71f9328639SMarian Balakowicz# 1) Add O= to the make command line
72f9328639SMarian Balakowicz# 'make O=/tmp/build all'
73f9328639SMarian Balakowicz#
74f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
75f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
76f9328639SMarian Balakowicz# 'make'
77f9328639SMarian Balakowicz#
78f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
79f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
80f9328639SMarian Balakowicz# './MAKEALL'
81f9328639SMarian Balakowicz#
82f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
83f9328639SMarian Balakowicz#
84f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
85f9328639SMarian Balakowicz# the object files are placed in the source directory.
86f9328639SMarian Balakowicz#
877ebf7443Swdenk
88f9328639SMarian Balakowiczifdef O
89f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
90f9328639SMarian BalakowiczBUILD_DIR := $(O)
91f9328639SMarian Balakowiczendif
92f9328639SMarian Balakowiczendif
937ebf7443Swdenk
94f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
95f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
964f0645ebSMarian Balakowicz
974f0645ebSMarian Balakowicz# Attempt to create a output directory.
984f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
994f0645ebSMarian Balakowicz
1004f0645ebSMarian Balakowicz# Verify if it was successful.
101f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
102f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
103f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
104f9328639SMarian Balakowicz
105f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
106f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
107f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
108f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
109f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
110f9328639SMarian Balakowicz
111f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
112f9328639SMarian Balakowiczexport MKCONFIG
113f9328639SMarian Balakowicz
114f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
115f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
116f9328639SMarian Balakowiczexport REMOTE_BUILD
117f9328639SMarian Balakowiczendif
118f9328639SMarian Balakowicz
119f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
120f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
121f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
122f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
123f9328639SMarian Balakowiczobj := $(OBJTREE)/
124f9328639SMarian Balakowiczsrc := $(SRCTREE)/
125f9328639SMarian Balakowiczelse
126f9328639SMarian Balakowiczobj :=
127f9328639SMarian Balakowiczsrc :=
128f9328639SMarian Balakowiczendif
129f9328639SMarian Balakowiczexport obj src
130f9328639SMarian Balakowicz
1315013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere
1325013c09fSWolfgang Denkunexport CDPATH
1335013c09fSWolfgang Denk
134f9328639SMarian Balakowicz#########################################################################
135f9328639SMarian Balakowicz
136f8f9dc98SKumar Galaifeq ($(ARCH),powerpc)
137f8f9dc98SKumar GalaARCH = ppc
138f8f9dc98SKumar Galaendif
139f8f9dc98SKumar Gala
1406d1ce387SMike Frysinger# The "tools" are needed early, so put this first
1416d1ce387SMike Frysinger# Don't include stuff already done in $(LIBS)
1426d1ce387SMike FrysingerSUBDIRS	= tools \
1431bc15386SPeter Tyser	  examples/standalone \
144d4abc757SPeter Tyser	  examples/api
1456d1ce387SMike Frysinger
1466d1ce387SMike Frysinger.PHONY : $(SUBDIRS)
1476d1ce387SMike Frysinger
148ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
149f9328639SMarian Balakowicz
1502632c008SMike Frysinger# Include autoconf.mk before config.mk so that the config options are available
1512632c008SMike Frysinger# to all top level build files.  We need the dummy all: target to prevent the
1522632c008SMike Frysinger# dependency target in autoconf.mk.dep from being the default.
1532632c008SMike Frysingerall:
1542632c008SMike Frysingersinclude $(obj)include/autoconf.mk.dep
1552632c008SMike Frysingersinclude $(obj)include/autoconf.mk
1562632c008SMike Frysinger
1577ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
158ae6d1056SWolfgang Denkinclude $(obj)include/config.mk
1591d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
160f9328639SMarian Balakowicz
1611ea6bcd8SMike Frysinger# set default to nothing for native builds
162a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1631ea6bcd8SMike FrysingerCROSS_COMPILE ?=
1647ebf7443Swdenkendif
1657ebf7443Swdenk
16692b197f0SWolfgang Denk# load other configuration
16792b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
16892b197f0SWolfgang Denk
1697ebf7443Swdenk#########################################################################
1707ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1717ebf7443Swdenk
1727ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1732262cfeeSwdenkifeq ($(CPU),i386)
1742262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
17585ffbbd5SGraeme RussOBJS += cpu/$(CPU)/resetvec.o
1762262cfeeSwdenkendif
1777ebf7443Swdenkifeq ($(CPU),ppc4xx)
1787ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
1797ebf7443Swdenkendif
18042d1f039Swdenkifeq ($(CPU),mpc85xx)
18142d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
18242d1f039Swdenkendif
1837ebf7443Swdenk
184f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
185f9328639SMarian Balakowicz
1869fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
187fc9c1727SLuigi 'Comio' MantelliniLIBS += lib_generic/lzma/liblzma.a
188b1b4e89aSStefan RoeseLIBS += lib_generic/lzo/liblzo.a
1897608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
1907608d75fSKim Phillips	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
1917ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
1921d9f4105Swdenkifdef SOC
1931d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
1941d9f4105Swdenkendif
195323bfa8fSStefan Roeseifeq ($(CPU),ixp)
196323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
197323bfa8fSStefan Roeseendif
1987ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
199518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
2009eefe2a2SStefan Roese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \
2019eefe2a2SStefan Roese	fs/ubifs/libubifs.a
2027ebf7443SwdenkLIBS += net/libnet.a
2037ebf7443SwdenkLIBS += disk/libdisk.a
2040f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
20533daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
20657a12720STsiChungLiewLIBS += drivers/dma/libdma.a
207c8aa7dfcSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/fpga/libfpga.a
208e92739d3SPeter TyserLIBS += drivers/gpio/libgpio.a
209f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
210080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
21116b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
212318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
2135ce13051SHaavard SkinnemoenLIBS += drivers/mmc/libmmc.a
21459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
21559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
21659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
21758be3a10SKyungmin ParkLIBS += drivers/mtd/ubi/libubi.a
218d25ce7d2SHaavard SkinnemoenLIBS += drivers/mtd/spi/libspi_flash.a
2198e585f02STsiChung LiewLIBS += drivers/net/libnet.a
22055195773SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/phy/libphy.a
2212439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
22293a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
22373646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
224cd782635STom RixLIBS += drivers/power/libpower.a
22504a9e118SBen WarrenLIBS += drivers/spi/libspi.a
2267737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2277737d5c6SDave LiuLIBS += drivers/qe/qe.a
2287737d5c6SDave Liuendif
229da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
230da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
23158e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
23218bacc20SPoonam AggrwalLIBS += cpu/mpc8xxx/lib8xxx.a
2335e981d68SEd SwarthoutTAG_SUBDIRS += cpu/mpc8xxx
23458e5e9afSKumar Galaendif
23558e5e9afSKumar Galaifeq ($(CPU),mpc86xx)
23658e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
23718bacc20SPoonam AggrwalLIBS += cpu/mpc8xxx/lib8xxx.a
2385e981d68SEd SwarthoutTAG_SUBDIRS += cpu/mpc8xxx
239da9d4610SAndy Flemingendif
24059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2418e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
242572e6179SDetlev ZundelLIBS += drivers/twserial/libtws.a
2432731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/gadget/libusb_gadget.a
2442731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/host/libusb_host.a
2452731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/musb/libusb_musb.a
24659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
247843a2654SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/watchdog/libwatchdog.a
2487ebf7443SwdenkLIBS += common/libcommon.a
2497651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
250500856ebSRafal JaworowskiLIBS += api/libapi.a
2512d2b994aSYuri TikhonovLIBS += post/libpost.a
252f9328639SMarian Balakowicz
253f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
254561858eeSPeter Tyser.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
255a8c7c708Swdenk
256de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
257de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD))
258de109d90SWolfgang Denk
2594f7cb08eSwdenk# Add GCC lib
26052b1bf2cSWolfgang Denkifdef USE_PRIVATE_LIBGCC
26152b1bf2cSWolfgang Denkifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
26252b1bf2cSWolfgang DenkPLATFORM_LIBGCC = -L $(OBJTREE)/lib_$(ARCH) -lgcc
26352b1bf2cSWolfgang Denkelse
26452b1bf2cSWolfgang DenkPLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc
26552b1bf2cSWolfgang Denkendif
26652b1bf2cSWolfgang Denkelse
26752b1bf2cSWolfgang DenkPLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
26852b1bf2cSWolfgang Denkendif
26952b1bf2cSWolfgang DenkPLATFORM_LIBS += $(PLATFORM_LIBGCC)
27052b1bf2cSWolfgang Denkexport PLATFORM_LIBS
2713d3befa7Swdenk
2726ac9f479SMike Frysinger# Special flags for CPP when processing the linker script.
2736ac9f479SMike Frysinger# Pass the version down so we can handle backwards compatibility
2746ac9f479SMike Frysinger# on the fly.
2756ac9f479SMike FrysingerLDPPFLAGS += \
2766ac9f479SMike Frysinger	-include $(TOPDIR)/include/u-boot/u-boot.lds.h \
2776ac9f479SMike Frysinger	$(shell $(LD) --version | \
2786ac9f479SMike Frysinger	  sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p')
2796ac9f479SMike Frysinger
280887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
281887e2ec9SStefan RoeseNAND_SPL = nand_spl
282887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
283887e2ec9SStefan Roeseendif
284887e2ec9SStefan Roese
285751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y)
286751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl
287751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin
288ca6189dbSKyungmin ParkONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin
289751b9b51SKyungmin Parkendif
290751b9b51SKyungmin Park
291f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
292de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
293f9328639SMarian Balakowicz
2947ebf7443Swdenk#########################################################################
295bdccc4feSwdenk#########################################################################
2967ebf7443Swdenk
2973e88337bSMike Frysinger# Always append ALL so that arch config.mk's can add custom ones
298751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
2997ebf7443Swdenk
300bdccc4feSwdenkall:		$(ALL)
3017ebf7443Swdenk
302f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
3036310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
3046310eb9dSwdenk
305f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
3060817d688SRicardo Ribalda Delgado		$(OBJCOPY) -O srec $< $@
3077ebf7443Swdenk
308f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
3097ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
3107ebf7443Swdenk
31194a91e24SMike Frysinger$(obj)u-boot.ldr:	$(obj)u-boot
31267c2829bSMike Frysinger		$(obj)tools/envcrc --binary > $(obj)env-ldr.o
31368e56324SMike Frysinger		$(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
31494a91e24SMike Frysinger
31594a91e24SMike Frysinger$(obj)u-boot.ldr.hex:	$(obj)u-boot.ldr
31694a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
31794a91e24SMike Frysinger
31894a91e24SMike Frysinger$(obj)u-boot.ldr.srec:	$(obj)u-boot.ldr
31994a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
32094a91e24SMike Frysinger
321f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
322bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
323bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
324881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
325bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
326bdccc4feSwdenk		-d $< $@
327bdccc4feSwdenk
328aa0c7a86SPrafulla Wadaskar$(obj)u-boot.kwb:       $(obj)u-boot.bin
329aa0c7a86SPrafulla Wadaskar		$(obj)tools/mkimage -n $(KWD_CONFIG) -T kwbimage \
330aa0c7a86SPrafulla Wadaskar		-a $(TEXT_BASE) -e $(TEXT_BASE) -d $< $@
331aa0c7a86SPrafulla Wadaskar
332566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
33301159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
334566a494fSHeiko Schocher
335f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3367ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3377ebf7443Swdenk
338ecb1dc89SMike FrysingerGEN_UBOOT = \
339de109d90SWolfgang Denk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
340de109d90SWolfgang Denk		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
341f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
342f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
343b2184c31Swdenk			-Map u-boot.map -o u-boot
3441aada9cdSWolfgang Denk$(obj)u-boot:	depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds
345ecb1dc89SMike Frysinger		$(GEN_UBOOT)
346ecb1dc89SMike Frysingerifeq ($(CONFIG_KALLSYMS),y)
3471aada9cdSWolfgang Denk		smap=`$(call SYSTEM_MAP,u-boot) | \
3481aada9cdSWolfgang Denk			awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \
3491aada9cdSWolfgang Denk		$(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \
3501aada9cdSWolfgang Denk			-c common/system_map.c -o $(obj)common/system_map.o
351ecb1dc89SMike Frysinger		$(GEN_UBOOT) $(obj)common/system_map.o
352ecb1dc89SMike Frysingerendif
3537ebf7443Swdenk
354d0d6144eSPeter Tyser$(OBJS):	depend
355f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
356f9328639SMarian Balakowicz
357d0d6144eSPeter Tyser$(LIBS):	depend $(SUBDIRS)
358f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
359a8c7c708Swdenk
360d0d6144eSPeter Tyser$(LIBBOARD):	depend $(LIBS)
361de109d90SWolfgang Denk		$(MAKE) -C $(dir $(subst $(obj),,$@))
362de109d90SWolfgang Denk
363d0d6144eSPeter Tyser$(SUBDIRS):	depend
364b028f715Swdenk		$(MAKE) -C $@ all
3657ebf7443Swdenk
366d0d6144eSPeter Tyser$(LDSCRIPT):	depend
367f65c9812SMike Frysinger		$(MAKE) -C $(dir $@) $(notdir $@)
368f65c9812SMike Frysinger
3691aada9cdSWolfgang Denk$(obj)u-boot.lds: $(LDSCRIPT)
3701aada9cdSWolfgang Denk		$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
3711aada9cdSWolfgang Denk
372561858eeSPeter Tyser$(NAND_SPL):	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
3738318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
374887e2ec9SStefan Roese
375d0d6144eSPeter Tyser$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin
3768318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
377887e2ec9SStefan Roese
378561858eeSPeter Tyser$(ONENAND_IPL):	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
379f2302d44SStefan Roese		$(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
380751b9b51SKyungmin Park
381d0d6144eSPeter Tyser$(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin
382ca6189dbSKyungmin Park		cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
383751b9b51SKyungmin Park
384ae6d1056SWolfgang Denk$(VERSION_FILE):
385aa737945SMike Frysinger		@( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
386434c51a5SPeter Tyser		 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
3870ec7a061SMike Frysinger		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
388881a87ecSWolfgang Denk
389561858eeSPeter Tyser$(TIMESTAMP_FILE):
390561858eeSPeter Tyser		@date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
391561858eeSPeter Tyser		@date +'#define U_BOOT_TIME "%T"' >> $@
392561858eeSPeter Tyser
3938f713fdfSdzugdbtools:
394f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
395f9328639SMarian Balakowicz
396f9328639SMarian Balakowiczupdater:
397f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
398f9328639SMarian Balakowicz
399f9328639SMarian Balakowiczenv:
40064b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
4018f713fdfSdzu
402d0d6144eSPeter Tyserdepend dep:	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
403f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
4047ebf7443Swdenk
405a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
406a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
407a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
408a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
409a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
410a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
411a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
412a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
41343ea36fbSWilliam JuulTAG_SUBDIRS += fs/yaffs2
414a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
415a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
416a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
417a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
418a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
419e92739d3SPeter TyserTAG_SUBDIRS += drivers/gpio
420a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
421a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
422a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
423a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
4245ce13051SHaavard SkinnemoenTAG_SUBDIRS += drivers/mmc
425a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
426a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
427a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
428d25ce7d2SHaavard SkinnemoenTAG_SUBDIRS += drivers/mtd/spi
429a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
430a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
431a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
432a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
433a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
434a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
435a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
43604a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
437a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
438a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
439a340c325SJean-Christophe PLAGNIOL-VILLARD
440f9328639SMarian Balakowicztags ctags:
441ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
44288fed9a1SWolfgang Denk						-name '*.[ch]' -print`
4437ebf7443Swdenk
4447ebf7443Swdenketags:
445ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
44688fed9a1SWolfgang Denk						-name '*.[ch]' -print`
447ffda586fSLi Yangcscope:
448ffda586fSLi Yang		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
449ffda586fSLi Yang						> cscope.files
450ffda586fSLi Yang		cscope -b -q -k
4517ebf7443Swdenk
452ecb1dc89SMike FrysingerSYSTEM_MAP = \
453ecb1dc89SMike Frysinger		$(NM) $1 | \
4547ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
455ecb1dc89SMike Frysinger		LC_ALL=C sort
456ecb1dc89SMike Frysinger$(obj)System.map:	$(obj)u-boot
457ecb1dc89SMike Frysinger		@$(call SYSTEM_MAP,$<) > $(obj)System.map
4587ebf7443Swdenk
4592f155f6cSGrant Likely#
4602f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4612f155f6cSGrant Likely#
4622f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4632f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4642f155f6cSGrant Likely# to regenerate the autoconf.mk file.
4651510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
4661510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
46716fe7775SMike Frysinger	set -e ; \
468ae6d1056SWolfgang Denk	: Generate the dependancies ; \
4699aef7388SMike Frysinger	$(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \
4701510b82dSWolfgang Denk		-MQ $(obj)include/autoconf.mk include/common.h > $@
4711510b82dSWolfgang Denk
4721510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h
4731510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
4741510b82dSWolfgang Denk	set -e ; \
475ae6d1056SWolfgang Denk	: Extract the config macros ; \
4761510b82dSWolfgang Denk	$(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
4774a0f7538SWolfgang Denk		sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
4784a0f7538SWolfgang Denk	mv $@.tmp $@
4792f155f6cSGrant Likely
4807ebf7443Swdenk#########################################################################
481ae6d1056SWolfgang Denkelse	# !config.mk
482f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
483f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
484561858eeSPeter Tyser$(SUBDIRS) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools updater env depend \
485ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map:
4867ebf7443Swdenk	@echo "System not configured - see README" >&2
4877ebf7443Swdenk	@ exit 1
488ae6d1056SWolfgang Denkendif	# config.mk
4897ebf7443Swdenk
4904e53a258SWolfgang Denk.PHONY : CHANGELOG
4914e53a258SWolfgang DenkCHANGELOG:
492b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
493b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4944e53a258SWolfgang Denk
4950a823aa2SHarald Welteinclude/license.h: tools/bin2header COPYING
4960a823aa2SHarald Welte	 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
4977ebf7443Swdenk#########################################################################
4987ebf7443Swdenk
4997ebf7443Swdenkunconfig:
500887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
5012f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
5022f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
5037ebf7443Swdenk
5049f4a4206SMike Frysinger%: %_config
5059f4a4206SMike Frysinger	$(MAKE)
5069f4a4206SMike Frysinger
5077ebf7443Swdenk#========================================================================
5087ebf7443Swdenk# PowerPC
5097ebf7443Swdenk#========================================================================
5100db5bca8Swdenk
5110db5bca8Swdenk#########################################################################
5120db5bca8Swdenk## MPC5xx Systems
5130db5bca8Swdenk#########################################################################
5140db5bca8Swdenk
5155e5f9ed2Swdenkcanmb_config:	unconfig
516f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
5175e5f9ed2Swdenk
5180db5bca8Swdenkcmi_mpc5xx_config:	unconfig
519f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
5200db5bca8Swdenk
521b6e4c403SwdenkPATI_config:		unconfig
522f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
523b6e4c403Swdenk
5247ebf7443Swdenk#########################################################################
525945af8d7Swdenk## MPC5xxx Systems
526945af8d7Swdenk#########################################################################
527a87589daSwdenk
528dafba16eSWolfgang Denkaev_config: unconfig
5294677988cSWolfgang Grandegger	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
530dafba16eSWolfgang Denk
5316ca24c64Sdzu@denx.deBC3450_config:	unconfig
532f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
5336ca24c64Sdzu@denx.de
534699f0512SWolfgang Denkcm5200_config:	unconfig
535699f0512SWolfgang Denk	@$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
536699f0512SWolfgang Denk
5375e4b3361SStefan Roesecpci5200_config:  unconfig
538f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
5395e4b3361SStefan Roese
5405c4fa9b4SGrzegorz Bernackidigsy_mtc_config \
5415c4fa9b4SGrzegorz Bernackidigsy_mtc_LOWBOOT_config	\
5425c4fa9b4SGrzegorz Bernackidigsy_mtc_RAMBOOT_config:	unconfig
5435c4fa9b4SGrzegorz Bernacki	@mkdir -p $(obj)include
5445c4fa9b4SGrzegorz Bernacki	@mkdir -p $(obj)board/digsy_mtc
5455c4fa9b4SGrzegorz Bernacki	@ >$(obj)include/config.h
5465c4fa9b4SGrzegorz Bernacki	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
5475c4fa9b4SGrzegorz Bernacki		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp ; \
5485c4fa9b4SGrzegorz Bernacki		  echo "... with LOWBOOT configuration" ; \
5495c4fa9b4SGrzegorz Bernacki		}
5505c4fa9b4SGrzegorz Bernacki	@[ -z "$(findstring RAMBOOT_,$@)" ] || \
5515c4fa9b4SGrzegorz Bernacki		{ echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp ; \
5525c4fa9b4SGrzegorz Bernacki		  echo "... with RAMBOOT configuration" ; \
5535c4fa9b4SGrzegorz Bernacki		}
5545c4fa9b4SGrzegorz Bernacki	@$(MKCONFIG) -a digsy_mtc  ppc mpc5xxx digsy_mtc
5555c4fa9b4SGrzegorz Bernacki
5565b53b29bSEric Millbrandtgalaxy5200_LOWBOOT_config \
5575b53b29bSEric Millbrandtgalaxy5200_config:	unconfig
5585b53b29bSEric Millbrandt	@mkdir -p $(obj)include
5595b53b29bSEric Millbrandt	@echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
5605b53b29bSEric Millbrandt	@$(MKCONFIG) -a galaxy5200 ppc mpc5xxx galaxy5200
5615b53b29bSEric Millbrandt
562a87589daSwdenkhmi1001_config:	unconfig
563f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
564a87589daSwdenk
565e35745bbSwdenkLite5200_config				\
566e35745bbSwdenkLite5200_LOWBOOT_config			\
567e35745bbSwdenkLite5200_LOWBOOT08_config		\
568e35745bbSwdenkicecube_5200_config			\
569e35745bbSwdenkicecube_5200_LOWBOOT_config		\
570e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
571b2001f27Swdenkicecube_5200_DDR_config			\
57279d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
57379d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
574e35745bbSwdenkicecube_5100_config:			unconfig
575f9328639SMarian Balakowicz	@mkdir -p $(obj)include
576f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
57717d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
57817d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
579f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
580f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
58117d704ebSwdenk		  fi ; \
582ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5835cf9da48Swdenk		}
5845cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
585f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5865cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
587ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5885cf9da48Swdenk		}
589b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
590f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
591ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
592b2001f27Swdenk		}
593d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
594f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
595ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
596d4ca31c4Swdenk		}
597a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
598f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
599ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
600945af8d7Swdenk		}
601f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
602945af8d7Swdenk
6032605e90bSHeiko Schocherjupiter_config:	unconfig
6042605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
6052605e90bSHeiko Schocher
606138ff60cSwdenkinka4x0_config:	unconfig
607f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
608138ff60cSwdenk
60909e4b0c5SWolfgang Denklite5200b_config	\
610d3832e8fSDomen Puncerlite5200b_PM_config	\
61109e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
612f9328639SMarian Balakowicz	@mkdir -p $(obj)include
613f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
614f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
615ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
616f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
617f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
618d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
619d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
620ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
621d3832e8fSDomen Puncer		}
62209e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
623f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
624ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
62509e4b0c5SWolfgang Denk		}
626ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
627f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
62809e4b0c5SWolfgang Denk
629f1ee9825SStefan Roesemcc200_config	\
630ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
631ed1cf845SWolfgang Denkmcc200_highboot_config	\
632ed1cf845SWolfgang Denkmcc200_COM12_config	\
633ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
634113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
635113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
636ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
637ed1cf845SWolfgang Denkprs200_config	\
638ed1cf845SWolfgang Denkprs200_DDR_config	\
639ed1cf845SWolfgang Denkprs200_highboot_config	\
640ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
641f9328639SMarian Balakowicz	@mkdir -p $(obj)include
642f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
6434819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
644ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
645f1ee9825SStefan Roese		}
6464819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
647f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
648ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
6494819fad9SWolfgang Denk		}
6504819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
651ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
652ed1cf845SWolfgang Denk		  then \
653ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
654ed1cf845SWolfgang Denk		  else \
655ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
656ed1cf845SWolfgang Denk			then \
657ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
658ed1cf845SWolfgang Denk			else \
659f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
660ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
661ed1cf845SWolfgang Denk			fi; \
662ed1cf845SWolfgang Denk		  fi; \
6634819fad9SWolfgang Denk		}
6644819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
665f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
666ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
6674819fad9SWolfgang Denk		}
668463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
669f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
670ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
671463764c8SWolfgang Denk		}
672ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
673f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"	>>$(obj)include/config.h ;\
674ed1cf845SWolfgang Denk		}
675f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
67686ea5f93SWolfgang Denk
6778b7d1f0aSStefan Roesemecp5200_config:  unconfig
678ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
6798b7d1f0aSStefan Roese
680699f0512SWolfgang Denkmotionpro_config:	unconfig
681699f0512SWolfgang Denk	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
682699f0512SWolfgang Denk
683258c37b1SHeiko Schochermucmc52_config:		unconfig
684258c37b1SHeiko Schocher	@$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
685258c37b1SHeiko Schocher
6866341d9d7SHeiko Schochermunices_config:	unconfig
687ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
6886341d9d7SHeiko Schocher
689699f0512SWolfgang DenkMVBC_P_config: unconfig
690699f0512SWolfgang Denk	@mkdir -p $(obj)include
691699f0512SWolfgang Denk	@mkdir -p $(obj)board/mvbc_p
692699f0512SWolfgang Denk	@ >$(obj)include/config.h
693699f0512SWolfgang Denk	@[ -z "$(findstring MVBC_P,$@)" ] || \
694699f0512SWolfgang Denk	{   	echo "#define CONFIG_MVBC_P" 	>>$(obj)include/config.h; }
695699f0512SWolfgang Denk	@$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
696699f0512SWolfgang Denk
69791c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config:	unconfig
698f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
699df04a3dfSWolfgang Denk
700c9969947SJon Smirlpcm030_config \
701c9969947SJon Smirlpcm030_LOWBOOT_config:	unconfig
702341245a2SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/phytec/pcm030
7030a87dd90SWolfgang Denk	@ >$(obj)include/config.h
704c9969947SJon Smirl	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
705c9969947SJon Smirl		{ echo "TEXT_BASE = 0xFF000000"	>$(obj)board/phytec/pcm030/config.tmp ; \
706c9969947SJon Smirl		  echo "... with LOWBOOT configuration" ; \
707c9969947SJon Smirl		}
708c9969947SJon Smirl	@$(MKCONFIG) -a pcm030 ppc mpc5xxx pcm030 phytec
709c9969947SJon Smirl
7105e4b3361SStefan Roesepf5200_config:	unconfig
711f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
7125e4b3361SStefan Roese
71389394047SwdenkPM520_config \
71489394047SwdenkPM520_DDR_config \
71589394047SwdenkPM520_ROMBOOT_config \
71689394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
717f9328639SMarian Balakowicz	@mkdir -p $(obj)include
71889394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
719f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
720ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
72189394047Swdenk		}
72289394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
723f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
724ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
72589394047Swdenk		}
726f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
72789394047Swdenk
7286624b687SWolfgang Denksmmaco4_config: unconfig
7294677988cSWolfgang Grandegger	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
7309cdc8386SWolfgang Denk
7319cdc8386SWolfgang Denkspieval_config:	unconfig
7324677988cSWolfgang Grandegger	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
7339cdc8386SWolfgang Denk
73445a212c4SWolfgang DenkTB5200_B_config \
735b87dfd28SWolfgang DenkTB5200_config:	unconfig
736f9328639SMarian Balakowicz	@mkdir -p $(obj)include
73745a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
738f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
739ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
74045a212c4SWolfgang Denk		}
7414677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
742b87dfd28SWolfgang Denk
743d4ca31c4SwdenkMINI5200_config	\
744d4ca31c4SwdenkEVAL5200_config	\
745d4ca31c4SwdenkTOP5200_config:	unconfig
746f9328639SMarian Balakowicz	@mkdir -p $(obj)include
747f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
748f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
749d4ca31c4Swdenk
7506c7a1408SwdenkTotal5100_config		\
7516c7a1408SwdenkTotal5200_config		\
7526c7a1408SwdenkTotal5200_lowboot_config	\
7536c7a1408SwdenkTotal5200_Rev2_config		\
7546c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
755f9328639SMarian Balakowicz	@mkdir -p $(obj)include
756f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
7576c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
758f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
759ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
7606c7a1408Swdenk		}
7616c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
762f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
763ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
7646c7a1408Swdenk		}
7656c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
766f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
767ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
7686c7a1408Swdenk		}
7696c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
770f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
771ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
7726c7a1408Swdenk		}
7736c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
774f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
775ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
7766c7a1408Swdenk		}
777f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
7786c7a1408Swdenk
7795196a7a0SWolfgang Denkcam5200_config \
780d9384de2SMarian Balakowiczcam5200_niosflash_config \
7815196a7a0SWolfgang Denkfo300_config \
7825196a7a0SWolfgang DenkMiniFAP_config \
7835078cce8SWolfgang DenkTQM5200S_config \
7845078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
7855196a7a0SWolfgang DenkTQM5200_B_config \
7865196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
7875196a7a0SWolfgang DenkTQM5200_config	\
7885196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
789f9328639SMarian Balakowicz	@mkdir -p $(obj)include
7904677988cSWolfgang Grandegger	@mkdir -p $(obj)board/tqc/tqm5200
791135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
792f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
793f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
794f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
795ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
7965078cce8SWolfgang Denk		}
797d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
798d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
799ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
800d9384de2SMarian Balakowicz		}
8016d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
802f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
803ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
8046d3bc9b8SMarian Balakowicz		}
805cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
806f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
807ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
808978b1096SWolfgang Denk		}
809cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
810f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
811ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
81256523f12Swdenk		}
8135078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
814f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
8155078cce8SWolfgang Denk		}
8165078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
817f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
818f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
81945a212c4SWolfgang Denk		}
820978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
821f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
822978b1096SWolfgang Denk		}
8234677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
824699f0512SWolfgang Denk
8256dedf3d4SHeiko Schocheruc101_config:		unconfig
8266dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
82753d4a498SBartlomiej Sieka
828699f0512SWolfgang Denkv38b_config: unconfig
829699f0512SWolfgang Denk	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
83056523f12Swdenk
831945af8d7Swdenk#########################################################################
8328993e54bSRafal Jaworowski## MPC512x Systems
8338993e54bSRafal Jaworowski#########################################################################
834699f0512SWolfgang Denk
83552568c36SWolfgang Denkaria_config:	unconfig
83652568c36SWolfgang Denk	@$(MKCONFIG) -a aria ppc mpc512x aria davedenx
83752568c36SWolfgang Denk
838e53b507cSStefan Roesemecp5123_config:	unconfig
839e53b507cSStefan Roese	@$(MKCONFIG) -a mecp5123 ppc mpc512x mecp5123 esd
840e53b507cSStefan Roese
84172601d04SWolfgang Denkmpc5121ads_config \
84272601d04SWolfgang Denkmpc5121ads_rev2_config	\
8435f91db7fSJohn Rigby	: unconfig
844210ed200SWolfgang Denk	@mkdir -p $(obj)include
845f31c49dbSMartha Marx	@if [ "$(findstring rev2,$@)" ] ; then \
846f31c49dbSMartha Marx		echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
8475f91db7fSJohn Rigby	fi
84872601d04SWolfgang Denk	@$(MKCONFIG) -a mpc5121ads ppc mpc512x mpc5121ads freescale
8498993e54bSRafal Jaworowski
8508993e54bSRafal Jaworowski#########################################################################
8517ebf7443Swdenk## MPC8xx Systems
8527ebf7443Swdenk#########################################################################
8537ebf7443Swdenk
8542d24a3a7SwdenkAdder_config	\
8552d24a3a7SwdenkAdder87x_config \
85626238132SwdenkAdderII_config	\
8572d24a3a7Swdenk	:		unconfig
858f9328639SMarian Balakowicz	@mkdir -p $(obj)include
85926238132Swdenk	$(if $(findstring AdderII,$@), \
860f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
861f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
8622d24a3a7Swdenk
86316c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
86491c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
86516c8d5e7SWolfgang Denk
866180d3f74SwdenkADS860_config	  \
867180d3f74SwdenkFADS823_config	  \
868180d3f74SwdenkFADS850SAR_config \
869180d3f74SwdenkMPC86xADS_config  \
8701114257cSwdenkMPC885ADS_config  \
871180d3f74SwdenkFADS860T_config:	unconfig
872f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
8737ebf7443Swdenk
8747ebf7443SwdenkAMX860_config	:	unconfig
875f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
8767ebf7443Swdenk
8777ebf7443Swdenkc2mon_config:		unconfig
878f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
8797ebf7443Swdenk
8807ebf7443SwdenkCCM_config:		unconfig
881f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
8827ebf7443Swdenk
8837ebf7443Swdenkcogent_mpc8xx_config:	unconfig
884f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
8857ebf7443Swdenk
8863bac3513SwdenkELPT860_config:		unconfig
887f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
8883bac3513Swdenk
88984c960ceSWolfgang DenkEP88x_config:		unconfig
890f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
89184c960ceSWolfgang Denk
8927ebf7443SwdenkESTEEM192E_config:	unconfig
893f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
8947ebf7443Swdenk
8957ebf7443SwdenkETX094_config	:	unconfig
896f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
8977ebf7443Swdenk
8987ebf7443SwdenkFLAGADM_config:	unconfig
899f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
9007ebf7443Swdenk
9017aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
9027aa78614Swdenk
9037aa78614SwdenkGEN860T_SC_config	\
9047ebf7443SwdenkGEN860T_config: unconfig
905f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9067aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
907f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
908ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
9097aa78614Swdenk		}
910f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
9117ebf7443Swdenk
9127ebf7443SwdenkGENIETV_config:	unconfig
913f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
9147ebf7443Swdenk
9157ebf7443SwdenkGTH_config:	unconfig
916f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
9177ebf7443Swdenk
9187ebf7443Swdenkhermes_config	:	unconfig
919f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
9207ebf7443Swdenk
921c40b2956SwdenkHMI10_config	:	unconfig
9224677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
923c40b2956Swdenk
9247ebf7443SwdenkIAD210_config: unconfig
925f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
9267ebf7443Swdenk
9277ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
9287ebf7443Swdenk
9297ebf7443SwdenkICU862_100MHz_config	\
9307ebf7443SwdenkICU862_config: unconfig
931f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9327ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
933f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
934ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
9357ebf7443Swdenk		}
936f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
9377ebf7443Swdenk
9387ebf7443SwdenkIP860_config	:	unconfig
939f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
9407ebf7443Swdenk
9417ebf7443SwdenkIVML24_256_config \
9427ebf7443SwdenkIVML24_128_config \
9437ebf7443SwdenkIVML24_config:	unconfig
944f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9457ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
946f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
9477ebf7443Swdenk		 }
9487ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
949f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
9507ebf7443Swdenk		 }
9517ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
952f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
9537ebf7443Swdenk		 }
954f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
9557ebf7443Swdenk
9567ebf7443SwdenkIVMS8_256_config \
9577ebf7443SwdenkIVMS8_128_config \
9587ebf7443SwdenkIVMS8_config:	unconfig
959f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9607ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
961f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
9627ebf7443Swdenk		 }
9637ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
964f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
9657ebf7443Swdenk		 }
9667ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
967f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
9687ebf7443Swdenk		 }
969f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
9707ebf7443Swdenk
9711b6275dfSHeiko Schocherkmsupx4_config:		unconfig
9721b6275dfSHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile
9731b6275dfSHeiko Schocher
97456f94be3SwdenkKUP4K_config	:	unconfig
975f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
9760608e04dSwdenk
9770608e04dSwdenkKUP4X_config	:	unconfig
978f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
97956f94be3Swdenk
9807ebf7443SwdenkLANTEC_config	:	unconfig
981f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
9827ebf7443Swdenk
9837ebf7443Swdenklwmon_config:		unconfig
984f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
9857ebf7443Swdenk
9867ebf7443SwdenkMBX_config	\
9877ebf7443SwdenkMBX860T_config:	unconfig
988f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
9897ebf7443Swdenk
990381e4e63SHeiko Schochermgsuvd_config:		unconfig
991d044954fSHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile
992381e4e63SHeiko Schocher
9937ebf7443SwdenkMHPC_config:		unconfig
994f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
9957ebf7443Swdenk
996993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
997993cad93Swdenk
998993cad93SwdenkNETVIA_V2_config \
9997ebf7443SwdenkNETVIA_config:		unconfig
1000f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1001993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
1002f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
1003ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
1004993cad93Swdenk		 }
1005993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
1006f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
1007ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
1008993cad93Swdenk		 }
1009f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
10107ebf7443Swdenk
1011c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
1012c26e454dSwdenk
1013c26e454dSwdenkNETPHONE_V2_config \
101404a85b3bSwdenkNETPHONE_config:	unconfig
1015f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1016c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
1017f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
1018c26e454dSwdenk		 }
1019c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
1020f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
1021c26e454dSwdenk		 }
1022f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
102304a85b3bSwdenk
102479fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
102504a85b3bSwdenk
102679fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
102779fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
102879fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
102979fa88f3SwdenkNETTA_SWAPHOOK_config \
103079fa88f3SwdenkNETTA_ISDN_6412_config \
103104a85b3bSwdenkNETTA_ISDN_config \
103279fa88f3SwdenkNETTA_6412_config \
103304a85b3bSwdenkNETTA_config:		unconfig
1034f9328639SMarian Balakowicz	@mkdir -p $(obj)include
103579fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
1036f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
103704a85b3bSwdenk		 }
103879fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
1039f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
104079fa88f3Swdenk		 }
104179fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
1042f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
104379fa88f3Swdenk		 }
104479fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
1045f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
104679fa88f3Swdenk		 }
104779fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
1048f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
104979fa88f3Swdenk		 }
105079fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
1051f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
105279fa88f3Swdenk		 }
1053f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
105404a85b3bSwdenk
105579fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
105679fa88f3Swdenk
105779fa88f3SwdenkNETTA2_V2_config \
105879fa88f3SwdenkNETTA2_config:		unconfig
1059f9328639SMarian Balakowicz	@mkdir -p $(obj)include
106079fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
1061f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
106279fa88f3Swdenk		 }
106379fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
1064f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
106579fa88f3Swdenk		 }
1066f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
106779fa88f3Swdenk
1068a367d426Sdzu@denx.deNC650_Rev1_config \
1069a367d426Sdzu@denx.deNC650_Rev2_config \
1070a367d426Sdzu@denx.deCP850_config:	unconfig
1071f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1072a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
1073f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1074f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1075a367d426Sdzu@denx.de		 }
1076a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
1077f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1078a367d426Sdzu@denx.de		 }
1079a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
1080f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1081a367d426Sdzu@denx.de		 }
1082f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
10837ca202f5Swdenk
10847ebf7443SwdenkNX823_config:		unconfig
1085f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
10867ebf7443Swdenk
10877ebf7443Swdenkpcu_e_config:		unconfig
1088f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
10897ebf7443Swdenk
10903bbc899fSwdenkQS850_config:	unconfig
1091f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10923bbc899fSwdenk
10933bbc899fSwdenkQS823_config:	unconfig
1094f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10953bbc899fSwdenk
10963bbc899fSwdenkQS860T_config:	unconfig
1097f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
10983bbc899fSwdenk
1099da93ed81Swdenkquantum_config:	unconfig
1100f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1101da93ed81Swdenk
11027ebf7443SwdenkR360MPI_config:	unconfig
1103f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
11047ebf7443Swdenk
1105682011ffSwdenkRBC823_config:	unconfig
1106f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1107682011ffSwdenk
11087ebf7443SwdenkRPXClassic_config:	unconfig
1109f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
11107ebf7443Swdenk
11117ebf7443SwdenkRPXlite_config:		unconfig
1112f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
11137ebf7443Swdenk
1114e63c8ee3SwdenkRPXlite_DW_64_config		\
1115e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1116e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1117e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1118e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config	\
1119e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1120e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config	\
1121e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1122f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1123e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1124f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1125ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1126e63c8ee3Swdenk		}
1127e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1128f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1129f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1130ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1131e63c8ee3Swdenk		}
1132e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
11339314cee6SJean-Christophe PLAGNIOL-VILLARD		{ echo "#define  CONFIG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1134ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1135e63c8ee3Swdenk		}
1136f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1137e63c8ee3Swdenk
113873a8b27cSwdenkrmu_config:	unconfig
1139f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
114073a8b27cSwdenk
11417ebf7443SwdenkRRvision_config:	unconfig
1142f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
11437ebf7443Swdenk
11447ebf7443SwdenkRRvision_LCD_config:	unconfig
1145f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1146f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1147f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1148f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
11497ebf7443Swdenk
11507ebf7443SwdenkSM850_config	:	unconfig
11514677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
11527ebf7443Swdenk
115391c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config:		unconfig
1154f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1155b02d0177SMarkus Klotzbuecher
11567ebf7443SwdenkSPD823TS_config:	unconfig
1157f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
11587ebf7443Swdenk
11596bdf4306SWolfgang Denkstxxtc_config:	unconfig
11607b18c227SAlex Dubov	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc stx
11616bdf4306SWolfgang Denk
1162dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1163f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1164dc7c9a1aSwdenk
11657ebf7443SwdenkSXNI855T_config:	unconfig
1166f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
11677ebf7443Swdenk
1168db2f721fSwdenk# EMK MPC8xx based modules
1169db2f721fSwdenkTOP860_config:		unconfig
1170f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1171db2f721fSwdenk
11727ebf7443Swdenk# Play some tricks for configuration selection
1173e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1174e9132ea9Swdenk# and only 823 boards may have LCD support
1175e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
11767ebf7443Swdenk
11777ebf7443SwdenkFPS850L_config		\
1178384ae025SwdenkFPS860L_config		\
1179f12e568cSwdenkNSCU_config		\
11807ebf7443SwdenkTQM823L_config		\
11817ebf7443SwdenkTQM823L_LCD_config	\
11827ebf7443SwdenkTQM850L_config		\
11837ebf7443SwdenkTQM855L_config		\
11847ebf7443SwdenkTQM860L_config		\
1185d126bfbdSwdenkTQM862L_config		\
1186ae3af05eSwdenkTQM823M_config		\
1187ae3af05eSwdenkTQM850M_config		\
1188f12e568cSwdenkTQM855M_config		\
1189f12e568cSwdenkTQM860M_config		\
1190f12e568cSwdenkTQM862M_config		\
11918cba090cSWolfgang DenkTQM866M_config		\
1192090eb735SMarkus KlotzbuecherTQM885D_config		\
1193efc6f447SGuennadi LiakhovetskiTK885D_config		\
11948cba090cSWolfgang Denkvirtlab2_config:	unconfig
1195f9328639SMarian Balakowicz	@mkdir -p $(obj)include
11967ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1197f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1198f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1199ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
12007ebf7443Swdenk		}
12014677988cSWolfgang Grandegger	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
12027ebf7443Swdenk
12037ebf7443SwdenkTTTech_config:	unconfig
1204f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1205f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1206f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
12074677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
12087ebf7443Swdenk
1209ec0aee7bSwdenkuc100_config	:	unconfig
1210f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1211f7d1572bSwdenk
1212608c9146Swdenkv37_config:	unconfig
1213f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1214f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1215f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1216f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1217608c9146Swdenk
121891e940d9Sdzuwtk_config:	unconfig
1219f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1220f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1221f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
12224677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
122391e940d9Sdzu
12247ebf7443Swdenk#########################################################################
12257ebf7443Swdenk## PPC4xx Systems
12267ebf7443Swdenk#########################################################################
1227e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
12287ebf7443Swdenk
122916c0cc1cSStefan Roeseacadia_config:	unconfig
123016c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
123116c0cc1cSStefan Roese
1232c440bfe6SStefan Roeseacadia_nand_config:	unconfig
123363e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
123463e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1235c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1236c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1237c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1238c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1239c440bfe6SStefan Roese
12407ebf7443SwdenkADCIOP_config:	unconfig
1241f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
12427ebf7443Swdenk
1243899620c2SStefan Roesealpr_config:	unconfig
124435d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1245899620c2SStefan Roese
12467521af1cSWolfgang DenkAP1000_config:unconfig
1247f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
12487521af1cSWolfgang Denk
1249c419d1d6SstroeseAPC405_config:	unconfig
1250f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1251c419d1d6Sstroese
12527ebf7443SwdenkAR405_config:	unconfig
1253f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
12547ebf7443Swdenk
1255549826eaSstroeseASH405_config:	unconfig
1256f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1257549826eaSstroese
12588a316c9bSStefan Roesebamboo_config:	unconfig
1259f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
12608a316c9bSStefan Roese
1261cf959c7dSStefan Roesebamboo_nand_config:	unconfig
126263e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
126363e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1264cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1265f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1266cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1267cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1268cf959c7dSStefan Roese
12698a316c9bSStefan Roesebubinga_config:	unconfig
1270f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1271549826eaSstroese
12727ebf7443SwdenkCANBT_config:	unconfig
1273f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
12747ebf7443Swdenk
1275f09f09d3SAdam Graham# Arches, Canyonlands & Glacier use different U-Boot images
1276f09f09d3SAdam Grahamarches_config \
12774c9e8557SStefan Roesecanyonlands_config \
12784c9e8557SStefan Roeseglacier_config:	unconfig
12794c9e8557SStefan Roese	@mkdir -p $(obj)include
12804c9e8557SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
12814c9e8557SStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
12824c9e8557SStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1283c813f1f8SStefan Roese
1284fe7c0db6SStefan Roesecanyonlands_nand_config \
1285fe7c0db6SStefan Roeseglacier_nand_config:	unconfig
128671665ebfSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/canyonlands
128771665ebfSStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/canyonlands
128871665ebfSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1289fe7c0db6SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1290fe7c0db6SStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
129171665ebfSStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
129271665ebfSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
129371665ebfSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
129471665ebfSStefan Roese
12951d6f9720SwdenkCATcenter_config	\
12961d6f9720SwdenkCATcenter_25_config	\
12971d6f9720SwdenkCATcenter_33_config:	unconfig
1298f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1299f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1300f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
13011d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1302f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1303ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
13041d6f9720Swdenk		}
13051d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1306f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1307ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
13081d6f9720Swdenk		}
1309f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
131010767ccbSwdenk
1311699f0512SWolfgang DenkCMS700_config:	unconfig
1312699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1313699f0512SWolfgang Denk
13147644f16fSStefan RoeseCPCI2DP_config:	unconfig
1315f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
13167644f16fSStefan Roese
13171951f847SMatthias FuchsCPCI405_config		\
1318549826eaSstroeseCPCI4052_config		\
1319c419d1d6SstroeseCPCI405DT_config	\
1320549826eaSstroeseCPCI405AB_config:	unconfig
1321dd794323SMatthias Fuchs	@mkdir -p $(obj)board/esd/cpci405
1322f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
13237ebf7443Swdenk
13247ebf7443SwdenkCPCIISER4_config:	unconfig
1325f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
13267ebf7443Swdenk
13277ebf7443SwdenkCRAYL1_config:	unconfig
1328f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
13297ebf7443Swdenk
1330cd0a9de6Swdenkcsb272_config:	unconfig
1331f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1332cd0a9de6Swdenk
1333aa245090Swdenkcsb472_config:	unconfig
1334f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1335aa245090Swdenk
13367ebf7443SwdenkDASA_SIM_config: unconfig
1337f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
13387ebf7443Swdenk
1339b209a114SDirk Eibachdlvision_config: unconfig
1340b209a114SDirk Eibach	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dlvision gdsys
1341b209a114SDirk Eibach
134272cd5aa7SstroeseDP405_config:	unconfig
1343f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
134472cd5aa7Sstroese
13457ebf7443SwdenkDU405_config:	unconfig
1346f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
13477ebf7443Swdenk
13481a3ac86bSMatthias FuchsDU440_config:	unconfig
13491a3ac86bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
13501a3ac86bSMatthias Fuchs
13518a316c9bSStefan Roeseebony_config:	unconfig
1352f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
13537ebf7443Swdenk
13547ebf7443SwdenkERIC_config:	unconfig
1355f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
13567ebf7443Swdenk
1357d1cbe85bSwdenkEXBITGEN_config:	unconfig
1358f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1359d1cbe85bSwdenk
13605deb8022SGeorg Schardtfx12mm_flash_config: unconfig
13615deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
13625deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/avnet/fx12mm
13635deb8022SGeorg Schardt	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
13645deb8022SGeorg Schardt		> $(obj)board/avnet/fx12mm/config.tmp
13655deb8022SGeorg Schardt	@echo "TEXT_BASE := 0xFFCB0000" \
13665deb8022SGeorg Schardt		>> $(obj)board/avnet/fx12mm/config.tmp
13675deb8022SGeorg Schardt	@$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
13685deb8022SGeorg Schardt
13695deb8022SGeorg Schardtfx12mm_config: unconfig
13705deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
13715deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/avnet/fx12mm
13725deb8022SGeorg Schardt	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
13735deb8022SGeorg Schardt		> $(obj)board/avnet/fx12mm/config.tmp
13745deb8022SGeorg Schardt	@echo "TEXT_BASE := 0x03000000" \
13755deb8022SGeorg Schardt		>> $(obj)board/avnet/fx12mm/config.tmp
13765deb8022SGeorg Schardt	@$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
13775deb8022SGeorg Schardt
1378c419d1d6SstroeseG2000_config:	unconfig
1379f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1380c419d1d6Sstroese
138189b8619aSDirk Eibachgdppc440etx_config:	unconfig
138289b8619aSDirk Eibach	@$(MKCONFIG) $(@:_config=) ppc ppc4xx gdppc440etx gdsys
138389b8619aSDirk Eibach
1384ac982ea5SNiklaus Gigerhcu4_config:	unconfig
1385b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
138635d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1387ac982ea5SNiklaus Giger
1388ac982ea5SNiklaus Gigerhcu5_config:	unconfig
1389b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
139035d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1391ac982ea5SNiklaus Giger
1392c419d1d6SstroeseHH405_config:	unconfig
1393f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1394c419d1d6Sstroese
139572cd5aa7SstroeseHUB405_config:	unconfig
1396f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
139772cd5aa7Sstroese
13984c188367SDirk Eibach# Compact-Center(codename intip) & DevCon-Center use different U-Boot images
13994c188367SDirk Eibachintip_config \
14004c188367SDirk Eibachdevconcenter_config:	unconfig
14014c188367SDirk Eibach	@mkdir -p $(obj)include
14024c188367SDirk Eibach	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
14034c188367SDirk Eibach		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14044c188367SDirk Eibach	@$(MKCONFIG) -n $@ -a intip ppc ppc4xx intip gdsys
14054c188367SDirk Eibach
1406db01a2eaSwdenkJSE_config:	unconfig
1407f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1408db01a2eaSwdenk
1409b79316f2SStefan RoeseKAREF_config: unconfig
1410f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1411b79316f2SStefan Roese
14124745acaaSStefan Roesekatmai_config:	unconfig
14134745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
14144745acaaSStefan Roese
1415353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1416353f2688SStefan Roesekilauea_config \
1417353f2688SStefan Roesehaleakala_config: unconfig
1418353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1419566806caSStefan Roese
14203d6cb3b2SStefan Roesekilauea_nand_config \
14213d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
14223d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
14233d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
14243d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
14253d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
14263d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
14273d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
14283d6cb3b2SStefan Roese
1429c591dffeSLarry Johnsonkorat_config:	unconfig
1430c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1431c591dffeSLarry Johnson
14326e7fb6eaSStefan Roeseluan_config:	unconfig
1433f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
14346e7fb6eaSStefan Roese
1435b765ffb7SStefan Roeselwmon5_config:	unconfig
1436b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1437b765ffb7SStefan Roese
1438211ea91aSStefan Roesemakalu_config:	unconfig
1439211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1440211ea91aSStefan Roese
1441b05f3543SNiklaus Gigermcu25_config:  unconfig
1442b05f3543SNiklaus Giger	@mkdir -p $(obj)board/netstal/common
1443b05f3543SNiklaus Giger	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1444b05f3543SNiklaus Giger
1445b79316f2SStefan RoeseMETROBOX_config: unconfig
1446f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1447b79316f2SStefan Roese
14487ebf7443SwdenkMIP405_config:	unconfig
1449f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
14507ebf7443Swdenk
1451f3e0de60SwdenkMIP405T_config:	unconfig
1452f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1453f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1454ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1455f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1456f3e0de60Swdenk
14577ebf7443SwdenkML2_config:	unconfig
1458f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
14597ebf7443Swdenk
1460028ab6b5Swdenkml300_config:	unconfig
1461f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1462028ab6b5Swdenk
146301a00431SRicardo Ribalda Delgadoml507_flash_config: unconfig
1464880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
146501a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1466880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1467880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1468880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1469880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1470e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
147101a00431SRicardo Ribalda Delgado
1472086511fcSRicardo Ribalda Delgadoml507_config: unconfig
1473880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
147401a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1475880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1476880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1477880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000"  \
1478880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1479e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1480086511fcSRicardo Ribalda Delgado
1481d7b26d58SDirk Eibachneo_config:	unconfig
1482d7b26d58SDirk Eibach	@$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys
1483d7b26d58SDirk Eibach
14848a316c9bSStefan Roeseocotea_config:	unconfig
1485f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
14860e6d798cSwdenk
14877ebf7443SwdenkOCRTC_config		\
14887ebf7443SwdenkORSG_config:	unconfig
1489f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
14907ebf7443Swdenk
14915568e613SStefan Roesep3p440_config:	unconfig
1492f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
14935568e613SStefan Roese
14947ebf7443SwdenkPCI405_config:	unconfig
1495f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
14967ebf7443Swdenk
1497a4c8d138SStefan Roesepcs440ep_config:	unconfig
1498f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1499a4c8d138SStefan Roese
15007ebf7443SwdenkPIP405_config:	unconfig
1501f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
15027ebf7443Swdenk
150372cd5aa7SstroesePLU405_config:	unconfig
1504f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
150572cd5aa7Sstroese
1506549826eaSstroesePMC405_config:	unconfig
1507f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1508549826eaSstroese
150999d8b23bSMatthias FuchsPMC405DE_config:	unconfig
151099d8b23bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405de esd
151199d8b23bSMatthias Fuchs
15128ba132caSMatthias FuchsPMC440_config:	unconfig
15138ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
15148ba132caSMatthias Fuchs
1515281e00a3SwdenkPPChameleonEVB_config		\
1516e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1517e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1518e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1519e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1520e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1521e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1522f9328639SMarian Balakowicz	@mkdir -p $(obj)include
15231d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1524f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1525ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1526fbe4b5cbSwdenk		}
15271d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1528f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1529ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1530fbe4b5cbSwdenk		}
15311d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1532f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1533ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1534fbe4b5cbSwdenk		}
1535e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1536f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1537ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1538e55ca7e2Swdenk		}
1539e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1540f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1541ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1542e55ca7e2Swdenk		}
1543f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
154412f34241Swdenk
154573ccb341SGary Jennejohnquad100hd_config:	unconfig
154673ccb341SGary Jennejohn	@$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
154773ccb341SGary Jennejohn
154811188d55SStefan Roeseredwood_config: unconfig
154911188d55SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
155011188d55SStefan Roese
1551430f1b0fSStefan Roesesbc405_config:	unconfig
1552430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1553430f1b0fSStefan Roese
1554699f0512SWolfgang Denksc3_config:unconfig
1555699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1556699f0512SWolfgang Denk
1557430f1b0fSStefan Roesesequoia_config \
1558854bc8daSStefan Roeserainier_config: unconfig
15598318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1560430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1561430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
15622aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1563854bc8daSStefan Roese
1564430f1b0fSStefan Roesesequoia_nand_config \
1565854bc8daSStefan Roeserainier_nand_config: unconfig
156663e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
156763e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
15688318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1569430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1570430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1571430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
15728318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
15738318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1574652a10c0Swdenk
1575d873133fSStefan Roesesequoia_ramboot_config \
1576d873133fSStefan Roeserainier_ramboot_config: unconfig
1577d873133fSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
1578d873133fSStefan Roese	@echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h
1579d873133fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1580d873133fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1581d873133fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1582d873133fSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1583d873133fSStefan Roese	@echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \
1584d873133fSStefan Roese		$(obj)board/amcc/sequoia/config.tmp
1585d873133fSStefan Roese
1586d4024bb7SJohn Otkentaihu_config:	unconfig
1587d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1588d4024bb7SJohn Otken
15895fb692caSStefan Roesetaishan_config:	unconfig
15905fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
15915fb692caSStefan Roese
1592e07f4a80SRicardo Ribalda Delgadov5fx30teval_config: unconfig
1593880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1594e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1595880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1596880f6a5dSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1597880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x03000000" \
1598880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1599e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1600e07f4a80SRicardo Ribalda Delgado
1601e07f4a80SRicardo Ribalda Delgadov5fx30teval_flash_config: unconfig
1602880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1603e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1604880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
16052bec498eSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1606880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFF1C0000" \
16072bec498eSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1608e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1609e07f4a80SRicardo Ribalda Delgado
161072cd5aa7SstroeseVOH405_config:	unconfig
1611f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
161272cd5aa7Sstroese
1613c419d1d6SstroeseVOM405_config:	unconfig
1614f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1615c419d1d6Sstroese
16167ebf7443SwdenkW7OLMC_config	\
16177ebf7443SwdenkW7OLMG_config: unconfig
1618f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
16197ebf7443Swdenk
1620430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1621430f1b0fSStefan Roesewalnut_config \
1622430f1b0fSStefan Roesesycamore_config: unconfig
1623430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
16247ebf7443Swdenk
1625c419d1d6SstroeseWUH405_config:	unconfig
1626f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1627c419d1d6Sstroese
16281f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_flash_config: unconfig
16291f4d5326SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
16301f4d5326SRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
16311f4d5326SRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc405-generic/config.tmp
16321f4d5326SRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
16331f4d5326SRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc405-generic/config.tmp
16341f4d5326SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
16351f4d5326SRicardo Ribalda Delgado
16361f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_config: unconfig
16371f4d5326SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
16381f4d5326SRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
16391f4d5326SRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc405-generic/config.tmp
16401f4d5326SRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
16411f4d5326SRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc405-generic/config.tmp
16421f4d5326SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
16431f4d5326SRicardo Ribalda Delgado
1644e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_flash_config: unconfig
1645880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1646880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1647880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1648880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1649880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1650e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1651e07f4a80SRicardo Ribalda Delgado
1652e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_config: unconfig
1653880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1654880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1655880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1656880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
1657880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1658e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1659e07f4a80SRicardo Ribalda Delgado
166010c1b218SPeter TyserXPEDITE1000_config:	unconfig
166110c1b218SPeter Tyser	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1000 xes
1662ba56f625Swdenk
1663430f1b0fSStefan Roeseyosemite_config \
16648a316c9bSStefan Roeseyellowstone_config: unconfig
1665700200c6SStefan Roese	@mkdir -p $(obj)include
1666430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1667430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
16682aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
16698a316c9bSStefan Roese
16706c5879f3SMarian Balakowiczyucca_config:	unconfig
1671f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
16726c5879f3SMarian Balakowicz
1673779e9751SStefan Roesezeus_config:	unconfig
1674779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1675779e9751SStefan Roese
16767ebf7443Swdenk#########################################################################
1677983fda83Swdenk## MPC8220 Systems
1678983fda83Swdenk#########################################################################
1679dc17fb6dSWolfgang Denk
1680dc17fb6dSWolfgang DenkAlaska8220_config	\
1681dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1682f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1683983fda83Swdenk
168412b43d51Swdenksorcery_config:		unconfig
1685f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
168612b43d51Swdenk
1687983fda83Swdenk#########################################################################
16887ebf7443Swdenk## MPC824x Systems
16897ebf7443Swdenk#########################################################################
1690efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
16913bac3513Swdenk
16920332990bSwdenkA3000_config: unconfig
1693f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
16940332990bSwdenk
16958e6f1a8eSWolfgang Denkbarco_config: unconfig
1696f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
16978e6f1a8eSWolfgang Denk
16987ebf7443SwdenkBMW_config: unconfig
1699f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
17007ebf7443Swdenk
17013bac3513SwdenkCPC45_config	\
17023bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1703f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1704f9328639SMarian Balakowicz	@cd $(obj)include ;				\
17053bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
17063bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1707ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
17083bac3513Swdenk	else \
17093bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1710ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
17113bac3513Swdenk	fi; \
17123bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
17133bac3513Swdenk
17147ebf7443SwdenkCU824_config: unconfig
1715f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
17167ebf7443Swdenk
17177abf0c58Swdenkdebris_config: unconfig
1718f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
17197abf0c58Swdenk
172080885a9dSwdenkeXalion_config: unconfig
1721f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
172280885a9dSwdenk
1723756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1724f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1725756f586aSwdenk
172653dd6ce4SWolfgang Denkkvme080_config: unconfig
1727f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
172853dd6ce4SWolfgang Denk
172961525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
173061525f2fSGuennadi Liakhovetski# time permits.
173161525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \
173261525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed
173361525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig
173461525f2fSGuennadi Liakhovetski	@mkdir -p $(obj)include
173561525f2fSGuennadi Liakhovetski	@case $@ in \
173661525f2fSGuennadi Liakhovetski		*HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
173761525f2fSGuennadi Liakhovetski		*HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
173861525f2fSGuennadi Liakhovetski	esac
173961525f2fSGuennadi Liakhovetski	@$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
174061525f2fSGuennadi Liakhovetski
17417ebf7443SwdenkMOUSSE_config: unconfig
1742f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
17437ebf7443Swdenk
17447ebf7443SwdenkMUSENKI_config: unconfig
1745f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
17467ebf7443Swdenk
1747b4676a25SwdenkMVBLUE_config:	unconfig
1748f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1749b4676a25Swdenk
17507ebf7443SwdenkOXC_config: unconfig
1751f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
17527ebf7443Swdenk
17537ebf7443SwdenkPN62_config: unconfig
1754f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
17557ebf7443Swdenk
17567ebf7443SwdenkSandpoint8240_config: unconfig
1757f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
17587ebf7443Swdenk
17597ebf7443SwdenkSandpoint8245_config: unconfig
1760f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
17617ebf7443Swdenk
1762466b7410Swdenksbc8240_config: unconfig
1763f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1764466b7410Swdenk
1765d1cbe85bSwdenkSL8245_config: unconfig
1766f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1767d1cbe85bSwdenk
17687ebf7443Swdenkutx8245_config: unconfig
1769f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
17707ebf7443Swdenk
17717ebf7443Swdenk#########################################################################
17727ebf7443Swdenk## MPC8260 Systems
17737ebf7443Swdenk#########################################################################
17747ebf7443Swdenk
177554387ac9Swdenkatc_config:	unconfig
1776f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
177754387ac9Swdenk
17787ebf7443Swdenkcogent_mpc8260_config:	unconfig
1779f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
17807ebf7443Swdenk
17817ebf7443SwdenkCPU86_config	\
17827ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1783f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1784f9328639SMarian Balakowicz	@cd $(obj)include ;				\
17857ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
17867ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1787ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
17887ebf7443Swdenk	else \
17897ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1790ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
17917ebf7443Swdenk	fi; \
17927ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
17937ebf7443Swdenk
1794384cc687SwdenkCPU87_config	\
1795384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1796f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1797f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1798384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1799384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1800ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1801384cc687Swdenk	else \
1802384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1803ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1804384cc687Swdenk	fi; \
1805384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1806384cc687Swdenk
1807f901a83bSWolfgang Denkep8248_config	\
1808f901a83bSWolfgang Denkep8248E_config	:	unconfig
1809f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1810f901a83bSWolfgang Denk
18117ebf7443Swdenkep8260_config:	unconfig
1812f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
18137ebf7443Swdenk
18148d4ac794SWolfgang Denkep82xxm_config:	unconfig
181590b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
18168d4ac794SWolfgang Denk
18177ebf7443Swdenkgw8260_config:	unconfig
1818f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
18197ebf7443Swdenk
18207ebf7443Swdenkhymod_config:	unconfig
1821f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
18227ebf7443Swdenk
18239dd41a7bSwdenkIDS8247_config:	unconfig
1824f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
18259dd41a7bSwdenk
18267ebf7443SwdenkIPHASE4539_config:	unconfig
1827f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
18287ebf7443Swdenk
1829c3c7f861SwdenkISPAN_config		\
1830c3c7f861SwdenkISPAN_REVB_config:	unconfig
1831f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1832c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
18336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1834c3c7f861Swdenk	fi
1835f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1836c3c7f861Swdenk
1837ac9db066SHeiko Schochermgcoge_config	:	unconfig
183886e9cdf8SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile
1839ac9db066SHeiko Schocher
184004a85b3bSwdenkMPC8260ADS_config	\
1841901787d6SwdenkMPC8260ADS_lowboot_config	\
184204a85b3bSwdenkMPC8260ADS_33MHz_config	\
1843901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
184404a85b3bSwdenkMPC8260ADS_40MHz_config	\
1845901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
184604a85b3bSwdenkMPC8272ADS_config	\
1847901787d6SwdenkMPC8272ADS_lowboot_config	\
184804a85b3bSwdenkPQ2FADS_config		\
1849901787d6SwdenkPQ2FADS_lowboot_config		\
185004a85b3bSwdenkPQ2FADS-VR_config	\
1851901787d6SwdenkPQ2FADS-VR_lowboot_config	\
185204a85b3bSwdenkPQ2FADS-ZU_config	\
1853901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
185404a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1855901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
185604a85b3bSwdenk	:		unconfig
1857f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1858b7e24d28SJon Loeliger	@mkdir -p $(obj)board/freescale/mpc8260ads
185904a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
18606d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
18616d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
186204a85b3bSwdenk	$(if $(findstring MHz,$@), \
1863f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
186404a85b3bSwdenk	$(if $(findstring VR,$@), \
1865f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1866901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1867b7e24d28SJon Loeliger		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1868ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1869901787d6Swdenk		}
1870b7e24d28SJon Loeliger	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
18717ebf7443Swdenk
1872db2f721fSwdenkMPC8266ADS_config:	unconfig
1873aa3511e4SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1874db2f721fSwdenk
1875adf22b66SHeiko Schochermuas3001_dev_config \
1876adf22b66SHeiko Schochermuas3001_config	:	unconfig
1877adf22b66SHeiko Schocher	@mkdir -p $(obj)include
1878adf22b66SHeiko Schocher	@mkdir -p $(obj)board/muas3001
1879adf22b66SHeiko Schocher	@if [ "$(findstring dev,$@)" ] ; then \
1880adf22b66SHeiko Schocher		echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1881adf22b66SHeiko Schocher	fi
1882adf22b66SHeiko Schocher	@$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1883adf22b66SHeiko Schocher
1884efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
188510f67017SwdenkPM825_config	\
1886efa329cbSwdenkPM825_ROMBOOT_config	\
1887efa329cbSwdenkPM825_BIGFLASH_config	\
1888efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
18897ebf7443SwdenkPM826_config	\
1890efa329cbSwdenkPM826_ROMBOOT_config	\
1891efa329cbSwdenkPM826_BIGFLASH_config	\
1892efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1893f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1894f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1895efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1896f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
18977ebf7443Swdenk	else \
1898f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1899efa329cbSwdenk	fi
1900efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1901ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1902f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1903f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1904efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1905ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1906f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
19077ebf7443Swdenk		fi; \
1908efa329cbSwdenk	else \
1909ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1910efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1911ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1912f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1913f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1914efa329cbSwdenk		else \
1915f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1916efa329cbSwdenk		fi; \
1917efa329cbSwdenk	fi
1918f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1919efa329cbSwdenk
1920efa329cbSwdenkPM828_config	\
1921efa329cbSwdenkPM828_PCI_config	\
1922efa329cbSwdenkPM828_ROMBOOT_config	\
1923efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1924f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1925f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
192617076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1927f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1928ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1929efa329cbSwdenk	fi
1930efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1931ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1932f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1933f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1934efa329cbSwdenk	fi
1935f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
19367ebf7443Swdenk
19377ebf7443Swdenkppmc8260_config:	unconfig
1938f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
19397ebf7443Swdenk
19408b0bfc68SwdenkRattler8248_config	\
19418b0bfc68SwdenkRattler_config:		unconfig
1942f9328639SMarian Balakowicz	@mkdir -p $(obj)include
19438b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1944f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1945f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
19468b0bfc68Swdenk
19477ebf7443SwdenkRPXsuper_config:	unconfig
1948f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
19497ebf7443Swdenk
19507ebf7443Swdenkrsdproto_config:	unconfig
1951f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
19527ebf7443Swdenk
19537ebf7443Swdenksacsng_config:	unconfig
1954f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
19557ebf7443Swdenk
19567ebf7443Swdenksbc8260_config:	unconfig
1957f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
19587ebf7443Swdenk
19597ebf7443SwdenkSCM_config:		unconfig
1960f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
19617ebf7443Swdenk
196227b207fdSwdenkTQM8255_AA_config \
196327b207fdSwdenkTQM8260_AA_config \
196427b207fdSwdenkTQM8260_AB_config \
196527b207fdSwdenkTQM8260_AC_config \
196627b207fdSwdenkTQM8260_AD_config \
196727b207fdSwdenkTQM8260_AE_config \
196827b207fdSwdenkTQM8260_AF_config \
196927b207fdSwdenkTQM8260_AG_config \
197027b207fdSwdenkTQM8260_AH_config \
19711f62bc2dSWolfgang DenkTQM8260_AI_config \
197227b207fdSwdenkTQM8265_AA_config:  unconfig
1973f9328639SMarian Balakowicz	@mkdir -p $(obj)include
197427b207fdSwdenk	@case "$@" in \
197527b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
197627b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
197727b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
197827b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
197927b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
198027b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
198127b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
198227b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
198327b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
19841f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
198527b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
198627b207fdSwdenk	esac; \
198727b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1988f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
198927b207fdSwdenk	fi; \
1990f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
199127b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
19921aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1993f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1994ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
19957ebf7443Swdenk	else \
1996f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1997ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
199827b207fdSwdenk	fi; \
19991aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
2000f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
2001ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
200227b207fdSwdenk	else \
2003f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
2004ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
20057ebf7443Swdenk	fi
20064677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
20077ebf7443Swdenk
2008fa230445SHeiko SchocherTQM8272_config: unconfig
20094677988cSWolfgang Grandegger	@$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
2010fa230445SHeiko Schocher
2011ba91e26aSwdenkVoVPN-GW_66MHz_config	\
2012ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
2013f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2014f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
2015f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
2016ba91e26aSwdenk
201754387ac9SwdenkZPC1900_config: unconfig
2018f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
20197aa78614Swdenk
20204e5ca3ebSwdenk#########################################################################
20214e5ca3ebSwdenk## Coldfire
20224e5ca3ebSwdenk#########################################################################
20234e5ca3ebSwdenk
2024bf9a5215STsiChung LiewM5208EVBE_config :		unconfig
2025bf9a5215STsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5208evbe freescale
2026bf9a5215STsiChung Liew
2027a21d0c2cSTsiChung LiewM52277EVB_config \
2028a21d0c2cSTsiChung LiewM52277EVB_spansion_config \
2029a21d0c2cSTsiChung LiewM52277EVB_stmicro_config :	unconfig
2030a21d0c2cSTsiChung Liew	@case "$@" in \
2031a21d0c2cSTsiChung Liew	M52277EVB_config)		FLASH=SPANSION;; \
2032a21d0c2cSTsiChung Liew	M52277EVB_spansion_config)	FLASH=SPANSION;; \
2033a21d0c2cSTsiChung Liew	M52277EVB_stmicro_config)	FLASH=STMICRO;; \
2034a21d0c2cSTsiChung Liew	esac; \
2035a21d0c2cSTsiChung Liew	if [ "$${FLASH}" = "SPANSION" ] ; then \
2036a21d0c2cSTsiChung Liew		echo "#define CONFIG_SYS_SPANSION_BOOT"	>> $(obj)include/config.h ; \
2037a21d0c2cSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
2038a21d0c2cSTsiChung Liew		cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
2039a21d0c2cSTsiChung Liew		$(XECHO) "... with SPANSION boot..." ; \
2040a21d0c2cSTsiChung Liew	fi; \
2041a21d0c2cSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
2042a21d0c2cSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
2043a21d0c2cSTsiChung Liew		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
2044a21d0c2cSTsiChung Liew		echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
2045a21d0c2cSTsiChung Liew		cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
2046a21d0c2cSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
2047a21d0c2cSTsiChung Liew	fi
20481552af70STsiChungLiew	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
20491552af70STsiChungLiew
20504a442d31STsiChungLiewM5235EVB_config \
20514a442d31STsiChungLiewM5235EVB_Flash16_config \
20524a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
20534a442d31STsiChungLiew	@case "$@" in \
20544a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
20554a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
20564a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
20574a442d31STsiChungLiew	esac; \
20584a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
2059ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
20604a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
20614a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
20624a442d31STsiChungLiew	else \
20634a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
20644a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
20654a442d31STsiChungLiew	fi
20664a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
20674a442d31STsiChungLiew
2068a605aacdSTsiChungLiewM5249EVB_config :		unconfig
2069a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
2070a605aacdSTsiChungLiew
20716d33c6acSTsiChung LiewM5253DEMO_config :		unconfig
20726d33c6acSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
20736d33c6acSTsiChung Liew
2074a1436a84STsiChungLiewM5253EVBE_config :		unconfig
2075a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
2076a1436a84STsiChungLiew
20777481266eSWolfgang Denkcobra5272_config :		unconfig
2078f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
20797481266eSWolfgang Denk
20804176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
2081f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2082f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
2083f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2084f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
20854176c799SWolfgang Denk
20864176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
2087f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2088f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
2089f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2090f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
20914176c799SWolfgang Denk
2092daa6e418SBartlomiej Siekaidmr_config :			unconfig
2093daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
2094daa6e418SBartlomiej Sieka
20954176c799SWolfgang DenkM5271EVB_config :		unconfig
2096659e9badSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
20974176c799SWolfgang Denk
20984e5ca3ebSwdenkM5272C3_config :		unconfig
209956df091dSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
21004e5ca3ebSwdenk
2101545c8e0aSMatthew FettkeM5275EVB_config :		unconfig
2102545c8e0aSMatthew Fettke	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
2103545c8e0aSMatthew Fettke
21044e5ca3ebSwdenkM5282EVB_config :		unconfig
210510db3a17STsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
21064e5ca3ebSwdenk
2107536e7dacSTsiChung LiewM53017EVB_config :		unconfig
2108536e7dacSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale
2109536e7dacSTsiChung Liew
21108e585f02STsiChung LiewM5329AFEE_config \
21118e585f02STsiChung LiewM5329BFEE_config :	unconfig
21128e585f02STsiChung Liew	@case "$@" in \
21138e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
21148e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
21158e585f02STsiChung Liew	esac; \
21168e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
2117ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
21188e585f02STsiChung Liew	fi
21198e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
21208e585f02STsiChung Liew
2121aa5f1f9dSTsiChungLiewM5373EVB_config :	unconfig
2122aa5f1f9dSTsiChungLiew	@case "$@" in \
2123aa5f1f9dSTsiChungLiew	M5373EVB_config)	NAND=16;; \
2124aa5f1f9dSTsiChungLiew	esac; \
2125aa5f1f9dSTsiChungLiew	if [ "$${NAND}" != "0" ] ; then \
2126aa5f1f9dSTsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
2127aa5f1f9dSTsiChungLiew	fi
2128aa5f1f9dSTsiChungLiew	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
2129aa5f1f9dSTsiChungLiew
213005316f8eSTsiChung LiewM54451EVB_config \
213105316f8eSTsiChung LiewM54451EVB_stmicro_config :	unconfig
213205316f8eSTsiChung Liew	@case "$@" in \
2133709b384bSTsiChung Liew	M54451EVB_config)		FLASH=NOR;; \
213405316f8eSTsiChung Liew	M54451EVB_stmicro_config)	FLASH=STMICRO;; \
213505316f8eSTsiChung Liew	esac; \
2136709b384bSTsiChung Liew	if [ "$${FLASH}" = "NOR" ] ; then \
213705316f8eSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
213805316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
2139709b384bSTsiChung Liew		$(XECHO) "... with NOR boot..." ; \
214005316f8eSTsiChung Liew	fi; \
214105316f8eSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
214205316f8eSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
21436d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
214405316f8eSTsiChung Liew		echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
214505316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
214605316f8eSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
214705316f8eSTsiChung Liew	fi; \
21486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
214905316f8eSTsiChung Liew	@$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
215005316f8eSTsiChung Liew
21518ae158cdSTsiChungLiewM54455EVB_config \
21528ae158cdSTsiChungLiewM54455EVB_atmel_config \
21538ae158cdSTsiChungLiewM54455EVB_intel_config \
21548ae158cdSTsiChungLiewM54455EVB_a33_config \
21558ae158cdSTsiChungLiewM54455EVB_a66_config \
21568ae158cdSTsiChungLiewM54455EVB_i33_config \
21579f751551STsiChung LiewM54455EVB_i66_config \
21589f751551STsiChung LiewM54455EVB_stm33_config :	unconfig
21598ae158cdSTsiChungLiew	@case "$@" in \
21608ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
21618ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
21628ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
21638ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
21648ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
21658ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
21668ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
21679f751551STsiChung Liew	M54455EVB_stm33_config)		FLASH=STMICRO; FREQ=33333333;; \
21688ae158cdSTsiChungLiew	esac; \
21691aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
21706d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
2171e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2172e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2173ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
21749f751551STsiChung Liew	fi; \
21759f751551STsiChung Liew	if [ "$${FLASH}" = "ATMEL" ] ; then \
21766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_ATMEL_BOOT"	>> $(obj)include/config.h ; \
2177e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2178e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2179ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
21808ae158cdSTsiChungLiew	fi; \
21819f751551STsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
21829f751551STsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
21836d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
21849f751551STsiChung Liew		echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
21859f751551STsiChung Liew		cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
21869f751551STsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
21879f751551STsiChung Liew	fi; \
21886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2189ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
21908ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
21918ae158cdSTsiChungLiew
219257a12720STsiChungLiewM5475AFE_config \
219357a12720STsiChungLiewM5475BFE_config \
219457a12720STsiChungLiewM5475CFE_config \
219557a12720STsiChungLiewM5475DFE_config \
219657a12720STsiChungLiewM5475EFE_config \
219757a12720STsiChungLiewM5475FFE_config \
219857a12720STsiChungLiewM5475GFE_config :	unconfig
219957a12720STsiChungLiew	@case "$@" in \
220057a12720STsiChungLiew	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
220157a12720STsiChungLiew	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
220257a12720STsiChungLiew	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
220357a12720STsiChungLiew	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
220457a12720STsiChungLiew	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
220557a12720STsiChungLiew	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
220657a12720STsiChungLiew	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
220757a12720STsiChungLiew	esac; \
22086d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BUSCLK	133333333" > $(obj)include/config.h ; \
22096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
22106d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
221157a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
22126d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
221357a12720STsiChungLiew	fi; \
221457a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
22156d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
221657a12720STsiChungLiew	fi; \
221757a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
22186d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
221957a12720STsiChungLiew	fi; \
222057a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
22216d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
222257a12720STsiChungLiew	fi
222357a12720STsiChungLiew	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
222457a12720STsiChungLiew
222557a12720STsiChungLiewM5485AFE_config \
222657a12720STsiChungLiewM5485BFE_config \
222757a12720STsiChungLiewM5485CFE_config \
222857a12720STsiChungLiewM5485DFE_config \
222957a12720STsiChungLiewM5485EFE_config \
223057a12720STsiChungLiewM5485FFE_config \
223157a12720STsiChungLiewM5485GFE_config \
223257a12720STsiChungLiewM5485HFE_config :	unconfig
223357a12720STsiChungLiew	@case "$@" in \
223457a12720STsiChungLiew	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
223557a12720STsiChungLiew	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
223657a12720STsiChungLiew	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
223757a12720STsiChungLiew	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
223857a12720STsiChungLiew	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
223957a12720STsiChungLiew	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
224057a12720STsiChungLiew	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
22414d264effSTsiChungLiew	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
224257a12720STsiChungLiew	esac; \
22436d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BUSCLK	100000000" > $(obj)include/config.h ; \
22446d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
22456d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
224657a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
22476d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
224857a12720STsiChungLiew	fi; \
224957a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
22506d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
225157a12720STsiChungLiew	fi; \
225257a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
22536d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
225457a12720STsiChungLiew	fi; \
225557a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
22566d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
225757a12720STsiChungLiew	fi
225857a12720STsiChungLiew	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
225957a12720STsiChungLiew
2260699f0512SWolfgang DenkTASREG_config :		unconfig
2261699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2262699f0512SWolfgang Denk
22637ebf7443Swdenk#########################################################################
2264f046ccd1SEran Liberty## MPC83xx Systems
2265f046ccd1SEran Liberty#########################################################################
2266f046ccd1SEran Liberty
2267de044361SHeiko Schocherkmeter1_config: unconfig
2268de044361SHeiko Schocher	@$(MKCONFIG) kmeter1 ppc mpc83xx kmeter1 keymile
2269de044361SHeiko Schocher
22705c5d3242SKim PhillipsMPC8313ERDB_33_config \
2271e4c09508SScott WoodMPC8313ERDB_66_config \
2272e4c09508SScott WoodMPC8313ERDB_NAND_33_config \
2273e4c09508SScott WoodMPC8313ERDB_NAND_66_config: unconfig
2274cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2275e4c09508SScott Wood	@mkdir -p $(obj)board/freescale/mpc8313erdb
2276c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2277ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
22786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
22795c5d3242SKim Phillips	fi ; \
22805c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2281ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
22826d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
2283e4c09508SScott Wood	fi ; \
2284e4c09508SScott Wood	if [ "$(findstring _NAND_,$@)" ] ; then \
2285e4c09508SScott Wood		$(XECHO) -n "...NAND..." ; \
2286f4e55a49SKim Phillips		echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2287e4c09508SScott Wood		echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
22885c5d3242SKim Phillips	fi ;
2289e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
229064ac1eb5SNick Spence	@if [ "$(findstring _NAND_,$@)" ] ; then \
229164ac1eb5SNick Spence		echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
229264ac1eb5SNick Spence	fi ;
22935c5d3242SKim Phillips
22948bd522ceSDave LiuMPC8315ERDB_config: unconfig
22958bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
22968bd522ceSDave Liu
22971c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
22981c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
22991c274c4eSKim Phillips
23004decd84eSKim PhillipsMPC832XEMDS_config \
23014decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
23024decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
2303281df457STony LiMPC832XEMDS_SLAVE_config \
2304281df457STony LiMPC832XEMDS_ATM_config:	unconfig
2305cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2306c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2307ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2308cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
23094decd84eSKim Phillips	fi ; \
23104decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2311ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2312cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2313cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
23144decd84eSKim Phillips	fi ; \
23154decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
2316ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2317cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2318281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
23194decd84eSKim Phillips	fi ; \
23204decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2321ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2322cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2323281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2324281df457STony Li	fi ; \
2325281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2326ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2327281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2328281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
23294decd84eSKim Phillips	fi ;
2330e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2331e6f2e902SMarian Balakowicz
2332991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
2333e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2334991425feSMarian Balakowicz
23357a78f148STimur TabiMPC8349ITX_config \
23367a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
23377a78f148STimur TabiMPC8349ITXGP_config:	unconfig
23387a78f148STimur Tabi	@mkdir -p $(obj)include
2339e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
23407a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
23417a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
2342e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
23437a78f148STimur Tabi	fi
23447a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
2345e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
23467a78f148STimur Tabi	fi
2347e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
23484decd84eSKim Phillips
23495f820439SDave LiuMPC8360EMDS_config \
23505f820439SDave LiuMPC8360EMDS_HOST_33_config \
23515f820439SDave LiuMPC8360EMDS_HOST_66_config \
2352281df457STony LiMPC8360EMDS_SLAVE_config \
2353281df457STony LiMPC8360EMDS_ATM_config: unconfig
2354cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2355c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2356ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2357cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
23585f820439SDave Liu	fi ; \
23595f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2360ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2361cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2362cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
23635f820439SDave Liu	fi ; \
23645f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
2365ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2366cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2367281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
23685f820439SDave Liu	fi ; \
23695f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
2370ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2371cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2372281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2373281df457STony Li	fi ; \
2374281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2375ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2376281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2377281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
23785f820439SDave Liu	fi ;
2379e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
23805f820439SDave Liu
2381fab6f556SAnton VorontsovMPC8360ERDK_33_config \
2382fab6f556SAnton VorontsovMPC8360ERDK_66_config \
238391c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config:	unconfig
2384fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
2385c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2386ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
2387fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2388fab6f556SAnton Vorontsov	fi ;
2389fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2390fab6f556SAnton Vorontsov
239119580e66SDave LiuMPC837XEMDS_config \
239219580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
239319580e66SDave Liu	@mkdir -p $(obj)include
2394c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2395ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
239619580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
239719580e66SDave Liu	fi ;
239819580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
239919580e66SDave Liu
24005e918a98SKim PhillipsMPC837XERDB_config:	unconfig
24015e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
24025e918a98SKim Phillips
2403a1293e54SAndre SchwarzMVBLM7_config: unconfig
24041a9eeb78SAndre Schwarz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2405a1293e54SAndre Schwarz
2406c0d660fbSPaul Gortmakersbc8349_config \
2407c0d660fbSPaul Gortmakersbc8349_PCI_33_config \
2408c0d660fbSPaul Gortmakersbc8349_PCI_66_config: unconfig
240900ec0ff5SPaul Gortmaker	@$(MKCONFIG) -t $(@:_config=) sbc8349 ppc mpc83xx sbc8349
241091e25769SPaul Gortmaker
24115bb907a4SRon MadridSIMPC8313_LP_config \
24125bb907a4SRon MadridSIMPC8313_SP_config: unconfig
24135bb907a4SRon Madrid	@mkdir -p $(obj)include
24145bb907a4SRon Madrid	@mkdir -p $(obj)board/sheldon/simpc8313
24155bb907a4SRon Madrid	@if [ "$(findstring _LP_,$@)" ] ; then \
24165bb907a4SRon Madrid		$(XECHO) -n "...Large Page NAND..." ; \
24175bb907a4SRon Madrid		echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
24185bb907a4SRon Madrid	fi ; \
24195bb907a4SRon Madrid	if [ "$(findstring _SP_,$@)" ] ; then \
24205bb907a4SRon Madrid		$(XECHO) -n "...Small Page NAND..." ; \
24215bb907a4SRon Madrid		echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
24225bb907a4SRon Madrid	fi ;
24235bb907a4SRon Madrid	@$(MKCONFIG) -a SIMPC8313 ppc mpc83xx simpc8313 sheldon
24245bb907a4SRon Madrid	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
24255bb907a4SRon Madrid
24264decd84eSKim PhillipsTQM834x_config:	unconfig
24274677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
24284decd84eSKim Phillips
2429c2e49f70SReinhard Arltvme8349_config:		unconfig
2430c2e49f70SReinhard Arlt	@$(MKCONFIG) $(@:_config=) ppc mpc83xx vme8349 esd
24312ad6b513STimur Tabi
2432f046ccd1SEran Liberty#########################################################################
243342d1f039Swdenk## MPC85xx Systems
243442d1f039Swdenk#########################################################################
243542d1f039Swdenk
24367bd6104bSrobert lazarskiATUM8548_config:	unconfig
24377bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
24387bd6104bSrobert lazarski
24399a1a0aedSMingkai HuMPC8536DS_NAND_config \
2440e40ac487SMingkai HuMPC8536DS_SDCARD_config \
2441e40ac487SMingkai HuMPC8536DS_SPIFLASH_config \
2442337f9fdeSKumar GalaMPC8536DS_36BIT_config \
24439490a7f1SKumar GalaMPC8536DS_config:       unconfig
24440e905ac2SMingkai Hu	@$(MKCONFIG) -t $(@:_config=) MPC8536DS ppc mpc85xx mpc8536ds freescale
24459490a7f1SKumar Gala
244642d1f039SwdenkMPC8540ADS_config:	unconfig
2447c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
244842d1f039Swdenk
2449b0e32949SLunsheng WangMPC8540EVAL_config \
2450b0e32949SLunsheng WangMPC8540EVAL_33_config \
2451b0e32949SLunsheng WangMPC8540EVAL_66_config \
2452b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2453b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:	  unconfig
2454f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2455c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2456ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2457b0e32949SLunsheng Wang	else \
2458f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2459ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2460b0e32949SLunsheng Wang	fi ; \
2461b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2462f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2463ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2464b0e32949SLunsheng Wang	else \
2465ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2466b0e32949SLunsheng Wang	fi
2467f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2468b0e32949SLunsheng Wang
246942d1f039SwdenkMPC8560ADS_config:	unconfig
2470870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
247142d1f039Swdenk
24727f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
247303f5c550SwdenkMPC8541CDS_config:	unconfig
24747f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2475c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
24767f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2477ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
24787f3f2bd2SRandy Vinson	fi
2479415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
248003f5c550Swdenk
248181f481caSAndy FlemingMPC8544DS_config:	unconfig
248281f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
248381f481caSAndy Fleming
24847f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2485d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
24867f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2487c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
24887f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2489ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
24907f3f2bd2SRandy Vinson	fi
2491415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2492d9b94f28SJon Loeliger
24937f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
249403f5c550SwdenkMPC8555CDS_config:	unconfig
24957f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2496c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
24977f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2498ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
24997f3f2bd2SRandy Vinson	fi
2500415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
25017abf0c58Swdenk
250267431059SAndy FlemingMPC8568MDS_config:	unconfig
2503acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
250467431059SAndy Fleming
2505765547dcSHaiying WangMPC8569MDS_config:	unconfig
2506765547dcSHaiying Wang	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8569mds freescale
2507765547dcSHaiying Wang
250818af1c5fSKumar GalaMPC8572DS_36BIT_config \
2509129ba616SKumar GalaMPC8572DS_config:       unconfig
2510f9edcc10SKumar Gala	@$(MKCONFIG) -t $(@:_config=) MPC8572DS ppc mpc85xx mpc8572ds freescale
2511129ba616SKumar Gala
2512feb7838fSSrikanth SrinivasanP2020DS_36BIT_config \
2513feb7838fSSrikanth SrinivasanP2020DS_config:		unconfig
2514a0f9e0e0SKumar Gala	@$(MKCONFIG) -t $(@:_config=) P2020DS ppc mpc85xx p2020ds freescale
2515feb7838fSSrikanth Srinivasan
251662ca21c4SKumar GalaP1011RDB_config	\
2517f7780ec9SDipen DudhatP1011RDB_NAND_config \
2518fad15096SDipen DudhatP1011RDB_SDCARD_config \
2519fad15096SDipen DudhatP1011RDB_SPIFLASH_config \
252062ca21c4SKumar GalaP1020RDB_config	\
2521f7780ec9SDipen DudhatP1020RDB_NAND_config \
2522fad15096SDipen DudhatP1020RDB_SDCARD_config \
2523fad15096SDipen DudhatP1020RDB_SPIFLASH_config \
252462ca21c4SKumar GalaP2010RDB_config \
2525f7780ec9SDipen DudhatP2010RDB_NAND_config \
2526fad15096SDipen DudhatP2010RDB_SDCARD_config \
2527fad15096SDipen DudhatP2010RDB_SPIFLASH_config \
2528f7780ec9SDipen DudhatP2020RDB_config \
2529fad15096SDipen DudhatP2020RDB_NAND_config \
2530fad15096SDipen DudhatP2020RDB_SDCARD_config \
2531fad15096SDipen DudhatP2020RDB_SPIFLASH_config:	unconfig
253262ca21c4SKumar Gala	@$(MKCONFIG) -t $(@:_config=) P1_P2_RDB ppc mpc85xx p1_p2_rdb freescale
2533728ece34SPoonam Aggrwal
2534384cc687SwdenkPM854_config:	unconfig
2535f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2536384cc687Swdenk
2537b20d0032SWolfgang DenkPM856_config:	unconfig
2538f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2539b20d0032SWolfgang Denk
2540c15f3120Swdenksbc8540_config \
2541c15f3120Swdenksbc8540_33_config \
2542c15f3120Swdenksbc8540_66_config:	unconfig
2543928435d1SPaul Gortmaker	@$(MKCONFIG) -t $(@:_config=) SBC8540 ppc mpc85xx sbc8560
2544c15f3120Swdenk
25452738bc8dSPaul Gortmakersbc8548_config \
25462738bc8dSPaul Gortmakersbc8548_PCI_33_config \
25472738bc8dSPaul Gortmakersbc8548_PCI_66_config \
25482738bc8dSPaul Gortmakersbc8548_PCI_33_PCIE_config \
25492738bc8dSPaul Gortmakersbc8548_PCI_66_PCIE_config: unconfig
25502738bc8dSPaul Gortmaker	@$(MKCONFIG) -t $(@:_config=) sbc8548 ppc mpc85xx sbc8548
255111c45ebdSJoe Hamman
2552466b7410Swdenksbc8560_config \
2553466b7410Swdenksbc8560_33_config \
2554466b7410Swdenksbc8560_66_config:	unconfig
2555928435d1SPaul Gortmaker	@$(MKCONFIG) -t $(@:_config=) sbc8560 ppc mpc85xx sbc8560
25568b07a110Swdenk
25575d108ac8SSergei Poselenovsocrates_config:	unconfig
25585d108ac8SSergei Poselenov	@$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
25595d108ac8SSergei Poselenov
256003f5c550Swdenkstxgp3_config:		unconfig
25617b18c227SAlex Dubov	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 stx
256203f5c550Swdenk
2563ee152983SWolfgang Denkstxssa_config		\
2564ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2565ee152983SWolfgang Denk	@mkdir -p $(obj)include
2566ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2567ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2568ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2569ee152983SWolfgang Denk	fi
25707b18c227SAlex Dubov	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa stx
257135171dc0SDan Malek
2572d96f41e0SStefan RoeseTQM8540_config		\
2573d96f41e0SStefan RoeseTQM8541_config		\
25741287e0c5SWolfgang GrandeggerTQM8548_config		\
2575a865bcdaSWolfgang GrandeggerTQM8548_AG_config	\
2576ad7ee5d4SWolfgang GrandeggerTQM8548_BE_config	\
2577d96f41e0SStefan RoeseTQM8555_config		\
2578f5c5ef4aSwdenkTQM8560_config:		unconfig
2579f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2580ad7ee5d4SWolfgang Grandegger	@BTYPE=$(@:_config=); \
2581a865bcdaSWolfgang Grandegger	CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
2582ad7ee5d4SWolfgang Grandegger	$(XECHO) "... "$${BTYPE}" (MPC"$${CTYPE}")"; \
2583f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2584ad7ee5d4SWolfgang Grandegger	echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
2585f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2586ad7ee5d4SWolfgang Grandegger	echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
25874677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2588ad7ee5d4SWolfgang Grandegger	@echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
2589f5c5ef4aSwdenk
259078bbc5ceSPeter TyserXPEDITE5200_config:	unconfig
259178bbc5ceSPeter Tyser	@$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5200 xes
259278bbc5ceSPeter Tyser
2593ccf0fdd0SPeter TyserXPEDITE5370_config:	unconfig
2594ccf0fdd0SPeter Tyser	@$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5370 xes
2595ccf0fdd0SPeter Tyser
259642d1f039Swdenk#########################################################################
2597debb7354SJon Loeliger## MPC86xx Systems
2598debb7354SJon Loeliger#########################################################################
2599debb7354SJon Loeliger
26003c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
26013c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
26023c89d754SJon Loeliger
26038db0400aSBecky BruceMPC8641HPCN_36BIT_config \
2604debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
26058db0400aSBecky Bruce	@mkdir -p $(obj)include
26068db0400aSBecky Bruce	@if [ "$(findstring _36BIT_,$@)" ] ; then \
26078db0400aSBecky Bruce		echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
26088db0400aSBecky Bruce		$(XECHO) "... enabling 36-bit physical addressing." ; \
26098db0400aSBecky Bruce	fi
26108db0400aSBecky Bruce	@$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale
2611debb7354SJon Loeliger
2612c646bba6SJoe Hammansbc8641d_config:	unconfig
261391c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2614debb7354SJon Loeliger
26155da6f806SPeter TyserXPEDITE5170_config:	unconfig
26165da6f806SPeter Tyser	@$(MKCONFIG) $(@:_config=) ppc mpc86xx xpedite5170 xes
26175da6f806SPeter Tyser
2618debb7354SJon Loeliger#########################################################################
26197ebf7443Swdenk## 74xx/7xx Systems
26207ebf7443Swdenk#########################################################################
26217ebf7443Swdenk
2622c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2623f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2624c7de829cSwdenk
262515647dc7SwdenkBAB7xx_config: unconfig
2626f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
262715647dc7Swdenk
2628c419d1d6SstroeseCPCI750_config:	unconfig
2629f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2630c419d1d6Sstroese
26313a473b2aSwdenkDB64360_config:	unconfig
2632f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
26333a473b2aSwdenk
26343a473b2aSwdenkDB64460_config:	unconfig
2635f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
26363a473b2aSwdenk
263715647dc7SwdenkELPPC_config: unconfig
2638f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
263915647dc7Swdenk
26407ebf7443SwdenkEVB64260_config	\
26417ebf7443SwdenkEVB64260_750CX_config:	unconfig
2642f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
26437ebf7443Swdenk
26444c52783bSroy zangmpc7448hpc2_config:  unconfig
26457f1d846eSJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
26464c52783bSroy zang
264715647dc7SwdenkP3G4_config: unconfig
2648f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
26497ebf7443Swdenk
26501eac2a71SStefan Roesep3m750_config	\
26511eac2a71SStefan Roesep3m7448_config:		unconfig
26521eac2a71SStefan Roese	@mkdir -p $(obj)include
26531eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
26541eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
26551eac2a71SStefan Roese	else \
26561eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
26571eac2a71SStefan Roese	fi
26581eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
26591eac2a71SStefan Roese
26607ebf7443SwdenkPCIPPC2_config \
26617ebf7443SwdenkPCIPPC6_config: unconfig
2662f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
26637ebf7443Swdenk
2664f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2665f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2666f5e0d039SHeiko Schocher
2667699f0512SWolfgang DenkZUMA_config:	unconfig
2668699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2669699f0512SWolfgang Denk
26707ebf7443Swdenk#========================================================================
26717ebf7443Swdenk# ARM
26727ebf7443Swdenk#========================================================================
26737ebf7443Swdenk#########################################################################
26747ebf7443Swdenk## StrongARM Systems
26757ebf7443Swdenk#########################################################################
26767ebf7443Swdenk
2677ea66bc88Swdenkassabet_config	:	unconfig
2678f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2679ea66bc88Swdenk
26807ebf7443Swdenkdnp1110_config	:	unconfig
2681f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
26827ebf7443Swdenk
2683855a496fSwdenkgcplus_config	:	unconfig
2684f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2685855a496fSwdenk
2686855a496fSwdenklart_config	:	unconfig
2687f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2688855a496fSwdenk
26897ebf7443Swdenkshannon_config	:	unconfig
2690f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
26917ebf7443Swdenk
26927ebf7443Swdenk#########################################################################
26932e5983d2Swdenk## ARM92xT Systems
26947ebf7443Swdenk#########################################################################
26957ebf7443Swdenk
2696a4b46ed6SUlf Samuelsson#########################################################################
2697a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems
2698a4b46ed6SUlf Samuelsson#########################################################################
269920b197c6SStelian Pop
2700a85f9f21Swdenkat91rm9200dk_config	:	unconfig
270165230107SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2702a85f9f21Swdenk
2703cb82a532SUlf Samuelssonat91rm9200ek_config	:	unconfig
2704cb82a532SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200ek atmel at91rm9200
2705cb82a532SUlf Samuelsson
2706a85f9f21Swdenkcmc_pu2_config	:	unconfig
2707f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2708a85f9f21Swdenk
2709d8380c9dSTom RixCPUAT91_RAM_config \
2710d8380c9dSTom RixCPUAT91_config	:	unconfig
2711d8380c9dSTom Rix	@mkdir -p $(obj)include
2712d8380c9dSTom Rix	@echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
2713d8380c9dSTom Rix	@$(MKCONFIG) -a cpuat91 arm arm920t cpuat91 eukrea at91rm9200
2714d8380c9dSTom Rix
2715645da510SWolfgang Denkcsb637_config	:	unconfig
2716f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2717645da510SWolfgang Denk
2718a4b46ed6SUlf Samuelssonkb9202_config	:	unconfig
2719a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2720a4b46ed6SUlf Samuelsson
2721ea8d989fSTimo Tuunainenm501sk_config	:	unconfig
2722ea8d989fSTimo Tuunainen	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
272387cb6862SWolfgang Denk
2724699f0512SWolfgang Denkmp2usb_config	:	unconfig
2725699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2726699f0512SWolfgang Denk
2727a4b46ed6SUlf Samuelsson#########################################################################
2728a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems
2729a4b46ed6SUlf Samuelsson#########################################################################
2730a4b46ed6SUlf Samuelsson
27311079432eSSergey Lapinafeb9260_config:	unconfig
27321079432eSSergey Lapin	@$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91
27331079432eSSergey Lapin
2734a4b46ed6SUlf Samuelssonat91cap9adk_config	:	unconfig
27358ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2736a4b46ed6SUlf Samuelsson
273789a7a87fSNicolas Ferreat91sam9260ek_nandflash_config \
273889a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs0_config \
273989a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs1_config \
2740df486b1fSNicolas Ferreat91sam9260ek_config \
2741df486b1fSNicolas Ferreat91sam9g20ek_nandflash_config \
2742df486b1fSNicolas Ferreat91sam9g20ek_dataflash_cs0_config \
2743df486b1fSNicolas Ferreat91sam9g20ek_dataflash_cs1_config \
2744df486b1fSNicolas Ferreat91sam9g20ek_config	:	unconfig
2745e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
2746df486b1fSNicolas Ferre	@if [ "$(findstring 9g20,$@)" ] ; then \
2747df486b1fSNicolas Ferre		echo "#define CONFIG_AT91SAM9G20EK 1"	>>$(obj)include/config.h ; \
2748df486b1fSNicolas Ferre		$(XECHO) "... 9G20 Variant" ; \
2749df486b1fSNicolas Ferre	else \
2750df486b1fSNicolas Ferre		echo "#define CONFIG_AT91SAM9260EK 1"	>>$(obj)include/config.h ; \
2751df486b1fSNicolas Ferre	fi;
275289a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
275389a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
275489a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
275589a7a87fSNicolas Ferre	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
275689a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
275789a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
275889a7a87fSNicolas Ferre	else \
275989a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1"	>>$(obj)include/config.h ; \
276089a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
276189a7a87fSNicolas Ferre	fi;
276289a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
2763a4b46ed6SUlf Samuelsson
27644e170b16SNicolas Ferreat91sam9xeek_nandflash_config \
27654e170b16SNicolas Ferreat91sam9xeek_dataflash_cs0_config \
27664e170b16SNicolas Ferreat91sam9xeek_dataflash_cs1_config \
27674e170b16SNicolas Ferreat91sam9xeek_config	:	unconfig
27684e170b16SNicolas Ferre	@mkdir -p $(obj)include
27694e170b16SNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
27704e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
27714e170b16SNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
27724e170b16SNicolas Ferre	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
27734e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
27744e170b16SNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
27754e170b16SNicolas Ferre	else \
27764e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1"	>>$(obj)include/config.h ; \
27774e170b16SNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
27784e170b16SNicolas Ferre	fi;
277953158aeaSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -n at91sam9xeek -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
27804e170b16SNicolas Ferre
278189a7a87fSNicolas Ferreat91sam9261ek_nandflash_config \
278289a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs0_config \
278389a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs3_config \
27845ccc2d99SSedji Gaouaouat91sam9261ek_config \
27855ccc2d99SSedji Gaouaouat91sam9g10ek_nandflash_config \
27865ccc2d99SSedji Gaouaouat91sam9g10ek_dataflash_cs0_config \
27875ccc2d99SSedji Gaouaouat91sam9g10ek_dataflash_cs3_config \
27885ccc2d99SSedji Gaouaouat91sam9g10ek_config	:	unconfig
2789e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
27905ccc2d99SSedji Gaouaou	@if [ "$(findstring 9g10,$@)" ] ; then \
27915ccc2d99SSedji Gaouaou		echo "#define CONFIG_AT91SAM9G10EK 1"	>>$(obj)include/config.h ; \
27925ccc2d99SSedji Gaouaou		$(XECHO) "... 9G10 Variant" ; \
27935ccc2d99SSedji Gaouaou	else \
27945ccc2d99SSedji Gaouaou		echo "#define CONFIG_AT91SAM9261EK 1"	>>$(obj)include/config.h ; \
27955ccc2d99SSedji Gaouaou	fi;
279689a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
279789a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
279889a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
27995ccc2d99SSedji Gaouaou	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
280089a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1"	>>$(obj)include/config.h ; \
280189a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \
280289a7a87fSNicolas Ferre	else \
280389a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
280489a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
280589a7a87fSNicolas Ferre	fi;
280689a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
280728962f5aSJean-Christophe PLAGNIOL-VILLARD
28081b3b7c64SJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_norflash_config \
28091b3b7c64SJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_norflash_boot_config \
281089a7a87fSNicolas Ferreat91sam9263ek_nandflash_config \
281189a7a87fSNicolas Ferreat91sam9263ek_dataflash_config \
281289a7a87fSNicolas Ferreat91sam9263ek_dataflash_cs0_config \
281328962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_config	:	unconfig
2814e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
281589a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
281689a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
281789a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
28181b3b7c64SJean-Christophe PLAGNIOL-VILLARD	elif [ "$(findstring norflash,$@)" ] ; then \
28191b3b7c64SJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USE_NORFLASH 1"	>>$(obj)include/config.h ; \
28201b3b7c64SJean-Christophe PLAGNIOL-VILLARD		$(XECHO) "... with environment variable in NOR FLASH" ; \
282189a7a87fSNicolas Ferre	else \
282289a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH 1"	>>$(obj)include/config.h ; \
282389a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
282489a7a87fSNicolas Ferre	fi;
28251b3b7c64SJean-Christophe PLAGNIOL-VILLARD	@if [ "$(findstring norflash_boot,$@)" ] ; then \
28261b3b7c64SJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1"	>>$(obj)include/config.h ; \
28271b3b7c64SJean-Christophe PLAGNIOL-VILLARD		$(XECHO) "... and boot from NOR FLASH" ; \
28281b3b7c64SJean-Christophe PLAGNIOL-VILLARD	fi;
282989a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
283028962f5aSJean-Christophe PLAGNIOL-VILLARD
283189a7a87fSNicolas Ferreat91sam9rlek_nandflash_config \
283289a7a87fSNicolas Ferreat91sam9rlek_dataflash_config \
283389a7a87fSNicolas Ferreat91sam9rlek_dataflash_cs0_config \
283428962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9rlek_config	:	unconfig
2835e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
283689a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
283789a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
283889a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
283989a7a87fSNicolas Ferre	else \
284089a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH 1"	>>$(obj)include/config.h ; \
284189a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
284289a7a87fSNicolas Ferre	fi;
284389a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
284428962f5aSJean-Christophe PLAGNIOL-VILLARD
284523b80982STom RixCPU9G20_128M_config \
284623b80982STom RixCPU9G20_config \
284723b80982STom RixCPU9260_128M_config \
284823b80982STom RixCPU9260_config	:	unconfig
284923b80982STom Rix	@mkdir -p $(obj)include
285023b80982STom Rix	@echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
285123b80982STom Rix	@$(MKCONFIG) -a cpu9260 arm arm926ejs cpu9260 eukrea at91
285223b80982STom Rix
285333b1d3f4SDaniel Gorsulowskimeesc_config	:	unconfig
285433b1d3f4SDaniel Gorsulowski	@$(MKCONFIG) $(@:_config=) arm arm926ejs meesc esd at91
285533b1d3f4SDaniel Gorsulowski
285632949232SIlko Ilievpm9261_config	:	unconfig
285732949232SIlko Iliev	@$(MKCONFIG) $(@:_config=) arm arm926ejs pm9261 ronetix at91
285832949232SIlko Iliev
285922ee6473SSedji Gaouaouat91sam9m10g45ek_nandflash_config \
286022ee6473SSedji Gaouaouat91sam9m10g45ek_dataflash_config \
286122ee6473SSedji Gaouaouat91sam9m10g45ek_dataflash_cs0_config \
286222ee6473SSedji Gaouaouat91sam9m10g45ek_config \
286322ee6473SSedji Gaouaouat91sam9g45ekes_nandflash_config \
286422ee6473SSedji Gaouaouat91sam9g45ekes_dataflash_config \
286522ee6473SSedji Gaouaouat91sam9g45ekes_dataflash_cs0_config \
286622ee6473SSedji Gaouaouat91sam9g45ekes_config	:	unconfig
286722ee6473SSedji Gaouaou	@mkdir -p $(obj)include
286822ee6473SSedji Gaouaou		@if [ "$(findstring 9m10,$@)" ] ; then \
286922ee6473SSedji Gaouaou		echo "#define CONFIG_AT91SAM9M10G45EK 1"	>>$(obj)include/config.h ; \
287022ee6473SSedji Gaouaou		$(XECHO) "... 9M10G45 Variant" ; \
287122ee6473SSedji Gaouaou	else \
287222ee6473SSedji Gaouaou		echo "#define CONFIG_AT91SAM9G45EKES 1"	>>$(obj)include/config.h ; \
287322ee6473SSedji Gaouaou	fi;
287422ee6473SSedji Gaouaou
287522ee6473SSedji Gaouaou	@if [ "$(findstring _nandflash,$@)" ] ; then \
287622ee6473SSedji Gaouaou		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
287722ee6473SSedji Gaouaou		$(XECHO) "... with environment variable in NAND FLASH" ; \
287822ee6473SSedji Gaouaou	else \
287922ee6473SSedji Gaouaou		echo "#define CONFIG_ATMEL_SPI 1"	>>$(obj)include/config.h ; \
288022ee6473SSedji Gaouaou		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
288122ee6473SSedji Gaouaou	fi;
288222ee6473SSedji Gaouaou	@$(MKCONFIG) -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91
288322ee6473SSedji Gaouaou
2884f0a2c7b4SIlko Ilievpm9263_config	:	unconfig
2885f0a2c7b4SIlko Iliev	@$(MKCONFIG) $(@:_config=) arm arm926ejs pm9263 ronetix at91
2886f0a2c7b4SIlko Iliev
28879453967eSAlbin TonnerreSBC35_A9G20_NANDFLASH_config \
28889453967eSAlbin TonnerreSBC35_A9G20_EEPROM_config \
28899453967eSAlbin TonnerreSBC35_A9G20_config	:	unconfig
28909453967eSAlbin Tonnerre	@mkdir -p $(obj)include
28919453967eSAlbin Tonnerre	@echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
28929453967eSAlbin Tonnerre	@$(MKCONFIG) -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91
28939453967eSAlbin Tonnerre
28942dc851e3SAlbin TonnerreTNY_A9G20_NANDFLASH_config \
28952dc851e3SAlbin TonnerreTNY_A9G20_EEPROM_config \
28962dc851e3SAlbin TonnerreTNY_A9G20_config \
28972dc851e3SAlbin TonnerreTNY_A9260_NANDFLASH_config \
28982dc851e3SAlbin TonnerreTNY_A9260_EEPROM_config \
28992dc851e3SAlbin TonnerreTNY_A9260_config	:	unconfig
29002dc851e3SAlbin Tonnerre	@mkdir -p $(obj)include
29012dc851e3SAlbin Tonnerre	@echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
29022dc851e3SAlbin Tonnerre	@$(MKCONFIG) -a tny_a9260 arm arm926ejs tny_a9260 calao at91
29032dc851e3SAlbin Tonnerre
290474f4304eSWolfgang Denk########################################################################
290587cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
290687cb6862SWolfgang Denkintegratorap_config	\
290787cb6862SWolfgang Denkap_config		\
290887cb6862SWolfgang Denkap966_config		\
290987cb6862SWolfgang Denkap922_config		\
291087cb6862SWolfgang Denkap922_XA10_config	\
291187cb6862SWolfgang Denkap7_config		\
291287cb6862SWolfgang Denkap720t_config		\
291387cb6862SWolfgang Denkap920t_config		\
291487cb6862SWolfgang Denkap926ejs_config		\
291587cb6862SWolfgang Denkap946es_config: unconfig
2916576afd4fSJean-Christophe PLAGNIOL-VILLARD	@board/armltd/integrator/split_by_variant.sh ap $@
29173d3befa7Swdenk
291887cb6862SWolfgang Denkintegratorcp_config	\
291987cb6862SWolfgang Denkcp_config		\
292087cb6862SWolfgang Denkcp920t_config		\
292187cb6862SWolfgang Denkcp926ejs_config		\
292287cb6862SWolfgang Denkcp946es_config		\
292387cb6862SWolfgang Denkcp1136_config		\
292487cb6862SWolfgang Denkcp966_config		\
292587cb6862SWolfgang Denkcp922_config		\
292687cb6862SWolfgang Denkcp922_XA10_config	\
292787cb6862SWolfgang Denkcp1026_config: unconfig
2928576afd4fSJean-Christophe PLAGNIOL-VILLARD	@board/armltd/integrator/split_by_variant.sh cp $@
292925d6712aSwdenk
2930699f0512SWolfgang Denkdavinci_dvevm_config :	unconfig
293189d51d02SHugo Villeneuve	@$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2932699f0512SWolfgang Denk
2933699f0512SWolfgang Denkdavinci_schmoogie_config :	unconfig
2934699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2935699f0512SWolfgang Denk
2936699f0512SWolfgang Denkdavinci_sffsdr_config :	unconfig
2937699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2938699f0512SWolfgang Denk
2939699f0512SWolfgang Denkdavinci_sonata_config :	unconfig
2940699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2941699f0512SWolfgang Denk
294228b00324SDavid Brownelldavinci_dm355evm_config :	unconfig
294328b00324SDavid Brownell	@$(MKCONFIG) $(@:_config=) arm arm926ejs dm355evm davinci davinci
294428b00324SDavid Brownell
29455df65cf5SSandeep Paulrajdavinci_dm355leopard_config :	unconfig
29465df65cf5SSandeep Paulraj	@$(MKCONFIG) $(@:_config=) arm arm926ejs dm355leopard davinci davinci
29475df65cf5SSandeep Paulraj
29482d4072c0SSandeep Paulrajdavinci_dm365evm_config :	unconfig
29492d4072c0SSandeep Paulraj	@$(MKCONFIG) $(@:_config=) arm arm926ejs dm365evm davinci davinci
29502d4072c0SSandeep Paulraj
29516ab176d7SSandeep Paulrajdavinci_dm6467evm_config :	unconfig
29526ab176d7SSandeep Paulraj	@$(MKCONFIG) $(@:_config=) arm arm926ejs dm6467evm davinci davinci
29536ab176d7SSandeep Paulraj
295410bc241dSIlya Yanokimx27lite_config:	unconfig
295510bc241dSIlya Yanok	@$(MKCONFIG) $(@:_config=) arm arm926ejs imx27lite logicpd mx27
295610bc241dSIlya Yanok
2957f832d8a1Swdenklpd7a400_config \
2958f832d8a1Swdenklpd7a404_config:	unconfig
2959f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
29603d3befa7Swdenk
29614abc5bffSPrafulla Wadaskarmv88f6281gtw_ge_config: unconfig
29624abc5bffSPrafulla Wadaskar	@$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
29634abc5bffSPrafulla Wadaskar
2964281e00a3Swdenkmx1ads_config	:	unconfig
2965f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2966281e00a3Swdenk
2967281e00a3Swdenkmx1fs2_config	:	unconfig
2968f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2969281e00a3Swdenk
2970ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2971f4e7cbfcSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
2972ac7eb8a3SWolfgang Denk
2973ee1363f2SAlessandro Rubininhk8815_config \
2974ee1363f2SAlessandro Rubininhk8815_onenand_config:	unconfig
2975d5254f14SAlessandro Rubini	@mkdir -p $(obj)include
2976d5254f14SAlessandro Rubini	@ > $(obj)include/config.h
2977d5254f14SAlessandro Rubini	@if [ "$(findstring _onenand, $@)" ] ; then \
2978d5254f14SAlessandro Rubini		echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
2979f7aa59b2SAlessandro Rubini		$(XECHO) "... configured to boot from OneNand Flash"; \
2980d5254f14SAlessandro Rubini	else \
2981f7aa59b2SAlessandro Rubini		$(XECHO) "... configured to boot from Nand Flash"; \
2982d5254f14SAlessandro Rubini	fi
2983ee1363f2SAlessandro Rubini	@$(MKCONFIG) -a nhk8815 arm arm926ejs nhk8815 st nomadik
2984d5254f14SAlessandro Rubini
29852e5983d2Swdenkomap1510inn_config :	unconfig
29860a0e4badSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn ti
29872e5983d2Swdenk
2988a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2989a4b46ed6SUlf Samuelsson
299063e73c9aSwdenkomap1610inn_config \
299163e73c9aSwdenkomap1610inn_cs0boot_config \
299263e73c9aSwdenkomap1610inn_cs3boot_config \
29933ff02c27Swdenkomap1610inn_cs_autoboot_config \
299463e73c9aSwdenkomap1610h2_config \
299563e73c9aSwdenkomap1610h2_cs0boot_config \
29963ff02c27Swdenkomap1610h2_cs3boot_config \
29973ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2998f9328639SMarian Balakowicz	@mkdir -p $(obj)include
299963e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
3000cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
3001ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
30023ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
3003cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
3004ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
300563e73c9aSwdenk	else \
3006cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
3007ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
300863e73c9aSwdenk	fi;
30090a0e4badSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap
30106f21347dSwdenk
3011699f0512SWolfgang Denkomap5912osk_config :	unconfig
30120a0e4badSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk ti omap
3013699f0512SWolfgang Denk
3014e92daeb5SSimon Kagstromopenrd_base_config: unconfig
3015e92daeb5SSimon Kagstrom	@$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
3016e92daeb5SSimon Kagstrom
3017a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
3018a4b46ed6SUlf Samuelsson
3019a56bd922Swdenkomap730p2_config \
3020a56bd922Swdenkomap730p2_cs0boot_config \
3021a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
3022f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3023a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
3024f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
3025ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
3026a56bd922Swdenk	else \
3027f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
3028ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
3029a56bd922Swdenk	fi;
30300a0e4badSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 ti omap
3031a56bd922Swdenk
3032fbc8365aSPrafulla Wadaskarrd6281a_config: unconfig
3033fbc8365aSPrafulla Wadaskar	@$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
3034fbc8365aSPrafulla Wadaskar
303532cb2c70SWolfgang Denksbc2410x_config: unconfig
3036f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
303732cb2c70SWolfgang Denk
3038281e00a3Swdenkscb9328_config	:	unconfig
3039f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
3040281e00a3Swdenk
304155dd4ba5SPrafulla Wadaskarsheevaplug_config: unconfig
304255dd4ba5SPrafulla Wadaskar	@$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
304355dd4ba5SPrafulla Wadaskar
30447ebf7443Swdenksmdk2400_config	:	unconfig
3045cfca3383SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 samsung s3c24x0
30467ebf7443Swdenk
30477ebf7443Swdenksmdk2410_config	:	unconfig
3048cfca3383SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0
30497ebf7443Swdenk
305047fd3bffSJean-Christophe PLAGNIOL-VILLARDSX1_stdout_serial_config \
30512d24a3a7SwdenkSX1_config:		unconfig
305247fd3bffSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
305347fd3bffSJean-Christophe PLAGNIOL-VILLARD	@if [ "$(findstring _stdout_serial_, $@)" ] ; then \
305447fd3bffSJean-Christophe PLAGNIOL-VILLARD		echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
305547fd3bffSJean-Christophe PLAGNIOL-VILLARD		$(XECHO) "... configured for stdout serial"; \
305647fd3bffSJean-Christophe PLAGNIOL-VILLARD	else \
305747fd3bffSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
305847fd3bffSJean-Christophe PLAGNIOL-VILLARD		$(XECHO) "... configured for stdout usbtty"; \
305947fd3bffSJean-Christophe PLAGNIOL-VILLARD	fi;
306047fd3bffSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) SX1 arm arm925t sx1
30612d24a3a7Swdenk
3062b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
3063a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
3064a4b46ed6SUlf Samuelsson
306543d9616cSwdenktrab_config \
3066b0639ca3Swdenktrab_bigram_config \
3067b0639ca3Swdenktrab_bigflash_config \
3068f54ebdfaSwdenktrab_old_config:	unconfig
3069f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3070f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
3071b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
3072f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
3073f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
3074ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
3075b0639ca3Swdenk		}
3076b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
3077f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
3078f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
3079ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
3080f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
3081b0639ca3Swdenk		}
3082f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
3083f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
3084f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
3085ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
3086f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
308743d9616cSwdenk		}
3088f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
30897ebf7443Swdenk
30901cb8e980SwdenkVCMA9_config	:	unconfig
3091f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
30921cb8e980Swdenk
3093699f0512SWolfgang Denk#########################################################################
309487cb6862SWolfgang Denk# ARM supplied Versatile development boards
3095699f0512SWolfgang Denk#########################################################################
3096699f0512SWolfgang Denk
3097699f0512SWolfgang Denkcm4008_config	:	unconfig
3098699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
3099699f0512SWolfgang Denk
3100699f0512SWolfgang Denkcm41xx_config	:	unconfig
3101699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
3102699f0512SWolfgang Denk
310387cb6862SWolfgang Denkversatile_config	\
310487cb6862SWolfgang Denkversatileab_config	\
310587cb6862SWolfgang Denkversatilepb_config :	unconfig
3106e4943ec5SJean-Christophe PLAGNIOL-VILLARD	@board/armltd/versatile/split_by_variant.sh $@
3107074cff0dSwdenk
31083c2b3d45Swdenkvoiceblue_config:	unconfig
31094fedfddfSLadislav Michl	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
31103c2b3d45Swdenk
3111074cff0dSwdenk#########################################################################
3112074cff0dSwdenk## S3C44B0 Systems
3113074cff0dSwdenk#########################################################################
3114074cff0dSwdenk
3115074cff0dSwdenkB2_config	:	unconfig
3116f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
3117074cff0dSwdenk
31187ebf7443Swdenk#########################################################################
31197ebf7443Swdenk## ARM720T Systems
31207ebf7443Swdenk#########################################################################
31217ebf7443Swdenk
3122c570b2fdSWolfgang Denkarmadillo_config:	unconfig
3123f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
3124c570b2fdSWolfgang Denk
31257ebf7443Swdenkep7312_config	:	unconfig
3126f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
31277ebf7443Swdenk
31282d24a3a7Swdenkimpa7_config	:	unconfig
3129f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
31302d24a3a7Swdenk
31312d1a537dSwdenkmodnet50_config :	unconfig
3132f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
31332d1a537dSwdenk
313439539887Swdenkevb4510_config :	unconfig
3135281dfb0cSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510 NULL s3c4510b
313639539887Swdenk
31376bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
3138b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
3139b0d8f5bfSPeter Pearse
3140b0d8f5bfSPeter PearseSMN42_config	:	unconfig
3141b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
31426bd2447eSGary Jennejohn
31437ebf7443Swdenk#########################################################################
3144f904cdbbSDirk Behme## ARM CORTEX Systems
3145f904cdbbSDirk Behme#########################################################################
3146f904cdbbSDirk Behme
3147c35d7cf0SFrederik Kriewitzdevkit8000_config :	unconfig
3148c35d7cf0SFrederik Kriewitz	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 devkit8000 timll omap3
3149c35d7cf0SFrederik Kriewitz
3150f904cdbbSDirk Behmeomap3_beagle_config :	unconfig
31510a0e4badSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 beagle ti omap3
3152f904cdbbSDirk Behme
31539d0fc811SDirk Behmeomap3_overo_config :	unconfig
3154127f9ae5SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 overo NULL omap3
31559d0fc811SDirk Behme
3156ad9bc8e5SDirk Behmeomap3_evm_config :	unconfig
31570a0e4badSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 evm ti omap3
3158ad9bc8e5SDirk Behme
31592be2c6ccSDirk Behmeomap3_pandora_config :	unconfig
3160127f9ae5SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 pandora NULL omap3
31612be2c6ccSDirk Behme
3162e63e5904STom Rixomap3_sdp3430_config :	unconfig
3163e63e5904STom Rix	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 sdp3430 ti omap3
3164e63e5904STom Rix
31657379f45aSDirk Behmeomap3_zoom1_config :	unconfig
3166350f3ac5SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom1 logicpd omap3
31677379f45aSDirk Behme
3168376aee78STom Rixomap3_zoom2_config :	unconfig
3169350f3ac5SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom2 logicpd omap3
3170376aee78STom Rix
31718bc4ee9eSMinkyu Kangsmdkc100_config:	unconfig
31728bc4ee9eSMinkyu Kang	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 smdkc100 samsung s5pc1xx
31738bc4ee9eSMinkyu Kang
3174f904cdbbSDirk Behme#########################################################################
317543d9616cSwdenk## XScale Systems
31767ebf7443Swdenk#########################################################################
31777ebf7443Swdenk
3178799891efSMichael Schwingenactux1_config	:	unconfig
3179799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux1
3180799891efSMichael Schwingen
3181799891efSMichael Schwingenactux2_config	:	unconfig
3182799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux2
3183799891efSMichael Schwingen
3184799891efSMichael Schwingenactux3_config	:	unconfig
3185799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux3
3186799891efSMichael Schwingen
3187799891efSMichael Schwingenactux4_config	:	unconfig
3188799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux4
3189799891efSMichael Schwingen
3190fabd46acSwdenkcerf250_config :	unconfig
3191f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
3192fabd46acSwdenk
31937ebf7443Swdenkcradle_config	:	unconfig
3194f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
31957ebf7443Swdenk
31967ebf7443Swdenkcsb226_config	:	unconfig
3197f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
31987ebf7443Swdenk
319991c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config :	unconfig
3200f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
32010be248faSWolfgang Denk
320243d9616cSwdenkinnokom_config	:	unconfig
3203f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
320443d9616cSwdenk
32052d5b561eSwdenkixdp425_config	:	unconfig
3206f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
32072d5b561eSwdenk
3208ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
3209f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
3210ba94a1bbSWolfgang Denk
321143d9616cSwdenklubbock_config	:	unconfig
3212f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
321343d9616cSwdenk
32145720df78SHeiko Schocherpleb2_config	:	unconfig
3215f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
32165720df78SHeiko Schocher
321752f52c14Swdenklogodl_config	:	unconfig
3218f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
321952f52c14Swdenk
32209d8d5a5bSStefan Roesepdnb3_config \
32219d8d5a5bSStefan Roesescpu_config:	unconfig
3222cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
32239d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
3224cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
3225ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
32269d8d5a5bSStefan Roese	fi
32279d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
3228ba94a1bbSWolfgang Denk
3229f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
3230f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
3231f57f70aaSWolfgang Denk
3232040f8f63SStefano Babicpolaris_config \
32335e5803e1Sstefano babictrizepsiv_config	:	unconfig
3234040f8f63SStefano Babic	@mkdir -p $(obj)include
3235040f8f63SStefano Babic	@if [ "$(findstring polaris,$@)" ] ; then \
3236040f8f63SStefano Babic		echo "#define CONFIG_POLARIS 1"	>>$(obj)include/config.h ; \
3237040f8f63SStefano Babic	fi;
3238040f8f63SStefano Babic	@$(MKCONFIG) -a trizepsiv arm pxa trizepsiv
32395e5803e1Sstefano babic
32403e38691eSwdenkwepep250_config	:	unconfig
3241f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
32423e38691eSwdenk
32434ec3a7f0Swdenkxaeniax_config	:	unconfig
3244f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
32454ec3a7f0Swdenk
3246efa329cbSwdenkxm250_config	:	unconfig
3247f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
3248efa329cbSwdenk
3249ca0e7748Swdenkxsengine_config :	unconfig
3250f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
3251ca0e7748Swdenk
3252e0269579SMarkus Klotzbücherzylonite_config :
3253f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
3254e0269579SMarkus Klotzbücher
32558ed96046Swdenk#########################################################################
32568ed96046Swdenk## ARM1136 Systems
32578ed96046Swdenk#########################################################################
32585ca9881aSPeter Pearse
32595ca9881aSPeter Pearseapollon_config		: unconfig
32608cbf4e4fSWolfgang Denk	@mkdir -p $(obj)include
3261751b9b51SKyungmin Park	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
32625252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
3263751b9b51SKyungmin Park	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
32648ed96046Swdenk
3265caebc95bSSascha Hauerimx31_litekit_config	: unconfig
3266350f3ac5SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit logicpd mx31
3267caebc95bSSascha Hauer
3268a2bb7105SGuennadi Liakhovetskiimx31_phycore_eet_config \
32695ad86216SSascha Hauerimx31_phycore_config	: unconfig
327069c5bf29SGuennadi Liakhovetski	@mkdir -p $(obj)include
3271a2bb7105SGuennadi Liakhovetski	@if [ -n "$(findstring _eet_,$@)" ]; then			\
3272a2bb7105SGuennadi Liakhovetski		echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h;	\
3273a2bb7105SGuennadi Liakhovetski	fi
3274a2bb7105SGuennadi Liakhovetski	@$(MKCONFIG) -a imx31_phycore arm arm1136 imx31_phycore NULL mx31
32755ad86216SSascha Hauer
3276b5dc9b30SGuennadi Liakhovetskimx31ads_config		: unconfig
3277f5acb9fdSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
3278b5dc9b30SGuennadi Liakhovetski
3279d08e5ca3SMagnus Liljamx31pdk_config \
3280d08e5ca3SMagnus Liljamx31pdk_nand_config	: unconfig
3281d08e5ca3SMagnus Lilja	@mkdir -p $(obj)include
3282d08e5ca3SMagnus Lilja	@if [ -n "$(findstring _nand_,$@)" ]; then					\
3283d08e5ca3SMagnus Lilja		echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h;		\
3284d08e5ca3SMagnus Lilja	else										\
3285d08e5ca3SMagnus Lilja		echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h;	\
3286d08e5ca3SMagnus Lilja		echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h;	\
3287d08e5ca3SMagnus Lilja	fi
3288d08e5ca3SMagnus Lilja	@$(MKCONFIG) -a mx31pdk arm arm1136 mx31pdk freescale mx31
32898449f287SMagnus Lilja
3290699f0512SWolfgang Denkomap2420h4_config	: unconfig
32910a0e4badSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 ti omap24xx
3292699f0512SWolfgang Denk
32930d19f6c8SIlya Yanokqong_config		: unconfig
32940d19f6c8SIlya Yanok	@$(MKCONFIG) $(@:_config=) arm arm1136 qong davedenx mx31
32950d19f6c8SIlya Yanok
329611edcfe2SGuennadi Liakhovetski#########################################################################
329711edcfe2SGuennadi Liakhovetski## ARM1176 Systems
329811edcfe2SGuennadi Liakhovetski#########################################################################
329911edcfe2SGuennadi Liakhovetskismdk6400_noUSB_config	\
330011edcfe2SGuennadi Liakhovetskismdk6400_config	:	unconfig
330111edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)include $(obj)board/samsung/smdk6400
330211edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)nand_spl/board/samsung/smdk6400
330311edcfe2SGuennadi Liakhovetski	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
330411edcfe2SGuennadi Liakhovetski	@if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then			\
330511edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
330611edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx;		\
330711edcfe2SGuennadi Liakhovetski	else										\
330811edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
330911edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx;	\
331011edcfe2SGuennadi Liakhovetski	fi
331111edcfe2SGuennadi Liakhovetski	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
331211edcfe2SGuennadi Liakhovetski
33132262cfeeSwdenk#========================================================================
33142262cfeeSwdenk# i386
33152262cfeeSwdenk#========================================================================
33162262cfeeSwdenk#########################################################################
33172262cfeeSwdenk## AMD SC520 CDP
33182262cfeeSwdenk#########################################################################
3319c620c01eSGraeme RusseNET_config	:	unconfig
332040797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 eNET NULL sc520
3321c620c01eSGraeme Russ
3322a3f4c123SWolfgang Denksc520_cdp_config	:	unconfig
332340797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp NULL sc520
3324a3f4c123SWolfgang Denk
33257a8e9bedSwdenksc520_spunk_config	:	unconfig
332640797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
33277a8e9bedSwdenk
33287a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
332940797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
33307a8e9bedSwdenk
333143d9616cSwdenk#========================================================================
333243d9616cSwdenk# MIPS
333343d9616cSwdenk#========================================================================
33347ebf7443Swdenk#########################################################################
333543d9616cSwdenk## MIPS32 4Kc
333643d9616cSwdenk#########################################################################
333743d9616cSwdenk
3338e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
3339e0ac62d7Swdenk
3340e0ac62d7Swdenkincaip_100MHz_config	\
3341e0ac62d7Swdenkincaip_133MHz_config	\
3342e0ac62d7Swdenkincaip_150MHz_config	\
334343d9616cSwdenkincaip_config: unconfig
3344f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3345e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
3346f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
3347ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
3348e0ac62d7Swdenk		}
3349e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
3350f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
3351ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
3352e0ac62d7Swdenk		}
3353e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
3354f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
3355ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
3356e0ac62d7Swdenk		}
3357f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
3358e0ac62d7Swdenk
3359f4863a7aSwdenktb0229_config: unconfig
3360f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
3361f4863a7aSwdenk
33622a61eff6SStefan Roesevct_premium_config		\
33632a61eff6SStefan Roesevct_premium_small_config	\
33642a61eff6SStefan Roesevct_premium_onenand_config	\
33652a61eff6SStefan Roesevct_premium_onenand_small_config \
33662a61eff6SStefan Roesevct_platinum_config		\
33672a61eff6SStefan Roesevct_platinum_small_config	\
33682a61eff6SStefan Roesevct_platinum_onenand_config	\
33692a61eff6SStefan Roesevct_platinum_onenand_small_config \
33702a61eff6SStefan Roesevct_platinumavc_config		\
33712a61eff6SStefan Roesevct_platinumavc_small_config	\
33722a61eff6SStefan Roesevct_platinumavc_onenand_config	\
33732a61eff6SStefan Roesevct_platinumavc_onenand_small_config: unconfig
33742a61eff6SStefan Roese	@mkdir -p $(obj)include
33752a61eff6SStefan Roese	@if [ "$(findstring _premium,$@)" ] ; then \
33762a61eff6SStefan Roese		echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h ; \
33772a61eff6SStefan Roese		$(XECHO) "... on Premium board variant" ; \
33782a61eff6SStefan Roese	fi
33792a61eff6SStefan Roese	@if [ "$(findstring _platinum_,$@)" ] ; then \
33802a61eff6SStefan Roese		echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h ; \
33812a61eff6SStefan Roese		$(XECHO) "... on Platinum board variant" ; \
33822a61eff6SStefan Roese	fi
33832a61eff6SStefan Roese	@if [ "$(findstring _platinumavc,$@)" ] ; then \
33842a61eff6SStefan Roese		echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h ; \
33852a61eff6SStefan Roese		$(XECHO) "... on PlatinumAVC board variant" ; \
33862a61eff6SStefan Roese	fi
33872a61eff6SStefan Roese	@if [ "$(findstring _onenand,$@)" ] ; then \
33882a61eff6SStefan Roese		echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h ; \
33892a61eff6SStefan Roese		$(XECHO) "... on OneNAND board variant" ; \
33902a61eff6SStefan Roese	fi
33912a61eff6SStefan Roese	@if [ "$(findstring _small,$@)" ] ; then \
33922a61eff6SStefan Roese		echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h ; \
33932a61eff6SStefan Roese		$(XECHO) "... stripped down image variant" ; \
33942a61eff6SStefan Roese	fi
33952a61eff6SStefan Roese	@$(MKCONFIG) -a vct mips mips vct micronas
33962a61eff6SStefan Roese
3397e0ac62d7Swdenk#########################################################################
339869459791Swdenk## MIPS32 AU1X00
339969459791Swdenk#########################################################################
3400699f0512SWolfgang Denk
340169459791Swdenkdbau1000_config		:	unconfig
3402f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3403210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
3404f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
340569459791Swdenk
340669459791Swdenkdbau1100_config		:	unconfig
3407f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3408210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
3409f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
341069459791Swdenk
341169459791Swdenkdbau1500_config		:	unconfig
3412f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3413210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
3414f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
341569459791Swdenk
3416ff36fd85Swdenkdbau1550_config		:	unconfig
3417f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3418210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3419f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3420ff36fd85Swdenk
3421ff36fd85Swdenkdbau1550_el_config	:	unconfig
3422f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3423210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3424f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3425ff36fd85Swdenk
34268a773983SShinya Kuribayashigth2_config		:	unconfig
34278a773983SShinya Kuribayashi	@mkdir -p $(obj)include
34288a773983SShinya Kuribayashi	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
34298a773983SShinya Kuribayashi	@$(MKCONFIG) -a gth2 mips mips gth2
34308a773983SShinya Kuribayashi
3431699f0512SWolfgang Denkpb1000_config		:	unconfig
3432699f0512SWolfgang Denk	@mkdir -p $(obj)include
3433699f0512SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
3434699f0512SWolfgang Denk	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
3435699f0512SWolfgang Denk
34360764c164SVlad Lunguqemu_mips_config	: unconfig
34370764c164SVlad Lungu	@mkdir -p $(obj)include
3438210ed200SWolfgang Denk	@echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
34390764c164SVlad Lungu	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
34400764c164SVlad Lungu
344169459791Swdenk#########################################################################
3442e0ac62d7Swdenk## MIPS64 5Kc
3443e0ac62d7Swdenk#########################################################################
344443d9616cSwdenk
34453e38691eSwdenkpurple_config :		unconfig
3446f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
344743d9616cSwdenk
34484a551709Swdenk#========================================================================
34494a551709Swdenk# Nios
34504a551709Swdenk#========================================================================
34514a551709Swdenk#########################################################################
34524a551709Swdenk## Nios32
34534a551709Swdenk#########################################################################
34544a551709Swdenk
3455699f0512SWolfgang DenkADNPESC1_DNPEVA2_base_32_config	\
3456699f0512SWolfgang DenkADNPESC1_base_32_config		\
3457699f0512SWolfgang DenkADNPESC1_config: unconfig
3458699f0512SWolfgang Denk	@mkdir -p $(obj)include
3459699f0512SWolfgang Denk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
3460699f0512SWolfgang Denk		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
3461699f0512SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
3462699f0512SWolfgang Denk		}
3463699f0512SWolfgang Denk	@[ -z "$(findstring _base_32,$@)" ] || \
3464699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3465699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
3466699f0512SWolfgang Denk		}
3467699f0512SWolfgang Denk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
3468699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3469699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
3470699f0512SWolfgang Denk		}
3471699f0512SWolfgang Denk	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
3472699f0512SWolfgang Denk
3473c935d3bdSwdenkDK1C20_safe_32_config		\
3474c935d3bdSwdenkDK1C20_standard_32_config	\
34754a551709SwdenkDK1C20_config:	unconfig
3476f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3477c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
3478f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3479ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
3480c935d3bdSwdenk		}
3481c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
3482f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3483ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
3484c935d3bdSwdenk		}
3485c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
3486f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3487ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3488c935d3bdSwdenk		}
3489f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
3490c935d3bdSwdenk
3491c935d3bdSwdenkDK1S10_safe_32_config		\
3492c935d3bdSwdenkDK1S10_standard_32_config	\
3493ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
3494c935d3bdSwdenkDK1S10_config:	unconfig
3495f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3496c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
3497f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3498ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
3499c935d3bdSwdenk		}
3500c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
3501f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3502ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
3503c935d3bdSwdenk		}
3504ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
3505f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
3506ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
3507ec4c544bSwdenk		}
3508c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
3509f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3510ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3511c935d3bdSwdenk		}
3512f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
35134a551709Swdenk
35145c952cf0Swdenk#########################################################################
35155c952cf0Swdenk## Nios-II
35165c952cf0Swdenk#########################################################################
35175c952cf0Swdenk
35189cc83378SScott McNuttEP1C20_config : unconfig
3519f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
35209cc83378SScott McNutt
35219cc83378SScott McNuttEP1S10_config : unconfig
3522f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
35239cc83378SScott McNutt
35249cc83378SScott McNuttEP1S40_config : unconfig
3525f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
35269cc83378SScott McNutt
35275c952cf0SwdenkPK1C20_config : unconfig
3528f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
35295c952cf0Swdenk
35305c952cf0SwdenkPCI5441_config : unconfig
3531f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
35324a551709Swdenk
3533507bbe3eSwdenk#========================================================================
3534507bbe3eSwdenk## Microblaze
3535699f0512SWolfgang Denk#========================================================================
3536507bbe3eSwdenk
353752a822edSMichal Simekmicroblaze-generic_config:	unconfig
3538cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
353952a822edSMichal Simek	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze microblaze-generic xilinx
3540cfc67116SMichal Simek
354160fa72d6SMike Frysinger#========================================================================
354260fa72d6SMike Frysinger# Blackfin
354360fa72d6SMike Frysinger#========================================================================
35440afe519aSWolfgang Denk
354560fa72d6SMike Frysinger# Analog Devices boards
354684a9dda3SMike FrysingerBFIN_BOARDS = bf518f-ezbrd bf526-ezbrd bf527-ezkit bf533-ezkit bf533-stamp \
3547cb4b5e87SMike Frysinger	bf537-pnav bf537-stamp bf538f-ezkit bf548-ezkit bf561-ezkit
35480afe519aSWolfgang Denk
3549e82d8a1fSMike Frysinger# Bluetechnix tinyboards
35504640c2b8SHarald KrapfenbauerBFIN_BOARDS += cm-bf527 cm-bf533 cm-bf537e cm-bf537u cm-bf548 cm-bf561 tcm-bf537
3551e82d8a1fSMike Frysinger
3552d7fdc141SMike Frysinger# Misc third party boards
35533088189aSMike FrysingerBFIN_BOARDS += bf537-minotaur bf537-srv1 blackstamp
3554d7fdc141SMike Frysinger
35550f52b560SHoan Hoang# I-SYST Micromodule
35560f52b560SHoan HoangBFIN_BOARDS += ibf-dsp561
35570f52b560SHoan Hoang
355860fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config)	: unconfig
35599171fc81SMike Frysinger	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
356026bf7decSAubrey Li
35615e3b0bc1SHaavard Skinnemoen#========================================================================
35625e3b0bc1SHaavard Skinnemoen# AVR32
35635e3b0bc1SHaavard Skinnemoen#========================================================================
3564699f0512SWolfgang Denk
3565699f0512SWolfgang Denkatngw100_config	:	unconfig
3566699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
35675e3b0bc1SHaavard Skinnemoen
35685e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
356936f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
35705e3b0bc1SHaavard Skinnemoen
3571667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
3572667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3573667568dbSHaavard Skinnemoen
357464ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
357564ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
35760afe519aSWolfgang Denk
35770a2e4879SHaavard Skinnemoenatstk1006_config	:	unconfig
35780a2e4879SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
35790a2e4879SHaavard Skinnemoen
35800eb5717aSHans-Christian Egtvedtfavr-32-ezkit_config	:	unconfig
35810eb5717aSHans-Christian Egtvedt	@$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
35820eb5717aSHans-Christian Egtvedt
35835c374c9eSJulien Mayhammerhead_config	:	unconfig
35845c374c9eSJulien May	@$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
35855c374c9eSJulien May
358613b50fe3SMark Jacksonmimc200_config		:	unconfig
358713b50fe3SMark Jackson	@$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
358813b50fe3SMark Jackson
3589699f0512SWolfgang Denk#========================================================================
3590699f0512SWolfgang Denk# SH3 (SuperH)
3591699f0512SWolfgang Denk#========================================================================
35927ebf7443Swdenk
359369df3c4dSNobuhiro Iwamatsu#########################################################################
3594c655fad0SNobuhiro Iwamatsu## sh2 (Renesas SuperH)
3595c655fad0SNobuhiro Iwamatsu#########################################################################
3596c655fad0SNobuhiro Iwamatsursk7203_config: unconfig
3597a5b04d00SKieran Bingham	@mkdir -p $(obj)include
35984d41650eSPeter Griffin	@echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h
35999a1d3557SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh2 rsk7203 renesas
3600c655fad0SNobuhiro Iwamatsu
3601c655fad0SNobuhiro Iwamatsu#########################################################################
3602b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
3603b2b5e2bbSYoshihiro Shimoda#########################################################################
3604699f0512SWolfgang Denk
36053313e0e2SMark Jonasmpr2_config: unconfig
36063ab4827cSWolfgang Denk	@mkdir -p $(obj)include
36073ab4827cSWolfgang Denk	@echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
36083313e0e2SMark Jonas	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
36093313e0e2SMark Jonas
3610b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
36113ab4827cSWolfgang Denk	@mkdir -p $(obj)include
36123ab4827cSWolfgang Denk	@echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
361391c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3614b2b5e2bbSYoshihiro Shimoda
3615b2b5e2bbSYoshihiro Shimoda#########################################################################
361669df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
361769df3c4dSNobuhiro Iwamatsu#########################################################################
3618699f0512SWolfgang Denk
3619699f0512SWolfgang DenkMigoR_config :       unconfig
3620699f0512SWolfgang Denk	@mkdir -p $(obj)include
3621699f0512SWolfgang Denk	@echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
36229a1d3557SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 MigoR renesas
3623699f0512SWolfgang Denk
362469df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
36253ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3626210ed200SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
362791c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
362869df3c4dSNobuhiro Iwamatsu
3629d91ea45dSNobuhiro Iwamatsums7722se_config :	unconfig
36303ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3631210ed200SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
363291c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
36337a8e9bedSwdenk
3634699f0512SWolfgang Denkr2dplus_config  :   unconfig
36353ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3636699f0512SWolfgang Denk	@echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3637c1da2a22SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas
3638c2042f59Sgoda.yusuke
3639c133c1fbSYusuke Godar7780mp_config: unconfig
36403ab4827cSWolfgang Denk	@mkdir -p $(obj)include
36413ab4827cSWolfgang Denk	@echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3642acd3e30dSNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas
3643c133c1fbSYusuke Goda
36447faddaecSNobuhiro Iwamatsush7763rdp_config  :   unconfig
36453ab4827cSWolfgang Denk	@mkdir -p $(obj)include
36463ab4827cSWolfgang Denk	@echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
364778385bf2SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas
36487faddaecSNobuhiro Iwamatsu
3649ada93182SYoshihiro Shimodaxtract_sh7785lcr = $(subst _32bit,,$(subst _config,,$1))
3650ada93182SYoshihiro Shimodash7785lcr_32bit_config \
36510d53a47dSNobuhiro Iwamatsush7785lcr_config  :   unconfig
3652ce298172SJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
3653ce298172SJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)board/renesas/sh7785lcr
3654ce298172SJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h
3655ada93182SYoshihiro Shimoda	@if [ "$(findstring 32bit, $@)" ] ; then \
3656ada93182SYoshihiro Shimoda		echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
3657ada93182SYoshihiro Shimoda		echo "TEXT_BASE = 0x8ff80000" > \
3658ada93182SYoshihiro Shimoda			$(obj)board/renesas/sh7785lcr/config.tmp ; \
3659ada93182SYoshihiro Shimoda		  $(XECHO) " ... enable 32-Bit Address Extended Mode" ; \
3660ada93182SYoshihiro Shimoda	fi
3661ada93182SYoshihiro Shimoda	@$(MKCONFIG) -a $(call xtract_sh7785lcr,$@) sh sh4 sh7785lcr renesas
36620d53a47dSNobuhiro Iwamatsu
36636f0da497SNobuhiro Iwamatsuap325rxa_config  :   unconfig
36646f0da497SNobuhiro Iwamatsu	@mkdir -p $(obj)include
36656f0da497SNobuhiro Iwamatsu	@echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3666f84e6ea2SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas
36676f0da497SNobuhiro Iwamatsu
366874d9c16aSNobuhiro Iwamatsuespt_config  :   unconfig
366974d9c16aSNobuhiro Iwamatsu	@mkdir -p $(obj)include
367074d9c16aSNobuhiro Iwamatsu	@echo "#define CONFIG_ESPT 1" > $(obj)include/config.h
367174d9c16aSNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 espt
367274d9c16aSNobuhiro Iwamatsu
3673c2f02da2SDaniel Hellstrom#========================================================================
3674c2f02da2SDaniel Hellstrom# SPARC
3675c2f02da2SDaniel Hellstrom#========================================================================
3676699f0512SWolfgang Denk
36771e9a164eSDaniel Hellstrom#########################################################################
36781e9a164eSDaniel Hellstrom## LEON3
36791e9a164eSDaniel Hellstrom#########################################################################
3680c2f02da2SDaniel Hellstrom
368171d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board
368271d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig
368371d7e4c0SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
368471d7e4c0SDaniel Hellstrom
36856ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
36866ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig
36876ed8a43aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
36886ed8a43aSDaniel Hellstrom
36896940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
36906940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60.
36916940383dSDaniel Hellstromgr_ep2s60_config: unconfig
36926940383dSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
36936940383dSDaniel Hellstrom
3694823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator
3695823edd8aSDaniel Hellstromgrsim_config : unconfig
3696823edd8aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3697823edd8aSDaniel Hellstrom
36987ebf7443Swdenk#########################################################################
3699b330990cSDaniel Hellstrom## LEON2
3700b330990cSDaniel Hellstrom#########################################################################
3701b330990cSDaniel Hellstrom
3702ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator
3703ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig
3704ab68f921SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3705ab68f921SDaniel Hellstrom
37067ebf7443Swdenk#########################################################################
37077ebf7443Swdenk#########################################################################
37087ebf7443Swdenk#########################################################################
370985ec0bccSwdenk
37103e38691eSwdenkclean:
37111bc15386SPeter Tyser	@rm -f $(obj)examples/standalone/82559_eeprom			  \
3712d640ac58SWolfgang Denk	       $(obj)examples/standalone/atmel_df_pow2			  \
37131bc15386SPeter Tyser	       $(obj)examples/standalone/eepro100_eeprom		  \
37141bc15386SPeter Tyser	       $(obj)examples/standalone/hello_world			  \
37151bc15386SPeter Tyser	       $(obj)examples/standalone/interrupt			  \
37161bc15386SPeter Tyser	       $(obj)examples/standalone/mem_to_mem_idma2intr		  \
37171bc15386SPeter Tyser	       $(obj)examples/standalone/sched				  \
37181bc15386SPeter Tyser	       $(obj)examples/standalone/smc91111_eeprom		  \
37191bc15386SPeter Tyser	       $(obj)examples/standalone/test_burst			  \
37201bc15386SPeter Tyser	       $(obj)examples/standalone/timer
3721d4abc757SPeter Tyser	@rm -f $(obj)examples/api/demo{,.bin}
3722f9301e1cSWolfgang Denk	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
3723f9301e1cSWolfgang Denk	       $(obj)tools/env/{fw_printenv,fw_setenv}			  \
3724f9301e1cSWolfgang Denk	       $(obj)tools/envcrc					  \
3725f9301e1cSWolfgang Denk	       $(obj)tools/gdb/{astest,gdbcont,gdbsend}			  \
3726f9301e1cSWolfgang Denk	       $(obj)tools/gen_eth_addr    $(obj)tools/img2srec		  \
3727f9301e1cSWolfgang Denk	       $(obj)tools/mkimage	   $(obj)tools/mpc86x_clk	  \
3728f9301e1cSWolfgang Denk	       $(obj)tools/ncb		   $(obj)tools/ubsha1
3729f9301e1cSWolfgang Denk	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
3730f9301e1cSWolfgang Denk	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
3731f9301e1cSWolfgang Denk	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
37321dcb50afSWolfgang Denk	       $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds  \
37339ff67e5eSMike Frysinger	       $(obj)lib_blackfin/u-boot.lds				  \
37341aada9cdSWolfgang Denk	       $(obj)u-boot.lds						  \
37359171fc81SMike Frysinger	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3736dc7746d8SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
37371aada9cdSWolfgang Denk	@rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map}
3738ca6189dbSKyungmin Park	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl.map}
3739ca6189dbSKyungmin Park	@rm -f $(ONENAND_BIN)
37401aada9cdSWolfgang Denk	@rm -f $(obj)onenand_ipl/u-boot.lds
3741d4abc757SPeter Tyser	@rm -f $(TIMESTAMP_FILE) $(VERSION_FILE)
3742ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
37437ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
37442b48f7d5SPeter Tyser		-o -name '*.o'	-o -name '*.a' -o -name '*.exe'	\) -print \
37457ebf7443Swdenk		| xargs rm -f
37467ebf7443Swdenk
37477ebf7443Swdenkclobber:	clean
3748ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
37494c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
37504c0d4c3bSwdenk		-print0 \
37514c0d4c3bSwdenk		| xargs -0 rm -f
3752ffda586fSLi Yang	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
37535013c09fSWolfgang Denk		$(obj)cscope.* $(obj)*.*~
3754ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3755aa0c7a86SPrafulla Wadaskar	@rm -f $(obj)u-boot.kwb
3756fb8b33c1SPeter Tyser	@rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
37575013c09fSWolfgang Denk	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3758ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3759a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3760a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
37617ebf7443Swdenk
3762f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
37637ebf7443Swdenkmrproper \
37647ebf7443Swdenkdistclean:	clobber unconfig
3765f9328639SMarian Balakowiczelse
3766f9328639SMarian Balakowiczmrproper \
3767f9328639SMarian Balakowiczdistclean:	clobber unconfig
3768ae6d1056SWolfgang Denk	rm -rf $(obj)*
3769f9328639SMarian Balakowiczendif
37707ebf7443Swdenk
37717ebf7443Swdenkbackup:
37727ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
37737ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
37747ebf7443Swdenk
37757ebf7443Swdenk#########################################################################
3776