xref: /openbmc/u-boot/Makefile (revision ac9db066)
17ebf7443Swdenk#
263640019SWolfgang Denk# (C) Copyright 2000-2007
37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
47ebf7443Swdenk#
57ebf7443Swdenk# See file CREDITS for list of people who contributed to this
67ebf7443Swdenk# project.
77ebf7443Swdenk#
87ebf7443Swdenk# This program is free software; you can redistribute it and/or
97ebf7443Swdenk# modify it under the terms of the GNU General Public License as
1045a212c4SWolfgang Denk# published by the Free Software Foundatio; either version 2 of
117ebf7443Swdenk# the License, or (at your option) any later version.
127ebf7443Swdenk#
137ebf7443Swdenk# This program is distributed in the hope that it will be useful,
147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
167ebf7443Swdenk# GNU General Public License for more details.
177ebf7443Swdenk#
187ebf7443Swdenk# You should have received a copy of the GNU General Public License
197ebf7443Swdenk# along with this program; if not, write to the Free Software
207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
217ebf7443Swdenk# MA 02111-1307 USA
227ebf7443Swdenk#
237ebf7443Swdenk
24881a87ecSWolfgang DenkVERSION = 1
25754bac48SWolfgang DenkPATCHLEVEL = 3
268d4f040aSWolfgang DenkSUBLEVEL = 1
279a337ddcSWolfgang DenkEXTRAVERSION =
28881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h
30881a87ecSWolfgang Denk
317ebf7443SwdenkHOSTARCH := $(shell uname -m | \
327ebf7443Swdenk	sed -e s/i.86/i386/ \
337ebf7443Swdenk	    -e s/sun4u/sparc64/ \
347ebf7443Swdenk	    -e s/arm.*/arm/ \
357ebf7443Swdenk	    -e s/sa110/arm/ \
367ebf7443Swdenk	    -e s/powerpc/ppc/ \
37a2280646SKumar Gala	    -e s/ppc64/ppc/ \
387ebf7443Swdenk	    -e s/macppc/ppc/)
397ebf7443Swdenk
40f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
417ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
427ebf7443Swdenk
43f9d77ed3SWolfgang Denkexport	HOSTARCH HOSTOS
447ebf7443Swdenk
457ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
467ebf7443SwdenkVENDOR=
477ebf7443Swdenk
487ebf7443Swdenk#########################################################################
49f9328639SMarian Balakowicz#
50f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
51f9328639SMarian Balakowicz# directory. Two use cases are supported:
52f9328639SMarian Balakowicz#
53f9328639SMarian Balakowicz# 1) Add O= to the make command line
54f9328639SMarian Balakowicz# 'make O=/tmp/build all'
55f9328639SMarian Balakowicz#
56f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
57f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
58f9328639SMarian Balakowicz# 'make'
59f9328639SMarian Balakowicz#
60f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
61f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
62f9328639SMarian Balakowicz# './MAKEALL'
63f9328639SMarian Balakowicz#
64f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
65f9328639SMarian Balakowicz#
66f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
67f9328639SMarian Balakowicz# the object files are placed in the source directory.
68f9328639SMarian Balakowicz#
697ebf7443Swdenk
70f9328639SMarian Balakowiczifdef O
71f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
72f9328639SMarian BalakowiczBUILD_DIR := $(O)
73f9328639SMarian Balakowiczendif
74f9328639SMarian Balakowiczendif
757ebf7443Swdenk
76f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
77f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
784f0645ebSMarian Balakowicz
794f0645ebSMarian Balakowicz# Attempt to create a output directory.
804f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
814f0645ebSMarian Balakowicz
824f0645ebSMarian Balakowicz# Verify if it was successful.
83f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
84f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
85f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
86f9328639SMarian Balakowicz
87f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
88f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
89f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
90f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
91f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
92f9328639SMarian Balakowicz
93f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
94f9328639SMarian Balakowiczexport MKCONFIG
95f9328639SMarian Balakowicz
96f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
97f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
98f9328639SMarian Balakowiczexport REMOTE_BUILD
99f9328639SMarian Balakowiczendif
100f9328639SMarian Balakowicz
101f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
102f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
103f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
104f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
105f9328639SMarian Balakowiczobj := $(OBJTREE)/
106f9328639SMarian Balakowiczsrc := $(SRCTREE)/
107f9328639SMarian Balakowiczelse
108f9328639SMarian Balakowiczobj :=
109f9328639SMarian Balakowiczsrc :=
110f9328639SMarian Balakowiczendif
111f9328639SMarian Balakowiczexport obj src
112f9328639SMarian Balakowicz
113f9328639SMarian Balakowicz#########################################################################
114f9328639SMarian Balakowicz
115f9328639SMarian Balakowiczifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
116f9328639SMarian Balakowicz
1177ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
118f9328639SMarian Balakowiczinclude $(OBJTREE)/include/config.mk
1191d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
120f9328639SMarian Balakowicz
1217ebf7443Swdenkifndef CROSS_COMPILE
122a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1237ebf7443SwdenkCROSS_COMPILE =
1247ebf7443Swdenkelse
1257ebf7443Swdenkifeq ($(ARCH),ppc)
12616c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx-
1277ebf7443Swdenkendif
1287ebf7443Swdenkifeq ($(ARCH),arm)
129dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1307ebf7443Swdenkendif
1312262cfeeSwdenkifeq ($(ARCH),i386)
1327a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1337a8e9bedSwdenkendif
13443d9616cSwdenkifeq ($(ARCH),mips)
13543d9616cSwdenkCROSS_COMPILE = mips_4KC-
13643d9616cSwdenkendif
1374a551709Swdenkifeq ($(ARCH),nios)
1384a551709SwdenkCROSS_COMPILE = nios-elf-
1394a551709Swdenkendif
1405c952cf0Swdenkifeq ($(ARCH),nios2)
1415c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1425c952cf0Swdenkendif
1434e5ca3ebSwdenkifeq ($(ARCH),m68k)
1444e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1454e5ca3ebSwdenkendif
146507bbe3eSwdenkifeq ($(ARCH),microblaze)
147507bbe3eSwdenkCROSS_COMPILE = mb-
148507bbe3eSwdenkendif
1490afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
150ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux-
1510afe519aSWolfgang Denkendif
1527b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
1535374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux-
1547b64fef3SWolfgang Denkendif
1550b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh)
1560b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux-
1570b135cfcSNobuhiro Iwamatsuendif
1587ebf7443Swdenkendif
1597ebf7443Swdenkendif
1607ebf7443Swdenk
1617ebf7443Swdenkexport	CROSS_COMPILE
1627ebf7443Swdenk
16392b197f0SWolfgang Denk# load other configuration
16492b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
16592b197f0SWolfgang Denk
1667ebf7443Swdenk#########################################################################
1677ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1687ebf7443Swdenk
1697ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1702262cfeeSwdenkifeq ($(CPU),i386)
1712262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
1722262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
1732262cfeeSwdenkendif
1747ebf7443Swdenkifeq ($(CPU),ppc4xx)
1757ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
1767ebf7443Swdenkendif
17742d1f039Swdenkifeq ($(CPU),mpc85xx)
17842d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
17942d1f039Swdenkendif
1800afe519aSWolfgang Denkifeq ($(CPU),bf533)
1810afe519aSWolfgang DenkOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
182ef26a08fSAubrey.LiOBJS += cpu/$(CPU)/flush.o	cpu/$(CPU)/init_sdram.o
1830afe519aSWolfgang Denkendif
18426bf7decSAubrey Liifeq ($(CPU),bf537)
18526bf7decSAubrey LiOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
18626bf7decSAubrey LiOBJS += cpu/$(CPU)/flush.o	cpu/$(CPU)/init_sdram.o
18726bf7decSAubrey Liendif
18865458987SAubrey Liifeq ($(CPU),bf561)
18965458987SAubrey LiOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
19065458987SAubrey LiOBJS += cpu/$(CPU)/flush.o 	cpu/$(CPU)/init_sdram.o
1917ebf7443Swdenkendif
1927ebf7443Swdenk
193f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
194f9328639SMarian Balakowicz
1959fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
1967608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
1977608d75fSKim Phillips	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
1989fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
1997ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
2001d9f4105Swdenkifdef SOC
2011d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
2021d9f4105Swdenkendif
203323bfa8fSStefan Roeseifeq ($(CPU),ixp)
204323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
205323bfa8fSStefan Roeseendif
2067ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
207518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
208c419d1d6Sstroese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
2097ebf7443SwdenkLIBS += net/libnet.a
2107ebf7443SwdenkLIBS += disk/libdisk.a
2110f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
21233daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
213f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
214080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
21516b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
216318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
21759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
21859829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
21959829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
22059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
2218e585f02STsiChung LiewLIBS += drivers/net/libnet.a
2222439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
22393a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
22473646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
2257737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2267737d5c6SDave LiuLIBS += drivers/qe/qe.a
2277737d5c6SDave Liuendif
228da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
229da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
230da9d4610SAndy Flemingendif
23159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2328e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
23359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a
23459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
235ad5bb451SWolfgang DenkLIBS += post/libpost.a post/drivers/libpostdrivers.a
236ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
237ad5bb451SWolfgang Denk	"post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
238b4489621SSergei PoselenovLIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
239b4489621SSergei Poselenov	"post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
240ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
241ad5bb451SWolfgang Denk	"post/cpu/$(CPU)/libpost$(CPU).a"; fi)
242ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
243ad5bb451SWolfgang Denk	"post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
2447ebf7443SwdenkLIBS += common/libcommon.a
2457651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
246500856ebSRafal Jaworowskiifeq ($(CONFIG_API),y)
247500856ebSRafal JaworowskiLIBS += api/libapi.a
248500856ebSRafal Jaworowskiendif
249f9328639SMarian Balakowicz
250f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
2519fd5e31fSwdenk.PHONY : $(LIBS)
252a8c7c708Swdenk
2534f7cb08eSwdenk# Add GCC lib
2541a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2553d3befa7Swdenk
256a8c7c708Swdenk# The "tools" are needed early, so put this first
257a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
258a8c7c708SwdenkSUBDIRS	= tools \
259ad5bb451SWolfgang Denk	  examples
260ad5bb451SWolfgang Denk
261500856ebSRafal Jaworowskiifeq ($(CONFIG_API),y)
262500856ebSRafal JaworowskiSUBDIRS += api_examples
263500856ebSRafal Jaworowskiendif
264500856ebSRafal Jaworowski
265b028f715Swdenk.PHONY : $(SUBDIRS)
266a8c7c708Swdenk
267887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
268887e2ec9SStefan RoeseNAND_SPL = nand_spl
269887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
270887e2ec9SStefan Roeseendif
271887e2ec9SStefan Roese
272f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
273f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS))
274f9328639SMarian Balakowicz
2757ebf7443Swdenk#########################################################################
276bdccc4feSwdenk#########################################################################
2777ebf7443Swdenk
278566a494fSHeiko SchocherALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
2797ebf7443Swdenk
280bdccc4feSwdenkall:		$(ALL)
2817ebf7443Swdenk
282f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
2836310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
2846310eb9dSwdenk
285f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
2867ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
2877ebf7443Swdenk
288f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
2897ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
2907ebf7443Swdenk
291f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
292bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
293bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
294881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
295bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
296bdccc4feSwdenk		-d $< $@
297bdccc4feSwdenk
298566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
29901159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
300566a494fSHeiko Schocher
301f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3027ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3037ebf7443Swdenk
304f9328639SMarian Balakowicz$(obj)u-boot:		depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
3058bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
306f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
307f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
308b2184c31Swdenk			-Map u-boot.map -o u-boot
3097ebf7443Swdenk
310f9328639SMarian Balakowicz$(OBJS):
311f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
312f9328639SMarian Balakowicz
313a8c7c708Swdenk$(LIBS):
314f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
315a8c7c708Swdenk
316a8c7c708Swdenk$(SUBDIRS):
317b028f715Swdenk		$(MAKE) -C $@ all
3187ebf7443Swdenk
319887e2ec9SStefan Roese$(NAND_SPL):	version
3208318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
321887e2ec9SStefan Roese
322887e2ec9SStefan Roese$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin
3238318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
324887e2ec9SStefan Roese
325881a87ecSWolfgang Denkversion:
326881a87ecSWolfgang Denk		@echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
327881a87ecSWolfgang Denk		echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
328881a87ecSWolfgang Denk		echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
329881a87ecSWolfgang Denk			 $(TOPDIR)) >> $(VERSION_FILE); \
330881a87ecSWolfgang Denk		echo "\"" >> $(VERSION_FILE)
331881a87ecSWolfgang Denk
3328f713fdfSdzugdbtools:
333f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
334f9328639SMarian Balakowicz
335f9328639SMarian Balakowiczupdater:
336f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
337f9328639SMarian Balakowicz
338f9328639SMarian Balakowiczenv:
33964b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3408f713fdfSdzu
341f8d3ca7bSWolfgang Denkdepend dep:	version
342f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3437ebf7443Swdenk
344a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
345a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
346a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
347a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
348a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
349a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
350a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
351a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
352a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
353a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
354a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
355a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
356a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
357a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
358a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
359a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
360a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
361a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
362a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
363a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
364a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
365a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
366a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
367a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
368a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
369a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
370a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
371a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
372a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
373a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
374a340c325SJean-Christophe PLAGNIOL-VILLARD
375f9328639SMarian Balakowicztags ctags:
376a340c325SJean-Christophe PLAGNIOL-VILLARD		ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
37788fed9a1SWolfgang Denk						-name '*.[ch]' -print`
3787ebf7443Swdenk
3797ebf7443Swdenketags:
380a340c325SJean-Christophe PLAGNIOL-VILLARD		etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
38188fed9a1SWolfgang Denk						-name '*.[ch]' -print`
3827ebf7443Swdenk
383f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
3847ebf7443Swdenk		@$(NM) $< | \
3857ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
386f9328639SMarian Balakowicz		sort > $(obj)System.map
3877ebf7443Swdenk
3882f155f6cSGrant Likely#
3892f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
3902f155f6cSGrant Likely#
3912f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
3922f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
3932f155f6cSGrant Likely# to regenerate the autoconf.mk file.
3942f155f6cSGrant Likely$(OBJTREE)/include/autoconf.mk: $(obj)include/config.h
3952f155f6cSGrant Likely	@echo Generating include/autoconf.mk
3962f155f6cSGrant Likely	@# Generate the dependancies
3972f155f6cSGrant Likely	@$(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep
3982f155f6cSGrant Likely	@# Extract the config macros
3992f155f6cSGrant Likely	@$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed >> $@
4002f155f6cSGrant Likely
4012f155f6cSGrant Likelysinclude $(OBJTREE)/include/autoconf.mk.dep
4022f155f6cSGrant Likely
4037ebf7443Swdenk#########################################################################
4047ebf7443Swdenkelse
405f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
406f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
407f9328639SMarian Balakowicz$(SUBDIRS) version gdbtools updater env depend \
408f9328639SMarian Balakowiczdep tags ctags etags $(obj)System.map:
4097ebf7443Swdenk	@echo "System not configured - see README" >&2
4107ebf7443Swdenk	@ exit 1
4117ebf7443Swdenkendif
4127ebf7443Swdenk
4134e53a258SWolfgang Denk.PHONY : CHANGELOG
4144e53a258SWolfgang DenkCHANGELOG:
415b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
416b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4174e53a258SWolfgang Denk
4187ebf7443Swdenk#########################################################################
4197ebf7443Swdenk
4207ebf7443Swdenkunconfig:
421887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4222f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4232f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4247ebf7443Swdenk
4257ebf7443Swdenk#========================================================================
4267ebf7443Swdenk# PowerPC
4277ebf7443Swdenk#========================================================================
4280db5bca8Swdenk
4290db5bca8Swdenk#########################################################################
4300db5bca8Swdenk## MPC5xx Systems
4310db5bca8Swdenk#########################################################################
4320db5bca8Swdenk
4335e5f9ed2Swdenkcanmb_config:	unconfig
434f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
4355e5f9ed2Swdenk
4360db5bca8Swdenkcmi_mpc5xx_config:	unconfig
437f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
4380db5bca8Swdenk
439b6e4c403SwdenkPATI_config:		unconfig
440f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
441b6e4c403Swdenk
4427ebf7443Swdenk#########################################################################
443945af8d7Swdenk## MPC5xxx Systems
444945af8d7Swdenk#########################################################################
445a87589daSwdenk
446dafba16eSWolfgang Denkaev_config: unconfig
447f9328639SMarian Balakowicz	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
448dafba16eSWolfgang Denk
4496ca24c64Sdzu@denx.deBC3450_config:	unconfig
450f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
4516ca24c64Sdzu@denx.de
4525e4b3361SStefan Roesecpci5200_config:  unconfig
453f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
4545e4b3361SStefan Roese
455a87589daSwdenkhmi1001_config:	unconfig
456f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
457a87589daSwdenk
458e35745bbSwdenkLite5200_config				\
459e35745bbSwdenkLite5200_LOWBOOT_config			\
460e35745bbSwdenkLite5200_LOWBOOT08_config		\
461e35745bbSwdenkicecube_5200_config			\
462e35745bbSwdenkicecube_5200_LOWBOOT_config		\
463e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
464b2001f27Swdenkicecube_5200_DDR_config			\
46579d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
46679d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
467e35745bbSwdenkicecube_5100_config:			unconfig
468f9328639SMarian Balakowicz	@mkdir -p $(obj)include
469f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
470f9328639SMarian Balakowicz	@ >$(obj)include/config.h
47117d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
47217d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
473f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
474f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
47517d704ebSwdenk		  fi ; \
4765cf9da48Swdenk		  echo "... with LOWBOOT configuration" ; \
4775cf9da48Swdenk		}
4785cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
479f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
4805cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
48117d704ebSwdenk		  echo "... with LOWBOOT configuration" ; \
4825cf9da48Swdenk		}
483b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
484f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
485b2001f27Swdenk		  echo "... DDR memory revision" ; \
486b2001f27Swdenk		}
487d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
488f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
489d4ca31c4Swdenk		  echo "... with MPC5200 processor" ; \
490d4ca31c4Swdenk		}
491a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
492f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
493945af8d7Swdenk		  echo "... with MGT5100 processor" ; \
494945af8d7Swdenk		}
495f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
496945af8d7Swdenk
4972605e90bSHeiko Schocherjupiter_config:	unconfig
4982605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
4992605e90bSHeiko Schocher
5004707fb50SBartlomiej Siekav38b_config: unconfig
50190b1b2d6SGrant Likely	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
5024707fb50SBartlomiej Sieka
503138ff60cSwdenkinka4x0_config:	unconfig
504f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
505138ff60cSwdenk
50609e4b0c5SWolfgang Denklite5200b_config	\
507d3832e8fSDomen Puncerlite5200b_PM_config	\
50809e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
509f9328639SMarian Balakowicz	@mkdir -p $(obj)include
510f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
511f9328639SMarian Balakowicz	@ >$(obj)include/config.h
512f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
51309e4b0c5SWolfgang Denk	@ echo "... DDR memory revision"
514f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
515f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
516d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
517d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
518d3832e8fSDomen Puncer		  echo "... with power management (low-power mode) support" ; \
519d3832e8fSDomen Puncer		}
52009e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
521f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
52209e4b0c5SWolfgang Denk		  echo "... with LOWBOOT configuration" ; \
52309e4b0c5SWolfgang Denk		}
52409e4b0c5SWolfgang Denk	@ echo "... with MPC5200B processor"
525f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
52609e4b0c5SWolfgang Denk
527f1ee9825SStefan Roesemcc200_config	\
528ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
529ed1cf845SWolfgang Denkmcc200_highboot_config	\
530ed1cf845SWolfgang Denkmcc200_COM12_config	\
531ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
532113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
533113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
534ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
535ed1cf845SWolfgang Denkprs200_config	\
536ed1cf845SWolfgang Denkprs200_DDR_config	\
537ed1cf845SWolfgang Denkprs200_highboot_config	\
538ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
539f9328639SMarian Balakowicz	@mkdir -p $(obj)include
540f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
541f9328639SMarian Balakowicz	@ >$(obj)include/config.h
5424819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
5434819fad9SWolfgang Denk		{ echo "... with lowboot configuration" ; \
544f1ee9825SStefan Roese		}
5454819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
546f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
5474819fad9SWolfgang Denk		  echo "... with highboot configuration" ; \
5484819fad9SWolfgang Denk		}
5494819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
550ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
551ed1cf845SWolfgang Denk		  then \
552ed1cf845SWolfgang Denk			echo "... with DDR" ; \
553ed1cf845SWolfgang Denk		  else \
554ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
555ed1cf845SWolfgang Denk			then \
556ed1cf845SWolfgang Denk				echo "... with DDR" ; \
557ed1cf845SWolfgang Denk			else \
558f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
559ed1cf845SWolfgang Denk				echo "... with SDRAM" ; \
560ed1cf845SWolfgang Denk			fi; \
561ed1cf845SWolfgang Denk		  fi; \
5624819fad9SWolfgang Denk		}
5634819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
564f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
5654819fad9SWolfgang Denk		  echo "... with SDRAM" ; \
5664819fad9SWolfgang Denk		}
567463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
568f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
569463764c8SWolfgang Denk		  echo "... with console on COM12" ; \
570463764c8SWolfgang Denk		}
571ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
572f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"  >>$(obj)include/config.h ;\
573ed1cf845SWolfgang Denk		}
574f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
57586ea5f93SWolfgang Denk
5768b7d1f0aSStefan Roesemecp5200_config:  unconfig
5778b7d1f0aSStefan Roese	@$(MKCONFIG) -a mecp5200  ppc mpc5xxx mecp5200 esd
5788b7d1f0aSStefan Roese
579df04a3dfSWolfgang Denko2dnt_config:
580f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
581df04a3dfSWolfgang Denk
5825e4b3361SStefan Roesepf5200_config:  unconfig
583f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
5845e4b3361SStefan Roese
58589394047SwdenkPM520_config \
58689394047SwdenkPM520_DDR_config \
58789394047SwdenkPM520_ROMBOOT_config \
58889394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
589f9328639SMarian Balakowicz	@mkdir -p $(obj)include
590f9328639SMarian Balakowicz	@ >$(obj)include/config.h
59189394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
592f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
59389394047Swdenk		  echo "... DDR memory revision" ; \
59489394047Swdenk		}
59589394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
596f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
59789394047Swdenk		  echo "... booting from 8-bit flash" ; \
59889394047Swdenk		}
599f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
60089394047Swdenk
6016624b687SWolfgang Denksmmaco4_config: unconfig
602f9328639SMarian Balakowicz	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
6039cdc8386SWolfgang Denk
60486b116b1SBartlomiej Siekacm5200_config:	unconfig
60586b116b1SBartlomiej Sieka	@./mkconfig -a cm5200 ppc mpc5xxx cm5200
606fa1df308SBartlomiej Sieka
6079cdc8386SWolfgang Denkspieval_config:	unconfig
608f9328639SMarian Balakowicz	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
6099cdc8386SWolfgang Denk
61045a212c4SWolfgang DenkTB5200_B_config \
611b87dfd28SWolfgang DenkTB5200_config:	unconfig
612f9328639SMarian Balakowicz	@mkdir -p $(obj)include
61345a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
614f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
61545a212c4SWolfgang Denk		  echo "... with MPC5200B processor" ; \
61645a212c4SWolfgang Denk		}
617f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
618b87dfd28SWolfgang Denk
619d4ca31c4SwdenkMINI5200_config	\
620d4ca31c4SwdenkEVAL5200_config	\
621d4ca31c4SwdenkTOP5200_config:	unconfig
622f9328639SMarian Balakowicz	@mkdir -p $(obj)include
623f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
624f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
625d4ca31c4Swdenk
6266c7a1408SwdenkTotal5100_config		\
6276c7a1408SwdenkTotal5200_config		\
6286c7a1408SwdenkTotal5200_lowboot_config	\
6296c7a1408SwdenkTotal5200_Rev2_config		\
6306c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
631f9328639SMarian Balakowicz	@mkdir -p $(obj)include
632f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
633f9328639SMarian Balakowicz	@ >$(obj)include/config.h
6346c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
635f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
6366c7a1408Swdenk		  echo "... with MGT5100 processor" ; \
6376c7a1408Swdenk		}
6386c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
639f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
6406c7a1408Swdenk		  echo "... with MPC5200 processor" ; \
6416c7a1408Swdenk		}
6426c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
643f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
6446c7a1408Swdenk		  echo "... revision 1 board" ; \
6456c7a1408Swdenk		}
6466c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
647f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
6486c7a1408Swdenk		  echo "... revision 2 board" ; \
6496c7a1408Swdenk		}
6506c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
651f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
6526c7a1408Swdenk		  echo "... with lowboot configuration" ; \
6536c7a1408Swdenk		}
654f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
6556c7a1408Swdenk
6565196a7a0SWolfgang Denkcam5200_config \
657d9384de2SMarian Balakowiczcam5200_niosflash_config \
6585196a7a0SWolfgang Denkfo300_config \
6595196a7a0SWolfgang DenkMiniFAP_config \
6605078cce8SWolfgang DenkTQM5200S_config \
6615078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
6625196a7a0SWolfgang DenkTQM5200_B_config \
6635196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
6645196a7a0SWolfgang DenkTQM5200_config	\
6655196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
666f9328639SMarian Balakowicz	@mkdir -p $(obj)include
667f9328639SMarian Balakowicz	@mkdir -p $(obj)board/tqm5200
668f9328639SMarian Balakowicz	@ >$(obj)include/config.h
669135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
670f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
671f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
672f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
673135ae006SWolfgang Denk		  echo "... TQM5200S on Cam5200" ; \
6745078cce8SWolfgang Denk		}
675d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
676d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
677d9384de2SMarian Balakowicz		  echo "... with NIOS flash driver" ; \
678d9384de2SMarian Balakowicz		}
6796d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
680f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
6816d3bc9b8SMarian Balakowicz		  echo "... TQM5200 on FO300" ; \
6826d3bc9b8SMarian Balakowicz		}
683cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
684f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
68545a212c4SWolfgang Denk		  echo "... TQM5200_AC on MiniFAP" ; \
686978b1096SWolfgang Denk		}
687cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
688f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
689cd65a3dcSWolfgang Denk		  echo "... on a STK52XX.100 base board" ; \
69056523f12Swdenk		}
6915078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
692f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
6935078cce8SWolfgang Denk		}
6945078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
695f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
696f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
69745a212c4SWolfgang Denk		}
698978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
699f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
700978b1096SWolfgang Denk		}
701f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
7026dedf3d4SHeiko Schocheruc101_config:		unconfig
7036dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
70453d4a498SBartlomiej Siekamotionpro_config:	unconfig
70553d4a498SBartlomiej Sieka	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
70653d4a498SBartlomiej Sieka
70756523f12Swdenk
708945af8d7Swdenk#########################################################################
7098993e54bSRafal Jaworowski## MPC512x Systems
7108993e54bSRafal Jaworowski#########################################################################
7118993e54bSRafal Jaworowskiads5121_config: unconfig
7128993e54bSRafal Jaworowski	@$(MKCONFIG) ads5121 ppc mpc512x ads5121
7138993e54bSRafal Jaworowski
7148993e54bSRafal Jaworowski
7158993e54bSRafal Jaworowski#########################################################################
7167ebf7443Swdenk## MPC8xx Systems
7177ebf7443Swdenk#########################################################################
7187ebf7443Swdenk
7192d24a3a7SwdenkAdder_config    \
7202d24a3a7SwdenkAdder87x_config \
72126238132SwdenkAdderII_config  \
7222d24a3a7Swdenk	:		unconfig
723f9328639SMarian Balakowicz	@mkdir -p $(obj)include
72426238132Swdenk	$(if $(findstring AdderII,$@), \
725f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
726f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
7272d24a3a7Swdenk
72816c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
72916c8d5e7SWolfgang Denk	@./mkconfig -a AdderUSB ppc mpc8xx adder
73016c8d5e7SWolfgang Denk
731180d3f74SwdenkADS860_config     \
732180d3f74SwdenkFADS823_config    \
733180d3f74SwdenkFADS850SAR_config \
734180d3f74SwdenkMPC86xADS_config  \
7351114257cSwdenkMPC885ADS_config  \
736180d3f74SwdenkFADS860T_config:	unconfig
737f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
7387ebf7443Swdenk
7397ebf7443SwdenkAMX860_config	:	unconfig
740f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
7417ebf7443Swdenk
7427ebf7443Swdenkc2mon_config:		unconfig
743f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
7447ebf7443Swdenk
7457ebf7443SwdenkCCM_config:		unconfig
746f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
7477ebf7443Swdenk
7487ebf7443Swdenkcogent_mpc8xx_config:	unconfig
749f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
7507ebf7443Swdenk
7513bac3513SwdenkELPT860_config:		unconfig
752f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
7533bac3513Swdenk
75484c960ceSWolfgang DenkEP88x_config:		unconfig
755f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
75684c960ceSWolfgang Denk
7577ebf7443SwdenkESTEEM192E_config:	unconfig
758f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
7597ebf7443Swdenk
7607ebf7443SwdenkETX094_config	:	unconfig
761f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
7627ebf7443Swdenk
7637ebf7443SwdenkFLAGADM_config:	unconfig
764f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
7657ebf7443Swdenk
7667aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
7677aa78614Swdenk
7687aa78614SwdenkGEN860T_SC_config	\
7697ebf7443SwdenkGEN860T_config: unconfig
770f9328639SMarian Balakowicz	@mkdir -p $(obj)include
771f9328639SMarian Balakowicz	@ >$(obj)include/config.h
7727aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
773f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
7747aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
7757aa78614Swdenk		}
776f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
7777ebf7443Swdenk
7787ebf7443SwdenkGENIETV_config:	unconfig
779f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
7807ebf7443Swdenk
7817ebf7443SwdenkGTH_config:	unconfig
782f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
7837ebf7443Swdenk
7847ebf7443Swdenkhermes_config	:	unconfig
785f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
7867ebf7443Swdenk
787c40b2956SwdenkHMI10_config	:	unconfig
788f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
789c40b2956Swdenk
7907ebf7443SwdenkIAD210_config: unconfig
791f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
7927ebf7443Swdenk
7937ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
7947ebf7443Swdenk
7957ebf7443SwdenkICU862_100MHz_config	\
7967ebf7443SwdenkICU862_config: unconfig
797f9328639SMarian Balakowicz	@mkdir -p $(obj)include
798f9328639SMarian Balakowicz	@ >$(obj)include/config.h
7997ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
800f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
8017ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
8027ebf7443Swdenk		}
803f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8047ebf7443Swdenk
8057ebf7443SwdenkIP860_config	:	unconfig
806f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8077ebf7443Swdenk
8087ebf7443SwdenkIVML24_256_config \
8097ebf7443SwdenkIVML24_128_config \
8107ebf7443SwdenkIVML24_config:	unconfig
811f9328639SMarian Balakowicz	@mkdir -p $(obj)include
812f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8137ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
814f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
8157ebf7443Swdenk		 }
8167ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
817f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
8187ebf7443Swdenk		 }
8197ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
820f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
8217ebf7443Swdenk		 }
822f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
8237ebf7443Swdenk
8247ebf7443SwdenkIVMS8_256_config \
8257ebf7443SwdenkIVMS8_128_config \
8267ebf7443SwdenkIVMS8_config:	unconfig
827f9328639SMarian Balakowicz	@mkdir -p $(obj)include
828f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8297ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
830f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
8317ebf7443Swdenk		 }
8327ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
833f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
8347ebf7443Swdenk		 }
8357ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
836f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
8377ebf7443Swdenk		 }
838f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
8397ebf7443Swdenk
84056f94be3SwdenkKUP4K_config	:	unconfig
841f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
8420608e04dSwdenk
8430608e04dSwdenkKUP4X_config    :       unconfig
844f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
84556f94be3Swdenk
8467ebf7443SwdenkLANTEC_config	:	unconfig
847f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
8487ebf7443Swdenk
8497ebf7443Swdenklwmon_config:		unconfig
850f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
8517ebf7443Swdenk
8527ebf7443SwdenkMBX_config	\
8537ebf7443SwdenkMBX860T_config:	unconfig
854f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
8557ebf7443Swdenk
856381e4e63SHeiko Schochermgsuvd_config:		unconfig
857381e4e63SHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
858381e4e63SHeiko Schocher
8597ebf7443SwdenkMHPC_config:		unconfig
860f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
8617ebf7443Swdenk
8627ebf7443SwdenkMVS1_config :		unconfig
863f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
8647ebf7443Swdenk
865993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
866993cad93Swdenk
867993cad93SwdenkNETVIA_V2_config \
8687ebf7443SwdenkNETVIA_config:		unconfig
869f9328639SMarian Balakowicz	@mkdir -p $(obj)include
870f9328639SMarian Balakowicz	@ >$(obj)include/config.h
871993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
872f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
873993cad93Swdenk		  echo "... Version 1" ; \
874993cad93Swdenk		 }
875993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
876f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
877993cad93Swdenk		  echo "... Version 2" ; \
878993cad93Swdenk		 }
879f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
8807ebf7443Swdenk
881c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
882c26e454dSwdenk
883c26e454dSwdenkNETPHONE_V2_config \
88404a85b3bSwdenkNETPHONE_config:	unconfig
885f9328639SMarian Balakowicz	@mkdir -p $(obj)include
886f9328639SMarian Balakowicz	@ >$(obj)include/config.h
887c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
888f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
889c26e454dSwdenk		 }
890c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
891f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
892c26e454dSwdenk		 }
893f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
89404a85b3bSwdenk
89579fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
89604a85b3bSwdenk
89779fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
89879fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
89979fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
90079fa88f3SwdenkNETTA_SWAPHOOK_config \
90179fa88f3SwdenkNETTA_ISDN_6412_config \
90204a85b3bSwdenkNETTA_ISDN_config \
90379fa88f3SwdenkNETTA_6412_config \
90404a85b3bSwdenkNETTA_config:		unconfig
905f9328639SMarian Balakowicz	@mkdir -p $(obj)include
906f9328639SMarian Balakowicz	@ >$(obj)include/config.h
90779fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
908f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
90904a85b3bSwdenk		 }
91079fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
911f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
91279fa88f3Swdenk		 }
91379fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
914f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
91579fa88f3Swdenk		 }
91679fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
917f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
91879fa88f3Swdenk		 }
91979fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
920f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
92179fa88f3Swdenk		 }
92279fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
923f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
92479fa88f3Swdenk		 }
925f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
92604a85b3bSwdenk
92779fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
92879fa88f3Swdenk
92979fa88f3SwdenkNETTA2_V2_config \
93079fa88f3SwdenkNETTA2_config:		unconfig
931f9328639SMarian Balakowicz	@mkdir -p $(obj)include
932f9328639SMarian Balakowicz	@ >$(obj)include/config.h
93379fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
934f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
93579fa88f3Swdenk		 }
93679fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
937f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
93879fa88f3Swdenk		 }
939f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
94079fa88f3Swdenk
941a367d426Sdzu@denx.deNC650_Rev1_config \
942a367d426Sdzu@denx.deNC650_Rev2_config \
943a367d426Sdzu@denx.deCP850_config:	unconfig
944f9328639SMarian Balakowicz	@mkdir -p $(obj)include
945f9328639SMarian Balakowicz	@ >$(obj)include/config.h
946a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
947f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
948f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
949a367d426Sdzu@denx.de		 }
950a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
951f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
952a367d426Sdzu@denx.de		 }
953a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
954f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
955a367d426Sdzu@denx.de		 }
956f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
9577ca202f5Swdenk
9587ebf7443SwdenkNX823_config:		unconfig
959f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
9607ebf7443Swdenk
9617ebf7443Swdenkpcu_e_config:		unconfig
962f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
9637ebf7443Swdenk
9643bbc899fSwdenkQS850_config:	unconfig
965f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9663bbc899fSwdenk
9673bbc899fSwdenkQS823_config:	unconfig
968f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9693bbc899fSwdenk
9703bbc899fSwdenkQS860T_config:	unconfig
971f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
9723bbc899fSwdenk
973da93ed81Swdenkquantum_config:	unconfig
974f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
975da93ed81Swdenk
9767ebf7443SwdenkR360MPI_config:	unconfig
977f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
9787ebf7443Swdenk
979682011ffSwdenkRBC823_config:	unconfig
980f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
981682011ffSwdenk
9827ebf7443SwdenkRPXClassic_config:	unconfig
983f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
9847ebf7443Swdenk
9857ebf7443SwdenkRPXlite_config:		unconfig
986f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
9877ebf7443Swdenk
988e63c8ee3SwdenkRPXlite_DW_64_config		\
989e63c8ee3SwdenkRPXlite_DW_LCD_config		\
990e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
991e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
992e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
993e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
994e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
995e63c8ee3SwdenkRPXlite_DW_config:	unconfig
996f9328639SMarian Balakowicz	@mkdir -p $(obj)include
997f9328639SMarian Balakowicz	@ >$(obj)include/config.h
998e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
999f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1000e63c8ee3Swdenk		  echo "... with 64MHz system clock ..."; \
1001e63c8ee3Swdenk		}
1002e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1003f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1004f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1005e63c8ee3Swdenk		  echo "... with LCD display ..."; \
1006e63c8ee3Swdenk		}
1007e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
1008f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1009e63c8ee3Swdenk		  echo "... with ENV in NVRAM ..."; \
1010e63c8ee3Swdenk		}
1011f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1012e63c8ee3Swdenk
101373a8b27cSwdenkrmu_config:	unconfig
1014f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
101573a8b27cSwdenk
10167ebf7443SwdenkRRvision_config:	unconfig
1017f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10187ebf7443Swdenk
10197ebf7443SwdenkRRvision_LCD_config:	unconfig
1020f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1021f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1022f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1023f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10247ebf7443Swdenk
10257ebf7443SwdenkSM850_config	:	unconfig
1026f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
10277ebf7443Swdenk
1028b02d0177SMarkus Klotzbuecherspc1920_config:
1029f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1030b02d0177SMarkus Klotzbuecher
10317ebf7443SwdenkSPD823TS_config:	unconfig
1032f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
10337ebf7443Swdenk
10346bdf4306SWolfgang Denkstxxtc_config:	unconfig
1035f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
10366bdf4306SWolfgang Denk
1037dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1038f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1039dc7c9a1aSwdenk
10407ebf7443SwdenkSXNI855T_config:	unconfig
1041f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
10427ebf7443Swdenk
1043db2f721fSwdenk# EMK MPC8xx based modules
1044db2f721fSwdenkTOP860_config:		unconfig
1045f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1046db2f721fSwdenk
10477ebf7443Swdenk# Play some tricks for configuration selection
1048e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1049e9132ea9Swdenk# and only 823 boards may have LCD support
1050e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
10517ebf7443Swdenk
10527ebf7443SwdenkFPS850L_config		\
1053384ae025SwdenkFPS860L_config		\
1054f12e568cSwdenkNSCU_config		\
10557ebf7443SwdenkTQM823L_config		\
10567ebf7443SwdenkTQM823L_LCD_config	\
10577ebf7443SwdenkTQM850L_config		\
10587ebf7443SwdenkTQM855L_config		\
10597ebf7443SwdenkTQM860L_config		\
1060d126bfbdSwdenkTQM862L_config		\
1061ae3af05eSwdenkTQM823M_config		\
1062ae3af05eSwdenkTQM850M_config		\
1063f12e568cSwdenkTQM855M_config		\
1064f12e568cSwdenkTQM860M_config		\
1065f12e568cSwdenkTQM862M_config		\
10668cba090cSWolfgang DenkTQM866M_config		\
1067090eb735SMarkus KlotzbuecherTQM885D_config		\
1068efc6f447SGuennadi LiakhovetskiTK885D_config		\
10698cba090cSWolfgang Denkvirtlab2_config:	unconfig
1070f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1071f9328639SMarian Balakowicz	@ >$(obj)include/config.h
10727ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1073f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1074f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
10757ebf7443Swdenk		  echo "... with LCD display" ; \
10767ebf7443Swdenk		}
1077f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
10787ebf7443Swdenk
10797ebf7443SwdenkTTTech_config:	unconfig
1080f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1081f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1082f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1083f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
10847ebf7443Swdenk
1085ec0aee7bSwdenkuc100_config	:	unconfig
1086f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1087f7d1572bSwdenk
1088608c9146Swdenkv37_config:	unconfig
1089f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1090f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1091f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1092f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1093608c9146Swdenk
109491e940d9Sdzuwtk_config:	unconfig
1095f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1096f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1097f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1098f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
109991e940d9Sdzu
11007ebf7443Swdenk#########################################################################
11017ebf7443Swdenk## PPC4xx Systems
11027ebf7443Swdenk#########################################################################
1103e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11047ebf7443Swdenk
110516c0cc1cSStefan Roeseacadia_config:	unconfig
110616c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
110716c0cc1cSStefan Roese
1108c440bfe6SStefan Roeseacadia_nand_config:	unconfig
110963e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
111063e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1111c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1112c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1113c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1114c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1115c440bfe6SStefan Roese
11167ebf7443SwdenkADCIOP_config:	unconfig
1117f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11187ebf7443Swdenk
1119899620c2SStefan Roesealpr_config:	unconfig
112035d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1121899620c2SStefan Roese
11227521af1cSWolfgang DenkAP1000_config:unconfig
1123f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11247521af1cSWolfgang Denk
1125c419d1d6SstroeseAPC405_config:	unconfig
1126f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1127c419d1d6Sstroese
11287ebf7443SwdenkAR405_config:	unconfig
1129f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
11307ebf7443Swdenk
1131549826eaSstroeseASH405_config:	unconfig
1132f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1133549826eaSstroese
11348a316c9bSStefan Roesebamboo_config:	unconfig
1135f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
11368a316c9bSStefan Roese
1137cf959c7dSStefan Roesebamboo_nand_config:	unconfig
113863e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
113963e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1140cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1141f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1142cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1143cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1144cf959c7dSStefan Roese
11458a316c9bSStefan Roesebubinga_config:	unconfig
1146f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1147549826eaSstroese
11487ebf7443SwdenkCANBT_config:	unconfig
1149f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
11507ebf7443Swdenk
11511d6f9720SwdenkCATcenter_config	\
11521d6f9720SwdenkCATcenter_25_config	\
11531d6f9720SwdenkCATcenter_33_config:	unconfig
1154f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1155f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1156f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
11571d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1158f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
11591d6f9720Swdenk		  echo "SysClk = 25MHz" ; \
11601d6f9720Swdenk		}
11611d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1162f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
11631d6f9720Swdenk		  echo "SysClk = 33MHz" ; \
11641d6f9720Swdenk		}
1165f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
116610767ccbSwdenk
11677644f16fSStefan RoeseCPCI2DP_config:	unconfig
1168f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
11697644f16fSStefan Roese
11707ebf7443SwdenkCPCI405_config	\
1171549826eaSstroeseCPCI4052_config	\
1172c419d1d6SstroeseCPCI405DT_config	\
1173549826eaSstroeseCPCI405AB_config:	unconfig
1174f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1175f9328639SMarian Balakowicz	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
11767ebf7443Swdenk
11777ebf7443SwdenkCPCIISER4_config:	unconfig
1178f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
11797ebf7443Swdenk
11807ebf7443SwdenkCRAYL1_config:	unconfig
1181f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
11827ebf7443Swdenk
1183cd0a9de6Swdenkcsb272_config:	unconfig
1184f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1185cd0a9de6Swdenk
1186aa245090Swdenkcsb472_config:	unconfig
1187f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1188aa245090Swdenk
11897ebf7443SwdenkDASA_SIM_config: unconfig
1190f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
11917ebf7443Swdenk
119272cd5aa7SstroeseDP405_config:	unconfig
1193f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
119472cd5aa7Sstroese
11957ebf7443SwdenkDU405_config:	unconfig
1196f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
11977ebf7443Swdenk
11988a316c9bSStefan Roeseebony_config:	unconfig
1199f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
12007ebf7443Swdenk
12017ebf7443SwdenkERIC_config:	unconfig
1202f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
12037ebf7443Swdenk
1204d1cbe85bSwdenkEXBITGEN_config:	unconfig
1205f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1206d1cbe85bSwdenk
1207c419d1d6SstroeseG2000_config:	unconfig
1208f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1209c419d1d6Sstroese
1210ac982ea5SNiklaus Gigerhcu4_config:	unconfig
121135d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1212ac982ea5SNiklaus Giger
1213ac982ea5SNiklaus Gigerhcu5_config:	unconfig
121435d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1215ac982ea5SNiklaus Giger
1216c419d1d6SstroeseHH405_config:	unconfig
1217f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1218c419d1d6Sstroese
121972cd5aa7SstroeseHUB405_config:	unconfig
1220f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
122172cd5aa7Sstroese
1222db01a2eaSwdenkJSE_config:	unconfig
1223f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1224db01a2eaSwdenk
1225b79316f2SStefan RoeseKAREF_config: unconfig
1226f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1227b79316f2SStefan Roese
12284745acaaSStefan Roesekatmai_config:	unconfig
12294745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
12304745acaaSStefan Roese
1231353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1232353f2688SStefan Roesekilauea_config \
1233353f2688SStefan Roesehaleakala_config: unconfig
1234353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1235566806caSStefan Roese
12363d6cb3b2SStefan Roesekilauea_nand_config \
12373d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
12383d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
12393d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
12403d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
12413d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
12423d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
12433d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
12443d6cb3b2SStefan Roese
1245c591dffeSLarry Johnsonkorat_config:	unconfig
1246c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1247c591dffeSLarry Johnson
12486e7fb6eaSStefan Roeseluan_config:	unconfig
1249f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
12506e7fb6eaSStefan Roese
1251b765ffb7SStefan Roeselwmon5_config:	unconfig
1252b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1253b765ffb7SStefan Roese
1254211ea91aSStefan Roesemakalu_config:	unconfig
1255211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1256211ea91aSStefan Roese
1257b79316f2SStefan RoeseMETROBOX_config: unconfig
1258f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1259b79316f2SStefan Roese
12607ebf7443SwdenkMIP405_config:	unconfig
1261f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
12627ebf7443Swdenk
1263f3e0de60SwdenkMIP405T_config:	unconfig
1264f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1265f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1266f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
1267f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1268f3e0de60Swdenk
12697ebf7443SwdenkML2_config:	unconfig
1270f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
12717ebf7443Swdenk
1272028ab6b5Swdenkml300_config:	unconfig
1273f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1274028ab6b5Swdenk
12758a316c9bSStefan Roeseocotea_config:	unconfig
1276f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
12770e6d798cSwdenk
12787ebf7443SwdenkOCRTC_config		\
12797ebf7443SwdenkORSG_config:	unconfig
1280f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
12817ebf7443Swdenk
12825568e613SStefan Roesep3p440_config:	unconfig
1283f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
12845568e613SStefan Roese
12857ebf7443SwdenkPCI405_config:	unconfig
1286f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
12877ebf7443Swdenk
1288a4c8d138SStefan Roesepcs440ep_config:	unconfig
1289f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1290a4c8d138SStefan Roese
12917ebf7443SwdenkPIP405_config:	unconfig
1292f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
12937ebf7443Swdenk
129472cd5aa7SstroesePLU405_config:	unconfig
1295f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
129672cd5aa7Sstroese
1297549826eaSstroesePMC405_config:	unconfig
1298f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1299549826eaSstroese
13008ba132caSMatthias FuchsPMC440_config:	unconfig
13018ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
13028ba132caSMatthias Fuchs
1303281e00a3SwdenkPPChameleonEVB_config		\
1304e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1305e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1306e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1307e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1308e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1309e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1310f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1311f9328639SMarian Balakowicz	@ >$(obj)include/config.h
13121d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1313f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1314fbe4b5cbSwdenk		  echo "... BASIC model" ; \
1315fbe4b5cbSwdenk		}
13161d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1317f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1318fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
1319fbe4b5cbSwdenk		}
13201d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1321f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1322fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
1323fbe4b5cbSwdenk		}
1324e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1325f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1326e55ca7e2Swdenk		  echo "SysClk = 25MHz" ; \
1327e55ca7e2Swdenk		}
1328e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1329f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1330e55ca7e2Swdenk		  echo "SysClk = 33MHz" ; \
1331e55ca7e2Swdenk		}
1332f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
133312f34241Swdenk
1334430f1b0fSStefan Roesesbc405_config:	unconfig
1335430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1336430f1b0fSStefan Roese
1337430f1b0fSStefan Roesesequoia_config \
1338854bc8daSStefan Roeserainier_config: unconfig
13398318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1340430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1341430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
13422aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1343854bc8daSStefan Roese
1344430f1b0fSStefan Roesesequoia_nand_config \
1345854bc8daSStefan Roeserainier_nand_config: unconfig
134663e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
134763e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
13488318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1349430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1350430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1351430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
13528318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
13538318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1354652a10c0Swdenk
13556d3e0107SWolfgang Denksc3_config:unconfig
135635d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1357ca43ba18SHeiko Schocher
1358d4024bb7SJohn Otkentaihu_config:	unconfig
1359d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1360d4024bb7SJohn Otken
13615fb692caSStefan Roesetaishan_config:	unconfig
13625fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
13635fb692caSStefan Roese
136472cd5aa7SstroeseVOH405_config:	unconfig
1365f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
136672cd5aa7Sstroese
1367c419d1d6SstroeseVOM405_config:	unconfig
1368f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1369c419d1d6Sstroese
1370feaedfcfSStefan RoeseCMS700_config:	unconfig
1371f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1372feaedfcfSStefan Roese
13737ebf7443SwdenkW7OLMC_config	\
13747ebf7443SwdenkW7OLMG_config: unconfig
1375f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
13767ebf7443Swdenk
1377430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1378430f1b0fSStefan Roesewalnut_config \
1379430f1b0fSStefan Roesesycamore_config: unconfig
1380430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
13817ebf7443Swdenk
1382c419d1d6SstroeseWUH405_config:	unconfig
1383f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1384c419d1d6Sstroese
1385ba56f625SwdenkXPEDITE1K_config:	unconfig
1386f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1387ba56f625Swdenk
1388430f1b0fSStefan Roeseyosemite_config \
13898a316c9bSStefan Roeseyellowstone_config: unconfig
1390700200c6SStefan Roese	@mkdir -p $(obj)include
1391430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1392430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
13932aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
13948a316c9bSStefan Roese
13956c5879f3SMarian Balakowiczyucca_config:	unconfig
1396f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
13976c5879f3SMarian Balakowicz
1398779e9751SStefan Roesezeus_config:	unconfig
1399779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1400779e9751SStefan Roese
14017ebf7443Swdenk#########################################################################
1402983fda83Swdenk## MPC8220 Systems
1403983fda83Swdenk#########################################################################
1404dc17fb6dSWolfgang Denk
1405dc17fb6dSWolfgang DenkAlaska8220_config	\
1406dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1407f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1408983fda83Swdenk
140912b43d51Swdenksorcery_config:		unconfig
1410f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
141112b43d51Swdenk
1412983fda83Swdenk#########################################################################
14137ebf7443Swdenk## MPC824x Systems
14147ebf7443Swdenk#########################################################################
1415efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
14163bac3513Swdenk
14170332990bSwdenkA3000_config: unconfig
1418f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
14190332990bSwdenk
14208e6f1a8eSWolfgang Denkbarco_config: unconfig
1421f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
14228e6f1a8eSWolfgang Denk
14237ebf7443SwdenkBMW_config: unconfig
1424f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
14257ebf7443Swdenk
14263bac3513SwdenkCPC45_config	\
14273bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1428f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1429f9328639SMarian Balakowicz	@cd $(obj)include ;				\
14303bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
14313bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
14323bac3513Swdenk		echo "... booting from 8-bit flash" ; \
14333bac3513Swdenk	else \
14343bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
14353bac3513Swdenk		echo "... booting from 64-bit flash" ; \
14363bac3513Swdenk	fi; \
14373bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
14383bac3513Swdenk
14397ebf7443SwdenkCU824_config: unconfig
1440f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
14417ebf7443Swdenk
14427abf0c58Swdenkdebris_config: unconfig
1443f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
14447abf0c58Swdenk
144580885a9dSwdenkeXalion_config: unconfig
1446f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
144780885a9dSwdenk
1448756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1449f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1450756f586aSwdenk
145153dd6ce4SWolfgang Denkkvme080_config: unconfig
1452f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
145353dd6ce4SWolfgang Denk
14547ebf7443SwdenkMOUSSE_config: unconfig
1455f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
14567ebf7443Swdenk
14577ebf7443SwdenkMUSENKI_config: unconfig
1458f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
14597ebf7443Swdenk
1460b4676a25SwdenkMVBLUE_config:	unconfig
1461f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1462b4676a25Swdenk
14637ebf7443SwdenkOXC_config: unconfig
1464f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
14657ebf7443Swdenk
14667ebf7443SwdenkPN62_config: unconfig
1467f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
14687ebf7443Swdenk
14697ebf7443SwdenkSandpoint8240_config: unconfig
1470f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
14717ebf7443Swdenk
14727ebf7443SwdenkSandpoint8245_config: unconfig
1473f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
14747ebf7443Swdenk
1475466b7410Swdenksbc8240_config: unconfig
1476f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1477466b7410Swdenk
1478d1cbe85bSwdenkSL8245_config: unconfig
1479f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1480d1cbe85bSwdenk
14817ebf7443Swdenkutx8245_config: unconfig
1482f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
14837ebf7443Swdenk
14847ebf7443Swdenk#########################################################################
14857ebf7443Swdenk## MPC8260 Systems
14867ebf7443Swdenk#########################################################################
14877ebf7443Swdenk
148854387ac9Swdenkatc_config:	unconfig
1489f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
149054387ac9Swdenk
14917ebf7443Swdenkcogent_mpc8260_config:	unconfig
1492f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
14937ebf7443Swdenk
14947ebf7443SwdenkCPU86_config	\
14957ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1496f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1497f9328639SMarian Balakowicz	@cd $(obj)include ;				\
14987ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
14997ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
15007ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
15017ebf7443Swdenk	else \
15027ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
15037ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
15047ebf7443Swdenk	fi; \
15057ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
15067ebf7443Swdenk
1507384cc687SwdenkCPU87_config	\
1508384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1509f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1510f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1511384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1512384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1513384cc687Swdenk		echo "... booting from 8-bit flash" ; \
1514384cc687Swdenk	else \
1515384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1516384cc687Swdenk		echo "... booting from 64-bit flash" ; \
1517384cc687Swdenk	fi; \
1518384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1519384cc687Swdenk
1520f901a83bSWolfgang Denkep8248_config	\
1521f901a83bSWolfgang Denkep8248E_config	:	unconfig
1522f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1523f901a83bSWolfgang Denk
15247ebf7443Swdenkep8260_config:	unconfig
1525f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
15267ebf7443Swdenk
15278d4ac794SWolfgang Denkep82xxm_config:	unconfig
152890b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
15298d4ac794SWolfgang Denk
15307ebf7443Swdenkgw8260_config:	unconfig
1531f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
15327ebf7443Swdenk
15337ebf7443Swdenkhymod_config:	unconfig
1534f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
15357ebf7443Swdenk
15369dd41a7bSwdenkIDS8247_config:	unconfig
1537f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
15389dd41a7bSwdenk
15397ebf7443SwdenkIPHASE4539_config:	unconfig
1540f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
15417ebf7443Swdenk
1542c3c7f861SwdenkISPAN_config		\
1543c3c7f861SwdenkISPAN_REVB_config:	unconfig
1544f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1545c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1546f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1547c3c7f861Swdenk	fi
1548f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1549c3c7f861Swdenk
1550*ac9db066SHeiko Schochermgcoge_config	:	unconfig
1551*ac9db066SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1552*ac9db066SHeiko Schocher
155304a85b3bSwdenkMPC8260ADS_config	\
1554901787d6SwdenkMPC8260ADS_lowboot_config	\
155504a85b3bSwdenkMPC8260ADS_33MHz_config	\
1556901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
155704a85b3bSwdenkMPC8260ADS_40MHz_config	\
1558901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
155904a85b3bSwdenkMPC8272ADS_config	\
1560901787d6SwdenkMPC8272ADS_lowboot_config	\
156104a85b3bSwdenkPQ2FADS_config		\
1562901787d6SwdenkPQ2FADS_lowboot_config		\
156304a85b3bSwdenkPQ2FADS-VR_config	\
1564901787d6SwdenkPQ2FADS-VR_lowboot_config	\
156504a85b3bSwdenkPQ2FADS-ZU_config	\
1566901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
156704a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1568901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
156904a85b3bSwdenk	:		unconfig
1570f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1571f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mpc8260ads
157204a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1573f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1574f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
157504a85b3bSwdenk	$(if $(findstring MHz,$@), \
1576f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
157704a85b3bSwdenk	$(if $(findstring VR,$@), \
1578f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1579901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1580f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1581901787d6Swdenk		  echo "... with lowboot configuration" ; \
1582901787d6Swdenk		}
1583f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
15847ebf7443Swdenk
1585db2f721fSwdenkMPC8266ADS_config:	unconfig
1586f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1587db2f721fSwdenk
1588efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
158910f67017SwdenkPM825_config	\
1590efa329cbSwdenkPM825_ROMBOOT_config	\
1591efa329cbSwdenkPM825_BIGFLASH_config	\
1592efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
15937ebf7443SwdenkPM826_config	\
1594efa329cbSwdenkPM826_ROMBOOT_config	\
1595efa329cbSwdenkPM826_BIGFLASH_config	\
1596efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1597f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1598f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1599efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1600f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
16017ebf7443Swdenk	else \
1602f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1603efa329cbSwdenk	fi
1604efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1605efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1606f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1607f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1608efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1609efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1610f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
16117ebf7443Swdenk		fi; \
1612efa329cbSwdenk	else \
1613efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
1614efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1615efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1616f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1617f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1618efa329cbSwdenk		else \
1619f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1620efa329cbSwdenk		fi; \
1621efa329cbSwdenk	fi
1622f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1623efa329cbSwdenk
1624efa329cbSwdenkPM828_config	\
1625efa329cbSwdenkPM828_PCI_config	\
1626efa329cbSwdenkPM828_ROMBOOT_config	\
1627efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1628f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1629f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
163017076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1631f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1632efa329cbSwdenk		echo "... with PCI enabled" ; \
1633efa329cbSwdenk	else \
1634f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1635efa329cbSwdenk	fi
1636efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1637efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1638f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1639f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1640efa329cbSwdenk	fi
1641f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
16427ebf7443Swdenk
16437ebf7443Swdenkppmc8260_config:	unconfig
1644f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
16457ebf7443Swdenk
16468b0bfc68SwdenkRattler8248_config	\
16478b0bfc68SwdenkRattler_config:		unconfig
1648f9328639SMarian Balakowicz	@mkdir -p $(obj)include
16498b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1650f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1651f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
16528b0bfc68Swdenk
16537ebf7443SwdenkRPXsuper_config:	unconfig
1654f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
16557ebf7443Swdenk
16567ebf7443Swdenkrsdproto_config:	unconfig
1657f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
16587ebf7443Swdenk
16597ebf7443Swdenksacsng_config:	unconfig
1660f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
16617ebf7443Swdenk
16627ebf7443Swdenksbc8260_config:	unconfig
1663f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
16647ebf7443Swdenk
16657ebf7443SwdenkSCM_config:		unconfig
1666f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
16677ebf7443Swdenk
166827b207fdSwdenkTQM8255_AA_config \
166927b207fdSwdenkTQM8260_AA_config \
167027b207fdSwdenkTQM8260_AB_config \
167127b207fdSwdenkTQM8260_AC_config \
167227b207fdSwdenkTQM8260_AD_config \
167327b207fdSwdenkTQM8260_AE_config \
167427b207fdSwdenkTQM8260_AF_config \
167527b207fdSwdenkTQM8260_AG_config \
167627b207fdSwdenkTQM8260_AH_config \
16771f62bc2dSWolfgang DenkTQM8260_AI_config \
167827b207fdSwdenkTQM8265_AA_config:  unconfig
1679f9328639SMarian Balakowicz	@mkdir -p $(obj)include
168027b207fdSwdenk	@case "$@" in \
168127b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
168227b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
168327b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
168427b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
168527b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
168627b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
168727b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
168827b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
168927b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
16901f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
169127b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
169227b207fdSwdenk	esac; \
1693f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
169427b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1695f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
169627b207fdSwdenk	fi; \
1697f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
169827b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
16991aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1700f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
170127b207fdSwdenk		echo "... with L2 Cache support" ; \
17027ebf7443Swdenk	else \
1703f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
17047ebf7443Swdenk		echo "... without L2 Cache support" ; \
170527b207fdSwdenk	fi; \
17061aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1707f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
170827b207fdSwdenk		echo "... with 60x Bus Mode" ; \
170927b207fdSwdenk	else \
1710f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
171127b207fdSwdenk		echo "... without 60x Bus Mode" ; \
17127ebf7443Swdenk	fi
1713f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
17147ebf7443Swdenk
1715fa230445SHeiko SchocherTQM8272_config: unconfig
1716fa230445SHeiko Schocher	@$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1717fa230445SHeiko Schocher
1718ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1719ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1720f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1721f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1722f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1723ba91e26aSwdenk
172454387ac9SwdenkZPC1900_config: unconfig
1725f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
17267aa78614Swdenk
17274e5ca3ebSwdenk#########################################################################
17284e5ca3ebSwdenk## Coldfire
17294e5ca3ebSwdenk#########################################################################
17304e5ca3ebSwdenk
17314a442d31STsiChungLiewM5235EVB_config \
17324a442d31STsiChungLiewM5235EVB_Flash16_config \
17334a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
17344a442d31STsiChungLiew	@case "$@" in \
17354a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
17364a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
17374a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
17384a442d31STsiChungLiew	esac; \
17394a442d31STsiChungLiew	>include/config.h ; \
17404a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
17414a442d31STsiChungLiew		echo "#define NORFLASH_PS32BIT	1" >> include/config.h ; \
17424a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
17434a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
17444a442d31STsiChungLiew	else \
17454a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
17464a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
17474a442d31STsiChungLiew	fi
17484a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
17494a442d31STsiChungLiew
1750a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1751a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1752a605aacdSTsiChungLiew
1753a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1754a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1755a1436a84STsiChungLiew
17567481266eSWolfgang Denkcobra5272_config :		unconfig
1757f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
17587481266eSWolfgang Denk
17594176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1760f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1761f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1762f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1763f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1764f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
17654176c799SWolfgang Denk
17664176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1767f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1768f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1769f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1770f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1771f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
17724176c799SWolfgang Denk
1773daa6e418SBartlomiej Siekaidmr_config :			unconfig
1774daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1775daa6e418SBartlomiej Sieka
17764176c799SWolfgang DenkM5271EVB_config :		unconfig
1777f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
17784176c799SWolfgang Denk
17794e5ca3ebSwdenkM5272C3_config :		unconfig
1780f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
17814e5ca3ebSwdenk
17824e5ca3ebSwdenkM5282EVB_config :		unconfig
1783f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
17844e5ca3ebSwdenk
1785c419d1d6SstroeseTASREG_config :		unconfig
1786f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1787c419d1d6Sstroese
17883a108ed8SZachary P. Landaur5200_config :		unconfig
1789f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
17903a108ed8SZachary P. Landau
17918e585f02STsiChung LiewM5329AFEE_config \
17928e585f02STsiChung LiewM5329BFEE_config :	unconfig
17938e585f02STsiChung Liew	@case "$@" in \
17948e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
17958e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
17968e585f02STsiChung Liew	esac; \
17978e585f02STsiChung Liew	>include/config.h ; \
17988e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
1799ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
18008e585f02STsiChung Liew	fi
18018e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
18028e585f02STsiChung Liew
18038ae158cdSTsiChungLiewM54455EVB_config \
18048ae158cdSTsiChungLiewM54455EVB_atmel_config \
18058ae158cdSTsiChungLiewM54455EVB_intel_config \
18068ae158cdSTsiChungLiewM54455EVB_a33_config \
18078ae158cdSTsiChungLiewM54455EVB_a66_config \
18088ae158cdSTsiChungLiewM54455EVB_i33_config \
18098ae158cdSTsiChungLiewM54455EVB_i66_config :	unconfig
18108ae158cdSTsiChungLiew	@case "$@" in \
18118ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
18128ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
18138ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
18148ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
18158ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
18168ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
18178ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
18188ae158cdSTsiChungLiew	esac; \
18198ae158cdSTsiChungLiew	>include/config.h ; \
18201aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
18214a442d31STsiChungLiew		echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1822e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1823e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
18248ae158cdSTsiChungLiew		echo "... with INTEL boot..." ; \
18258ae158cdSTsiChungLiew	else \
18264a442d31STsiChungLiew		echo "#define CFG_ATMEL_BOOT"	>> $(obj)include/config.h ; \
1827e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1828e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
18298ae158cdSTsiChungLiew		echo "... with ATMEL boot..." ; \
18308ae158cdSTsiChungLiew	fi; \
18314a442d31STsiChungLiew	echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
18328ae158cdSTsiChungLiew	echo "... with $${FREQ}Hz input clock"
18338ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
18348ae158cdSTsiChungLiew
18357ebf7443Swdenk#########################################################################
1836f046ccd1SEran Liberty## MPC83xx Systems
1837f046ccd1SEran Liberty#########################################################################
1838f046ccd1SEran Liberty
18395c5d3242SKim PhillipsMPC8313ERDB_33_config \
18405c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig
1841cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1842cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
18435c5d3242SKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
18445c5d3242SKim Phillips		echo -n "...33M ..." ; \
1845cdd917a4SWolfgang Denk		echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
18465c5d3242SKim Phillips	fi ; \
18475c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
18485c5d3242SKim Phillips		echo -n "...66M..." ; \
1849cdd917a4SWolfgang Denk		echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
18505c5d3242SKim Phillips	fi ;
1851e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
18525c5d3242SKim Phillips
18531c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
18541c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
18551c274c4eSKim Phillips
18564decd84eSKim PhillipsMPC832XEMDS_config \
18574decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
18584decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
1859281df457STony LiMPC832XEMDS_SLAVE_config \
1860281df457STony LiMPC832XEMDS_ATM_config:	unconfig
1861cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1862cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
18634decd84eSKim Phillips	if [ "$(findstring _HOST_,$@)" ] ; then \
18644decd84eSKim Phillips		echo -n "... PCI HOST " ; \
1865cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
18664decd84eSKim Phillips	fi ; \
18674decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
18684decd84eSKim Phillips		echo "...PCI SLAVE 66M"  ; \
1869cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1870cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
18714decd84eSKim Phillips	fi ; \
18724decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
18734decd84eSKim Phillips		echo -n "...33M ..." ; \
1874cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
1875281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
18764decd84eSKim Phillips	fi ; \
18774decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
18784decd84eSKim Phillips		echo -n "...66M..." ; \
1879cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
1880281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1881281df457STony Li	fi ; \
1882281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
1883281df457STony Li		echo -n "...ATM..." ; \
1884281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1885281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
18864decd84eSKim Phillips	fi ;
1887e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
1888e6f2e902SMarian Balakowicz
1889991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
1890e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
1891991425feSMarian Balakowicz
18927a78f148STimur TabiMPC8349ITX_config \
18937a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
18947a78f148STimur TabiMPC8349ITXGP_config:	unconfig
18957a78f148STimur Tabi	@mkdir -p $(obj)include
1896e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
18977a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
18987a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
1899e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
19007a78f148STimur Tabi	fi
19017a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
1902e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
19037a78f148STimur Tabi	fi
1904e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
19054decd84eSKim Phillips
19065f820439SDave LiuMPC8360EMDS_config \
19075f820439SDave LiuMPC8360EMDS_HOST_33_config \
19085f820439SDave LiuMPC8360EMDS_HOST_66_config \
1909281df457STony LiMPC8360EMDS_SLAVE_config \
1910281df457STony LiMPC8360EMDS_ATM_config: unconfig
1911cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1912cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
19135f820439SDave Liu	if [ "$(findstring _HOST_,$@)" ] ; then \
19145f820439SDave Liu		echo -n "... PCI HOST " ; \
1915cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
19165f820439SDave Liu	fi ; \
19175f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
19185f820439SDave Liu		echo "...PCI SLAVE 66M"  ; \
1919cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1920cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
19215f820439SDave Liu	fi ; \
19225f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
19235f820439SDave Liu		echo -n "...33M ..." ; \
1924cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
1925281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
19265f820439SDave Liu	fi ; \
19275f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
19285f820439SDave Liu		echo -n "...66M..." ; \
1929cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
1930281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1931281df457STony Li	fi ; \
1932281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
1933281df457STony Li		echo -n "...ATM..." ; \
1934281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1935281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
19365f820439SDave Liu	fi ;
1937e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
19385f820439SDave Liu
1939fab6f556SAnton VorontsovMPC8360ERDK_33_config \
1940fab6f556SAnton VorontsovMPC8360ERDK_66_config \
1941fab6f556SAnton VorontsovMPC8360ERDK_config:
1942fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
1943fab6f556SAnton Vorontsov	@echo "" >$(obj)include/config.h ; \
1944fab6f556SAnton Vorontsov	if [ "$(findstring _33_,$@)" ] ; then \
1945fab6f556SAnton Vorontsov		echo -n "... CLKIN 33MHz " ; \
1946fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
1947fab6f556SAnton Vorontsov	fi ;
1948fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
1949fab6f556SAnton Vorontsov
195019580e66SDave LiuMPC837XEMDS_config \
195119580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
195219580e66SDave Liu	@mkdir -p $(obj)include
195319580e66SDave Liu	@echo "" >$(obj)include/config.h ; \
195419580e66SDave Liu	if [ "$(findstring _HOST_,$@)" ] ; then \
195519580e66SDave Liu		echo -n "... PCI HOST " ; \
195619580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
195719580e66SDave Liu	fi ;
195819580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
195919580e66SDave Liu
196091e25769SPaul Gortmakersbc8349_config:		unconfig
196191e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
196291e25769SPaul Gortmaker
19634decd84eSKim PhillipsTQM834x_config:	unconfig
19644decd84eSKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
19654decd84eSKim Phillips
19662ad6b513STimur Tabi
1967f046ccd1SEran Liberty#########################################################################
196842d1f039Swdenk## MPC85xx Systems
196942d1f039Swdenk#########################################################################
197042d1f039Swdenk
19717bd6104bSrobert lazarskiATUM8548_config:	unconfig
19727bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
19737bd6104bSrobert lazarski
197442d1f039SwdenkMPC8540ADS_config:	unconfig
1975c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
197642d1f039Swdenk
1977b0e32949SLunsheng WangMPC8540EVAL_config \
1978b0e32949SLunsheng WangMPC8540EVAL_33_config \
1979b0e32949SLunsheng WangMPC8540EVAL_66_config \
1980b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
1981b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:      unconfig
1982f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1983f9328639SMarian Balakowicz	@echo "" >$(obj)include/config.h ; \
1984b0e32949SLunsheng Wang	if [ "$(findstring _33_,$@)" ] ; then \
1985cdd917a4SWolfgang Denk		echo "... 33 MHz PCI" ; \
1986b0e32949SLunsheng Wang	else \
1987f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1988cdd917a4SWolfgang Denk		echo "... 66 MHz PCI" ; \
1989b0e32949SLunsheng Wang	fi ; \
1990b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
1991f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1992b0e32949SLunsheng Wang		echo " slave" ; \
1993b0e32949SLunsheng Wang	else \
1994b0e32949SLunsheng Wang		echo " host" ; \
1995b0e32949SLunsheng Wang	fi
1996f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1997b0e32949SLunsheng Wang
199842d1f039SwdenkMPC8560ADS_config:	unconfig
1999870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
200042d1f039Swdenk
20017f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
200203f5c550SwdenkMPC8541CDS_config:	unconfig
20037f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
20047f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
20057f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
20067f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
20077f3f2bd2SRandy Vinson		echo "... legacy" ; \
20087f3f2bd2SRandy Vinson	fi
2009415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
201003f5c550Swdenk
201181f481caSAndy FlemingMPC8544DS_config:	unconfig
201281f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
201381f481caSAndy Fleming
20147f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2015d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
20167f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
20177f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
20187f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
20197f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
20207f3f2bd2SRandy Vinson		echo "... legacy" ; \
20217f3f2bd2SRandy Vinson	fi
2022415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2023d9b94f28SJon Loeliger
20247f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
202503f5c550SwdenkMPC8555CDS_config:	unconfig
20267f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
20277f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
20287f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
20297f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
20307f3f2bd2SRandy Vinson		echo "... legacy" ; \
20317f3f2bd2SRandy Vinson	fi
2032415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
20337abf0c58Swdenk
203467431059SAndy FlemingMPC8568MDS_config:	unconfig
2035acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
203667431059SAndy Fleming
2037384cc687SwdenkPM854_config:	unconfig
2038f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2039384cc687Swdenk
2040b20d0032SWolfgang DenkPM856_config:	unconfig
2041f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2042b20d0032SWolfgang Denk
2043c15f3120Swdenksbc8540_config \
2044c15f3120Swdenksbc8540_33_config \
2045c15f3120Swdenksbc8540_66_config:	unconfig
2046f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2047c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2048f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2049c15f3120Swdenk		echo "... 66 MHz PCI" ; \
2050c15f3120Swdenk	else \
2051f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2052c15f3120Swdenk		echo "... 33 MHz PCI" ; \
2053c15f3120Swdenk	fi
2054f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2055c15f3120Swdenk
205611c45ebdSJoe Hammansbc8548_config:		unconfig
205711c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
205811c45ebdSJoe Hamman
2059466b7410Swdenksbc8560_config \
2060466b7410Swdenksbc8560_33_config \
2061466b7410Swdenksbc8560_66_config:      unconfig
2062f9328639SMarian Balakowicz	@mkdir -p $(obj)include
20638b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2064f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
20658b07a110Swdenk		echo "... 66 MHz PCI" ; \
20668b07a110Swdenk	else \
2067f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
20688b07a110Swdenk		echo "... 33 MHz PCI" ; \
20698b07a110Swdenk	fi
2070f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
20718b07a110Swdenk
207203f5c550Swdenkstxgp3_config:		unconfig
2073f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
207403f5c550Swdenk
2075ee152983SWolfgang Denkstxssa_config		\
2076ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2077ee152983SWolfgang Denk	@mkdir -p $(obj)include
2078ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2079ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2080ee152983SWolfgang Denk		echo "... with 4 MiB flash memory" ; \
2081ee152983SWolfgang Denk	else \
2082ee152983SWolfgang Denk		>$(obj)include/config.h ; \
2083ee152983SWolfgang Denk	fi
2084ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
208535171dc0SDan Malek
2086d96f41e0SStefan RoeseTQM8540_config		\
2087d96f41e0SStefan RoeseTQM8541_config		\
2088d96f41e0SStefan RoeseTQM8555_config		\
2089f5c5ef4aSwdenkTQM8560_config:		unconfig
2090f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2091a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
2092f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
2093d96f41e0SStefan Roese	echo "... TQM"$${CTYPE}; \
2094f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2095f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2096f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2097f9328639SMarian Balakowicz	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
20988a783a65SGrant Likely	echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2099f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2100f5c5ef4aSwdenk
210142d1f039Swdenk#########################################################################
2102debb7354SJon Loeliger## MPC86xx Systems
2103debb7354SJon Loeliger#########################################################################
2104debb7354SJon Loeliger
21053c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
21063c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
21073c89d754SJon Loeliger
2108debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
21094ce91774SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2110debb7354SJon Loeliger
2111c646bba6SJoe Hammansbc8641d_config:	unconfig
2112c646bba6SJoe Hamman	@./mkconfig $(@:_config=) ppc mpc86xx sbc8641d
2113debb7354SJon Loeliger
2114debb7354SJon Loeliger#########################################################################
21157ebf7443Swdenk## 74xx/7xx Systems
21167ebf7443Swdenk#########################################################################
21177ebf7443Swdenk
2118c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2119f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2120c7de829cSwdenk
212115647dc7SwdenkBAB7xx_config: unconfig
2122f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
212315647dc7Swdenk
2124c419d1d6SstroeseCPCI750_config:	unconfig
2125f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2126c419d1d6Sstroese
21273a473b2aSwdenkDB64360_config:	unconfig
2128f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
21293a473b2aSwdenk
21303a473b2aSwdenkDB64460_config:	unconfig
2131f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
21323a473b2aSwdenk
213315647dc7SwdenkELPPC_config: unconfig
2134f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
213515647dc7Swdenk
21367ebf7443SwdenkEVB64260_config	\
21377ebf7443SwdenkEVB64260_750CX_config:	unconfig
2138f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
21397ebf7443Swdenk
21404c52783bSroy zangmpc7448hpc2_config:  unconfig
2141ee311214Sroy zang	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
21424c52783bSroy zang
214315647dc7SwdenkP3G4_config: unconfig
2144f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
21457ebf7443Swdenk
21461eac2a71SStefan Roesep3m750_config	\
21471eac2a71SStefan Roesep3m7448_config:		unconfig
21481eac2a71SStefan Roese	@mkdir -p $(obj)include
21491eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
21501eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
21511eac2a71SStefan Roese	else \
21521eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
21531eac2a71SStefan Roese	fi
21541eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
21551eac2a71SStefan Roese
21567ebf7443SwdenkPCIPPC2_config \
21577ebf7443SwdenkPCIPPC6_config: unconfig
2158f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
21597ebf7443Swdenk
216015647dc7SwdenkZUMA_config:	unconfig
2161f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
216212f34241Swdenk
2163f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2164f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2165f5e0d039SHeiko Schocher
21667ebf7443Swdenk#========================================================================
21677ebf7443Swdenk# ARM
21687ebf7443Swdenk#========================================================================
21697ebf7443Swdenk#########################################################################
21707ebf7443Swdenk## StrongARM Systems
21717ebf7443Swdenk#########################################################################
21727ebf7443Swdenk
2173ea66bc88Swdenkassabet_config	:	unconfig
2174f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2175ea66bc88Swdenk
21767ebf7443Swdenkdnp1110_config	:	unconfig
2177f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
21787ebf7443Swdenk
2179855a496fSwdenkgcplus_config	:	unconfig
2180f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2181855a496fSwdenk
2182855a496fSwdenklart_config	:	unconfig
2183f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2184855a496fSwdenk
21857ebf7443Swdenkshannon_config	:	unconfig
2186f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
21877ebf7443Swdenk
21887ebf7443Swdenk#########################################################################
21892e5983d2Swdenk## ARM92xT Systems
21907ebf7443Swdenk#########################################################################
21917ebf7443Swdenk
2192b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
219343d9616cSwdenk
21943ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
219563e73c9aSwdenk
2196a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2197a56bd922Swdenk
2198a85f9f21Swdenkat91rm9200dk_config	:	unconfig
2199f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
2200a85f9f21Swdenk
2201a85f9f21Swdenkcmc_pu2_config	:	unconfig
2202f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2203a85f9f21Swdenk
2204645da510SWolfgang Denkcsb637_config	:	unconfig
2205f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2206645da510SWolfgang Denk
22070e4018d2SWolfgang Denkmp2usb_config	:	unconfig
2208f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
22090e4018d2SWolfgang Denk
221087cb6862SWolfgang Denk
221174f4304eSWolfgang Denk########################################################################
221287cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
221387cb6862SWolfgang Denkintegratorap_config	\
221487cb6862SWolfgang Denkap_config		\
221587cb6862SWolfgang Denkap966_config		\
221687cb6862SWolfgang Denkap922_config		\
221787cb6862SWolfgang Denkap922_XA10_config	\
221887cb6862SWolfgang Denkap7_config		\
221987cb6862SWolfgang Denkap720t_config		\
222087cb6862SWolfgang Denkap920t_config		\
222187cb6862SWolfgang Denkap926ejs_config		\
222287cb6862SWolfgang Denkap946es_config: unconfig
222396782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
22243d3befa7Swdenk
222587cb6862SWolfgang Denkintegratorcp_config	\
222687cb6862SWolfgang Denkcp_config		\
222787cb6862SWolfgang Denkcp920t_config		\
222887cb6862SWolfgang Denkcp926ejs_config		\
222987cb6862SWolfgang Denkcp946es_config		\
223087cb6862SWolfgang Denkcp1136_config		\
223187cb6862SWolfgang Denkcp966_config		\
223287cb6862SWolfgang Denkcp922_config		\
223387cb6862SWolfgang Denkcp922_XA10_config	\
223487cb6862SWolfgang Denkcp1026_config: unconfig
223596782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
223625d6712aSwdenk
223799b0d285SWolfgang Denkkb9202_config	:	unconfig
2238f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
223999b0d285SWolfgang Denk
2240f832d8a1Swdenklpd7a400_config \
2241f832d8a1Swdenklpd7a404_config:	unconfig
2242f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
22433d3befa7Swdenk
2244281e00a3Swdenkmx1ads_config	:	unconfig
2245f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2246281e00a3Swdenk
2247281e00a3Swdenkmx1fs2_config	:	unconfig
2248f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2249281e00a3Swdenk
2250ac7eb8a3SWolfgang Denknetstar_32_config	\
2251ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2252f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2253ac7eb8a3SWolfgang Denk	@if [ "$(findstring _32_,$@)" ] ; then \
2254ac7eb8a3SWolfgang Denk		echo "... 32MB SDRAM" ; \
2255f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2256ac7eb8a3SWolfgang Denk	else \
2257ac7eb8a3SWolfgang Denk		echo "... 64MB SDRAM" ; \
2258f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2259ac7eb8a3SWolfgang Denk	fi
2260f9328639SMarian Balakowicz	@$(MKCONFIG) -a netstar arm arm925t netstar
2261ac7eb8a3SWolfgang Denk
22622e5983d2Swdenkomap1510inn_config :	unconfig
2263f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
22642e5983d2Swdenk
22651eaeb58eSwdenkomap5912osk_config :	unconfig
2266f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
22671eaeb58eSwdenk
2268c74b2108SSergey Kubushyndavinci_dvevm_config :	unconfig
2269c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2270c74b2108SSergey Kubushyn
2271c74b2108SSergey Kubushyndavinci_schmoogie_config :	unconfig
2272c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2273c74b2108SSergey Kubushyn
2274c74b2108SSergey Kubushyndavinci_sonata_config :	unconfig
2275c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2276c74b2108SSergey Kubushyn
227763e73c9aSwdenkomap1610inn_config \
227863e73c9aSwdenkomap1610inn_cs0boot_config \
227963e73c9aSwdenkomap1610inn_cs3boot_config \
22803ff02c27Swdenkomap1610inn_cs_autoboot_config \
228163e73c9aSwdenkomap1610h2_config \
228263e73c9aSwdenkomap1610h2_cs0boot_config \
22833ff02c27Swdenkomap1610h2_cs3boot_config \
22843ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2285f9328639SMarian Balakowicz	@mkdir -p $(obj)include
228663e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2287cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2288b79a11ccSwdenk		echo "... configured for CS0 boot"; \
22893ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2290cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
22913ff02c27Swdenk		echo "... configured for CS_AUTO boot"; \
229263e73c9aSwdenk	else \
2293cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2294b79a11ccSwdenk		echo "... configured for CS3 boot"; \
229563e73c9aSwdenk	fi;
2296f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
22976f21347dSwdenk
2298a56bd922Swdenkomap730p2_config \
2299a56bd922Swdenkomap730p2_cs0boot_config \
2300a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2301f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2302a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2303f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2304a56bd922Swdenk		echo "... configured for CS0 boot"; \
2305a56bd922Swdenk	else \
2306f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2307a56bd922Swdenk		echo "... configured for CS3 boot"; \
2308a56bd922Swdenk	fi;
2309f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2310a56bd922Swdenk
231132cb2c70SWolfgang Denksbc2410x_config: unconfig
2312f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
231332cb2c70SWolfgang Denk
2314281e00a3Swdenkscb9328_config	:	unconfig
2315f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2316281e00a3Swdenk
23177ebf7443Swdenksmdk2400_config	:	unconfig
2318f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
23197ebf7443Swdenk
23207ebf7443Swdenksmdk2410_config	:	unconfig
2321f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
23227ebf7443Swdenk
23232d24a3a7SwdenkSX1_config :		unconfig
2324f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
23252d24a3a7Swdenk
2326b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
232743d9616cSwdenktrab_config \
2328b0639ca3Swdenktrab_bigram_config \
2329b0639ca3Swdenktrab_bigflash_config \
2330f54ebdfaSwdenktrab_old_config:	unconfig
2331f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2332f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2333f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2334b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2335f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2336f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2337b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
2338b0639ca3Swdenk		}
2339b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2340f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2341f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2342b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
2343f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2344b0639ca3Swdenk		}
2345f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2346f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2347f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2348b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
2349f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
235043d9616cSwdenk		}
2351f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
23527ebf7443Swdenk
23531cb8e980SwdenkVCMA9_config	:	unconfig
2354f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
23551cb8e980Swdenk
235687cb6862SWolfgang Denk#========================================================================
235787cb6862SWolfgang Denk# ARM supplied Versatile development boards
235887cb6862SWolfgang Denk#========================================================================
235987cb6862SWolfgang Denkversatile_config	\
236087cb6862SWolfgang Denkversatileab_config	\
236187cb6862SWolfgang Denkversatilepb_config :	unconfig
236296782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2363074cff0dSwdenk
23643c2b3d45Swdenkvoiceblue_smallflash_config	\
23653c2b3d45Swdenkvoiceblue_config:	unconfig
2366f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2367f9328639SMarian Balakowicz	@mkdir -p $(obj)board/voiceblue
23683c2b3d45Swdenk	@if [ "$(findstring _smallflash_,$@)" ] ; then \
23693c2b3d45Swdenk		echo "... boot from lower flash bank" ; \
2370f9328639SMarian Balakowicz		echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2371f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
23723c2b3d45Swdenk	else \
23733c2b3d45Swdenk		echo "... boot from upper flash bank" ; \
2374f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2375f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
23763c2b3d45Swdenk	fi
2377f9328639SMarian Balakowicz	@$(MKCONFIG) -a voiceblue arm arm925t voiceblue
23783c2b3d45Swdenk
237916b013e7Swdenkcm4008_config	:	unconfig
2380f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
238116b013e7Swdenk
238216b013e7Swdenkcm41xx_config	:	unconfig
2383f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
238416b013e7Swdenk
23850c32d96dSWolfgang Denkgth2_config		:	unconfig
2386f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2387f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2388f9328639SMarian Balakowicz	@echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2389f9328639SMarian Balakowicz	@$(MKCONFIG) -a gth2 mips mips gth2
23900c32d96dSWolfgang Denk
2391074cff0dSwdenk#########################################################################
2392074cff0dSwdenk## S3C44B0 Systems
2393074cff0dSwdenk#########################################################################
2394074cff0dSwdenk
2395074cff0dSwdenkB2_config	:	unconfig
2396f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2397074cff0dSwdenk
23987ebf7443Swdenk#########################################################################
23997ebf7443Swdenk## ARM720T Systems
24007ebf7443Swdenk#########################################################################
24017ebf7443Swdenk
2402c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2403f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2404c570b2fdSWolfgang Denk
24057ebf7443Swdenkep7312_config	:	unconfig
2406f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
24077ebf7443Swdenk
24082d24a3a7Swdenkimpa7_config	:	unconfig
2409f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
24102d24a3a7Swdenk
24112d1a537dSwdenkmodnet50_config :	unconfig
2412f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
24132d1a537dSwdenk
241439539887Swdenkevb4510_config :	unconfig
2415f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
241639539887Swdenk
24176bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2418b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2419b0d8f5bfSPeter Pearse
2420b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2421b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
24226bd2447eSGary Jennejohn
24237ebf7443Swdenk#########################################################################
242443d9616cSwdenk## XScale Systems
24257ebf7443Swdenk#########################################################################
24267ebf7443Swdenk
242720787e23Swdenkadsvix_config	:	unconfig
2428f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa adsvix
242920787e23Swdenk
2430fabd46acSwdenkcerf250_config :	unconfig
2431f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2432fabd46acSwdenk
24337ebf7443Swdenkcradle_config	:	unconfig
2434f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
24357ebf7443Swdenk
24367ebf7443Swdenkcsb226_config	:	unconfig
2437f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
24387ebf7443Swdenk
24390be248faSWolfgang Denkdelta_config :
2440f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
24410be248faSWolfgang Denk
244243d9616cSwdenkinnokom_config	:	unconfig
2443f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
244443d9616cSwdenk
24452d5b561eSwdenkixdp425_config	:	unconfig
2446f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
24472d5b561eSwdenk
2448ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2449f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2450ba94a1bbSWolfgang Denk
245143d9616cSwdenklubbock_config	:	unconfig
2452f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
245343d9616cSwdenk
24545720df78SHeiko Schocherpleb2_config	:	unconfig
2455f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
24565720df78SHeiko Schocher
245752f52c14Swdenklogodl_config	:	unconfig
2458f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
245952f52c14Swdenk
24609d8d5a5bSStefan Roesepdnb3_config \
24619d8d5a5bSStefan Roesescpu_config:    unconfig
2462cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
24639d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2464cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"      >>$(obj)include/config.h ; \
24659d8d5a5bSStefan Roese		echo "... on SCPU board variant" ; \
24669d8d5a5bSStefan Roese	else \
2467cdd917a4SWolfgang Denk		>$(obj)include/config.h ; \
24689d8d5a5bSStefan Roese	fi
24699d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2470ba94a1bbSWolfgang Denk
2471f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2472f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2473f57f70aaSWolfgang Denk
24745e5803e1Sstefano babictrizepsiv_config	:	unconfig
24755e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
24765e5803e1Sstefano babic
24773e38691eSwdenkwepep250_config	:	unconfig
2478f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
24793e38691eSwdenk
24804ec3a7f0Swdenkxaeniax_config	:	unconfig
2481f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
24824ec3a7f0Swdenk
2483efa329cbSwdenkxm250_config	:	unconfig
2484f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2485efa329cbSwdenk
2486ca0e7748Swdenkxsengine_config :	unconfig
2487f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2488ca0e7748Swdenk
2489e0269579SMarkus Klotzbücherzylonite_config :
2490f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2491e0269579SMarkus Klotzbücher
24928ed96046Swdenk#########################################################################
24938ed96046Swdenk## ARM1136 Systems
24948ed96046Swdenk#########################################################################
24958ed96046Swdenkomap2420h4_config	: unconfig
2496f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
24975ca9881aSPeter Pearse
24985ca9881aSPeter Pearseapollon_config		: unconfig
24995ca9881aSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon
25008ed96046Swdenk
25012262cfeeSwdenk#========================================================================
25022262cfeeSwdenk# i386
25032262cfeeSwdenk#========================================================================
25042262cfeeSwdenk#########################################################################
25052262cfeeSwdenk## AMD SC520 CDP
25062262cfeeSwdenk#########################################################################
25072262cfeeSwdenksc520_cdp_config	:	unconfig
2508f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
25092262cfeeSwdenk
25107a8e9bedSwdenksc520_spunk_config	:	unconfig
2511f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
25127a8e9bedSwdenk
25137a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2514f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
25157a8e9bedSwdenk
251643d9616cSwdenk#========================================================================
251743d9616cSwdenk# MIPS
251843d9616cSwdenk#========================================================================
25197ebf7443Swdenk#########################################################################
252043d9616cSwdenk## MIPS32 4Kc
252143d9616cSwdenk#########################################################################
252243d9616cSwdenk
2523e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2524e0ac62d7Swdenk
2525e0ac62d7Swdenkincaip_100MHz_config	\
2526e0ac62d7Swdenkincaip_133MHz_config	\
2527e0ac62d7Swdenkincaip_150MHz_config	\
252843d9616cSwdenkincaip_config: unconfig
2529f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2530f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2531e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2532f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2533e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
2534e0ac62d7Swdenk		}
2535e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2536f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2537e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
2538e0ac62d7Swdenk		}
2539e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2540f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2541e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
2542e0ac62d7Swdenk		}
2543f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2544e0ac62d7Swdenk
2545f4863a7aSwdenktb0229_config: unconfig
2546f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2547f4863a7aSwdenk
2548e0ac62d7Swdenk#########################################################################
254969459791Swdenk## MIPS32 AU1X00
255069459791Swdenk#########################################################################
255169459791Swdenkdbau1000_config		:	unconfig
2552f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2553f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2554f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2555f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
255669459791Swdenk
255769459791Swdenkdbau1100_config		:	unconfig
2558f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2559f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2560f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2561f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
256269459791Swdenk
256369459791Swdenkdbau1500_config		:	unconfig
2564f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2565f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2566f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2567f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
256869459791Swdenk
2569ff36fd85Swdenkdbau1550_config		:	unconfig
2570f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2571f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2572f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2573f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2574ff36fd85Swdenk
2575ff36fd85Swdenkdbau1550_el_config	:	unconfig
2576f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2577f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2578f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2579f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2580ff36fd85Swdenk
2581265817c7SWolfgang Denkpb1000_config		:	unconfig
2582f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2583f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2584f9328639SMarian Balakowicz	@echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2585f9328639SMarian Balakowicz	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2586265817c7SWolfgang Denk
258769459791Swdenk#########################################################################
2588e0ac62d7Swdenk## MIPS64 5Kc
2589e0ac62d7Swdenk#########################################################################
259043d9616cSwdenk
25913e38691eSwdenkpurple_config :		unconfig
2592f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
259343d9616cSwdenk
25944a551709Swdenk#========================================================================
25954a551709Swdenk# Nios
25964a551709Swdenk#========================================================================
25974a551709Swdenk#########################################################################
25984a551709Swdenk## Nios32
25994a551709Swdenk#########################################################################
26004a551709Swdenk
2601c935d3bdSwdenkDK1C20_safe_32_config		\
2602c935d3bdSwdenkDK1C20_standard_32_config	\
26034a551709SwdenkDK1C20_config:	unconfig
2604f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2605f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2606c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2607f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2608c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
2609c935d3bdSwdenk		}
2610c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2611f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2612c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
2613c935d3bdSwdenk		}
2614c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2615f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2616c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2617c935d3bdSwdenk		}
2618f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2619c935d3bdSwdenk
2620c935d3bdSwdenkDK1S10_safe_32_config		\
2621c935d3bdSwdenkDK1S10_standard_32_config	\
2622ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2623c935d3bdSwdenkDK1S10_config:	unconfig
2624f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2625f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2626c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2627f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2628c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
2629c935d3bdSwdenk		}
2630c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2631f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2632c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
2633c935d3bdSwdenk		}
2634ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2635f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2636ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
2637ec4c544bSwdenk		}
2638c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2639f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2640c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2641c935d3bdSwdenk		}
2642f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
26434a551709Swdenk
2644aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
2645aaf224abSwdenkADNPESC1_base_32_config		\
2646aaf224abSwdenkADNPESC1_config: unconfig
2647f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2648f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2649aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2650f9328639SMarian Balakowicz		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2651aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
2652aaf224abSwdenk		}
2653aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
2654f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2655aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
2656aaf224abSwdenk		}
2657aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2658f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2659aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2660aaf224abSwdenk		}
2661f9328639SMarian Balakowicz	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2662aaf224abSwdenk
26635c952cf0Swdenk#########################################################################
26645c952cf0Swdenk## Nios-II
26655c952cf0Swdenk#########################################################################
26665c952cf0Swdenk
26679cc83378SScott McNuttEP1C20_config : unconfig
2668f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
26699cc83378SScott McNutt
26709cc83378SScott McNuttEP1S10_config : unconfig
2671f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
26729cc83378SScott McNutt
26739cc83378SScott McNuttEP1S40_config : unconfig
2674f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
26759cc83378SScott McNutt
26765c952cf0SwdenkPK1C20_config : unconfig
2677f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
26785c952cf0Swdenk
26795c952cf0SwdenkPCI5441_config : unconfig
2680f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
26814a551709Swdenk
2682507bbe3eSwdenk#========================================================================
2683507bbe3eSwdenk# MicroBlaze
2684507bbe3eSwdenk#========================================================================
2685507bbe3eSwdenk#########################################################################
2686507bbe3eSwdenk## Microblaze
2687507bbe3eSwdenk#########################################################################
2688507bbe3eSwdenksuzaku_config:	unconfig
2689f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2690f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2691f9328639SMarian Balakowicz	@echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2692f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2693507bbe3eSwdenk
2694cfc67116SMichal Simekml401_config:	unconfig
2695cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2696cdd917a4SWolfgang Denk	@ >$(obj)include/config.h
2697cdd917a4SWolfgang Denk	@echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
269890b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2699cfc67116SMichal Simek
270017980495SMichal Simekxupv2p_config:	unconfig
2701cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2702cdd917a4SWolfgang Denk	@ >$(obj)include/config.h
2703cdd917a4SWolfgang Denk	@echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
270490b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
270517980495SMichal Simek
27063e38691eSwdenk#########################################################################
27070afe519aSWolfgang Denk## Blackfin
27080afe519aSWolfgang Denk#########################################################################
2709ef26a08fSAubrey.Libf533-ezkit_config:	unconfig
2710ef26a08fSAubrey.Li	@$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
27110afe519aSWolfgang Denk
2712ef26a08fSAubrey.Libf533-stamp_config:	unconfig
2713ef26a08fSAubrey.Li	@$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
27140afe519aSWolfgang Denk
271526bf7decSAubrey Libf537-stamp_config:	unconfig
271626bf7decSAubrey Li	@$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
271726bf7decSAubrey Li
271865458987SAubrey Libf561-ezkit_config:	unconfig
271965458987SAubrey Li	@$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
27200afe519aSWolfgang Denk
27215e3b0bc1SHaavard Skinnemoen#========================================================================
27225e3b0bc1SHaavard Skinnemoen# AVR32
27235e3b0bc1SHaavard Skinnemoen#========================================================================
27245e3b0bc1SHaavard Skinnemoen#########################################################################
27255e3b0bc1SHaavard Skinnemoen## AT32AP7xxx
27265e3b0bc1SHaavard Skinnemoen#########################################################################
27275e3b0bc1SHaavard Skinnemoen
27285e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
272936f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
27305e3b0bc1SHaavard Skinnemoen
2731667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
2732667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2733667568dbSHaavard Skinnemoen
273464ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
273564ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
27360afe519aSWolfgang Denk
27370afe519aSWolfgang Denk#########################################################################
27380afe519aSWolfgang Denk#########################################################################
27393e38691eSwdenk#########################################################################
27407ebf7443Swdenk
274169df3c4dSNobuhiro Iwamatsu#########################################################################
274269df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
274369df3c4dSNobuhiro Iwamatsu#########################################################################
274469df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
274569df3c4dSNobuhiro Iwamatsu	@ >include/config.h
274669df3c4dSNobuhiro Iwamatsu	@echo "#define CONFIG_MS7750SE 1" >> include/config.h
274769df3c4dSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 ms7750se
274869df3c4dSNobuhiro Iwamatsu
2749d91ea45dSNobuhiro Iwamatsums7722se_config :       unconfig
2750d91ea45dSNobuhiro Iwamatsu	@ >include/config.h
2751d91ea45dSNobuhiro Iwamatsu	@echo "#define CONFIG_MS7722SE 1" >> include/config.h
2752d91ea45dSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 ms7722se
27537a8e9bedSwdenk
27547a8e9bedSwdenk#########################################################################
27557ebf7443Swdenk#########################################################################
27567ebf7443Swdenk#########################################################################
27577ebf7443Swdenk
2758228f29acSwdenkclean:
2759f9328639SMarian Balakowicz	find $(OBJTREE) -type f \
27607f70e853Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
27617ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
27627ebf7443Swdenk		| xargs rm -f
2763f9328639SMarian Balakowicz	rm -f $(obj)examples/hello_world $(obj)examples/timer \
2764f9328639SMarian Balakowicz	      $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2765f9328639SMarian Balakowicz	      $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2766d214fbbdSWolfgang Denk	      $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2767f9328639SMarian Balakowicz	      $(obj)examples/test_burst
2768f9328639SMarian Balakowicz	rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2769566a494fSHeiko Schocher		$(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2770f9328639SMarian Balakowicz	rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2771f9328639SMarian Balakowicz	rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2772f9328639SMarian Balakowicz	rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2773f9328639SMarian Balakowicz	rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2774f9328639SMarian Balakowicz	rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2775f9328639SMarian Balakowicz	rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2776f9328639SMarian Balakowicz	rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2777f9328639SMarian Balakowicz	rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2778f9328639SMarian Balakowicz	rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
27798440bb14SAubrey Li	rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
278065458987SAubrey Li	rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2781f9328639SMarian Balakowicz	rm -f $(obj)include/bmp_logo.h
27828318fbf8SMarian Balakowicz	rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2783500856ebSRafal Jaworowski	rm -f $(obj)api_examples/demo
27847ebf7443Swdenk
27857ebf7443Swdenkclobber:	clean
2786f9328639SMarian Balakowicz	find $(OBJTREE) -type f \( -name .depend \
27874c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
27884c0d4c3bSwdenk		-print0 \
27894c0d4c3bSwdenk		| xargs -0 rm -f
2790f9328639SMarian Balakowicz	rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2791f9328639SMarian Balakowicz	rm -fr $(obj)*.*~
2792f9328639SMarian Balakowicz	rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2793566a494fSHeiko Schocher	rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2794f9328639SMarian Balakowicz	rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2795f9328639SMarian Balakowicz	rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
27968318fbf8SMarian Balakowicz	[ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2797500856ebSRafal Jaworowski	find $(obj)api_examples -lname "*" -print | xargs rm -f
2798500856ebSRafal Jaworowski	rm -f $(obj)api_examples/demo
27997ebf7443Swdenk
2800f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
28017ebf7443Swdenkmrproper \
28027ebf7443Swdenkdistclean:	clobber unconfig
2803f9328639SMarian Balakowiczelse
2804f9328639SMarian Balakowiczmrproper \
2805f9328639SMarian Balakowiczdistclean:	clobber unconfig
2806f9328639SMarian Balakowicz	rm -rf $(OBJTREE)/*
2807f9328639SMarian Balakowiczendif
28087ebf7443Swdenk
28097ebf7443Swdenkbackup:
28107ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
28117ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
28127ebf7443Swdenk
28137ebf7443Swdenk#########################################################################
2814