xref: /openbmc/u-boot/Makefile (revision c17b79fb)
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
2510c7604dSWolfgang DenkPATCHLEVEL = 08
268b9e4787SWolfgang DenkSUBLEVEL =
27963f2f61SWolfgang DenkEXTRAVERSION = -rc3
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
288751b9b51SKyungmin Parkendif
289751b9b51SKyungmin Park
290f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
291de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
292f9328639SMarian Balakowicz
2937ebf7443Swdenk#########################################################################
294bdccc4feSwdenk#########################################################################
2957ebf7443Swdenk
2963e88337bSMike Frysinger# Always append ALL so that arch config.mk's can add custom ones
297751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
2987ebf7443Swdenk
299bdccc4feSwdenkall:		$(ALL)
3007ebf7443Swdenk
301f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
3026310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
3036310eb9dSwdenk
304f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
3050817d688SRicardo Ribalda Delgado		$(OBJCOPY) -O srec $< $@
3067ebf7443Swdenk
307f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
3087ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
3097ebf7443Swdenk
31094a91e24SMike Frysinger$(obj)u-boot.ldr:	$(obj)u-boot
31167c2829bSMike Frysinger		$(obj)tools/envcrc --binary > $(obj)env-ldr.o
31268e56324SMike Frysinger		$(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
31394a91e24SMike Frysinger
31494a91e24SMike Frysinger$(obj)u-boot.ldr.hex:	$(obj)u-boot.ldr
31594a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
31694a91e24SMike Frysinger
31794a91e24SMike Frysinger$(obj)u-boot.ldr.srec:	$(obj)u-boot.ldr
31894a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
31994a91e24SMike Frysinger
320f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
321bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
322bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
323881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
324bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
325bdccc4feSwdenk		-d $< $@
326bdccc4feSwdenk
327566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
32801159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
329566a494fSHeiko Schocher
330f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3317ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3327ebf7443Swdenk
333ecb1dc89SMike FrysingerGEN_UBOOT = \
334de109d90SWolfgang Denk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
335de109d90SWolfgang Denk		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
336f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
337f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
338b2184c31Swdenk			-Map u-boot.map -o u-boot
3391aada9cdSWolfgang Denk$(obj)u-boot:	depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds
340ecb1dc89SMike Frysinger		$(GEN_UBOOT)
341ecb1dc89SMike Frysingerifeq ($(CONFIG_KALLSYMS),y)
3421aada9cdSWolfgang Denk		smap=`$(call SYSTEM_MAP,u-boot) | \
3431aada9cdSWolfgang Denk			awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \
3441aada9cdSWolfgang Denk		$(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \
3451aada9cdSWolfgang Denk			-c common/system_map.c -o $(obj)common/system_map.o
346ecb1dc89SMike Frysinger		$(GEN_UBOOT) $(obj)common/system_map.o
347ecb1dc89SMike Frysingerendif
3487ebf7443Swdenk
349d0d6144eSPeter Tyser$(OBJS):	depend
350f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
351f9328639SMarian Balakowicz
352d0d6144eSPeter Tyser$(LIBS):	depend $(SUBDIRS)
353f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
354a8c7c708Swdenk
355d0d6144eSPeter Tyser$(LIBBOARD):	depend $(LIBS)
356de109d90SWolfgang Denk		$(MAKE) -C $(dir $(subst $(obj),,$@))
357de109d90SWolfgang Denk
358d0d6144eSPeter Tyser$(SUBDIRS):	depend
359b028f715Swdenk		$(MAKE) -C $@ all
3607ebf7443Swdenk
361d0d6144eSPeter Tyser$(LDSCRIPT):	depend
362f65c9812SMike Frysinger		$(MAKE) -C $(dir $@) $(notdir $@)
363f65c9812SMike Frysinger
3641aada9cdSWolfgang Denk$(obj)u-boot.lds: $(LDSCRIPT)
3651aada9cdSWolfgang Denk		$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
3661aada9cdSWolfgang Denk
367561858eeSPeter Tyser$(NAND_SPL):	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
3688318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
369887e2ec9SStefan Roese
370d0d6144eSPeter Tyser$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin
3718318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
372887e2ec9SStefan Roese
373561858eeSPeter Tyser$(ONENAND_IPL):	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
374f2302d44SStefan Roese		$(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
375751b9b51SKyungmin Park
376d0d6144eSPeter Tyser$(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin
377751b9b51SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
3781bb707c3SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
379751b9b51SKyungmin Park
380ae6d1056SWolfgang Denk$(VERSION_FILE):
381aa737945SMike Frysinger		@( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
382434c51a5SPeter Tyser		 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
3830ec7a061SMike Frysinger		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
384881a87ecSWolfgang Denk
385561858eeSPeter Tyser$(TIMESTAMP_FILE):
386561858eeSPeter Tyser		@date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
387561858eeSPeter Tyser		@date +'#define U_BOOT_TIME "%T"' >> $@
388561858eeSPeter Tyser
3898f713fdfSdzugdbtools:
390f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
391f9328639SMarian Balakowicz
392f9328639SMarian Balakowiczupdater:
393f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
394f9328639SMarian Balakowicz
395f9328639SMarian Balakowiczenv:
39664b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3978f713fdfSdzu
398d0d6144eSPeter Tyserdepend dep:	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
399f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
4007ebf7443Swdenk
401a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
402a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
403a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
404a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
405a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
406a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
407a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
408a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
40943ea36fbSWilliam JuulTAG_SUBDIRS += fs/yaffs2
410a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
411a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
412a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
413a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
414a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
415e92739d3SPeter TyserTAG_SUBDIRS += drivers/gpio
416a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
417a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
418a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
419a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
4205ce13051SHaavard SkinnemoenTAG_SUBDIRS += drivers/mmc
421a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
422a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
423a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
424d25ce7d2SHaavard SkinnemoenTAG_SUBDIRS += drivers/mtd/spi
425a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
426a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
427a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
428a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
429a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
430a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
431a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
43204a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
433a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
434a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
435a340c325SJean-Christophe PLAGNIOL-VILLARD
436f9328639SMarian Balakowicztags ctags:
437ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
43888fed9a1SWolfgang Denk						-name '*.[ch]' -print`
4397ebf7443Swdenk
4407ebf7443Swdenketags:
441ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
44288fed9a1SWolfgang Denk						-name '*.[ch]' -print`
443ffda586fSLi Yangcscope:
444ffda586fSLi Yang		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
445ffda586fSLi Yang						> cscope.files
446ffda586fSLi Yang		cscope -b -q -k
4477ebf7443Swdenk
448ecb1dc89SMike FrysingerSYSTEM_MAP = \
449ecb1dc89SMike Frysinger		$(NM) $1 | \
4507ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
451ecb1dc89SMike Frysinger		LC_ALL=C sort
452ecb1dc89SMike Frysinger$(obj)System.map:	$(obj)u-boot
453ecb1dc89SMike Frysinger		@$(call SYSTEM_MAP,$<) > $(obj)System.map
4547ebf7443Swdenk
4552f155f6cSGrant Likely#
4562f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4572f155f6cSGrant Likely#
4582f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4592f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4602f155f6cSGrant Likely# to regenerate the autoconf.mk file.
4611510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
4621510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
46316fe7775SMike Frysinger	set -e ; \
464ae6d1056SWolfgang Denk	: Generate the dependancies ; \
4659aef7388SMike Frysinger	$(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \
4661510b82dSWolfgang Denk		-MQ $(obj)include/autoconf.mk include/common.h > $@
4671510b82dSWolfgang Denk
4681510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h
4691510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
4701510b82dSWolfgang Denk	set -e ; \
471ae6d1056SWolfgang Denk	: Extract the config macros ; \
4721510b82dSWolfgang Denk	$(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
4734a0f7538SWolfgang Denk		sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
4744a0f7538SWolfgang Denk	mv $@.tmp $@
4752f155f6cSGrant Likely
4767ebf7443Swdenk#########################################################################
477ae6d1056SWolfgang Denkelse	# !config.mk
478f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
479f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
480561858eeSPeter Tyser$(SUBDIRS) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools updater env depend \
481ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map:
4827ebf7443Swdenk	@echo "System not configured - see README" >&2
4837ebf7443Swdenk	@ exit 1
484ae6d1056SWolfgang Denkendif	# config.mk
4857ebf7443Swdenk
4864e53a258SWolfgang Denk.PHONY : CHANGELOG
4874e53a258SWolfgang DenkCHANGELOG:
488b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
489b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4904e53a258SWolfgang Denk
4910a823aa2SHarald Welteinclude/license.h: tools/bin2header COPYING
4920a823aa2SHarald Welte	 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
4937ebf7443Swdenk#########################################################################
4947ebf7443Swdenk
4957ebf7443Swdenkunconfig:
496887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4972f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4982f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4997ebf7443Swdenk
5007ebf7443Swdenk#========================================================================
5017ebf7443Swdenk# PowerPC
5027ebf7443Swdenk#========================================================================
5030db5bca8Swdenk
5040db5bca8Swdenk#########################################################################
5050db5bca8Swdenk## MPC5xx Systems
5060db5bca8Swdenk#########################################################################
5070db5bca8Swdenk
5085e5f9ed2Swdenkcanmb_config:	unconfig
509f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
5105e5f9ed2Swdenk
5110db5bca8Swdenkcmi_mpc5xx_config:	unconfig
512f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
5130db5bca8Swdenk
514b6e4c403SwdenkPATI_config:		unconfig
515f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
516b6e4c403Swdenk
5177ebf7443Swdenk#########################################################################
518945af8d7Swdenk## MPC5xxx Systems
519945af8d7Swdenk#########################################################################
520a87589daSwdenk
521dafba16eSWolfgang Denkaev_config: unconfig
5224677988cSWolfgang Grandegger	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
523dafba16eSWolfgang Denk
5246ca24c64Sdzu@denx.deBC3450_config:	unconfig
525f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
5266ca24c64Sdzu@denx.de
527699f0512SWolfgang Denkcm5200_config:	unconfig
528699f0512SWolfgang Denk	@$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
529699f0512SWolfgang Denk
5305e4b3361SStefan Roesecpci5200_config:  unconfig
531f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
5325e4b3361SStefan Roese
5335c4fa9b4SGrzegorz Bernackidigsy_mtc_config \
5345c4fa9b4SGrzegorz Bernackidigsy_mtc_LOWBOOT_config	\
5355c4fa9b4SGrzegorz Bernackidigsy_mtc_RAMBOOT_config:	unconfig
5365c4fa9b4SGrzegorz Bernacki	@mkdir -p $(obj)include
5375c4fa9b4SGrzegorz Bernacki	@mkdir -p $(obj)board/digsy_mtc
5385c4fa9b4SGrzegorz Bernacki	@ >$(obj)include/config.h
5395c4fa9b4SGrzegorz Bernacki	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
5405c4fa9b4SGrzegorz Bernacki		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp ; \
5415c4fa9b4SGrzegorz Bernacki		  echo "... with LOWBOOT configuration" ; \
5425c4fa9b4SGrzegorz Bernacki		}
5435c4fa9b4SGrzegorz Bernacki	@[ -z "$(findstring RAMBOOT_,$@)" ] || \
5445c4fa9b4SGrzegorz Bernacki		{ echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp ; \
5455c4fa9b4SGrzegorz Bernacki		  echo "... with RAMBOOT configuration" ; \
5465c4fa9b4SGrzegorz Bernacki		}
5475c4fa9b4SGrzegorz Bernacki	@$(MKCONFIG) -a digsy_mtc  ppc mpc5xxx digsy_mtc
5485c4fa9b4SGrzegorz Bernacki
5495b53b29bSEric Millbrandtgalaxy5200_LOWBOOT_config \
5505b53b29bSEric Millbrandtgalaxy5200_config:	unconfig
5515b53b29bSEric Millbrandt	@mkdir -p $(obj)include
5525b53b29bSEric Millbrandt	@echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
5535b53b29bSEric Millbrandt	@$(MKCONFIG) -a galaxy5200 ppc mpc5xxx galaxy5200
5545b53b29bSEric Millbrandt
555a87589daSwdenkhmi1001_config:	unconfig
556f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
557a87589daSwdenk
558e35745bbSwdenkLite5200_config				\
559e35745bbSwdenkLite5200_LOWBOOT_config			\
560e35745bbSwdenkLite5200_LOWBOOT08_config		\
561e35745bbSwdenkicecube_5200_config			\
562e35745bbSwdenkicecube_5200_LOWBOOT_config		\
563e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
564b2001f27Swdenkicecube_5200_DDR_config			\
56579d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
56679d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
567e35745bbSwdenkicecube_5100_config:			unconfig
568f9328639SMarian Balakowicz	@mkdir -p $(obj)include
569f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
57017d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
57117d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
572f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
573f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
57417d704ebSwdenk		  fi ; \
575ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5765cf9da48Swdenk		}
5775cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
578f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5795cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
580ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5815cf9da48Swdenk		}
582b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
583f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
584ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
585b2001f27Swdenk		}
586d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
587f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
588ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
589d4ca31c4Swdenk		}
590a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
591f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
592ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
593945af8d7Swdenk		}
594f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
595945af8d7Swdenk
5962605e90bSHeiko Schocherjupiter_config:	unconfig
5972605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
5982605e90bSHeiko Schocher
599138ff60cSwdenkinka4x0_config:	unconfig
600f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
601138ff60cSwdenk
60209e4b0c5SWolfgang Denklite5200b_config	\
603d3832e8fSDomen Puncerlite5200b_PM_config	\
60409e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
605f9328639SMarian Balakowicz	@mkdir -p $(obj)include
606f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
607f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
608ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
609f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
610f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
611d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
612d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
613ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
614d3832e8fSDomen Puncer		}
61509e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
616f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
617ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
61809e4b0c5SWolfgang Denk		}
619ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
620f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
62109e4b0c5SWolfgang Denk
622f1ee9825SStefan Roesemcc200_config	\
623ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
624ed1cf845SWolfgang Denkmcc200_highboot_config	\
625ed1cf845SWolfgang Denkmcc200_COM12_config	\
626ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
627113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
628113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
629ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
630ed1cf845SWolfgang Denkprs200_config	\
631ed1cf845SWolfgang Denkprs200_DDR_config	\
632ed1cf845SWolfgang Denkprs200_highboot_config	\
633ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
634f9328639SMarian Balakowicz	@mkdir -p $(obj)include
635f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
6364819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
637ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
638f1ee9825SStefan Roese		}
6394819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
640f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
641ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
6424819fad9SWolfgang Denk		}
6434819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
644ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
645ed1cf845SWolfgang Denk		  then \
646ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
647ed1cf845SWolfgang Denk		  else \
648ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
649ed1cf845SWolfgang Denk			then \
650ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
651ed1cf845SWolfgang Denk			else \
652f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
653ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
654ed1cf845SWolfgang Denk			fi; \
655ed1cf845SWolfgang Denk		  fi; \
6564819fad9SWolfgang Denk		}
6574819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
658f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
659ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
6604819fad9SWolfgang Denk		}
661463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
662f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
663ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
664463764c8SWolfgang Denk		}
665ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
666f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"	>>$(obj)include/config.h ;\
667ed1cf845SWolfgang Denk		}
668f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
66986ea5f93SWolfgang Denk
6708b7d1f0aSStefan Roesemecp5200_config:  unconfig
671ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
6728b7d1f0aSStefan Roese
673699f0512SWolfgang Denkmotionpro_config:	unconfig
674699f0512SWolfgang Denk	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
675699f0512SWolfgang Denk
676258c37b1SHeiko Schochermucmc52_config:		unconfig
677258c37b1SHeiko Schocher	@$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
678258c37b1SHeiko Schocher
6796341d9d7SHeiko Schochermunices_config:	unconfig
680ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
6816341d9d7SHeiko Schocher
682699f0512SWolfgang DenkMVBC_P_config: unconfig
683699f0512SWolfgang Denk	@mkdir -p $(obj)include
684699f0512SWolfgang Denk	@mkdir -p $(obj)board/mvbc_p
685699f0512SWolfgang Denk	@ >$(obj)include/config.h
686699f0512SWolfgang Denk	@[ -z "$(findstring MVBC_P,$@)" ] || \
687699f0512SWolfgang Denk	{   	echo "#define CONFIG_MVBC_P" 	>>$(obj)include/config.h; }
688699f0512SWolfgang Denk	@$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
689699f0512SWolfgang Denk
69091c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config:	unconfig
691f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
692df04a3dfSWolfgang Denk
693c9969947SJon Smirlpcm030_config \
694c9969947SJon Smirlpcm030_LOWBOOT_config:	unconfig
695341245a2SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/phytec/pcm030
6960a87dd90SWolfgang Denk	@ >$(obj)include/config.h
697c9969947SJon Smirl	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
698c9969947SJon Smirl		{ echo "TEXT_BASE = 0xFF000000"	>$(obj)board/phytec/pcm030/config.tmp ; \
699c9969947SJon Smirl		  echo "... with LOWBOOT configuration" ; \
700c9969947SJon Smirl		}
701c9969947SJon Smirl	@$(MKCONFIG) -a pcm030 ppc mpc5xxx pcm030 phytec
702c9969947SJon Smirl
7035e4b3361SStefan Roesepf5200_config:	unconfig
704f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
7055e4b3361SStefan Roese
70689394047SwdenkPM520_config \
70789394047SwdenkPM520_DDR_config \
70889394047SwdenkPM520_ROMBOOT_config \
70989394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
710f9328639SMarian Balakowicz	@mkdir -p $(obj)include
71189394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
712f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
713ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
71489394047Swdenk		}
71589394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
716f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
717ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
71889394047Swdenk		}
719f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
72089394047Swdenk
7216624b687SWolfgang Denksmmaco4_config: unconfig
7224677988cSWolfgang Grandegger	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
7239cdc8386SWolfgang Denk
7249cdc8386SWolfgang Denkspieval_config:	unconfig
7254677988cSWolfgang Grandegger	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
7269cdc8386SWolfgang Denk
72745a212c4SWolfgang DenkTB5200_B_config \
728b87dfd28SWolfgang DenkTB5200_config:	unconfig
729f9328639SMarian Balakowicz	@mkdir -p $(obj)include
73045a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
731f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
732ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
73345a212c4SWolfgang Denk		}
7344677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
735b87dfd28SWolfgang Denk
736d4ca31c4SwdenkMINI5200_config	\
737d4ca31c4SwdenkEVAL5200_config	\
738d4ca31c4SwdenkTOP5200_config:	unconfig
739f9328639SMarian Balakowicz	@mkdir -p $(obj)include
740f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
741f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
742d4ca31c4Swdenk
7436c7a1408SwdenkTotal5100_config		\
7446c7a1408SwdenkTotal5200_config		\
7456c7a1408SwdenkTotal5200_lowboot_config	\
7466c7a1408SwdenkTotal5200_Rev2_config		\
7476c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
748f9328639SMarian Balakowicz	@mkdir -p $(obj)include
749f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
7506c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
751f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
752ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
7536c7a1408Swdenk		}
7546c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
755f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
756ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
7576c7a1408Swdenk		}
7586c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
759f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
760ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
7616c7a1408Swdenk		}
7626c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
763f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
764ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
7656c7a1408Swdenk		}
7666c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
767f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
768ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
7696c7a1408Swdenk		}
770f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
7716c7a1408Swdenk
7725196a7a0SWolfgang Denkcam5200_config \
773d9384de2SMarian Balakowiczcam5200_niosflash_config \
7745196a7a0SWolfgang Denkfo300_config \
7755196a7a0SWolfgang DenkMiniFAP_config \
7765078cce8SWolfgang DenkTQM5200S_config \
7775078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
7785196a7a0SWolfgang DenkTQM5200_B_config \
7795196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
7805196a7a0SWolfgang DenkTQM5200_config	\
7815196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
782f9328639SMarian Balakowicz	@mkdir -p $(obj)include
7834677988cSWolfgang Grandegger	@mkdir -p $(obj)board/tqc/tqm5200
784135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
785f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
786f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
787f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
788ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
7895078cce8SWolfgang Denk		}
790d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
791d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
792ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
793d9384de2SMarian Balakowicz		}
7946d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
795f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
796ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
7976d3bc9b8SMarian Balakowicz		}
798cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
799f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
800ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
801978b1096SWolfgang Denk		}
802cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
803f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
804ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
80556523f12Swdenk		}
8065078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
807f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
8085078cce8SWolfgang Denk		}
8095078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
810f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
811f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
81245a212c4SWolfgang Denk		}
813978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
814f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
815978b1096SWolfgang Denk		}
8164677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
817699f0512SWolfgang Denk
8186dedf3d4SHeiko Schocheruc101_config:		unconfig
8196dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
82053d4a498SBartlomiej Sieka
821699f0512SWolfgang Denkv38b_config: unconfig
822699f0512SWolfgang Denk	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
82356523f12Swdenk
824945af8d7Swdenk#########################################################################
8258993e54bSRafal Jaworowski## MPC512x Systems
8268993e54bSRafal Jaworowski#########################################################################
827699f0512SWolfgang Denk
82852568c36SWolfgang Denkaria_config:	unconfig
82952568c36SWolfgang Denk	@$(MKCONFIG) -a aria ppc mpc512x aria davedenx
83052568c36SWolfgang Denk
831e53b507cSStefan Roesemecp5123_config:	unconfig
832e53b507cSStefan Roese	@$(MKCONFIG) -a mecp5123 ppc mpc512x mecp5123 esd
833e53b507cSStefan Roese
83472601d04SWolfgang Denkmpc5121ads_config \
83572601d04SWolfgang Denkmpc5121ads_rev2_config	\
8365f91db7fSJohn Rigby	: unconfig
837210ed200SWolfgang Denk	@mkdir -p $(obj)include
838f31c49dbSMartha Marx	@if [ "$(findstring rev2,$@)" ] ; then \
839f31c49dbSMartha Marx		echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
8405f91db7fSJohn Rigby	fi
84172601d04SWolfgang Denk	@$(MKCONFIG) -a mpc5121ads ppc mpc512x mpc5121ads freescale
8428993e54bSRafal Jaworowski
8438993e54bSRafal Jaworowski#########################################################################
8447ebf7443Swdenk## MPC8xx Systems
8457ebf7443Swdenk#########################################################################
8467ebf7443Swdenk
8472d24a3a7SwdenkAdder_config	\
8482d24a3a7SwdenkAdder87x_config \
84926238132SwdenkAdderII_config	\
8502d24a3a7Swdenk	:		unconfig
851f9328639SMarian Balakowicz	@mkdir -p $(obj)include
85226238132Swdenk	$(if $(findstring AdderII,$@), \
853f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
854f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
8552d24a3a7Swdenk
85616c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
85791c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
85816c8d5e7SWolfgang Denk
859180d3f74SwdenkADS860_config	  \
860180d3f74SwdenkFADS823_config	  \
861180d3f74SwdenkFADS850SAR_config \
862180d3f74SwdenkMPC86xADS_config  \
8631114257cSwdenkMPC885ADS_config  \
864180d3f74SwdenkFADS860T_config:	unconfig
865f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
8667ebf7443Swdenk
8677ebf7443SwdenkAMX860_config	:	unconfig
868f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
8697ebf7443Swdenk
8707ebf7443Swdenkc2mon_config:		unconfig
871f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
8727ebf7443Swdenk
8737ebf7443SwdenkCCM_config:		unconfig
874f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
8757ebf7443Swdenk
8767ebf7443Swdenkcogent_mpc8xx_config:	unconfig
877f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
8787ebf7443Swdenk
8793bac3513SwdenkELPT860_config:		unconfig
880f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
8813bac3513Swdenk
88284c960ceSWolfgang DenkEP88x_config:		unconfig
883f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
88484c960ceSWolfgang Denk
8857ebf7443SwdenkESTEEM192E_config:	unconfig
886f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
8877ebf7443Swdenk
8887ebf7443SwdenkETX094_config	:	unconfig
889f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
8907ebf7443Swdenk
8917ebf7443SwdenkFLAGADM_config:	unconfig
892f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
8937ebf7443Swdenk
8947aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
8957aa78614Swdenk
8967aa78614SwdenkGEN860T_SC_config	\
8977ebf7443SwdenkGEN860T_config: unconfig
898f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8997aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
900f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
901ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
9027aa78614Swdenk		}
903f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
9047ebf7443Swdenk
9057ebf7443SwdenkGENIETV_config:	unconfig
906f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
9077ebf7443Swdenk
9087ebf7443SwdenkGTH_config:	unconfig
909f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
9107ebf7443Swdenk
9117ebf7443Swdenkhermes_config	:	unconfig
912f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
9137ebf7443Swdenk
914c40b2956SwdenkHMI10_config	:	unconfig
9154677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
916c40b2956Swdenk
9177ebf7443SwdenkIAD210_config: unconfig
918f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
9197ebf7443Swdenk
9207ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
9217ebf7443Swdenk
9227ebf7443SwdenkICU862_100MHz_config	\
9237ebf7443SwdenkICU862_config: unconfig
924f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9257ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
926f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
927ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
9287ebf7443Swdenk		}
929f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
9307ebf7443Swdenk
9317ebf7443SwdenkIP860_config	:	unconfig
932f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
9337ebf7443Swdenk
9347ebf7443SwdenkIVML24_256_config \
9357ebf7443SwdenkIVML24_128_config \
9367ebf7443SwdenkIVML24_config:	unconfig
937f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9387ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
939f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
9407ebf7443Swdenk		 }
9417ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
942f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
9437ebf7443Swdenk		 }
9447ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
945f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
9467ebf7443Swdenk		 }
947f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
9487ebf7443Swdenk
9497ebf7443SwdenkIVMS8_256_config \
9507ebf7443SwdenkIVMS8_128_config \
9517ebf7443SwdenkIVMS8_config:	unconfig
952f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9537ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
954f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
9557ebf7443Swdenk		 }
9567ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
957f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
9587ebf7443Swdenk		 }
9597ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
960f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
9617ebf7443Swdenk		 }
962f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
9637ebf7443Swdenk
9641b6275dfSHeiko Schocherkmsupx4_config:		unconfig
9651b6275dfSHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile
9661b6275dfSHeiko Schocher
96756f94be3SwdenkKUP4K_config	:	unconfig
968f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
9690608e04dSwdenk
9700608e04dSwdenkKUP4X_config	:	unconfig
971f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
97256f94be3Swdenk
9737ebf7443SwdenkLANTEC_config	:	unconfig
974f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
9757ebf7443Swdenk
9767ebf7443Swdenklwmon_config:		unconfig
977f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
9787ebf7443Swdenk
9797ebf7443SwdenkMBX_config	\
9807ebf7443SwdenkMBX860T_config:	unconfig
981f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
9827ebf7443Swdenk
983381e4e63SHeiko Schochermgsuvd_config:		unconfig
984d044954fSHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile
985381e4e63SHeiko Schocher
9867ebf7443SwdenkMHPC_config:		unconfig
987f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
9887ebf7443Swdenk
989993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
990993cad93Swdenk
991993cad93SwdenkNETVIA_V2_config \
9927ebf7443SwdenkNETVIA_config:		unconfig
993f9328639SMarian Balakowicz	@mkdir -p $(obj)include
994993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
995f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
996ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
997993cad93Swdenk		 }
998993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
999f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
1000ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
1001993cad93Swdenk		 }
1002f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
10037ebf7443Swdenk
1004c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
1005c26e454dSwdenk
1006c26e454dSwdenkNETPHONE_V2_config \
100704a85b3bSwdenkNETPHONE_config:	unconfig
1008f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1009c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
1010f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
1011c26e454dSwdenk		 }
1012c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
1013f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
1014c26e454dSwdenk		 }
1015f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
101604a85b3bSwdenk
101779fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
101804a85b3bSwdenk
101979fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
102079fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
102179fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
102279fa88f3SwdenkNETTA_SWAPHOOK_config \
102379fa88f3SwdenkNETTA_ISDN_6412_config \
102404a85b3bSwdenkNETTA_ISDN_config \
102579fa88f3SwdenkNETTA_6412_config \
102604a85b3bSwdenkNETTA_config:		unconfig
1027f9328639SMarian Balakowicz	@mkdir -p $(obj)include
102879fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
1029f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
103004a85b3bSwdenk		 }
103179fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
1032f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
103379fa88f3Swdenk		 }
103479fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
1035f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
103679fa88f3Swdenk		 }
103779fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
1038f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
103979fa88f3Swdenk		 }
104079fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
1041f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
104279fa88f3Swdenk		 }
104379fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
1044f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
104579fa88f3Swdenk		 }
1046f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
104704a85b3bSwdenk
104879fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
104979fa88f3Swdenk
105079fa88f3SwdenkNETTA2_V2_config \
105179fa88f3SwdenkNETTA2_config:		unconfig
1052f9328639SMarian Balakowicz	@mkdir -p $(obj)include
105379fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
1054f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
105579fa88f3Swdenk		 }
105679fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
1057f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
105879fa88f3Swdenk		 }
1059f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
106079fa88f3Swdenk
1061a367d426Sdzu@denx.deNC650_Rev1_config \
1062a367d426Sdzu@denx.deNC650_Rev2_config \
1063a367d426Sdzu@denx.deCP850_config:	unconfig
1064f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1065a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
1066f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1067f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1068a367d426Sdzu@denx.de		 }
1069a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
1070f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1071a367d426Sdzu@denx.de		 }
1072a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
1073f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1074a367d426Sdzu@denx.de		 }
1075f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
10767ca202f5Swdenk
10777ebf7443SwdenkNX823_config:		unconfig
1078f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
10797ebf7443Swdenk
10807ebf7443Swdenkpcu_e_config:		unconfig
1081f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
10827ebf7443Swdenk
10833bbc899fSwdenkQS850_config:	unconfig
1084f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10853bbc899fSwdenk
10863bbc899fSwdenkQS823_config:	unconfig
1087f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10883bbc899fSwdenk
10893bbc899fSwdenkQS860T_config:	unconfig
1090f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
10913bbc899fSwdenk
1092da93ed81Swdenkquantum_config:	unconfig
1093f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1094da93ed81Swdenk
10957ebf7443SwdenkR360MPI_config:	unconfig
1096f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
10977ebf7443Swdenk
1098682011ffSwdenkRBC823_config:	unconfig
1099f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1100682011ffSwdenk
11017ebf7443SwdenkRPXClassic_config:	unconfig
1102f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
11037ebf7443Swdenk
11047ebf7443SwdenkRPXlite_config:		unconfig
1105f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
11067ebf7443Swdenk
1107e63c8ee3SwdenkRPXlite_DW_64_config		\
1108e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1109e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1110e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1111e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config	\
1112e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1113e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config	\
1114e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1115f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1116e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1117f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1118ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1119e63c8ee3Swdenk		}
1120e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1121f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1122f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1123ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1124e63c8ee3Swdenk		}
1125e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
11269314cee6SJean-Christophe PLAGNIOL-VILLARD		{ echo "#define  CONFIG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1127ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1128e63c8ee3Swdenk		}
1129f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1130e63c8ee3Swdenk
113173a8b27cSwdenkrmu_config:	unconfig
1132f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
113373a8b27cSwdenk
11347ebf7443SwdenkRRvision_config:	unconfig
1135f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
11367ebf7443Swdenk
11377ebf7443SwdenkRRvision_LCD_config:	unconfig
1138f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1139f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1140f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1141f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
11427ebf7443Swdenk
11437ebf7443SwdenkSM850_config	:	unconfig
11444677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
11457ebf7443Swdenk
114691c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config:		unconfig
1147f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1148b02d0177SMarkus Klotzbuecher
11497ebf7443SwdenkSPD823TS_config:	unconfig
1150f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
11517ebf7443Swdenk
11526bdf4306SWolfgang Denkstxxtc_config:	unconfig
11537b18c227SAlex Dubov	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc stx
11546bdf4306SWolfgang Denk
1155dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1156f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1157dc7c9a1aSwdenk
11587ebf7443SwdenkSXNI855T_config:	unconfig
1159f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
11607ebf7443Swdenk
1161db2f721fSwdenk# EMK MPC8xx based modules
1162db2f721fSwdenkTOP860_config:		unconfig
1163f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1164db2f721fSwdenk
11657ebf7443Swdenk# Play some tricks for configuration selection
1166e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1167e9132ea9Swdenk# and only 823 boards may have LCD support
1168e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
11697ebf7443Swdenk
11707ebf7443SwdenkFPS850L_config		\
1171384ae025SwdenkFPS860L_config		\
1172f12e568cSwdenkNSCU_config		\
11737ebf7443SwdenkTQM823L_config		\
11747ebf7443SwdenkTQM823L_LCD_config	\
11757ebf7443SwdenkTQM850L_config		\
11767ebf7443SwdenkTQM855L_config		\
11777ebf7443SwdenkTQM860L_config		\
1178d126bfbdSwdenkTQM862L_config		\
1179ae3af05eSwdenkTQM823M_config		\
1180ae3af05eSwdenkTQM850M_config		\
1181f12e568cSwdenkTQM855M_config		\
1182f12e568cSwdenkTQM860M_config		\
1183f12e568cSwdenkTQM862M_config		\
11848cba090cSWolfgang DenkTQM866M_config		\
1185090eb735SMarkus KlotzbuecherTQM885D_config		\
1186efc6f447SGuennadi LiakhovetskiTK885D_config		\
11878cba090cSWolfgang Denkvirtlab2_config:	unconfig
1188f9328639SMarian Balakowicz	@mkdir -p $(obj)include
11897ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1190f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1191f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1192ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
11937ebf7443Swdenk		}
11944677988cSWolfgang Grandegger	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
11957ebf7443Swdenk
11967ebf7443SwdenkTTTech_config:	unconfig
1197f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1198f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1199f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
12004677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
12017ebf7443Swdenk
1202ec0aee7bSwdenkuc100_config	:	unconfig
1203f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1204f7d1572bSwdenk
1205608c9146Swdenkv37_config:	unconfig
1206f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1207f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1208f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1209f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1210608c9146Swdenk
121191e940d9Sdzuwtk_config:	unconfig
1212f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1213f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1214f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
12154677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
121691e940d9Sdzu
12177ebf7443Swdenk#########################################################################
12187ebf7443Swdenk## PPC4xx Systems
12197ebf7443Swdenk#########################################################################
1220e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
12217ebf7443Swdenk
122216c0cc1cSStefan Roeseacadia_config:	unconfig
122316c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
122416c0cc1cSStefan Roese
1225c440bfe6SStefan Roeseacadia_nand_config:	unconfig
122663e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
122763e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1228c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1229c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1230c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1231c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1232c440bfe6SStefan Roese
12337ebf7443SwdenkADCIOP_config:	unconfig
1234f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
12357ebf7443Swdenk
1236899620c2SStefan Roesealpr_config:	unconfig
123735d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1238899620c2SStefan Roese
12397521af1cSWolfgang DenkAP1000_config:unconfig
1240f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
12417521af1cSWolfgang Denk
1242c419d1d6SstroeseAPC405_config:	unconfig
1243f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1244c419d1d6Sstroese
12457ebf7443SwdenkAR405_config:	unconfig
1246f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
12477ebf7443Swdenk
1248549826eaSstroeseASH405_config:	unconfig
1249f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1250549826eaSstroese
12518a316c9bSStefan Roesebamboo_config:	unconfig
1252f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
12538a316c9bSStefan Roese
1254cf959c7dSStefan Roesebamboo_nand_config:	unconfig
125563e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
125663e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1257cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1258f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1259cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1260cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1261cf959c7dSStefan Roese
12628a316c9bSStefan Roesebubinga_config:	unconfig
1263f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1264549826eaSstroese
12657ebf7443SwdenkCANBT_config:	unconfig
1266f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
12677ebf7443Swdenk
1268f09f09d3SAdam Graham# Arches, Canyonlands & Glacier use different U-Boot images
1269f09f09d3SAdam Grahamarches_config \
12704c9e8557SStefan Roesecanyonlands_config \
12714c9e8557SStefan Roeseglacier_config:	unconfig
12724c9e8557SStefan Roese	@mkdir -p $(obj)include
12734c9e8557SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
12744c9e8557SStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
12754c9e8557SStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1276c813f1f8SStefan Roese
1277fe7c0db6SStefan Roesecanyonlands_nand_config \
1278fe7c0db6SStefan Roeseglacier_nand_config:	unconfig
127971665ebfSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/canyonlands
128071665ebfSStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/canyonlands
128171665ebfSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1282fe7c0db6SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1283fe7c0db6SStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
128471665ebfSStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
128571665ebfSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
128671665ebfSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
128771665ebfSStefan Roese
12881d6f9720SwdenkCATcenter_config	\
12891d6f9720SwdenkCATcenter_25_config	\
12901d6f9720SwdenkCATcenter_33_config:	unconfig
1291f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1292f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1293f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
12941d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1295f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1296ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
12971d6f9720Swdenk		}
12981d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1299f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1300ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
13011d6f9720Swdenk		}
1302f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
130310767ccbSwdenk
1304699f0512SWolfgang DenkCMS700_config:	unconfig
1305699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1306699f0512SWolfgang Denk
1307ab4c62c1SDirk Eibach# Compact-Center & DevCon-Center use different U-Boot images
1308ab4c62c1SDirk Eibachcompactcenter_config \
1309ab4c62c1SDirk Eibachdevconcenter_config:	unconfig
1310ab4c62c1SDirk Eibach	@mkdir -p $(obj)include
1311ab4c62c1SDirk Eibach	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1312ab4c62c1SDirk Eibach		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1313ab4c62c1SDirk Eibach	@$(MKCONFIG) -n $@ -a compactcenter ppc ppc4xx compactcenter gdsys
1314ab4c62c1SDirk Eibach
13157644f16fSStefan RoeseCPCI2DP_config:	unconfig
1316f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
13177644f16fSStefan Roese
13181951f847SMatthias FuchsCPCI405_config		\
1319549826eaSstroeseCPCI4052_config		\
1320c419d1d6SstroeseCPCI405DT_config	\
1321549826eaSstroeseCPCI405AB_config:	unconfig
1322dd794323SMatthias Fuchs	@mkdir -p $(obj)board/esd/cpci405
1323f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
13247ebf7443Swdenk
13257ebf7443SwdenkCPCIISER4_config:	unconfig
1326f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
13277ebf7443Swdenk
13287ebf7443SwdenkCRAYL1_config:	unconfig
1329f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
13307ebf7443Swdenk
1331cd0a9de6Swdenkcsb272_config:	unconfig
1332f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1333cd0a9de6Swdenk
1334aa245090Swdenkcsb472_config:	unconfig
1335f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1336aa245090Swdenk
13377ebf7443SwdenkDASA_SIM_config: unconfig
1338f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
13397ebf7443Swdenk
1340b209a114SDirk Eibachdlvision_config: unconfig
1341b209a114SDirk Eibach	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dlvision gdsys
1342b209a114SDirk Eibach
134372cd5aa7SstroeseDP405_config:	unconfig
1344f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
134572cd5aa7Sstroese
13467ebf7443SwdenkDU405_config:	unconfig
1347f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
13487ebf7443Swdenk
13491a3ac86bSMatthias FuchsDU440_config:	unconfig
13501a3ac86bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
13511a3ac86bSMatthias Fuchs
13528a316c9bSStefan Roeseebony_config:	unconfig
1353f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
13547ebf7443Swdenk
13557ebf7443SwdenkERIC_config:	unconfig
1356f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
13577ebf7443Swdenk
1358d1cbe85bSwdenkEXBITGEN_config:	unconfig
1359f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1360d1cbe85bSwdenk
13615deb8022SGeorg Schardtfx12mm_flash_config: unconfig
13625deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
13635deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/avnet/fx12mm
13645deb8022SGeorg Schardt	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
13655deb8022SGeorg Schardt		> $(obj)board/avnet/fx12mm/config.tmp
13665deb8022SGeorg Schardt	@echo "TEXT_BASE := 0xFFCB0000" \
13675deb8022SGeorg Schardt		>> $(obj)board/avnet/fx12mm/config.tmp
13685deb8022SGeorg Schardt	@$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
13695deb8022SGeorg Schardt
13705deb8022SGeorg Schardtfx12mm_config: unconfig
13715deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
13725deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/avnet/fx12mm
13735deb8022SGeorg Schardt	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
13745deb8022SGeorg Schardt		> $(obj)board/avnet/fx12mm/config.tmp
13755deb8022SGeorg Schardt	@echo "TEXT_BASE := 0x03000000" \
13765deb8022SGeorg Schardt		>> $(obj)board/avnet/fx12mm/config.tmp
13775deb8022SGeorg Schardt	@$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
13785deb8022SGeorg Schardt
1379c419d1d6SstroeseG2000_config:	unconfig
1380f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1381c419d1d6Sstroese
138289b8619aSDirk Eibachgdppc440etx_config:	unconfig
138389b8619aSDirk Eibach	@$(MKCONFIG) $(@:_config=) ppc ppc4xx gdppc440etx gdsys
138489b8619aSDirk Eibach
1385ac982ea5SNiklaus Gigerhcu4_config:	unconfig
1386b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
138735d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1388ac982ea5SNiklaus Giger
1389ac982ea5SNiklaus Gigerhcu5_config:	unconfig
1390b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
139135d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1392ac982ea5SNiklaus Giger
1393c419d1d6SstroeseHH405_config:	unconfig
1394f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1395c419d1d6Sstroese
139672cd5aa7SstroeseHUB405_config:	unconfig
1397f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
139872cd5aa7Sstroese
1399db01a2eaSwdenkJSE_config:	unconfig
1400f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1401db01a2eaSwdenk
1402b79316f2SStefan RoeseKAREF_config: unconfig
1403f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1404b79316f2SStefan Roese
14054745acaaSStefan Roesekatmai_config:	unconfig
14064745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
14074745acaaSStefan Roese
1408353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1409353f2688SStefan Roesekilauea_config \
1410353f2688SStefan Roesehaleakala_config: unconfig
1411353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1412566806caSStefan Roese
14133d6cb3b2SStefan Roesekilauea_nand_config \
14143d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
14153d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
14163d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
14173d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
14183d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
14193d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
14203d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
14213d6cb3b2SStefan Roese
1422c591dffeSLarry Johnsonkorat_config:	unconfig
1423c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1424c591dffeSLarry Johnson
14256e7fb6eaSStefan Roeseluan_config:	unconfig
1426f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
14276e7fb6eaSStefan Roese
1428b765ffb7SStefan Roeselwmon5_config:	unconfig
1429b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1430b765ffb7SStefan Roese
1431211ea91aSStefan Roesemakalu_config:	unconfig
1432211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1433211ea91aSStefan Roese
1434b05f3543SNiklaus Gigermcu25_config:  unconfig
1435b05f3543SNiklaus Giger	@mkdir -p $(obj)board/netstal/common
1436b05f3543SNiklaus Giger	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1437b05f3543SNiklaus Giger
1438b79316f2SStefan RoeseMETROBOX_config: unconfig
1439f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1440b79316f2SStefan Roese
14417ebf7443SwdenkMIP405_config:	unconfig
1442f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
14437ebf7443Swdenk
1444f3e0de60SwdenkMIP405T_config:	unconfig
1445f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1446f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1447ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1448f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1449f3e0de60Swdenk
14507ebf7443SwdenkML2_config:	unconfig
1451f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
14527ebf7443Swdenk
1453028ab6b5Swdenkml300_config:	unconfig
1454f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1455028ab6b5Swdenk
145601a00431SRicardo Ribalda Delgadoml507_flash_config: unconfig
1457880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
145801a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1459880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1460880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1461880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1462880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1463e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
146401a00431SRicardo Ribalda Delgado
1465086511fcSRicardo Ribalda Delgadoml507_config: unconfig
1466880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
146701a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1468880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1469880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1470880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000"  \
1471880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1472e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1473086511fcSRicardo Ribalda Delgado
1474d7b26d58SDirk Eibachneo_config:	unconfig
1475d7b26d58SDirk Eibach	@$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys
1476d7b26d58SDirk Eibach
14778a316c9bSStefan Roeseocotea_config:	unconfig
1478f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
14790e6d798cSwdenk
14807ebf7443SwdenkOCRTC_config		\
14817ebf7443SwdenkORSG_config:	unconfig
1482f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
14837ebf7443Swdenk
14845568e613SStefan Roesep3p440_config:	unconfig
1485f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
14865568e613SStefan Roese
14877ebf7443SwdenkPCI405_config:	unconfig
1488f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
14897ebf7443Swdenk
1490a4c8d138SStefan Roesepcs440ep_config:	unconfig
1491f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1492a4c8d138SStefan Roese
14937ebf7443SwdenkPIP405_config:	unconfig
1494f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
14957ebf7443Swdenk
149672cd5aa7SstroesePLU405_config:	unconfig
1497f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
149872cd5aa7Sstroese
1499549826eaSstroesePMC405_config:	unconfig
1500f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1501549826eaSstroese
150299d8b23bSMatthias FuchsPMC405DE_config:	unconfig
150399d8b23bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405de esd
150499d8b23bSMatthias Fuchs
15058ba132caSMatthias FuchsPMC440_config:	unconfig
15068ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
15078ba132caSMatthias Fuchs
1508281e00a3SwdenkPPChameleonEVB_config		\
1509e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1510e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1511e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1512e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1513e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1514e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1515f9328639SMarian Balakowicz	@mkdir -p $(obj)include
15161d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1517f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1518ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1519fbe4b5cbSwdenk		}
15201d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1521f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1522ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1523fbe4b5cbSwdenk		}
15241d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1525f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1526ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1527fbe4b5cbSwdenk		}
1528e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1529f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1530ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1531e55ca7e2Swdenk		}
1532e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1533f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1534ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1535e55ca7e2Swdenk		}
1536f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
153712f34241Swdenk
153873ccb341SGary Jennejohnquad100hd_config:	unconfig
153973ccb341SGary Jennejohn	@$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
154073ccb341SGary Jennejohn
154111188d55SStefan Roeseredwood_config: unconfig
154211188d55SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
154311188d55SStefan Roese
1544430f1b0fSStefan Roesesbc405_config:	unconfig
1545430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1546430f1b0fSStefan Roese
1547699f0512SWolfgang Denksc3_config:unconfig
1548699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1549699f0512SWolfgang Denk
1550430f1b0fSStefan Roesesequoia_config \
1551854bc8daSStefan Roeserainier_config: unconfig
15528318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1553430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1554430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
15552aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1556854bc8daSStefan Roese
1557430f1b0fSStefan Roesesequoia_nand_config \
1558854bc8daSStefan Roeserainier_nand_config: unconfig
155963e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
156063e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
15618318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1562430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1563430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1564430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
15658318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
15668318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1567652a10c0Swdenk
1568d873133fSStefan Roesesequoia_ramboot_config \
1569d873133fSStefan Roeserainier_ramboot_config: unconfig
1570d873133fSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
1571d873133fSStefan Roese	@echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h
1572d873133fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1573d873133fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1574d873133fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1575d873133fSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1576d873133fSStefan Roese	@echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \
1577d873133fSStefan Roese		$(obj)board/amcc/sequoia/config.tmp
1578d873133fSStefan Roese
1579d4024bb7SJohn Otkentaihu_config:	unconfig
1580d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1581d4024bb7SJohn Otken
15825fb692caSStefan Roesetaishan_config:	unconfig
15835fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
15845fb692caSStefan Roese
1585e07f4a80SRicardo Ribalda Delgadov5fx30teval_config: unconfig
1586880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1587e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1588880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1589880f6a5dSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1590880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x03000000" \
1591880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1592e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1593e07f4a80SRicardo Ribalda Delgado
1594e07f4a80SRicardo Ribalda Delgadov5fx30teval_flash_config: unconfig
1595880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1596e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1597880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
15982bec498eSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1599880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFF1C0000" \
16002bec498eSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1601e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1602e07f4a80SRicardo Ribalda Delgado
160372cd5aa7SstroeseVOH405_config:	unconfig
1604f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
160572cd5aa7Sstroese
1606c419d1d6SstroeseVOM405_config:	unconfig
1607f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1608c419d1d6Sstroese
16097ebf7443SwdenkW7OLMC_config	\
16107ebf7443SwdenkW7OLMG_config: unconfig
1611f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
16127ebf7443Swdenk
1613430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1614430f1b0fSStefan Roesewalnut_config \
1615430f1b0fSStefan Roesesycamore_config: unconfig
1616430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
16177ebf7443Swdenk
1618c419d1d6SstroeseWUH405_config:	unconfig
1619f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1620c419d1d6Sstroese
16211f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_flash_config: unconfig
16221f4d5326SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
16231f4d5326SRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
16241f4d5326SRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc405-generic/config.tmp
16251f4d5326SRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
16261f4d5326SRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc405-generic/config.tmp
16271f4d5326SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
16281f4d5326SRicardo Ribalda Delgado
16291f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_config: unconfig
16301f4d5326SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
16311f4d5326SRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
16321f4d5326SRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc405-generic/config.tmp
16331f4d5326SRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
16341f4d5326SRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc405-generic/config.tmp
16351f4d5326SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
16361f4d5326SRicardo Ribalda Delgado
1637e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_flash_config: unconfig
1638880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1639880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1640880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1641880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1642880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1643e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1644e07f4a80SRicardo Ribalda Delgado
1645e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_config: unconfig
1646880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1647880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1648880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1649880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
1650880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1651e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1652e07f4a80SRicardo Ribalda Delgado
165310c1b218SPeter TyserXPEDITE1000_config:	unconfig
165410c1b218SPeter Tyser	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1000 xes
1655ba56f625Swdenk
1656430f1b0fSStefan Roeseyosemite_config \
16578a316c9bSStefan Roeseyellowstone_config: unconfig
1658700200c6SStefan Roese	@mkdir -p $(obj)include
1659430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1660430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
16612aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
16628a316c9bSStefan Roese
16636c5879f3SMarian Balakowiczyucca_config:	unconfig
1664f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
16656c5879f3SMarian Balakowicz
1666779e9751SStefan Roesezeus_config:	unconfig
1667779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1668779e9751SStefan Roese
16697ebf7443Swdenk#########################################################################
1670983fda83Swdenk## MPC8220 Systems
1671983fda83Swdenk#########################################################################
1672dc17fb6dSWolfgang Denk
1673dc17fb6dSWolfgang DenkAlaska8220_config	\
1674dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1675f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1676983fda83Swdenk
167712b43d51Swdenksorcery_config:		unconfig
1678f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
167912b43d51Swdenk
1680983fda83Swdenk#########################################################################
16817ebf7443Swdenk## MPC824x Systems
16827ebf7443Swdenk#########################################################################
1683efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
16843bac3513Swdenk
16850332990bSwdenkA3000_config: unconfig
1686f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
16870332990bSwdenk
16888e6f1a8eSWolfgang Denkbarco_config: unconfig
1689f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
16908e6f1a8eSWolfgang Denk
16917ebf7443SwdenkBMW_config: unconfig
1692f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
16937ebf7443Swdenk
16943bac3513SwdenkCPC45_config	\
16953bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1696f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1697f9328639SMarian Balakowicz	@cd $(obj)include ;				\
16983bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
16993bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1700ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
17013bac3513Swdenk	else \
17023bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1703ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
17043bac3513Swdenk	fi; \
17053bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
17063bac3513Swdenk
17077ebf7443SwdenkCU824_config: unconfig
1708f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
17097ebf7443Swdenk
17107abf0c58Swdenkdebris_config: unconfig
1711f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
17127abf0c58Swdenk
171380885a9dSwdenkeXalion_config: unconfig
1714f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
171580885a9dSwdenk
1716756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1717f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1718756f586aSwdenk
171953dd6ce4SWolfgang Denkkvme080_config: unconfig
1720f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
172153dd6ce4SWolfgang Denk
172261525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
172361525f2fSGuennadi Liakhovetski# time permits.
172461525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \
172561525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed
172661525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig
172761525f2fSGuennadi Liakhovetski	@mkdir -p $(obj)include
172861525f2fSGuennadi Liakhovetski	@case $@ in \
172961525f2fSGuennadi Liakhovetski		*HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
173061525f2fSGuennadi Liakhovetski		*HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
173161525f2fSGuennadi Liakhovetski	esac
173261525f2fSGuennadi Liakhovetski	@$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
173361525f2fSGuennadi Liakhovetski
17347ebf7443SwdenkMOUSSE_config: unconfig
1735f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
17367ebf7443Swdenk
17377ebf7443SwdenkMUSENKI_config: unconfig
1738f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
17397ebf7443Swdenk
1740b4676a25SwdenkMVBLUE_config:	unconfig
1741f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1742b4676a25Swdenk
17437ebf7443SwdenkOXC_config: unconfig
1744f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
17457ebf7443Swdenk
17467ebf7443SwdenkPN62_config: unconfig
1747f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
17487ebf7443Swdenk
17497ebf7443SwdenkSandpoint8240_config: unconfig
1750f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
17517ebf7443Swdenk
17527ebf7443SwdenkSandpoint8245_config: unconfig
1753f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
17547ebf7443Swdenk
1755466b7410Swdenksbc8240_config: unconfig
1756f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1757466b7410Swdenk
1758d1cbe85bSwdenkSL8245_config: unconfig
1759f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1760d1cbe85bSwdenk
17617ebf7443Swdenkutx8245_config: unconfig
1762f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
17637ebf7443Swdenk
17647ebf7443Swdenk#########################################################################
17657ebf7443Swdenk## MPC8260 Systems
17667ebf7443Swdenk#########################################################################
17677ebf7443Swdenk
176854387ac9Swdenkatc_config:	unconfig
1769f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
177054387ac9Swdenk
17717ebf7443Swdenkcogent_mpc8260_config:	unconfig
1772f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
17737ebf7443Swdenk
17747ebf7443SwdenkCPU86_config	\
17757ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1776f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1777f9328639SMarian Balakowicz	@cd $(obj)include ;				\
17787ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
17797ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1780ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
17817ebf7443Swdenk	else \
17827ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1783ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
17847ebf7443Swdenk	fi; \
17857ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
17867ebf7443Swdenk
1787384cc687SwdenkCPU87_config	\
1788384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1789f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1790f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1791384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1792384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1793ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1794384cc687Swdenk	else \
1795384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1796ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1797384cc687Swdenk	fi; \
1798384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1799384cc687Swdenk
1800f901a83bSWolfgang Denkep8248_config	\
1801f901a83bSWolfgang Denkep8248E_config	:	unconfig
1802f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1803f901a83bSWolfgang Denk
18047ebf7443Swdenkep8260_config:	unconfig
1805f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
18067ebf7443Swdenk
18078d4ac794SWolfgang Denkep82xxm_config:	unconfig
180890b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
18098d4ac794SWolfgang Denk
18107ebf7443Swdenkgw8260_config:	unconfig
1811f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
18127ebf7443Swdenk
18137ebf7443Swdenkhymod_config:	unconfig
1814f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
18157ebf7443Swdenk
18169dd41a7bSwdenkIDS8247_config:	unconfig
1817f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
18189dd41a7bSwdenk
18197ebf7443SwdenkIPHASE4539_config:	unconfig
1820f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
18217ebf7443Swdenk
1822c3c7f861SwdenkISPAN_config		\
1823c3c7f861SwdenkISPAN_REVB_config:	unconfig
1824f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1825c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
18266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1827c3c7f861Swdenk	fi
1828f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1829c3c7f861Swdenk
1830ac9db066SHeiko Schochermgcoge_config	:	unconfig
183186e9cdf8SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile
1832ac9db066SHeiko Schocher
183304a85b3bSwdenkMPC8260ADS_config	\
1834901787d6SwdenkMPC8260ADS_lowboot_config	\
183504a85b3bSwdenkMPC8260ADS_33MHz_config	\
1836901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
183704a85b3bSwdenkMPC8260ADS_40MHz_config	\
1838901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
183904a85b3bSwdenkMPC8272ADS_config	\
1840901787d6SwdenkMPC8272ADS_lowboot_config	\
184104a85b3bSwdenkPQ2FADS_config		\
1842901787d6SwdenkPQ2FADS_lowboot_config		\
184304a85b3bSwdenkPQ2FADS-VR_config	\
1844901787d6SwdenkPQ2FADS-VR_lowboot_config	\
184504a85b3bSwdenkPQ2FADS-ZU_config	\
1846901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
184704a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1848901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
184904a85b3bSwdenk	:		unconfig
1850f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1851b7e24d28SJon Loeliger	@mkdir -p $(obj)board/freescale/mpc8260ads
185204a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
18536d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
18546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
185504a85b3bSwdenk	$(if $(findstring MHz,$@), \
1856f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
185704a85b3bSwdenk	$(if $(findstring VR,$@), \
1858f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1859901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1860b7e24d28SJon Loeliger		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1861ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1862901787d6Swdenk		}
1863b7e24d28SJon Loeliger	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
18647ebf7443Swdenk
1865db2f721fSwdenkMPC8266ADS_config:	unconfig
1866aa3511e4SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1867db2f721fSwdenk
1868adf22b66SHeiko Schochermuas3001_dev_config \
1869adf22b66SHeiko Schochermuas3001_config	:	unconfig
1870adf22b66SHeiko Schocher	@mkdir -p $(obj)include
1871adf22b66SHeiko Schocher	@mkdir -p $(obj)board/muas3001
1872adf22b66SHeiko Schocher	@if [ "$(findstring dev,$@)" ] ; then \
1873adf22b66SHeiko Schocher		echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1874adf22b66SHeiko Schocher	fi
1875adf22b66SHeiko Schocher	@$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1876adf22b66SHeiko Schocher
1877efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
187810f67017SwdenkPM825_config	\
1879efa329cbSwdenkPM825_ROMBOOT_config	\
1880efa329cbSwdenkPM825_BIGFLASH_config	\
1881efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
18827ebf7443SwdenkPM826_config	\
1883efa329cbSwdenkPM826_ROMBOOT_config	\
1884efa329cbSwdenkPM826_BIGFLASH_config	\
1885efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1886f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1887f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1888efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1889f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
18907ebf7443Swdenk	else \
1891f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1892efa329cbSwdenk	fi
1893efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1894ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1895f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1896f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1897efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1898ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1899f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
19007ebf7443Swdenk		fi; \
1901efa329cbSwdenk	else \
1902ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1903efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1904ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1905f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1906f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1907efa329cbSwdenk		else \
1908f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1909efa329cbSwdenk		fi; \
1910efa329cbSwdenk	fi
1911f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1912efa329cbSwdenk
1913efa329cbSwdenkPM828_config	\
1914efa329cbSwdenkPM828_PCI_config	\
1915efa329cbSwdenkPM828_ROMBOOT_config	\
1916efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1917f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1918f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
191917076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1920f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1921ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1922efa329cbSwdenk	fi
1923efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1924ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1925f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1926f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1927efa329cbSwdenk	fi
1928f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
19297ebf7443Swdenk
19307ebf7443Swdenkppmc8260_config:	unconfig
1931f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
19327ebf7443Swdenk
19338b0bfc68SwdenkRattler8248_config	\
19348b0bfc68SwdenkRattler_config:		unconfig
1935f9328639SMarian Balakowicz	@mkdir -p $(obj)include
19368b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1937f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1938f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
19398b0bfc68Swdenk
19407ebf7443SwdenkRPXsuper_config:	unconfig
1941f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
19427ebf7443Swdenk
19437ebf7443Swdenkrsdproto_config:	unconfig
1944f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
19457ebf7443Swdenk
19467ebf7443Swdenksacsng_config:	unconfig
1947f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
19487ebf7443Swdenk
19497ebf7443Swdenksbc8260_config:	unconfig
1950f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
19517ebf7443Swdenk
19527ebf7443SwdenkSCM_config:		unconfig
1953f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
19547ebf7443Swdenk
195527b207fdSwdenkTQM8255_AA_config \
195627b207fdSwdenkTQM8260_AA_config \
195727b207fdSwdenkTQM8260_AB_config \
195827b207fdSwdenkTQM8260_AC_config \
195927b207fdSwdenkTQM8260_AD_config \
196027b207fdSwdenkTQM8260_AE_config \
196127b207fdSwdenkTQM8260_AF_config \
196227b207fdSwdenkTQM8260_AG_config \
196327b207fdSwdenkTQM8260_AH_config \
19641f62bc2dSWolfgang DenkTQM8260_AI_config \
196527b207fdSwdenkTQM8265_AA_config:  unconfig
1966f9328639SMarian Balakowicz	@mkdir -p $(obj)include
196727b207fdSwdenk	@case "$@" in \
196827b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
196927b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
197027b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
197127b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
197227b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
197327b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
197427b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
197527b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
197627b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
19771f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
197827b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
197927b207fdSwdenk	esac; \
198027b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1981f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
198227b207fdSwdenk	fi; \
1983f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
198427b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
19851aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1986f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1987ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
19887ebf7443Swdenk	else \
1989f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1990ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
199127b207fdSwdenk	fi; \
19921aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1993f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1994ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
199527b207fdSwdenk	else \
1996f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1997ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
19987ebf7443Swdenk	fi
19994677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
20007ebf7443Swdenk
2001fa230445SHeiko SchocherTQM8272_config: unconfig
20024677988cSWolfgang Grandegger	@$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
2003fa230445SHeiko Schocher
2004ba91e26aSwdenkVoVPN-GW_66MHz_config	\
2005ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
2006f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2007f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
2008f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
2009ba91e26aSwdenk
201054387ac9SwdenkZPC1900_config: unconfig
2011f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
20127aa78614Swdenk
20134e5ca3ebSwdenk#########################################################################
20144e5ca3ebSwdenk## Coldfire
20154e5ca3ebSwdenk#########################################################################
20164e5ca3ebSwdenk
2017bf9a5215STsiChung LiewM5208EVBE_config :		unconfig
2018bf9a5215STsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5208evbe freescale
2019bf9a5215STsiChung Liew
2020a21d0c2cSTsiChung LiewM52277EVB_config \
2021a21d0c2cSTsiChung LiewM52277EVB_spansion_config \
2022a21d0c2cSTsiChung LiewM52277EVB_stmicro_config :	unconfig
2023a21d0c2cSTsiChung Liew	@case "$@" in \
2024a21d0c2cSTsiChung Liew	M52277EVB_config)		FLASH=SPANSION;; \
2025a21d0c2cSTsiChung Liew	M52277EVB_spansion_config)	FLASH=SPANSION;; \
2026a21d0c2cSTsiChung Liew	M52277EVB_stmicro_config)	FLASH=STMICRO;; \
2027a21d0c2cSTsiChung Liew	esac; \
2028a21d0c2cSTsiChung Liew	if [ "$${FLASH}" = "SPANSION" ] ; then \
2029a21d0c2cSTsiChung Liew		echo "#define CONFIG_SYS_SPANSION_BOOT"	>> $(obj)include/config.h ; \
2030a21d0c2cSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
2031a21d0c2cSTsiChung Liew		cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
2032a21d0c2cSTsiChung Liew		$(XECHO) "... with SPANSION boot..." ; \
2033a21d0c2cSTsiChung Liew	fi; \
2034a21d0c2cSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
2035a21d0c2cSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
2036a21d0c2cSTsiChung Liew		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
2037a21d0c2cSTsiChung Liew		echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
2038a21d0c2cSTsiChung Liew		cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
2039a21d0c2cSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
2040a21d0c2cSTsiChung Liew	fi
20411552af70STsiChungLiew	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
20421552af70STsiChungLiew
20434a442d31STsiChungLiewM5235EVB_config \
20444a442d31STsiChungLiewM5235EVB_Flash16_config \
20454a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
20464a442d31STsiChungLiew	@case "$@" in \
20474a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
20484a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
20494a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
20504a442d31STsiChungLiew	esac; \
20514a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
2052ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
20534a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
20544a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
20554a442d31STsiChungLiew	else \
20564a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
20574a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
20584a442d31STsiChungLiew	fi
20594a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
20604a442d31STsiChungLiew
2061a605aacdSTsiChungLiewM5249EVB_config :		unconfig
2062a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
2063a605aacdSTsiChungLiew
20646d33c6acSTsiChung LiewM5253DEMO_config :		unconfig
20656d33c6acSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
20666d33c6acSTsiChung Liew
2067a1436a84STsiChungLiewM5253EVBE_config :		unconfig
2068a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
2069a1436a84STsiChungLiew
20707481266eSWolfgang Denkcobra5272_config :		unconfig
2071f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
20727481266eSWolfgang Denk
20734176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
2074f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2075f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
2076f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2077f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
20784176c799SWolfgang Denk
20794176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
2080f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2081f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
2082f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2083f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
20844176c799SWolfgang Denk
2085daa6e418SBartlomiej Siekaidmr_config :			unconfig
2086daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
2087daa6e418SBartlomiej Sieka
20884176c799SWolfgang DenkM5271EVB_config :		unconfig
2089659e9badSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
20904176c799SWolfgang Denk
20914e5ca3ebSwdenkM5272C3_config :		unconfig
209256df091dSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
20934e5ca3ebSwdenk
2094545c8e0aSMatthew FettkeM5275EVB_config :		unconfig
2095545c8e0aSMatthew Fettke	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
2096545c8e0aSMatthew Fettke
20974e5ca3ebSwdenkM5282EVB_config :		unconfig
209810db3a17STsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
20994e5ca3ebSwdenk
2100536e7dacSTsiChung LiewM53017EVB_config :		unconfig
2101536e7dacSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale
2102536e7dacSTsiChung Liew
21038e585f02STsiChung LiewM5329AFEE_config \
21048e585f02STsiChung LiewM5329BFEE_config :	unconfig
21058e585f02STsiChung Liew	@case "$@" in \
21068e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
21078e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
21088e585f02STsiChung Liew	esac; \
21098e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
2110ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
21118e585f02STsiChung Liew	fi
21128e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
21138e585f02STsiChung Liew
2114aa5f1f9dSTsiChungLiewM5373EVB_config :	unconfig
2115aa5f1f9dSTsiChungLiew	@case "$@" in \
2116aa5f1f9dSTsiChungLiew	M5373EVB_config)	NAND=16;; \
2117aa5f1f9dSTsiChungLiew	esac; \
2118aa5f1f9dSTsiChungLiew	if [ "$${NAND}" != "0" ] ; then \
2119aa5f1f9dSTsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
2120aa5f1f9dSTsiChungLiew	fi
2121aa5f1f9dSTsiChungLiew	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
2122aa5f1f9dSTsiChungLiew
212305316f8eSTsiChung LiewM54451EVB_config \
212405316f8eSTsiChung LiewM54451EVB_stmicro_config :	unconfig
212505316f8eSTsiChung Liew	@case "$@" in \
2126709b384bSTsiChung Liew	M54451EVB_config)		FLASH=NOR;; \
212705316f8eSTsiChung Liew	M54451EVB_stmicro_config)	FLASH=STMICRO;; \
212805316f8eSTsiChung Liew	esac; \
2129709b384bSTsiChung Liew	if [ "$${FLASH}" = "NOR" ] ; then \
213005316f8eSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
213105316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
2132709b384bSTsiChung Liew		$(XECHO) "... with NOR boot..." ; \
213305316f8eSTsiChung Liew	fi; \
213405316f8eSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
213505316f8eSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
21366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
213705316f8eSTsiChung Liew		echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
213805316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
213905316f8eSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
214005316f8eSTsiChung Liew	fi; \
21416d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
214205316f8eSTsiChung Liew	@$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
214305316f8eSTsiChung Liew
21448ae158cdSTsiChungLiewM54455EVB_config \
21458ae158cdSTsiChungLiewM54455EVB_atmel_config \
21468ae158cdSTsiChungLiewM54455EVB_intel_config \
21478ae158cdSTsiChungLiewM54455EVB_a33_config \
21488ae158cdSTsiChungLiewM54455EVB_a66_config \
21498ae158cdSTsiChungLiewM54455EVB_i33_config \
21509f751551STsiChung LiewM54455EVB_i66_config \
21519f751551STsiChung LiewM54455EVB_stm33_config :	unconfig
21528ae158cdSTsiChungLiew	@case "$@" in \
21538ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
21548ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
21558ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
21568ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
21578ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
21588ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
21598ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
21609f751551STsiChung Liew	M54455EVB_stm33_config)		FLASH=STMICRO; FREQ=33333333;; \
21618ae158cdSTsiChungLiew	esac; \
21621aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
21636d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
2164e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2165e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2166ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
21679f751551STsiChung Liew	fi; \
21689f751551STsiChung Liew	if [ "$${FLASH}" = "ATMEL" ] ; then \
21696d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_ATMEL_BOOT"	>> $(obj)include/config.h ; \
2170e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2171e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2172ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
21738ae158cdSTsiChungLiew	fi; \
21749f751551STsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
21759f751551STsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
21766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
21779f751551STsiChung Liew		echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
21789f751551STsiChung Liew		cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
21799f751551STsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
21809f751551STsiChung Liew	fi; \
21816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2182ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
21838ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
21848ae158cdSTsiChungLiew
218557a12720STsiChungLiewM5475AFE_config \
218657a12720STsiChungLiewM5475BFE_config \
218757a12720STsiChungLiewM5475CFE_config \
218857a12720STsiChungLiewM5475DFE_config \
218957a12720STsiChungLiewM5475EFE_config \
219057a12720STsiChungLiewM5475FFE_config \
219157a12720STsiChungLiewM5475GFE_config :	unconfig
219257a12720STsiChungLiew	@case "$@" in \
219357a12720STsiChungLiew	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
219457a12720STsiChungLiew	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
219557a12720STsiChungLiew	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
219657a12720STsiChungLiew	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
219757a12720STsiChungLiew	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
219857a12720STsiChungLiew	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
219957a12720STsiChungLiew	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
220057a12720STsiChungLiew	esac; \
22016d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BUSCLK	133333333" > $(obj)include/config.h ; \
22026d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
22036d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
220457a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
22056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
220657a12720STsiChungLiew	fi; \
220757a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
22086d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
220957a12720STsiChungLiew	fi; \
221057a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
22116d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
221257a12720STsiChungLiew	fi; \
221357a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
22146d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
221557a12720STsiChungLiew	fi
221657a12720STsiChungLiew	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
221757a12720STsiChungLiew
221857a12720STsiChungLiewM5485AFE_config \
221957a12720STsiChungLiewM5485BFE_config \
222057a12720STsiChungLiewM5485CFE_config \
222157a12720STsiChungLiewM5485DFE_config \
222257a12720STsiChungLiewM5485EFE_config \
222357a12720STsiChungLiewM5485FFE_config \
222457a12720STsiChungLiewM5485GFE_config \
222557a12720STsiChungLiewM5485HFE_config :	unconfig
222657a12720STsiChungLiew	@case "$@" in \
222757a12720STsiChungLiew	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
222857a12720STsiChungLiew	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
222957a12720STsiChungLiew	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
223057a12720STsiChungLiew	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
223157a12720STsiChungLiew	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
223257a12720STsiChungLiew	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
223357a12720STsiChungLiew	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
22344d264effSTsiChungLiew	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
223557a12720STsiChungLiew	esac; \
22366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BUSCLK	100000000" > $(obj)include/config.h ; \
22376d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
22386d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
223957a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
22406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
224157a12720STsiChungLiew	fi; \
224257a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
22436d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
224457a12720STsiChungLiew	fi; \
224557a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
22466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
224757a12720STsiChungLiew	fi; \
224857a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
22496d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
225057a12720STsiChungLiew	fi
225157a12720STsiChungLiew	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
225257a12720STsiChungLiew
2253699f0512SWolfgang DenkTASREG_config :		unconfig
2254699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2255699f0512SWolfgang Denk
22567ebf7443Swdenk#########################################################################
2257f046ccd1SEran Liberty## MPC83xx Systems
2258f046ccd1SEran Liberty#########################################################################
2259f046ccd1SEran Liberty
2260de044361SHeiko Schocherkmeter1_config: unconfig
2261de044361SHeiko Schocher	@$(MKCONFIG) kmeter1 ppc mpc83xx kmeter1 keymile
2262de044361SHeiko Schocher
22635c5d3242SKim PhillipsMPC8313ERDB_33_config \
2264e4c09508SScott WoodMPC8313ERDB_66_config \
2265e4c09508SScott WoodMPC8313ERDB_NAND_33_config \
2266e4c09508SScott WoodMPC8313ERDB_NAND_66_config: unconfig
2267cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2268e4c09508SScott Wood	@mkdir -p $(obj)board/freescale/mpc8313erdb
2269c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2270ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
22716d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
22725c5d3242SKim Phillips	fi ; \
22735c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2274ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
22756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
2276e4c09508SScott Wood	fi ; \
2277e4c09508SScott Wood	if [ "$(findstring _NAND_,$@)" ] ; then \
2278e4c09508SScott Wood		$(XECHO) -n "...NAND..." ; \
2279f4e55a49SKim Phillips		echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2280e4c09508SScott Wood		echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
22815c5d3242SKim Phillips	fi ;
2282e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
228364ac1eb5SNick Spence	@if [ "$(findstring _NAND_,$@)" ] ; then \
228464ac1eb5SNick Spence		echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
228564ac1eb5SNick Spence	fi ;
22865c5d3242SKim Phillips
22878bd522ceSDave LiuMPC8315ERDB_config: unconfig
22888bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
22898bd522ceSDave Liu
22901c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
22911c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
22921c274c4eSKim Phillips
22934decd84eSKim PhillipsMPC832XEMDS_config \
22944decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
22954decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
2296281df457STony LiMPC832XEMDS_SLAVE_config \
2297281df457STony LiMPC832XEMDS_ATM_config:	unconfig
2298cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2299c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2300ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2301cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
23024decd84eSKim Phillips	fi ; \
23034decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2304ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2305cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2306cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
23074decd84eSKim Phillips	fi ; \
23084decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
2309ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2310cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2311281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
23124decd84eSKim Phillips	fi ; \
23134decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2314ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2315cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2316281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2317281df457STony Li	fi ; \
2318281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2319ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2320281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2321281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
23224decd84eSKim Phillips	fi ;
2323e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2324e6f2e902SMarian Balakowicz
2325991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
2326e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2327991425feSMarian Balakowicz
23287a78f148STimur TabiMPC8349ITX_config \
23297a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
23307a78f148STimur TabiMPC8349ITXGP_config:	unconfig
23317a78f148STimur Tabi	@mkdir -p $(obj)include
2332e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
23337a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
23347a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
2335e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
23367a78f148STimur Tabi	fi
23377a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
2338e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
23397a78f148STimur Tabi	fi
2340e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
23414decd84eSKim Phillips
23425f820439SDave LiuMPC8360EMDS_config \
23435f820439SDave LiuMPC8360EMDS_HOST_33_config \
23445f820439SDave LiuMPC8360EMDS_HOST_66_config \
2345281df457STony LiMPC8360EMDS_SLAVE_config \
2346281df457STony LiMPC8360EMDS_ATM_config: unconfig
2347cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2348c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2349ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2350cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
23515f820439SDave Liu	fi ; \
23525f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2353ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2354cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2355cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
23565f820439SDave Liu	fi ; \
23575f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
2358ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2359cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2360281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
23615f820439SDave Liu	fi ; \
23625f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
2363ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2364cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2365281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2366281df457STony Li	fi ; \
2367281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2368ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2369281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2370281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
23715f820439SDave Liu	fi ;
2372e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
23735f820439SDave Liu
2374fab6f556SAnton VorontsovMPC8360ERDK_33_config \
2375fab6f556SAnton VorontsovMPC8360ERDK_66_config \
237691c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config:	unconfig
2377fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
2378c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2379ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
2380fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2381fab6f556SAnton Vorontsov	fi ;
2382fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2383fab6f556SAnton Vorontsov
238419580e66SDave LiuMPC837XEMDS_config \
238519580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
238619580e66SDave Liu	@mkdir -p $(obj)include
2387c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2388ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
238919580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
239019580e66SDave Liu	fi ;
239119580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
239219580e66SDave Liu
23935e918a98SKim PhillipsMPC837XERDB_config:	unconfig
23945e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
23955e918a98SKim Phillips
2396a1293e54SAndre SchwarzMVBLM7_config: unconfig
23971a9eeb78SAndre Schwarz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2398a1293e54SAndre Schwarz
2399c0d660fbSPaul Gortmakersbc8349_config \
2400c0d660fbSPaul Gortmakersbc8349_PCI_33_config \
2401c0d660fbSPaul Gortmakersbc8349_PCI_66_config: unconfig
2402c0d660fbSPaul Gortmaker	@mkdir -p $(obj)include
2403c0d660fbSPaul Gortmaker	@if [ "$(findstring _PCI_,$@)" ] ; then \
2404c0d660fbSPaul Gortmaker		$(XECHO) -n "... PCI HOST at " ; \
2405c0d660fbSPaul Gortmaker		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2406c0d660fbSPaul Gortmaker	fi ; \
2407c0d660fbSPaul Gortmaker	if [ "$(findstring _33_,$@)" ] ; then \
2408c0d660fbSPaul Gortmaker		$(XECHO) -n "33MHz... " ; \
2409c0d660fbSPaul Gortmaker		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2410c0d660fbSPaul Gortmaker	fi ; \
2411c0d660fbSPaul Gortmaker	if [ "$(findstring _66_,$@)" ] ; then \
2412c0d660fbSPaul Gortmaker		$(XECHO) -n "66MHz... " ; \
2413c0d660fbSPaul Gortmaker		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2414c0d660fbSPaul Gortmaker	fi ;
2415c0d660fbSPaul Gortmaker	@$(MKCONFIG) -a sbc8349 ppc mpc83xx sbc8349
241691e25769SPaul Gortmaker
24175bb907a4SRon MadridSIMPC8313_LP_config \
24185bb907a4SRon MadridSIMPC8313_SP_config: unconfig
24195bb907a4SRon Madrid	@mkdir -p $(obj)include
24205bb907a4SRon Madrid	@mkdir -p $(obj)board/sheldon/simpc8313
24215bb907a4SRon Madrid	@if [ "$(findstring _LP_,$@)" ] ; then \
24225bb907a4SRon Madrid		$(XECHO) -n "...Large Page NAND..." ; \
24235bb907a4SRon Madrid		echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
24245bb907a4SRon Madrid	fi ; \
24255bb907a4SRon Madrid	if [ "$(findstring _SP_,$@)" ] ; then \
24265bb907a4SRon Madrid		$(XECHO) -n "...Small Page NAND..." ; \
24275bb907a4SRon Madrid		echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
24285bb907a4SRon Madrid	fi ;
24295bb907a4SRon Madrid	@$(MKCONFIG) -a SIMPC8313 ppc mpc83xx simpc8313 sheldon
24305bb907a4SRon Madrid	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
24315bb907a4SRon Madrid
24324decd84eSKim PhillipsTQM834x_config:	unconfig
24334677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
24344decd84eSKim Phillips
2435c2e49f70SReinhard Arltvme8349_config:		unconfig
2436c2e49f70SReinhard Arlt	@$(MKCONFIG) $(@:_config=) ppc mpc83xx vme8349 esd
24372ad6b513STimur Tabi
2438f046ccd1SEran Liberty#########################################################################
243942d1f039Swdenk## MPC85xx Systems
244042d1f039Swdenk#########################################################################
244142d1f039Swdenk
24427bd6104bSrobert lazarskiATUM8548_config:	unconfig
24437bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
24447bd6104bSrobert lazarski
2445337f9fdeSKumar GalaMPC8536DS_36BIT_config \
24469490a7f1SKumar GalaMPC8536DS_config:       unconfig
2447337f9fdeSKumar Gala	@mkdir -p $(obj)include
2448337f9fdeSKumar Gala	@echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
2449337f9fdeSKumar Gala	@$(MKCONFIG) -a MPC8536DS ppc mpc85xx mpc8536ds freescale
24509490a7f1SKumar Gala
245142d1f039SwdenkMPC8540ADS_config:	unconfig
2452c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
245342d1f039Swdenk
2454b0e32949SLunsheng WangMPC8540EVAL_config \
2455b0e32949SLunsheng WangMPC8540EVAL_33_config \
2456b0e32949SLunsheng WangMPC8540EVAL_66_config \
2457b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2458b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:	  unconfig
2459f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2460c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2461ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2462b0e32949SLunsheng Wang	else \
2463f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2464ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2465b0e32949SLunsheng Wang	fi ; \
2466b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2467f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2468ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2469b0e32949SLunsheng Wang	else \
2470ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2471b0e32949SLunsheng Wang	fi
2472f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2473b0e32949SLunsheng Wang
247442d1f039SwdenkMPC8560ADS_config:	unconfig
2475870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
247642d1f039Swdenk
24777f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
247803f5c550SwdenkMPC8541CDS_config:	unconfig
24797f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2480c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
24817f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2482ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
24837f3f2bd2SRandy Vinson	fi
2484415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
248503f5c550Swdenk
248681f481caSAndy FlemingMPC8544DS_config:	unconfig
248781f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
248881f481caSAndy Fleming
24897f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2490d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
24917f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2492c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
24937f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2494ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
24957f3f2bd2SRandy Vinson	fi
2496415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2497d9b94f28SJon Loeliger
24987f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
249903f5c550SwdenkMPC8555CDS_config:	unconfig
25007f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2501c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
25027f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2503ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
25047f3f2bd2SRandy Vinson	fi
2505415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
25067abf0c58Swdenk
250767431059SAndy FlemingMPC8568MDS_config:	unconfig
2508acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
250967431059SAndy Fleming
2510765547dcSHaiying WangMPC8569MDS_config:	unconfig
2511765547dcSHaiying Wang	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8569mds freescale
2512765547dcSHaiying Wang
251318af1c5fSKumar GalaMPC8572DS_36BIT_config \
2514129ba616SKumar GalaMPC8572DS_config:       unconfig
251518af1c5fSKumar Gala	@mkdir -p $(obj)include
251618af1c5fSKumar Gala	@if [ "$(findstring _36BIT_,$@)" ] ; then \
251718af1c5fSKumar Gala		echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
251818af1c5fSKumar Gala		$(XECHO) "... enabling 36-bit physical addressing." ; \
251918af1c5fSKumar Gala	fi
252018af1c5fSKumar Gala	@$(MKCONFIG) -a MPC8572DS ppc mpc85xx mpc8572ds freescale
2521129ba616SKumar Gala
2522feb7838fSSrikanth SrinivasanP2020DS_36BIT_config \
2523feb7838fSSrikanth SrinivasanP2020DS_config:		unconfig
2524feb7838fSSrikanth Srinivasan	@mkdir -p $(obj)include
2525feb7838fSSrikanth Srinivasan	@if [ "$(findstring _36BIT_,$@)" ] ; then \
2526feb7838fSSrikanth Srinivasan		echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
2527feb7838fSSrikanth Srinivasan		$(XECHO) "... enabling 36-bit physical addressing." ; \
2528feb7838fSSrikanth Srinivasan	fi
2529feb7838fSSrikanth Srinivasan	@$(MKCONFIG) -a P2020DS ppc mpc85xx p2020ds freescale
2530feb7838fSSrikanth Srinivasan
2531*c17b79fbSPoonam AggrwalP1011RDB_config:	unconfig
2532*c17b79fbSPoonam Aggrwal	@mkdir -p $(obj)include
2533*c17b79fbSPoonam Aggrwal	@echo "#define CONFIG_P1011" >>$(obj)include/config.h ;
2534*c17b79fbSPoonam Aggrwal	@$(MKCONFIG) -a P1_P2_RDB  ppc mpc85xx p1_p2_rdb freescale
2535*c17b79fbSPoonam Aggrwal
2536bf488bc0SPoonam AggrwalP1020RDB_config:	unconfig
2537bf488bc0SPoonam Aggrwal	@mkdir -p $(obj)include
2538bf488bc0SPoonam Aggrwal	@echo "#define CONFIG_P1020" >>$(obj)include/config.h ;
2539bf488bc0SPoonam Aggrwal	@$(MKCONFIG) -a P1_P2_RDB  ppc mpc85xx p1_p2_rdb freescale
2540bf488bc0SPoonam Aggrwal
2541*c17b79fbSPoonam AggrwalP2010RDB_config:	unconfig
2542*c17b79fbSPoonam Aggrwal	@mkdir -p $(obj)include
2543*c17b79fbSPoonam Aggrwal	@echo "#define CONFIG_P2010" >>$(obj)include/config.h ;
2544*c17b79fbSPoonam Aggrwal	@$(MKCONFIG) -a P1_P2_RDB  ppc mpc85xx p1_p2_rdb freescale
2545*c17b79fbSPoonam Aggrwal
2546728ece34SPoonam AggrwalP2020RDB_config:	unconfig
2547728ece34SPoonam Aggrwal	@mkdir -p $(obj)include
2548728ece34SPoonam Aggrwal	@echo "#define CONFIG_P2020" >>$(obj)include/config.h ;
2549728ece34SPoonam Aggrwal	@$(MKCONFIG) -a P1_P2_RDB  ppc mpc85xx p1_p2_rdb freescale
2550728ece34SPoonam Aggrwal
2551384cc687SwdenkPM854_config:	unconfig
2552f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2553384cc687Swdenk
2554b20d0032SWolfgang DenkPM856_config:	unconfig
2555f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2556b20d0032SWolfgang Denk
2557c15f3120Swdenksbc8540_config \
2558c15f3120Swdenksbc8540_33_config \
2559c15f3120Swdenksbc8540_66_config:	unconfig
2560f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2561c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2562f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2563ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2564c15f3120Swdenk	else \
2565ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2566c15f3120Swdenk	fi
2567f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2568c15f3120Swdenk
256911c45ebdSJoe Hammansbc8548_config:		unconfig
257011c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
257111c45ebdSJoe Hamman
2572466b7410Swdenksbc8560_config \
2573466b7410Swdenksbc8560_33_config \
2574466b7410Swdenksbc8560_66_config:	unconfig
2575f9328639SMarian Balakowicz	@mkdir -p $(obj)include
25768b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2577f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2578ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
25798b07a110Swdenk	else \
2580ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
25818b07a110Swdenk	fi
2582f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
25838b07a110Swdenk
25845d108ac8SSergei Poselenovsocrates_config:	unconfig
25855d108ac8SSergei Poselenov	@$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
25865d108ac8SSergei Poselenov
258703f5c550Swdenkstxgp3_config:		unconfig
25887b18c227SAlex Dubov	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 stx
258903f5c550Swdenk
2590ee152983SWolfgang Denkstxssa_config		\
2591ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2592ee152983SWolfgang Denk	@mkdir -p $(obj)include
2593ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2594ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2595ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2596ee152983SWolfgang Denk	fi
25977b18c227SAlex Dubov	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa stx
259835171dc0SDan Malek
2599d96f41e0SStefan RoeseTQM8540_config		\
2600d96f41e0SStefan RoeseTQM8541_config		\
26011287e0c5SWolfgang GrandeggerTQM8548_config		\
2602a865bcdaSWolfgang GrandeggerTQM8548_AG_config	\
2603ad7ee5d4SWolfgang GrandeggerTQM8548_BE_config	\
2604d96f41e0SStefan RoeseTQM8555_config		\
2605f5c5ef4aSwdenkTQM8560_config:		unconfig
2606f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2607ad7ee5d4SWolfgang Grandegger	@BTYPE=$(@:_config=); \
2608a865bcdaSWolfgang Grandegger	CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
2609ad7ee5d4SWolfgang Grandegger	$(XECHO) "... "$${BTYPE}" (MPC"$${CTYPE}")"; \
2610f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2611ad7ee5d4SWolfgang Grandegger	echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
2612f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2613ad7ee5d4SWolfgang Grandegger	echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
26144677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2615ad7ee5d4SWolfgang Grandegger	@echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
2616f5c5ef4aSwdenk
261778bbc5ceSPeter TyserXPEDITE5200_config:	unconfig
261878bbc5ceSPeter Tyser	@$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5200 xes
261978bbc5ceSPeter Tyser
2620ccf0fdd0SPeter TyserXPEDITE5370_config:	unconfig
2621ccf0fdd0SPeter Tyser	@$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5370 xes
2622ccf0fdd0SPeter Tyser
262342d1f039Swdenk#########################################################################
2624debb7354SJon Loeliger## MPC86xx Systems
2625debb7354SJon Loeliger#########################################################################
2626debb7354SJon Loeliger
26273c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
26283c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
26293c89d754SJon Loeliger
26308db0400aSBecky BruceMPC8641HPCN_36BIT_config \
2631debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
26328db0400aSBecky Bruce	@mkdir -p $(obj)include
26338db0400aSBecky Bruce	@if [ "$(findstring _36BIT_,$@)" ] ; then \
26348db0400aSBecky Bruce		echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
26358db0400aSBecky Bruce		$(XECHO) "... enabling 36-bit physical addressing." ; \
26368db0400aSBecky Bruce	fi
26378db0400aSBecky Bruce	@$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale
2638debb7354SJon Loeliger
2639c646bba6SJoe Hammansbc8641d_config:	unconfig
264091c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2641debb7354SJon Loeliger
26425da6f806SPeter TyserXPEDITE5170_config:	unconfig
26435da6f806SPeter Tyser	@$(MKCONFIG) $(@:_config=) ppc mpc86xx xpedite5170 xes
26445da6f806SPeter Tyser
2645debb7354SJon Loeliger#########################################################################
26467ebf7443Swdenk## 74xx/7xx Systems
26477ebf7443Swdenk#########################################################################
26487ebf7443Swdenk
2649c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2650f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2651c7de829cSwdenk
265215647dc7SwdenkBAB7xx_config: unconfig
2653f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
265415647dc7Swdenk
2655c419d1d6SstroeseCPCI750_config:	unconfig
2656f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2657c419d1d6Sstroese
26583a473b2aSwdenkDB64360_config:	unconfig
2659f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
26603a473b2aSwdenk
26613a473b2aSwdenkDB64460_config:	unconfig
2662f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
26633a473b2aSwdenk
266415647dc7SwdenkELPPC_config: unconfig
2665f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
266615647dc7Swdenk
26677ebf7443SwdenkEVB64260_config	\
26687ebf7443SwdenkEVB64260_750CX_config:	unconfig
2669f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
26707ebf7443Swdenk
26714c52783bSroy zangmpc7448hpc2_config:  unconfig
26727f1d846eSJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
26734c52783bSroy zang
267415647dc7SwdenkP3G4_config: unconfig
2675f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
26767ebf7443Swdenk
26771eac2a71SStefan Roesep3m750_config	\
26781eac2a71SStefan Roesep3m7448_config:		unconfig
26791eac2a71SStefan Roese	@mkdir -p $(obj)include
26801eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
26811eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
26821eac2a71SStefan Roese	else \
26831eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
26841eac2a71SStefan Roese	fi
26851eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
26861eac2a71SStefan Roese
26877ebf7443SwdenkPCIPPC2_config \
26887ebf7443SwdenkPCIPPC6_config: unconfig
2689f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
26907ebf7443Swdenk
2691f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2692f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2693f5e0d039SHeiko Schocher
2694699f0512SWolfgang DenkZUMA_config:	unconfig
2695699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2696699f0512SWolfgang Denk
26977ebf7443Swdenk#========================================================================
26987ebf7443Swdenk# ARM
26997ebf7443Swdenk#========================================================================
27007ebf7443Swdenk#########################################################################
27017ebf7443Swdenk## StrongARM Systems
27027ebf7443Swdenk#########################################################################
27037ebf7443Swdenk
2704ea66bc88Swdenkassabet_config	:	unconfig
2705f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2706ea66bc88Swdenk
27077ebf7443Swdenkdnp1110_config	:	unconfig
2708f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
27097ebf7443Swdenk
2710855a496fSwdenkgcplus_config	:	unconfig
2711f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2712855a496fSwdenk
2713855a496fSwdenklart_config	:	unconfig
2714f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2715855a496fSwdenk
27167ebf7443Swdenkshannon_config	:	unconfig
2717f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
27187ebf7443Swdenk
27197ebf7443Swdenk#########################################################################
27202e5983d2Swdenk## ARM92xT Systems
27217ebf7443Swdenk#########################################################################
27227ebf7443Swdenk
2723a4b46ed6SUlf Samuelsson#########################################################################
2724a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems
2725a4b46ed6SUlf Samuelsson#########################################################################
272620b197c6SStelian Pop
2727a85f9f21Swdenkat91rm9200dk_config	:	unconfig
272865230107SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2729a85f9f21Swdenk
2730cb82a532SUlf Samuelssonat91rm9200ek_config	:	unconfig
2731cb82a532SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200ek atmel at91rm9200
2732cb82a532SUlf Samuelsson
2733a85f9f21Swdenkcmc_pu2_config	:	unconfig
2734f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2735a85f9f21Swdenk
2736645da510SWolfgang Denkcsb637_config	:	unconfig
2737f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2738645da510SWolfgang Denk
2739a4b46ed6SUlf Samuelssonkb9202_config	:	unconfig
2740a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2741a4b46ed6SUlf Samuelsson
2742ea8d989fSTimo Tuunainenm501sk_config	:	unconfig
2743ea8d989fSTimo Tuunainen	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
274487cb6862SWolfgang Denk
2745699f0512SWolfgang Denkmp2usb_config	:	unconfig
2746699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2747699f0512SWolfgang Denk
2748a4b46ed6SUlf Samuelsson#########################################################################
2749a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems
2750a4b46ed6SUlf Samuelsson#########################################################################
2751a4b46ed6SUlf Samuelsson
27521079432eSSergey Lapinafeb9260_config:	unconfig
27531079432eSSergey Lapin	@$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91
27541079432eSSergey Lapin
2755a4b46ed6SUlf Samuelssonat91cap9adk_config	:	unconfig
27568ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2757a4b46ed6SUlf Samuelsson
275889a7a87fSNicolas Ferreat91sam9260ek_nandflash_config \
275989a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs0_config \
276089a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs1_config \
2761df486b1fSNicolas Ferreat91sam9260ek_config \
2762df486b1fSNicolas Ferreat91sam9g20ek_nandflash_config \
2763df486b1fSNicolas Ferreat91sam9g20ek_dataflash_cs0_config \
2764df486b1fSNicolas Ferreat91sam9g20ek_dataflash_cs1_config \
2765df486b1fSNicolas Ferreat91sam9g20ek_config	:	unconfig
2766e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
2767df486b1fSNicolas Ferre	@if [ "$(findstring 9g20,$@)" ] ; then \
2768df486b1fSNicolas Ferre		echo "#define CONFIG_AT91SAM9G20EK 1"	>>$(obj)include/config.h ; \
2769df486b1fSNicolas Ferre		$(XECHO) "... 9G20 Variant" ; \
2770df486b1fSNicolas Ferre	else \
2771df486b1fSNicolas Ferre		echo "#define CONFIG_AT91SAM9260EK 1"	>>$(obj)include/config.h ; \
2772df486b1fSNicolas Ferre	fi;
277389a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
277489a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
277589a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
277689a7a87fSNicolas Ferre	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
277789a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
277889a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
277989a7a87fSNicolas Ferre	else \
278089a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1"	>>$(obj)include/config.h ; \
278189a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
278289a7a87fSNicolas Ferre	fi;
278389a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
2784a4b46ed6SUlf Samuelsson
27854e170b16SNicolas Ferreat91sam9xeek_nandflash_config \
27864e170b16SNicolas Ferreat91sam9xeek_dataflash_cs0_config \
27874e170b16SNicolas Ferreat91sam9xeek_dataflash_cs1_config \
27884e170b16SNicolas Ferreat91sam9xeek_config	:	unconfig
27894e170b16SNicolas Ferre	@mkdir -p $(obj)include
27904e170b16SNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
27914e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
27924e170b16SNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
27934e170b16SNicolas Ferre	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
27944e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
27954e170b16SNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
27964e170b16SNicolas Ferre	else \
27974e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1"	>>$(obj)include/config.h ; \
27984e170b16SNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
27994e170b16SNicolas Ferre	fi;
280053158aeaSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -n at91sam9xeek -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
28014e170b16SNicolas Ferre
280289a7a87fSNicolas Ferreat91sam9261ek_nandflash_config \
280389a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs0_config \
280489a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs3_config \
28055ccc2d99SSedji Gaouaouat91sam9261ek_config \
28065ccc2d99SSedji Gaouaouat91sam9g10ek_nandflash_config \
28075ccc2d99SSedji Gaouaouat91sam9g10ek_dataflash_cs0_config \
28085ccc2d99SSedji Gaouaouat91sam9g10ek_dataflash_cs3_config \
28095ccc2d99SSedji Gaouaouat91sam9g10ek_config	:	unconfig
2810e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
28115ccc2d99SSedji Gaouaou	@if [ "$(findstring 9g10,$@)" ] ; then \
28125ccc2d99SSedji Gaouaou		echo "#define CONFIG_AT91SAM9G10EK 1"	>>$(obj)include/config.h ; \
28135ccc2d99SSedji Gaouaou		$(XECHO) "... 9G10 Variant" ; \
28145ccc2d99SSedji Gaouaou	else \
28155ccc2d99SSedji Gaouaou		echo "#define CONFIG_AT91SAM9261EK 1"	>>$(obj)include/config.h ; \
28165ccc2d99SSedji Gaouaou	fi;
281789a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
281889a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
281989a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
28205ccc2d99SSedji Gaouaou	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
282189a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1"	>>$(obj)include/config.h ; \
282289a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \
282389a7a87fSNicolas Ferre	else \
282489a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
282589a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
282689a7a87fSNicolas Ferre	fi;
282789a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
282828962f5aSJean-Christophe PLAGNIOL-VILLARD
28291b3b7c64SJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_norflash_config \
28301b3b7c64SJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_norflash_boot_config \
283189a7a87fSNicolas Ferreat91sam9263ek_nandflash_config \
283289a7a87fSNicolas Ferreat91sam9263ek_dataflash_config \
283389a7a87fSNicolas Ferreat91sam9263ek_dataflash_cs0_config \
283428962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_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" ; \
28391b3b7c64SJean-Christophe PLAGNIOL-VILLARD	elif [ "$(findstring norflash,$@)" ] ; then \
28401b3b7c64SJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USE_NORFLASH 1"	>>$(obj)include/config.h ; \
28411b3b7c64SJean-Christophe PLAGNIOL-VILLARD		$(XECHO) "... with environment variable in NOR FLASH" ; \
284289a7a87fSNicolas Ferre	else \
284389a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH 1"	>>$(obj)include/config.h ; \
284489a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
284589a7a87fSNicolas Ferre	fi;
28461b3b7c64SJean-Christophe PLAGNIOL-VILLARD	@if [ "$(findstring norflash_boot,$@)" ] ; then \
28471b3b7c64SJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1"	>>$(obj)include/config.h ; \
28481b3b7c64SJean-Christophe PLAGNIOL-VILLARD		$(XECHO) "... and boot from NOR FLASH" ; \
28491b3b7c64SJean-Christophe PLAGNIOL-VILLARD	fi;
285089a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
285128962f5aSJean-Christophe PLAGNIOL-VILLARD
285289a7a87fSNicolas Ferreat91sam9rlek_nandflash_config \
285389a7a87fSNicolas Ferreat91sam9rlek_dataflash_config \
285489a7a87fSNicolas Ferreat91sam9rlek_dataflash_cs0_config \
285528962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9rlek_config	:	unconfig
2856e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
285789a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
285889a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
285989a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
286089a7a87fSNicolas Ferre	else \
286189a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH 1"	>>$(obj)include/config.h ; \
286289a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
286389a7a87fSNicolas Ferre	fi;
286489a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
286528962f5aSJean-Christophe PLAGNIOL-VILLARD
286633b1d3f4SDaniel Gorsulowskimeesc_config	:	unconfig
286733b1d3f4SDaniel Gorsulowski	@$(MKCONFIG) $(@:_config=) arm arm926ejs meesc esd at91
286833b1d3f4SDaniel Gorsulowski
286932949232SIlko Ilievpm9261_config	:	unconfig
287032949232SIlko Iliev	@$(MKCONFIG) $(@:_config=) arm arm926ejs pm9261 ronetix at91
287132949232SIlko Iliev
287222ee6473SSedji Gaouaouat91sam9m10g45ek_nandflash_config \
287322ee6473SSedji Gaouaouat91sam9m10g45ek_dataflash_config \
287422ee6473SSedji Gaouaouat91sam9m10g45ek_dataflash_cs0_config \
287522ee6473SSedji Gaouaouat91sam9m10g45ek_config \
287622ee6473SSedji Gaouaouat91sam9g45ekes_nandflash_config \
287722ee6473SSedji Gaouaouat91sam9g45ekes_dataflash_config \
287822ee6473SSedji Gaouaouat91sam9g45ekes_dataflash_cs0_config \
287922ee6473SSedji Gaouaouat91sam9g45ekes_config	:	unconfig
288022ee6473SSedji Gaouaou	@mkdir -p $(obj)include
288122ee6473SSedji Gaouaou		@if [ "$(findstring 9m10,$@)" ] ; then \
288222ee6473SSedji Gaouaou		echo "#define CONFIG_AT91SAM9M10G45EK 1"	>>$(obj)include/config.h ; \
288322ee6473SSedji Gaouaou		$(XECHO) "... 9M10G45 Variant" ; \
288422ee6473SSedji Gaouaou	else \
288522ee6473SSedji Gaouaou		echo "#define CONFIG_AT91SAM9G45EKES 1"	>>$(obj)include/config.h ; \
288622ee6473SSedji Gaouaou	fi;
288722ee6473SSedji Gaouaou
288822ee6473SSedji Gaouaou	@if [ "$(findstring _nandflash,$@)" ] ; then \
288922ee6473SSedji Gaouaou		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
289022ee6473SSedji Gaouaou		$(XECHO) "... with environment variable in NAND FLASH" ; \
289122ee6473SSedji Gaouaou	else \
289222ee6473SSedji Gaouaou		echo "#define CONFIG_ATMEL_SPI 1"	>>$(obj)include/config.h ; \
289322ee6473SSedji Gaouaou		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
289422ee6473SSedji Gaouaou	fi;
289522ee6473SSedji Gaouaou	@$(MKCONFIG) -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91
289622ee6473SSedji Gaouaou
2897f0a2c7b4SIlko Ilievpm9263_config	:	unconfig
2898f0a2c7b4SIlko Iliev	@$(MKCONFIG) $(@:_config=) arm arm926ejs pm9263 ronetix at91
2899f0a2c7b4SIlko Iliev
290074f4304eSWolfgang Denk########################################################################
290187cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
290287cb6862SWolfgang Denkintegratorap_config	\
290387cb6862SWolfgang Denkap_config		\
290487cb6862SWolfgang Denkap966_config		\
290587cb6862SWolfgang Denkap922_config		\
290687cb6862SWolfgang Denkap922_XA10_config	\
290787cb6862SWolfgang Denkap7_config		\
290887cb6862SWolfgang Denkap720t_config		\
290987cb6862SWolfgang Denkap920t_config		\
291087cb6862SWolfgang Denkap926ejs_config		\
291187cb6862SWolfgang Denkap946es_config: unconfig
2912576afd4fSJean-Christophe PLAGNIOL-VILLARD	@board/armltd/integrator/split_by_variant.sh ap $@
29133d3befa7Swdenk
291487cb6862SWolfgang Denkintegratorcp_config	\
291587cb6862SWolfgang Denkcp_config		\
291687cb6862SWolfgang Denkcp920t_config		\
291787cb6862SWolfgang Denkcp926ejs_config		\
291887cb6862SWolfgang Denkcp946es_config		\
291987cb6862SWolfgang Denkcp1136_config		\
292087cb6862SWolfgang Denkcp966_config		\
292187cb6862SWolfgang Denkcp922_config		\
292287cb6862SWolfgang Denkcp922_XA10_config	\
292387cb6862SWolfgang Denkcp1026_config: unconfig
2924576afd4fSJean-Christophe PLAGNIOL-VILLARD	@board/armltd/integrator/split_by_variant.sh cp $@
292525d6712aSwdenk
2926699f0512SWolfgang Denkdavinci_dvevm_config :	unconfig
292789d51d02SHugo Villeneuve	@$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2928699f0512SWolfgang Denk
2929699f0512SWolfgang Denkdavinci_schmoogie_config :	unconfig
2930699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2931699f0512SWolfgang Denk
2932699f0512SWolfgang Denkdavinci_sffsdr_config :	unconfig
2933699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2934699f0512SWolfgang Denk
2935699f0512SWolfgang Denkdavinci_sonata_config :	unconfig
2936699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2937699f0512SWolfgang Denk
293828b00324SDavid Brownelldavinci_dm355evm_config :	unconfig
293928b00324SDavid Brownell	@$(MKCONFIG) $(@:_config=) arm arm926ejs dm355evm davinci davinci
294028b00324SDavid Brownell
2941f832d8a1Swdenklpd7a400_config \
2942f832d8a1Swdenklpd7a404_config:	unconfig
2943f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
29443d3befa7Swdenk
29454abc5bffSPrafulla Wadaskarmv88f6281gtw_ge_config: unconfig
29464abc5bffSPrafulla Wadaskar	@$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
29474abc5bffSPrafulla Wadaskar
2948281e00a3Swdenkmx1ads_config	:	unconfig
2949f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2950281e00a3Swdenk
2951281e00a3Swdenkmx1fs2_config	:	unconfig
2952f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2953281e00a3Swdenk
2954ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2955f4e7cbfcSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
2956ac7eb8a3SWolfgang Denk
2957ee1363f2SAlessandro Rubininhk8815_config \
2958ee1363f2SAlessandro Rubininhk8815_onenand_config:	unconfig
2959d5254f14SAlessandro Rubini	@mkdir -p $(obj)include
2960d5254f14SAlessandro Rubini	@ > $(obj)include/config.h
2961d5254f14SAlessandro Rubini	@if [ "$(findstring _onenand, $@)" ] ; then \
2962d5254f14SAlessandro Rubini		echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
2963f7aa59b2SAlessandro Rubini		$(XECHO) "... configured to boot from OneNand Flash"; \
2964d5254f14SAlessandro Rubini	else \
2965f7aa59b2SAlessandro Rubini		$(XECHO) "... configured to boot from Nand Flash"; \
2966d5254f14SAlessandro Rubini	fi
2967ee1363f2SAlessandro Rubini	@$(MKCONFIG) -a nhk8815 arm arm926ejs nhk8815 st nomadik
2968d5254f14SAlessandro Rubini
29692e5983d2Swdenkomap1510inn_config :	unconfig
2970f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
29712e5983d2Swdenk
2972a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2973a4b46ed6SUlf Samuelsson
297463e73c9aSwdenkomap1610inn_config \
297563e73c9aSwdenkomap1610inn_cs0boot_config \
297663e73c9aSwdenkomap1610inn_cs3boot_config \
29773ff02c27Swdenkomap1610inn_cs_autoboot_config \
297863e73c9aSwdenkomap1610h2_config \
297963e73c9aSwdenkomap1610h2_cs0boot_config \
29803ff02c27Swdenkomap1610h2_cs3boot_config \
29813ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2982f9328639SMarian Balakowicz	@mkdir -p $(obj)include
298363e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2984cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2985ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
29863ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2987cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2988ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
298963e73c9aSwdenk	else \
2990cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2991ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
299263e73c9aSwdenk	fi;
2993f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
29946f21347dSwdenk
2995699f0512SWolfgang Denkomap5912osk_config :	unconfig
2996699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2997699f0512SWolfgang Denk
2998a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2999a4b46ed6SUlf Samuelsson
3000a56bd922Swdenkomap730p2_config \
3001a56bd922Swdenkomap730p2_cs0boot_config \
3002a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
3003f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3004a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
3005f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
3006ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
3007a56bd922Swdenk	else \
3008f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
3009ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
3010a56bd922Swdenk	fi;
3011f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
3012a56bd922Swdenk
3013fbc8365aSPrafulla Wadaskarrd6281a_config: unconfig
3014fbc8365aSPrafulla Wadaskar	@$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
3015fbc8365aSPrafulla Wadaskar
301632cb2c70SWolfgang Denksbc2410x_config: unconfig
3017f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
301832cb2c70SWolfgang Denk
3019281e00a3Swdenkscb9328_config	:	unconfig
3020f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
3021281e00a3Swdenk
302255dd4ba5SPrafulla Wadaskarsheevaplug_config: unconfig
302355dd4ba5SPrafulla Wadaskar	@$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
302455dd4ba5SPrafulla Wadaskar
30257ebf7443Swdenksmdk2400_config	:	unconfig
3026cfca3383SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 samsung s3c24x0
30277ebf7443Swdenk
30287ebf7443Swdenksmdk2410_config	:	unconfig
3029cfca3383SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0
30307ebf7443Swdenk
303147fd3bffSJean-Christophe PLAGNIOL-VILLARDSX1_stdout_serial_config \
30322d24a3a7SwdenkSX1_config:		unconfig
303347fd3bffSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
303447fd3bffSJean-Christophe PLAGNIOL-VILLARD	@if [ "$(findstring _stdout_serial_, $@)" ] ; then \
303547fd3bffSJean-Christophe PLAGNIOL-VILLARD		echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
303647fd3bffSJean-Christophe PLAGNIOL-VILLARD		$(XECHO) "... configured for stdout serial"; \
303747fd3bffSJean-Christophe PLAGNIOL-VILLARD	else \
303847fd3bffSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
303947fd3bffSJean-Christophe PLAGNIOL-VILLARD		$(XECHO) "... configured for stdout usbtty"; \
304047fd3bffSJean-Christophe PLAGNIOL-VILLARD	fi;
304147fd3bffSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) SX1 arm arm925t sx1
30422d24a3a7Swdenk
3043b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
3044a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
3045a4b46ed6SUlf Samuelsson
304643d9616cSwdenktrab_config \
3047b0639ca3Swdenktrab_bigram_config \
3048b0639ca3Swdenktrab_bigflash_config \
3049f54ebdfaSwdenktrab_old_config:	unconfig
3050f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3051f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
3052b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
3053f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
3054f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
3055ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
3056b0639ca3Swdenk		}
3057b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
3058f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
3059f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
3060ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
3061f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
3062b0639ca3Swdenk		}
3063f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
3064f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
3065f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
3066ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
3067f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
306843d9616cSwdenk		}
3069f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
30707ebf7443Swdenk
30711cb8e980SwdenkVCMA9_config	:	unconfig
3072f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
30731cb8e980Swdenk
3074699f0512SWolfgang Denk#########################################################################
307587cb6862SWolfgang Denk# ARM supplied Versatile development boards
3076699f0512SWolfgang Denk#########################################################################
3077699f0512SWolfgang Denk
3078699f0512SWolfgang Denkcm4008_config	:	unconfig
3079699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
3080699f0512SWolfgang Denk
3081699f0512SWolfgang Denkcm41xx_config	:	unconfig
3082699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
3083699f0512SWolfgang Denk
308487cb6862SWolfgang Denkversatile_config	\
308587cb6862SWolfgang Denkversatileab_config	\
308687cb6862SWolfgang Denkversatilepb_config :	unconfig
3087e4943ec5SJean-Christophe PLAGNIOL-VILLARD	@board/armltd/versatile/split_by_variant.sh $@
3088074cff0dSwdenk
30893c2b3d45Swdenkvoiceblue_config:	unconfig
30904fedfddfSLadislav Michl	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
30913c2b3d45Swdenk
3092074cff0dSwdenk#########################################################################
3093074cff0dSwdenk## S3C44B0 Systems
3094074cff0dSwdenk#########################################################################
3095074cff0dSwdenk
3096074cff0dSwdenkB2_config	:	unconfig
3097f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
3098074cff0dSwdenk
30997ebf7443Swdenk#########################################################################
31007ebf7443Swdenk## ARM720T Systems
31017ebf7443Swdenk#########################################################################
31027ebf7443Swdenk
3103c570b2fdSWolfgang Denkarmadillo_config:	unconfig
3104f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
3105c570b2fdSWolfgang Denk
31067ebf7443Swdenkep7312_config	:	unconfig
3107f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
31087ebf7443Swdenk
31092d24a3a7Swdenkimpa7_config	:	unconfig
3110f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
31112d24a3a7Swdenk
31122d1a537dSwdenkmodnet50_config :	unconfig
3113f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
31142d1a537dSwdenk
311539539887Swdenkevb4510_config :	unconfig
3116281dfb0cSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510 NULL s3c4510b
311739539887Swdenk
31186bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
3119b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
3120b0d8f5bfSPeter Pearse
3121b0d8f5bfSPeter PearseSMN42_config	:	unconfig
3122b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
31236bd2447eSGary Jennejohn
31247ebf7443Swdenk#########################################################################
3125f904cdbbSDirk Behme## ARM CORTEX Systems
3126f904cdbbSDirk Behme#########################################################################
3127f904cdbbSDirk Behme
3128f904cdbbSDirk Behmeomap3_beagle_config :	unconfig
3129f904cdbbSDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 beagle omap3 omap3
3130f904cdbbSDirk Behme
31319d0fc811SDirk Behmeomap3_overo_config :	unconfig
31329d0fc811SDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 overo omap3 omap3
31339d0fc811SDirk Behme
3134ad9bc8e5SDirk Behmeomap3_evm_config :	unconfig
3135ad9bc8e5SDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 evm omap3 omap3
3136ad9bc8e5SDirk Behme
31372be2c6ccSDirk Behmeomap3_pandora_config :	unconfig
31382be2c6ccSDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 pandora omap3 omap3
31392be2c6ccSDirk Behme
31407379f45aSDirk Behmeomap3_zoom1_config :	unconfig
31417379f45aSDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom1 omap3 omap3
31427379f45aSDirk Behme
3143376aee78STom Rixomap3_zoom2_config :	unconfig
3144376aee78STom Rix	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom2 omap3 omap3
3145376aee78STom Rix
3146f904cdbbSDirk Behme#########################################################################
314743d9616cSwdenk## XScale Systems
31487ebf7443Swdenk#########################################################################
31497ebf7443Swdenk
3150799891efSMichael Schwingenactux1_config	:	unconfig
3151799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux1
3152799891efSMichael Schwingen
3153799891efSMichael Schwingenactux2_config	:	unconfig
3154799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux2
3155799891efSMichael Schwingen
3156799891efSMichael Schwingenactux3_config	:	unconfig
3157799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux3
3158799891efSMichael Schwingen
3159799891efSMichael Schwingenactux4_config	:	unconfig
3160799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux4
3161799891efSMichael Schwingen
3162fabd46acSwdenkcerf250_config :	unconfig
3163f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
3164fabd46acSwdenk
31657ebf7443Swdenkcradle_config	:	unconfig
3166f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
31677ebf7443Swdenk
31687ebf7443Swdenkcsb226_config	:	unconfig
3169f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
31707ebf7443Swdenk
317191c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config :	unconfig
3172f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
31730be248faSWolfgang Denk
317443d9616cSwdenkinnokom_config	:	unconfig
3175f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
317643d9616cSwdenk
31772d5b561eSwdenkixdp425_config	:	unconfig
3178f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
31792d5b561eSwdenk
3180ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
3181f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
3182ba94a1bbSWolfgang Denk
318343d9616cSwdenklubbock_config	:	unconfig
3184f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
318543d9616cSwdenk
31865720df78SHeiko Schocherpleb2_config	:	unconfig
3187f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
31885720df78SHeiko Schocher
318952f52c14Swdenklogodl_config	:	unconfig
3190f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
319152f52c14Swdenk
31929d8d5a5bSStefan Roesepdnb3_config \
31939d8d5a5bSStefan Roesescpu_config:	unconfig
3194cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
31959d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
3196cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
3197ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
31989d8d5a5bSStefan Roese	fi
31999d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
3200ba94a1bbSWolfgang Denk
3201f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
3202f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
3203f57f70aaSWolfgang Denk
3204040f8f63SStefano Babicpolaris_config \
32055e5803e1Sstefano babictrizepsiv_config	:	unconfig
3206040f8f63SStefano Babic	@mkdir -p $(obj)include
3207040f8f63SStefano Babic	@if [ "$(findstring polaris,$@)" ] ; then \
3208040f8f63SStefano Babic		echo "#define CONFIG_POLARIS 1"	>>$(obj)include/config.h ; \
3209040f8f63SStefano Babic	fi;
3210040f8f63SStefano Babic	@$(MKCONFIG) -a trizepsiv arm pxa trizepsiv
32115e5803e1Sstefano babic
32123e38691eSwdenkwepep250_config	:	unconfig
3213f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
32143e38691eSwdenk
32154ec3a7f0Swdenkxaeniax_config	:	unconfig
3216f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
32174ec3a7f0Swdenk
3218efa329cbSwdenkxm250_config	:	unconfig
3219f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
3220efa329cbSwdenk
3221ca0e7748Swdenkxsengine_config :	unconfig
3222f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
3223ca0e7748Swdenk
3224e0269579SMarkus Klotzbücherzylonite_config :
3225f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
3226e0269579SMarkus Klotzbücher
32278ed96046Swdenk#########################################################################
32288ed96046Swdenk## ARM1136 Systems
32298ed96046Swdenk#########################################################################
32305ca9881aSPeter Pearse
32315ca9881aSPeter Pearseapollon_config		: unconfig
3232c6fe4dabSWolfgang Denk	@mkdir -p $(obj)include
3233f2302d44SStefan Roese	@mkdir -p $(obj)onenand_ipl/board/apollon
3234751b9b51SKyungmin Park	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
32355252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
3236751b9b51SKyungmin Park	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
32378ed96046Swdenk
3238caebc95bSSascha Hauerimx31_litekit_config	: unconfig
3239caebc95bSSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
3240caebc95bSSascha Hauer
3241a2bb7105SGuennadi Liakhovetskiimx31_phycore_eet_config \
32425ad86216SSascha Hauerimx31_phycore_config	: unconfig
324369c5bf29SGuennadi Liakhovetski	@mkdir -p $(obj)include
3244a2bb7105SGuennadi Liakhovetski	@if [ -n "$(findstring _eet_,$@)" ]; then			\
3245a2bb7105SGuennadi Liakhovetski		echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h;	\
3246a2bb7105SGuennadi Liakhovetski	fi
3247a2bb7105SGuennadi Liakhovetski	@$(MKCONFIG) -a imx31_phycore arm arm1136 imx31_phycore NULL mx31
32485ad86216SSascha Hauer
3249b5dc9b30SGuennadi Liakhovetskimx31ads_config		: unconfig
3250f5acb9fdSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
3251b5dc9b30SGuennadi Liakhovetski
3252d08e5ca3SMagnus Liljamx31pdk_config \
3253d08e5ca3SMagnus Liljamx31pdk_nand_config	: unconfig
3254d08e5ca3SMagnus Lilja	@mkdir -p $(obj)include
3255d08e5ca3SMagnus Lilja	@if [ -n "$(findstring _nand_,$@)" ]; then					\
3256d08e5ca3SMagnus Lilja		echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h;		\
3257d08e5ca3SMagnus Lilja	else										\
3258d08e5ca3SMagnus Lilja		echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h;	\
3259d08e5ca3SMagnus Lilja		echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h;	\
3260d08e5ca3SMagnus Lilja	fi
3261d08e5ca3SMagnus Lilja	@$(MKCONFIG) -a mx31pdk arm arm1136 mx31pdk freescale mx31
32628449f287SMagnus Lilja
3263699f0512SWolfgang Denkomap2420h4_config	: unconfig
3264699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
3265699f0512SWolfgang Denk
32660d19f6c8SIlya Yanokqong_config		: unconfig
32670d19f6c8SIlya Yanok	@$(MKCONFIG) $(@:_config=) arm arm1136 qong davedenx mx31
32680d19f6c8SIlya Yanok
326911edcfe2SGuennadi Liakhovetski#########################################################################
327011edcfe2SGuennadi Liakhovetski## ARM1176 Systems
327111edcfe2SGuennadi Liakhovetski#########################################################################
327211edcfe2SGuennadi Liakhovetskismdk6400_noUSB_config	\
327311edcfe2SGuennadi Liakhovetskismdk6400_config	:	unconfig
327411edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)include $(obj)board/samsung/smdk6400
327511edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)nand_spl/board/samsung/smdk6400
327611edcfe2SGuennadi Liakhovetski	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
327711edcfe2SGuennadi Liakhovetski	@if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then			\
327811edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
327911edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx;		\
328011edcfe2SGuennadi Liakhovetski	else										\
328111edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
328211edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx;	\
328311edcfe2SGuennadi Liakhovetski	fi
328411edcfe2SGuennadi Liakhovetski	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
328511edcfe2SGuennadi Liakhovetski
32862262cfeeSwdenk#========================================================================
32872262cfeeSwdenk# i386
32882262cfeeSwdenk#========================================================================
32892262cfeeSwdenk#########################################################################
32902262cfeeSwdenk## AMD SC520 CDP
32912262cfeeSwdenk#########################################################################
3292c620c01eSGraeme RusseNET_config	:	unconfig
329340797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 eNET NULL sc520
3294c620c01eSGraeme Russ
3295a3f4c123SWolfgang Denksc520_cdp_config	:	unconfig
329640797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp NULL sc520
3297a3f4c123SWolfgang Denk
32987a8e9bedSwdenksc520_spunk_config	:	unconfig
329940797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
33007a8e9bedSwdenk
33017a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
330240797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
33037a8e9bedSwdenk
330443d9616cSwdenk#========================================================================
330543d9616cSwdenk# MIPS
330643d9616cSwdenk#========================================================================
33077ebf7443Swdenk#########################################################################
330843d9616cSwdenk## MIPS32 4Kc
330943d9616cSwdenk#########################################################################
331043d9616cSwdenk
3311e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
3312e0ac62d7Swdenk
3313e0ac62d7Swdenkincaip_100MHz_config	\
3314e0ac62d7Swdenkincaip_133MHz_config	\
3315e0ac62d7Swdenkincaip_150MHz_config	\
331643d9616cSwdenkincaip_config: unconfig
3317f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3318e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
3319f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
3320ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
3321e0ac62d7Swdenk		}
3322e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
3323f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
3324ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
3325e0ac62d7Swdenk		}
3326e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
3327f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
3328ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
3329e0ac62d7Swdenk		}
3330f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
3331e0ac62d7Swdenk
3332f4863a7aSwdenktb0229_config: unconfig
3333f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
3334f4863a7aSwdenk
33352a61eff6SStefan Roesevct_premium_config		\
33362a61eff6SStefan Roesevct_premium_small_config	\
33372a61eff6SStefan Roesevct_premium_onenand_config	\
33382a61eff6SStefan Roesevct_premium_onenand_small_config \
33392a61eff6SStefan Roesevct_platinum_config		\
33402a61eff6SStefan Roesevct_platinum_small_config	\
33412a61eff6SStefan Roesevct_platinum_onenand_config	\
33422a61eff6SStefan Roesevct_platinum_onenand_small_config \
33432a61eff6SStefan Roesevct_platinumavc_config		\
33442a61eff6SStefan Roesevct_platinumavc_small_config	\
33452a61eff6SStefan Roesevct_platinumavc_onenand_config	\
33462a61eff6SStefan Roesevct_platinumavc_onenand_small_config: unconfig
33472a61eff6SStefan Roese	@mkdir -p $(obj)include
33482a61eff6SStefan Roese	@if [ "$(findstring _premium,$@)" ] ; then \
33492a61eff6SStefan Roese		echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h ; \
33502a61eff6SStefan Roese		$(XECHO) "... on Premium board variant" ; \
33512a61eff6SStefan Roese	fi
33522a61eff6SStefan Roese	@if [ "$(findstring _platinum_,$@)" ] ; then \
33532a61eff6SStefan Roese		echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h ; \
33542a61eff6SStefan Roese		$(XECHO) "... on Platinum board variant" ; \
33552a61eff6SStefan Roese	fi
33562a61eff6SStefan Roese	@if [ "$(findstring _platinumavc,$@)" ] ; then \
33572a61eff6SStefan Roese		echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h ; \
33582a61eff6SStefan Roese		$(XECHO) "... on PlatinumAVC board variant" ; \
33592a61eff6SStefan Roese	fi
33602a61eff6SStefan Roese	@if [ "$(findstring _onenand,$@)" ] ; then \
33612a61eff6SStefan Roese		echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h ; \
33622a61eff6SStefan Roese		$(XECHO) "... on OneNAND board variant" ; \
33632a61eff6SStefan Roese	fi
33642a61eff6SStefan Roese	@if [ "$(findstring _small,$@)" ] ; then \
33652a61eff6SStefan Roese		echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h ; \
33662a61eff6SStefan Roese		$(XECHO) "... stripped down image variant" ; \
33672a61eff6SStefan Roese	fi
33682a61eff6SStefan Roese	@$(MKCONFIG) -a vct mips mips vct micronas
33692a61eff6SStefan Roese
3370e0ac62d7Swdenk#########################################################################
337169459791Swdenk## MIPS32 AU1X00
337269459791Swdenk#########################################################################
3373699f0512SWolfgang Denk
337469459791Swdenkdbau1000_config		:	unconfig
3375f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3376210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
3377f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
337869459791Swdenk
337969459791Swdenkdbau1100_config		:	unconfig
3380f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3381210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
3382f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
338369459791Swdenk
338469459791Swdenkdbau1500_config		:	unconfig
3385f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3386210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
3387f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
338869459791Swdenk
3389ff36fd85Swdenkdbau1550_config		:	unconfig
3390f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3391210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3392f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3393ff36fd85Swdenk
3394ff36fd85Swdenkdbau1550_el_config	:	unconfig
3395f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3396210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3397f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3398ff36fd85Swdenk
33998a773983SShinya Kuribayashigth2_config		:	unconfig
34008a773983SShinya Kuribayashi	@mkdir -p $(obj)include
34018a773983SShinya Kuribayashi	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
34028a773983SShinya Kuribayashi	@$(MKCONFIG) -a gth2 mips mips gth2
34038a773983SShinya Kuribayashi
3404699f0512SWolfgang Denkpb1000_config		:	unconfig
3405699f0512SWolfgang Denk	@mkdir -p $(obj)include
3406699f0512SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
3407699f0512SWolfgang Denk	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
3408699f0512SWolfgang Denk
34090764c164SVlad Lunguqemu_mips_config	: unconfig
34100764c164SVlad Lungu	@mkdir -p $(obj)include
3411210ed200SWolfgang Denk	@echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
34120764c164SVlad Lungu	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
34130764c164SVlad Lungu
341469459791Swdenk#########################################################################
3415e0ac62d7Swdenk## MIPS64 5Kc
3416e0ac62d7Swdenk#########################################################################
341743d9616cSwdenk
34183e38691eSwdenkpurple_config :		unconfig
3419f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
342043d9616cSwdenk
34214a551709Swdenk#========================================================================
34224a551709Swdenk# Nios
34234a551709Swdenk#========================================================================
34244a551709Swdenk#########################################################################
34254a551709Swdenk## Nios32
34264a551709Swdenk#########################################################################
34274a551709Swdenk
3428699f0512SWolfgang DenkADNPESC1_DNPEVA2_base_32_config	\
3429699f0512SWolfgang DenkADNPESC1_base_32_config		\
3430699f0512SWolfgang DenkADNPESC1_config: unconfig
3431699f0512SWolfgang Denk	@mkdir -p $(obj)include
3432699f0512SWolfgang Denk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
3433699f0512SWolfgang Denk		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
3434699f0512SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
3435699f0512SWolfgang Denk		}
3436699f0512SWolfgang Denk	@[ -z "$(findstring _base_32,$@)" ] || \
3437699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3438699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
3439699f0512SWolfgang Denk		}
3440699f0512SWolfgang Denk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
3441699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3442699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
3443699f0512SWolfgang Denk		}
3444699f0512SWolfgang Denk	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
3445699f0512SWolfgang Denk
3446c935d3bdSwdenkDK1C20_safe_32_config		\
3447c935d3bdSwdenkDK1C20_standard_32_config	\
34484a551709SwdenkDK1C20_config:	unconfig
3449f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3450c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
3451f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3452ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
3453c935d3bdSwdenk		}
3454c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
3455f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3456ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
3457c935d3bdSwdenk		}
3458c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
3459f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3460ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3461c935d3bdSwdenk		}
3462f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
3463c935d3bdSwdenk
3464c935d3bdSwdenkDK1S10_safe_32_config		\
3465c935d3bdSwdenkDK1S10_standard_32_config	\
3466ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
3467c935d3bdSwdenkDK1S10_config:	unconfig
3468f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3469c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
3470f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3471ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
3472c935d3bdSwdenk		}
3473c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
3474f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3475ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
3476c935d3bdSwdenk		}
3477ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
3478f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
3479ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
3480ec4c544bSwdenk		}
3481c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
3482f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3483ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3484c935d3bdSwdenk		}
3485f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
34864a551709Swdenk
34875c952cf0Swdenk#########################################################################
34885c952cf0Swdenk## Nios-II
34895c952cf0Swdenk#########################################################################
34905c952cf0Swdenk
34919cc83378SScott McNuttEP1C20_config : unconfig
3492f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
34939cc83378SScott McNutt
34949cc83378SScott McNuttEP1S10_config : unconfig
3495f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
34969cc83378SScott McNutt
34979cc83378SScott McNuttEP1S40_config : unconfig
3498f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
34999cc83378SScott McNutt
35005c952cf0SwdenkPK1C20_config : unconfig
3501f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
35025c952cf0Swdenk
35035c952cf0SwdenkPCI5441_config : unconfig
3504f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
35054a551709Swdenk
3506507bbe3eSwdenk#========================================================================
3507507bbe3eSwdenk## Microblaze
3508699f0512SWolfgang Denk#========================================================================
3509507bbe3eSwdenk
351052a822edSMichal Simekmicroblaze-generic_config:	unconfig
3511cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
351252a822edSMichal Simek	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze microblaze-generic xilinx
3513cfc67116SMichal Simek
3514699f0512SWolfgang Denksuzaku_config:	unconfig
3515699f0512SWolfgang Denk	@mkdir -p $(obj)include
3516699f0512SWolfgang Denk	@echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
3517699f0512SWolfgang Denk	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
3518699f0512SWolfgang Denk
351960fa72d6SMike Frysinger#========================================================================
352060fa72d6SMike Frysinger# Blackfin
352160fa72d6SMike Frysinger#========================================================================
35220afe519aSWolfgang Denk
352360fa72d6SMike Frysinger# Analog Devices boards
352484a9dda3SMike FrysingerBFIN_BOARDS = bf518f-ezbrd bf526-ezbrd bf527-ezkit bf533-ezkit bf533-stamp \
3525cb4b5e87SMike Frysinger	bf537-pnav bf537-stamp bf538f-ezkit bf548-ezkit bf561-ezkit
35260afe519aSWolfgang Denk
3527e82d8a1fSMike Frysinger# Bluetechnix tinyboards
352859e4be94SMike FrysingerBFIN_BOARDS += cm-bf527 cm-bf533 cm-bf537e cm-bf548 cm-bf561 tcm-bf537
3529e82d8a1fSMike Frysinger
3530d7fdc141SMike Frysinger# Misc third party boards
35313088189aSMike FrysingerBFIN_BOARDS += bf537-minotaur bf537-srv1 blackstamp
3532d7fdc141SMike Frysinger
35330f52b560SHoan Hoang# I-SYST Micromodule
35340f52b560SHoan HoangBFIN_BOARDS += ibf-dsp561
35350f52b560SHoan Hoang
353660fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config)	: unconfig
35379171fc81SMike Frysinger	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
353826bf7decSAubrey Li
353960fa72d6SMike Frysinger$(BFIN_BOARDS):
354060fa72d6SMike Frysinger	$(MAKE) $@_config
354160fa72d6SMike Frysinger	$(MAKE)
35420afe519aSWolfgang Denk
35435e3b0bc1SHaavard Skinnemoen#========================================================================
35445e3b0bc1SHaavard Skinnemoen# AVR32
35455e3b0bc1SHaavard Skinnemoen#========================================================================
3546699f0512SWolfgang Denk
3547699f0512SWolfgang Denkatngw100_config	:	unconfig
3548699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
35495e3b0bc1SHaavard Skinnemoen
35505e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
355136f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
35525e3b0bc1SHaavard Skinnemoen
3553667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
3554667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3555667568dbSHaavard Skinnemoen
355664ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
355764ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
35580afe519aSWolfgang Denk
35590a2e4879SHaavard Skinnemoenatstk1006_config	:	unconfig
35600a2e4879SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
35610a2e4879SHaavard Skinnemoen
35620eb5717aSHans-Christian Egtvedtfavr-32-ezkit_config	:	unconfig
35630eb5717aSHans-Christian Egtvedt	@$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
35640eb5717aSHans-Christian Egtvedt
35655c374c9eSJulien Mayhammerhead_config	:	unconfig
35665c374c9eSJulien May	@$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
35675c374c9eSJulien May
356813b50fe3SMark Jacksonmimc200_config		:	unconfig
356913b50fe3SMark Jackson	@$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
357013b50fe3SMark Jackson
3571699f0512SWolfgang Denk#========================================================================
3572699f0512SWolfgang Denk# SH3 (SuperH)
3573699f0512SWolfgang Denk#========================================================================
35747ebf7443Swdenk
357569df3c4dSNobuhiro Iwamatsu#########################################################################
3576c655fad0SNobuhiro Iwamatsu## sh2 (Renesas SuperH)
3577c655fad0SNobuhiro Iwamatsu#########################################################################
3578c655fad0SNobuhiro Iwamatsursk7203_config: unconfig
3579a5b04d00SKieran Bingham	@mkdir -p $(obj)include
35804d41650eSPeter Griffin	@echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h
35819a1d3557SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh2 rsk7203 renesas
3582c655fad0SNobuhiro Iwamatsu
3583c655fad0SNobuhiro Iwamatsu#########################################################################
3584b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
3585b2b5e2bbSYoshihiro Shimoda#########################################################################
3586699f0512SWolfgang Denk
35873313e0e2SMark Jonasmpr2_config: unconfig
35883ab4827cSWolfgang Denk	@mkdir -p $(obj)include
35893ab4827cSWolfgang Denk	@echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
35903313e0e2SMark Jonas	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
35913313e0e2SMark Jonas
3592b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
35933ab4827cSWolfgang Denk	@mkdir -p $(obj)include
35943ab4827cSWolfgang Denk	@echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
359591c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3596b2b5e2bbSYoshihiro Shimoda
3597b2b5e2bbSYoshihiro Shimoda#########################################################################
359869df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
359969df3c4dSNobuhiro Iwamatsu#########################################################################
3600699f0512SWolfgang Denk
3601699f0512SWolfgang DenkMigoR_config :       unconfig
3602699f0512SWolfgang Denk	@mkdir -p $(obj)include
3603699f0512SWolfgang Denk	@echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
36049a1d3557SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 MigoR renesas
3605699f0512SWolfgang Denk
360669df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
36073ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3608210ed200SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
360991c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
361069df3c4dSNobuhiro Iwamatsu
3611d91ea45dSNobuhiro Iwamatsums7722se_config :	unconfig
36123ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3613210ed200SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
361491c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
36157a8e9bedSwdenk
3616699f0512SWolfgang Denkr2dplus_config  :   unconfig
36173ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3618699f0512SWolfgang Denk	@echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3619c1da2a22SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas
3620c2042f59Sgoda.yusuke
3621c133c1fbSYusuke Godar7780mp_config: unconfig
36223ab4827cSWolfgang Denk	@mkdir -p $(obj)include
36233ab4827cSWolfgang Denk	@echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3624acd3e30dSNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas
3625c133c1fbSYusuke Goda
36267faddaecSNobuhiro Iwamatsush7763rdp_config  :   unconfig
36273ab4827cSWolfgang Denk	@mkdir -p $(obj)include
36283ab4827cSWolfgang Denk	@echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
362978385bf2SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas
36307faddaecSNobuhiro Iwamatsu
3631ada93182SYoshihiro Shimodaxtract_sh7785lcr = $(subst _32bit,,$(subst _config,,$1))
3632ada93182SYoshihiro Shimodash7785lcr_32bit_config \
36330d53a47dSNobuhiro Iwamatsush7785lcr_config  :   unconfig
3634ce298172SJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
3635ce298172SJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)board/renesas/sh7785lcr
3636ce298172SJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h
3637ada93182SYoshihiro Shimoda	@if [ "$(findstring 32bit, $@)" ] ; then \
3638ada93182SYoshihiro Shimoda		echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
3639ada93182SYoshihiro Shimoda		echo "TEXT_BASE = 0x8ff80000" > \
3640ada93182SYoshihiro Shimoda			$(obj)board/renesas/sh7785lcr/config.tmp ; \
3641ada93182SYoshihiro Shimoda		  $(XECHO) " ... enable 32-Bit Address Extended Mode" ; \
3642ada93182SYoshihiro Shimoda	fi
3643ada93182SYoshihiro Shimoda	@$(MKCONFIG) -a $(call xtract_sh7785lcr,$@) sh sh4 sh7785lcr renesas
36440d53a47dSNobuhiro Iwamatsu
36456f0da497SNobuhiro Iwamatsuap325rxa_config  :   unconfig
36466f0da497SNobuhiro Iwamatsu	@mkdir -p $(obj)include
36476f0da497SNobuhiro Iwamatsu	@echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3648f84e6ea2SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas
36496f0da497SNobuhiro Iwamatsu
365074d9c16aSNobuhiro Iwamatsuespt_config  :   unconfig
365174d9c16aSNobuhiro Iwamatsu	@mkdir -p $(obj)include
365274d9c16aSNobuhiro Iwamatsu	@echo "#define CONFIG_ESPT 1" > $(obj)include/config.h
365374d9c16aSNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 espt
365474d9c16aSNobuhiro Iwamatsu
3655c2f02da2SDaniel Hellstrom#========================================================================
3656c2f02da2SDaniel Hellstrom# SPARC
3657c2f02da2SDaniel Hellstrom#========================================================================
3658699f0512SWolfgang Denk
36591e9a164eSDaniel Hellstrom#########################################################################
36601e9a164eSDaniel Hellstrom## LEON3
36611e9a164eSDaniel Hellstrom#########################################################################
3662c2f02da2SDaniel Hellstrom
366371d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board
366471d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig
366571d7e4c0SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
366671d7e4c0SDaniel Hellstrom
36676ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
36686ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig
36696ed8a43aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
36706ed8a43aSDaniel Hellstrom
36716940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
36726940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60.
36736940383dSDaniel Hellstromgr_ep2s60_config: unconfig
36746940383dSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
36756940383dSDaniel Hellstrom
3676823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator
3677823edd8aSDaniel Hellstromgrsim_config : unconfig
3678823edd8aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3679823edd8aSDaniel Hellstrom
36807ebf7443Swdenk#########################################################################
3681b330990cSDaniel Hellstrom## LEON2
3682b330990cSDaniel Hellstrom#########################################################################
3683b330990cSDaniel Hellstrom
3684ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator
3685ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig
3686ab68f921SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3687ab68f921SDaniel Hellstrom
36887ebf7443Swdenk#########################################################################
36897ebf7443Swdenk#########################################################################
36907ebf7443Swdenk#########################################################################
369185ec0bccSwdenk
36923e38691eSwdenkclean:
36931bc15386SPeter Tyser	@rm -f $(obj)examples/standalone/82559_eeprom			  \
36941bc15386SPeter Tyser	       $(obj)examples/standalone/eepro100_eeprom		  \
36951bc15386SPeter Tyser	       $(obj)examples/standalone/hello_world			  \
36961bc15386SPeter Tyser	       $(obj)examples/standalone/interrupt			  \
36971bc15386SPeter Tyser	       $(obj)examples/standalone/mem_to_mem_idma2intr		  \
36981bc15386SPeter Tyser	       $(obj)examples/standalone/sched				  \
36991bc15386SPeter Tyser	       $(obj)examples/standalone/smc91111_eeprom		  \
37001bc15386SPeter Tyser	       $(obj)examples/standalone/test_burst			  \
37011bc15386SPeter Tyser	       $(obj)examples/standalone/timer
3702d4abc757SPeter Tyser	@rm -f $(obj)examples/api/demo{,.bin}
3703f9301e1cSWolfgang Denk	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
3704f9301e1cSWolfgang Denk	       $(obj)tools/env/{fw_printenv,fw_setenv}			  \
3705f9301e1cSWolfgang Denk	       $(obj)tools/envcrc					  \
3706f9301e1cSWolfgang Denk	       $(obj)tools/gdb/{astest,gdbcont,gdbsend}			  \
3707f9301e1cSWolfgang Denk	       $(obj)tools/gen_eth_addr    $(obj)tools/img2srec		  \
3708f9301e1cSWolfgang Denk	       $(obj)tools/mkimage	   $(obj)tools/mpc86x_clk	  \
3709f9301e1cSWolfgang Denk	       $(obj)tools/ncb		   $(obj)tools/ubsha1
3710f9301e1cSWolfgang Denk	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
3711f9301e1cSWolfgang Denk	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
3712f9301e1cSWolfgang Denk	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
37131dcb50afSWolfgang Denk	       $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds  \
37149ff67e5eSMike Frysinger	       $(obj)lib_blackfin/u-boot.lds				  \
37151aada9cdSWolfgang Denk	       $(obj)u-boot.lds						  \
37169171fc81SMike Frysinger	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3717dc7746d8SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
37181aada9cdSWolfgang Denk	@rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map}
37191bb707c3SKyungmin Park	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
37201aada9cdSWolfgang Denk	@rm -f $(obj)onenand_ipl/u-boot.lds
3721d4abc757SPeter Tyser	@rm -f $(TIMESTAMP_FILE) $(VERSION_FILE)
3722ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
37237ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
37242b48f7d5SPeter Tyser		-o -name '*.o'	-o -name '*.a' -o -name '*.exe'	\) -print \
37257ebf7443Swdenk		| xargs rm -f
37267ebf7443Swdenk
37277ebf7443Swdenkclobber:	clean
3728ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
37294c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
37304c0d4c3bSwdenk		-print0 \
37314c0d4c3bSwdenk		| xargs -0 rm -f
3732ffda586fSLi Yang	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
37335013c09fSWolfgang Denk		$(obj)cscope.* $(obj)*.*~
3734ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3735fb8b33c1SPeter Tyser	@rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
37365013c09fSWolfgang Denk	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3737ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3738a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3739a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
37407ebf7443Swdenk
3741f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
37427ebf7443Swdenkmrproper \
37437ebf7443Swdenkdistclean:	clobber unconfig
3744f9328639SMarian Balakowiczelse
3745f9328639SMarian Balakowiczmrproper \
3746f9328639SMarian Balakowiczdistclean:	clobber unconfig
3747ae6d1056SWolfgang Denk	rm -rf $(obj)*
3748f9328639SMarian Balakowiczendif
37497ebf7443Swdenk
37507ebf7443Swdenkbackup:
37517ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
37527ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
37537ebf7443Swdenk
37547ebf7443Swdenk#########################################################################
3755