xref: /openbmc/u-boot/Makefile (revision 1f4d5326)
17ebf7443Swdenk#
2ae6d1056SWolfgang Denk# (C) Copyright 2000-2008
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
248b9e4787SWolfgang DenkVERSION = 2008
258b9e4787SWolfgang DenkPATCHLEVEL = 10
268b9e4787SWolfgang DenkSUBLEVEL =
27b59b16caSWolfgang DenkEXTRAVERSION =
288b9e4787SWolfgang Denkifneq "$(SUBLEVEL)" ""
29881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
308b9e4787SWolfgang Denkelse
318b9e4787SWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION)
328b9e4787SWolfgang Denkendif
33f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h
34881a87ecSWolfgang Denk
357ebf7443SwdenkHOSTARCH := $(shell uname -m | \
367ebf7443Swdenk	sed -e s/i.86/i386/ \
377ebf7443Swdenk	    -e s/sun4u/sparc64/ \
387ebf7443Swdenk	    -e s/arm.*/arm/ \
397ebf7443Swdenk	    -e s/sa110/arm/ \
407ebf7443Swdenk	    -e s/powerpc/ppc/ \
41a2280646SKumar Gala	    -e s/ppc64/ppc/ \
427ebf7443Swdenk	    -e s/macppc/ppc/)
437ebf7443Swdenk
44f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
457ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
467ebf7443Swdenk
47f9d77ed3SWolfgang Denkexport	HOSTARCH HOSTOS
487ebf7443Swdenk
497ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
507ebf7443SwdenkVENDOR=
517ebf7443Swdenk
527ebf7443Swdenk#########################################################################
53ae6d1056SWolfgang Denk# Allow for silent builds
54ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS)))
55ae6d1056SWolfgang DenkXECHO = echo
56ae6d1056SWolfgang Denkelse
57ae6d1056SWolfgang DenkXECHO = :
58ae6d1056SWolfgang Denkendif
59ae6d1056SWolfgang Denk
60ae6d1056SWolfgang Denk#########################################################################
61f9328639SMarian Balakowicz#
62f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
63f9328639SMarian Balakowicz# directory. Two use cases are supported:
64f9328639SMarian Balakowicz#
65f9328639SMarian Balakowicz# 1) Add O= to the make command line
66f9328639SMarian Balakowicz# 'make O=/tmp/build all'
67f9328639SMarian Balakowicz#
68f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
69f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
70f9328639SMarian Balakowicz# 'make'
71f9328639SMarian Balakowicz#
72f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
73f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
74f9328639SMarian Balakowicz# './MAKEALL'
75f9328639SMarian Balakowicz#
76f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
77f9328639SMarian Balakowicz#
78f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
79f9328639SMarian Balakowicz# the object files are placed in the source directory.
80f9328639SMarian Balakowicz#
817ebf7443Swdenk
82f9328639SMarian Balakowiczifdef O
83f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
84f9328639SMarian BalakowiczBUILD_DIR := $(O)
85f9328639SMarian Balakowiczendif
86f9328639SMarian Balakowiczendif
877ebf7443Swdenk
88f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
89f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
904f0645ebSMarian Balakowicz
914f0645ebSMarian Balakowicz# Attempt to create a output directory.
924f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
934f0645ebSMarian Balakowicz
944f0645ebSMarian Balakowicz# Verify if it was successful.
95f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
96f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
97f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
98f9328639SMarian Balakowicz
99f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
100f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
101f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
102f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
103f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
104f9328639SMarian Balakowicz
105f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
106f9328639SMarian Balakowiczexport MKCONFIG
107f9328639SMarian Balakowicz
108f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
109f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
110f9328639SMarian Balakowiczexport REMOTE_BUILD
111f9328639SMarian Balakowiczendif
112f9328639SMarian Balakowicz
113f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
114f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
115f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
116f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
117f9328639SMarian Balakowiczobj := $(OBJTREE)/
118f9328639SMarian Balakowiczsrc := $(SRCTREE)/
119f9328639SMarian Balakowiczelse
120f9328639SMarian Balakowiczobj :=
121f9328639SMarian Balakowiczsrc :=
122f9328639SMarian Balakowiczendif
123f9328639SMarian Balakowiczexport obj src
124f9328639SMarian Balakowicz
1255013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere
1265013c09fSWolfgang Denkunexport CDPATH
1275013c09fSWolfgang Denk
128f9328639SMarian Balakowicz#########################################################################
129f9328639SMarian Balakowicz
130f8f9dc98SKumar Galaifeq ($(ARCH),powerpc)
131f8f9dc98SKumar GalaARCH = ppc
132f8f9dc98SKumar Galaendif
133f8f9dc98SKumar Gala
134ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
135f9328639SMarian Balakowicz
1367ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
137ae6d1056SWolfgang Denkinclude $(obj)include/config.mk
1381d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
139f9328639SMarian Balakowicz
1407ebf7443Swdenkifndef CROSS_COMPILE
141a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1427ebf7443SwdenkCROSS_COMPILE =
1437ebf7443Swdenkelse
1447ebf7443Swdenkifeq ($(ARCH),ppc)
14516c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx-
1467ebf7443Swdenkendif
1477ebf7443Swdenkifeq ($(ARCH),arm)
148dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1497ebf7443Swdenkendif
1502262cfeeSwdenkifeq ($(ARCH),i386)
1517a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1527a8e9bedSwdenkendif
15343d9616cSwdenkifeq ($(ARCH),mips)
15443d9616cSwdenkCROSS_COMPILE = mips_4KC-
15543d9616cSwdenkendif
1564a551709Swdenkifeq ($(ARCH),nios)
1574a551709SwdenkCROSS_COMPILE = nios-elf-
1584a551709Swdenkendif
1595c952cf0Swdenkifeq ($(ARCH),nios2)
1605c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1615c952cf0Swdenkendif
1624e5ca3ebSwdenkifeq ($(ARCH),m68k)
1634e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1644e5ca3ebSwdenkendif
165507bbe3eSwdenkifeq ($(ARCH),microblaze)
166507bbe3eSwdenkCROSS_COMPILE = mb-
167507bbe3eSwdenkendif
1680afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
169ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux-
1700afe519aSWolfgang Denkendif
1717b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
1725374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux-
1737b64fef3SWolfgang Denkendif
1740b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh)
1750b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux-
176c2f02da2SDaniel Hellstromendif
177c2f02da2SDaniel Hellstromifeq ($(ARCH),sparc)
178c2f02da2SDaniel HellstromCROSS_COMPILE = sparc-elf-
179c2f02da2SDaniel Hellstromendif	# sparc
180ae6d1056SWolfgang Denkendif	# HOSTARCH,ARCH
181ae6d1056SWolfgang Denkendif	# CROSS_COMPILE
1827ebf7443Swdenk
1837ebf7443Swdenkexport	CROSS_COMPILE
1847ebf7443Swdenk
18592b197f0SWolfgang Denk# load other configuration
18692b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
18792b197f0SWolfgang Denk
1887ebf7443Swdenk#########################################################################
1897ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1907ebf7443Swdenk
1917ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1922262cfeeSwdenkifeq ($(CPU),i386)
1932262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
1942262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
1952262cfeeSwdenkendif
1967ebf7443Swdenkifeq ($(CPU),ppc4xx)
1977ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
1987ebf7443Swdenkendif
19942d1f039Swdenkifeq ($(CPU),mpc85xx)
20042d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
20142d1f039Swdenkendif
2027ebf7443Swdenk
203f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
204f9328639SMarian Balakowicz
2059fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
206fc9c1727SLuigi 'Comio' MantelliniLIBS += lib_generic/lzma/liblzma.a
2077608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
2087608d75fSKim Phillips	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
2097ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
2101d9f4105Swdenkifdef SOC
2111d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
2121d9f4105Swdenkendif
213323bfa8fSStefan Roeseifeq ($(CPU),ixp)
214323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
215323bfa8fSStefan Roeseendif
2167ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
217518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
21843ea36fbSWilliam Juul	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a
2197ebf7443SwdenkLIBS += net/libnet.a
2207ebf7443SwdenkLIBS += disk/libdisk.a
2210f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
22233daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
22357a12720STsiChungLiewLIBS += drivers/dma/libdma.a
224f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
225080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
22616b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
227318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
2285ce13051SHaavard SkinnemoenLIBS += drivers/mmc/libmmc.a
22959829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
23059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
23159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
23259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
233d25ce7d2SHaavard SkinnemoenLIBS += drivers/mtd/spi/libspi_flash.a
2348e585f02STsiChung LiewLIBS += drivers/net/libnet.a
23555195773SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/phy/libphy.a
2362439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
23793a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
23873646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
23904a9e118SBen WarrenLIBS += drivers/spi/libspi.a
2407737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2417737d5c6SDave LiuLIBS += drivers/qe/qe.a
2427737d5c6SDave Liuendif
243da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
244da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
24558e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
2465e981d68SEd SwarthoutTAG_SUBDIRS += cpu/mpc8xxx
24758e5e9afSKumar Galaendif
24858e5e9afSKumar Galaifeq ($(CPU),mpc86xx)
24958e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
2505e981d68SEd SwarthoutTAG_SUBDIRS += cpu/mpc8xxx
251da9d4610SAndy Flemingendif
25259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2538e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
25459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a
25559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
2567ebf7443SwdenkLIBS += common/libcommon.a
2577651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
258500856ebSRafal JaworowskiLIBS += api/libapi.a
2592d2b994aSYuri TikhonovLIBS += post/libpost.a
260f9328639SMarian Balakowicz
261f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
262019895a8SStefano Babic.PHONY : $(LIBS) $(VERSION_FILE)
263a8c7c708Swdenk
264de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
265de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD))
266de109d90SWolfgang Denk
2674f7cb08eSwdenk# Add GCC lib
2681a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2693d3befa7Swdenk
270a8c7c708Swdenk# The "tools" are needed early, so put this first
271a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
272a8c7c708SwdenkSUBDIRS	= tools \
2730dc1fc22SRafal Jaworowski	  examples \
2740dc1fc22SRafal Jaworowski	  api_examples
275500856ebSRafal Jaworowski
276b028f715Swdenk.PHONY : $(SUBDIRS)
277a8c7c708Swdenk
278887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
279887e2ec9SStefan RoeseNAND_SPL = nand_spl
280887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
281887e2ec9SStefan Roeseendif
282887e2ec9SStefan Roese
283751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y)
284751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl
285751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin
286751b9b51SKyungmin Parkendif
287751b9b51SKyungmin Park
288f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
289de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
290f9328639SMarian Balakowicz
2917ebf7443Swdenk#########################################################################
292bdccc4feSwdenk#########################################################################
2937ebf7443Swdenk
294751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
29594a91e24SMike Frysingerifeq ($(ARCH),blackfin)
29694a91e24SMike FrysingerALL += $(obj)u-boot.ldr
29794a91e24SMike Frysingerendif
2987ebf7443Swdenk
299bdccc4feSwdenkall:		$(ALL)
3007ebf7443Swdenk
301f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
3026310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
3036310eb9dSwdenk
304f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
3050817d688SRicardo Ribalda Delgado		$(OBJCOPY) -O srec $< $@
3067ebf7443Swdenk
307f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
3087ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
3097ebf7443Swdenk
31094a91e24SMike Frysinger$(obj)u-boot.ldr:	$(obj)u-boot
31194a91e24SMike Frysinger		$(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
31294a91e24SMike Frysinger
31394a91e24SMike Frysinger$(obj)u-boot.ldr.hex:	$(obj)u-boot.ldr
31494a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
31594a91e24SMike Frysinger
31694a91e24SMike Frysinger$(obj)u-boot.ldr.srec:	$(obj)u-boot.ldr
31794a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
31894a91e24SMike Frysinger
319f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
320bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
321bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
322881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
323bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
324bdccc4feSwdenk		-d $< $@
325bdccc4feSwdenk
326566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
32701159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
328566a494fSHeiko Schocher
329f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3307ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3317ebf7443Swdenk
332de109d90SWolfgang Denk$(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
333de109d90SWolfgang Denk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
334de109d90SWolfgang Denk		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
335f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
336f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
337b2184c31Swdenk			-Map u-boot.map -o u-boot
3387ebf7443Swdenk
33988f72527SJohannes Stezenbach$(OBJS):	depend $(obj)include/autoconf.mk
340f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
341f9328639SMarian Balakowicz
34288f72527SJohannes Stezenbach$(LIBS):	depend $(obj)include/autoconf.mk
343f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
344a8c7c708Swdenk
345de109d90SWolfgang Denk$(LIBBOARD):	depend $(LIBS) $(obj)include/autoconf.mk
346de109d90SWolfgang Denk		$(MAKE) -C $(dir $(subst $(obj),,$@))
347de109d90SWolfgang Denk
34888f72527SJohannes Stezenbach$(SUBDIRS):	depend $(obj)include/autoconf.mk
349b028f715Swdenk		$(MAKE) -C $@ all
3507ebf7443Swdenk
351f65c9812SMike Frysinger$(LDSCRIPT):	depend $(obj)include/autoconf.mk
352f65c9812SMike Frysinger		$(MAKE) -C $(dir $@) $(notdir $@)
353f65c9812SMike Frysinger
354dd531aacSWolfgang Denk$(NAND_SPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
3558318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
356887e2ec9SStefan Roese
357dd531aacSWolfgang Denk$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3588318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
359887e2ec9SStefan Roese
360751b9b51SKyungmin Park$(ONENAND_IPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
361f2302d44SStefan Roese		$(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
362751b9b51SKyungmin Park
363751b9b51SKyungmin Park$(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
364751b9b51SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
3651bb707c3SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
366751b9b51SKyungmin Park
367ae6d1056SWolfgang Denk$(VERSION_FILE):
368aa737945SMike Frysinger		@( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
369aa737945SMike Frysinger		 '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \
370aa737945SMike Frysinger		 ) > $@.tmp
3710ec7a061SMike Frysinger		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
372881a87ecSWolfgang Denk
3738f713fdfSdzugdbtools:
374f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
375f9328639SMarian Balakowicz
376f9328639SMarian Balakowiczupdater:
377f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
378f9328639SMarian Balakowicz
379f9328639SMarian Balakowiczenv:
38064b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3818f713fdfSdzu
382ae6d1056SWolfgang Denkdepend dep:	$(VERSION_FILE)
383f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3847ebf7443Swdenk
385a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
386a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
387a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
388a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
389a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
390a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
391a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
392a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
39343ea36fbSWilliam JuulTAG_SUBDIRS += fs/yaffs2
394a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
395a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
396a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
397a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
398a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
399a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
400a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
401a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
402a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
4035ce13051SHaavard SkinnemoenTAG_SUBDIRS += drivers/mmc
404a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
405a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
406a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
407a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
408d25ce7d2SHaavard SkinnemoenTAG_SUBDIRS += drivers/mtd/spi
409a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
410a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
411a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
412a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
413a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
414a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
415a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
41604a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
417a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
418a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
419a340c325SJean-Christophe PLAGNIOL-VILLARD
420f9328639SMarian Balakowicztags ctags:
421ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
42288fed9a1SWolfgang Denk						-name '*.[ch]' -print`
4237ebf7443Swdenk
4247ebf7443Swdenketags:
425ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
42688fed9a1SWolfgang Denk						-name '*.[ch]' -print`
427ffda586fSLi Yangcscope:
428ffda586fSLi Yang		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
429ffda586fSLi Yang						> cscope.files
430ffda586fSLi Yang		cscope -b -q -k
4317ebf7443Swdenk
432f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
4337ebf7443Swdenk		@$(NM) $< | \
4347ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
435f9328639SMarian Balakowicz		sort > $(obj)System.map
4367ebf7443Swdenk
4372f155f6cSGrant Likely#
4382f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4392f155f6cSGrant Likely#
4402f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4412f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4422f155f6cSGrant Likely# to regenerate the autoconf.mk file.
4431510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
4441510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
44516fe7775SMike Frysinger	set -e ; \
446ae6d1056SWolfgang Denk	: Generate the dependancies ; \
4471510b82dSWolfgang Denk	$(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
4481510b82dSWolfgang Denk		-MQ $(obj)include/autoconf.mk include/common.h > $@
4491510b82dSWolfgang Denk
4501510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h
4511510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
4521510b82dSWolfgang Denk	set -e ; \
453ae6d1056SWolfgang Denk	: Extract the config macros ; \
4541510b82dSWolfgang Denk	$(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
4551510b82dSWolfgang Denk		sed -n -f tools/scripts/define2mk.sed > $@
4562f155f6cSGrant Likely
457ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep
4582f155f6cSGrant Likely
4597ebf7443Swdenk#########################################################################
460ae6d1056SWolfgang Denkelse	# !config.mk
461f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
462f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
463ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
464ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map:
4657ebf7443Swdenk	@echo "System not configured - see README" >&2
4667ebf7443Swdenk	@ exit 1
467ae6d1056SWolfgang Denkendif	# config.mk
4687ebf7443Swdenk
4694e53a258SWolfgang Denk.PHONY : CHANGELOG
4704e53a258SWolfgang DenkCHANGELOG:
471b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
472b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4734e53a258SWolfgang Denk
4740a823aa2SHarald Welteinclude/license.h: tools/bin2header COPYING
4750a823aa2SHarald Welte	 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
4767ebf7443Swdenk#########################################################################
4777ebf7443Swdenk
4787ebf7443Swdenkunconfig:
479887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4802f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4812f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4827ebf7443Swdenk
4837ebf7443Swdenk#========================================================================
4847ebf7443Swdenk# PowerPC
4857ebf7443Swdenk#========================================================================
4860db5bca8Swdenk
4870db5bca8Swdenk#########################################################################
4880db5bca8Swdenk## MPC5xx Systems
4890db5bca8Swdenk#########################################################################
4900db5bca8Swdenk
4915e5f9ed2Swdenkcanmb_config:	unconfig
492f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
4935e5f9ed2Swdenk
4940db5bca8Swdenkcmi_mpc5xx_config:	unconfig
495f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
4960db5bca8Swdenk
497b6e4c403SwdenkPATI_config:		unconfig
498f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
499b6e4c403Swdenk
5007ebf7443Swdenk#########################################################################
501945af8d7Swdenk## MPC5xxx Systems
502945af8d7Swdenk#########################################################################
503a87589daSwdenk
504dafba16eSWolfgang Denkaev_config: unconfig
5054677988cSWolfgang Grandegger	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
506dafba16eSWolfgang Denk
5076ca24c64Sdzu@denx.deBC3450_config:	unconfig
508f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
5096ca24c64Sdzu@denx.de
510699f0512SWolfgang Denkcm5200_config:	unconfig
511699f0512SWolfgang Denk	@$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
512699f0512SWolfgang Denk
5135e4b3361SStefan Roesecpci5200_config:  unconfig
514f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
5155e4b3361SStefan Roese
516a87589daSwdenkhmi1001_config:	unconfig
517f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
518a87589daSwdenk
519e35745bbSwdenkLite5200_config				\
520e35745bbSwdenkLite5200_LOWBOOT_config			\
521e35745bbSwdenkLite5200_LOWBOOT08_config		\
522e35745bbSwdenkicecube_5200_config			\
523e35745bbSwdenkicecube_5200_LOWBOOT_config		\
524e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
525b2001f27Swdenkicecube_5200_DDR_config			\
52679d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
52779d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
528e35745bbSwdenkicecube_5100_config:			unconfig
529f9328639SMarian Balakowicz	@mkdir -p $(obj)include
530f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
53117d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
53217d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
533f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
534f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
53517d704ebSwdenk		  fi ; \
536ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5375cf9da48Swdenk		}
5385cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
539f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5405cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
541ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5425cf9da48Swdenk		}
543b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
544f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
545ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
546b2001f27Swdenk		}
547d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
548f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
549ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
550d4ca31c4Swdenk		}
551a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
552f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
553ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
554945af8d7Swdenk		}
555f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
556945af8d7Swdenk
5572605e90bSHeiko Schocherjupiter_config:	unconfig
5582605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
5592605e90bSHeiko Schocher
560138ff60cSwdenkinka4x0_config:	unconfig
561f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
562138ff60cSwdenk
56309e4b0c5SWolfgang Denklite5200b_config	\
564d3832e8fSDomen Puncerlite5200b_PM_config	\
56509e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
566f9328639SMarian Balakowicz	@mkdir -p $(obj)include
567f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
568f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
569ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
570f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
571f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
572d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
573d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
574ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
575d3832e8fSDomen Puncer		}
57609e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
577f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
578ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
57909e4b0c5SWolfgang Denk		}
580ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
581f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
58209e4b0c5SWolfgang Denk
583f1ee9825SStefan Roesemcc200_config	\
584ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
585ed1cf845SWolfgang Denkmcc200_highboot_config	\
586ed1cf845SWolfgang Denkmcc200_COM12_config	\
587ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
588113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
589113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
590ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
591ed1cf845SWolfgang Denkprs200_config	\
592ed1cf845SWolfgang Denkprs200_DDR_config	\
593ed1cf845SWolfgang Denkprs200_highboot_config	\
594ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
595f9328639SMarian Balakowicz	@mkdir -p $(obj)include
596f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
5974819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
598ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
599f1ee9825SStefan Roese		}
6004819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
601f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
602ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
6034819fad9SWolfgang Denk		}
6044819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
605ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
606ed1cf845SWolfgang Denk		  then \
607ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
608ed1cf845SWolfgang Denk		  else \
609ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
610ed1cf845SWolfgang Denk			then \
611ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
612ed1cf845SWolfgang Denk			else \
613f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
614ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
615ed1cf845SWolfgang Denk			fi; \
616ed1cf845SWolfgang Denk		  fi; \
6174819fad9SWolfgang Denk		}
6184819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
619f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
620ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
6214819fad9SWolfgang Denk		}
622463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
623f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
624ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
625463764c8SWolfgang Denk		}
626ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
627f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"	>>$(obj)include/config.h ;\
628ed1cf845SWolfgang Denk		}
629f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
63086ea5f93SWolfgang Denk
6318b7d1f0aSStefan Roesemecp5200_config:  unconfig
632ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
6338b7d1f0aSStefan Roese
634699f0512SWolfgang Denkmotionpro_config:	unconfig
635699f0512SWolfgang Denk	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
636699f0512SWolfgang Denk
637258c37b1SHeiko Schochermucmc52_config:		unconfig
638258c37b1SHeiko Schocher	@$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
639258c37b1SHeiko Schocher
6406341d9d7SHeiko Schochermunices_config:	unconfig
641ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
6426341d9d7SHeiko Schocher
643699f0512SWolfgang DenkMVBC_P_config: unconfig
644699f0512SWolfgang Denk	@mkdir -p $(obj)include
645699f0512SWolfgang Denk	@mkdir -p $(obj)board/mvbc_p
646699f0512SWolfgang Denk	@ >$(obj)include/config.h
647699f0512SWolfgang Denk	@[ -z "$(findstring MVBC_P,$@)" ] || \
648699f0512SWolfgang Denk	{   	echo "#define CONFIG_MVBC_P" 	>>$(obj)include/config.h; }
649699f0512SWolfgang Denk	@$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
650699f0512SWolfgang Denk
65191c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config:	unconfig
652f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
653df04a3dfSWolfgang Denk
6545e4b3361SStefan Roesepf5200_config:	unconfig
655f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
6565e4b3361SStefan Roese
65789394047SwdenkPM520_config \
65889394047SwdenkPM520_DDR_config \
65989394047SwdenkPM520_ROMBOOT_config \
66089394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
661f9328639SMarian Balakowicz	@mkdir -p $(obj)include
66289394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
663f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
664ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
66589394047Swdenk		}
66689394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
667f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
668ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
66989394047Swdenk		}
670f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
67189394047Swdenk
6726624b687SWolfgang Denksmmaco4_config: unconfig
6734677988cSWolfgang Grandegger	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
6749cdc8386SWolfgang Denk
6759cdc8386SWolfgang Denkspieval_config:	unconfig
6764677988cSWolfgang Grandegger	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
6779cdc8386SWolfgang Denk
67845a212c4SWolfgang DenkTB5200_B_config \
679b87dfd28SWolfgang DenkTB5200_config:	unconfig
680f9328639SMarian Balakowicz	@mkdir -p $(obj)include
68145a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
682f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
683ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
68445a212c4SWolfgang Denk		}
6854677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
686b87dfd28SWolfgang Denk
687d4ca31c4SwdenkMINI5200_config	\
688d4ca31c4SwdenkEVAL5200_config	\
689d4ca31c4SwdenkTOP5200_config:	unconfig
690f9328639SMarian Balakowicz	@mkdir -p $(obj)include
691f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
692f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
693d4ca31c4Swdenk
6946c7a1408SwdenkTotal5100_config		\
6956c7a1408SwdenkTotal5200_config		\
6966c7a1408SwdenkTotal5200_lowboot_config	\
6976c7a1408SwdenkTotal5200_Rev2_config		\
6986c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
699f9328639SMarian Balakowicz	@mkdir -p $(obj)include
700f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
7016c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
702f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
703ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
7046c7a1408Swdenk		}
7056c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
706f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
707ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
7086c7a1408Swdenk		}
7096c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
710f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
711ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
7126c7a1408Swdenk		}
7136c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
714f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
715ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
7166c7a1408Swdenk		}
7176c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
718f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
719ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
7206c7a1408Swdenk		}
721f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
7226c7a1408Swdenk
7235196a7a0SWolfgang Denkcam5200_config \
724d9384de2SMarian Balakowiczcam5200_niosflash_config \
7255196a7a0SWolfgang Denkfo300_config \
7265196a7a0SWolfgang DenkMiniFAP_config \
7275078cce8SWolfgang DenkTQM5200S_config \
7285078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
7295196a7a0SWolfgang DenkTQM5200_B_config \
7305196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
7315196a7a0SWolfgang DenkTQM5200_config	\
7325196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
733f9328639SMarian Balakowicz	@mkdir -p $(obj)include
7344677988cSWolfgang Grandegger	@mkdir -p $(obj)board/tqc/tqm5200
735135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
736f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
737f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
738f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
739ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
7405078cce8SWolfgang Denk		}
741d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
742d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
743ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
744d9384de2SMarian Balakowicz		}
7456d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
746f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
747ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
7486d3bc9b8SMarian Balakowicz		}
749cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
750f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
751ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
752978b1096SWolfgang Denk		}
753cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
754f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
755ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
75656523f12Swdenk		}
7575078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
758f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
7595078cce8SWolfgang Denk		}
7605078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
761f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
762f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
76345a212c4SWolfgang Denk		}
764978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
765f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
766978b1096SWolfgang Denk		}
7674677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
768699f0512SWolfgang Denk
7696dedf3d4SHeiko Schocheruc101_config:		unconfig
7706dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
77153d4a498SBartlomiej Sieka
772699f0512SWolfgang Denkv38b_config: unconfig
773699f0512SWolfgang Denk	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
77456523f12Swdenk
775945af8d7Swdenk#########################################################################
7768993e54bSRafal Jaworowski## MPC512x Systems
7778993e54bSRafal Jaworowski#########################################################################
778699f0512SWolfgang Denk
7795f91db7fSJohn Rigbyads5121_config \
780f31c49dbSMartha Marxads5121_rev2_config	\
7815f91db7fSJohn Rigby	: unconfig
782210ed200SWolfgang Denk	@mkdir -p $(obj)include
783f31c49dbSMartha Marx	@if [ "$(findstring rev2,$@)" ] ; then \
784f31c49dbSMartha Marx		echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
7855f91db7fSJohn Rigby	fi
7865f91db7fSJohn Rigby	@$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
7878993e54bSRafal Jaworowski
7888993e54bSRafal Jaworowski
7898993e54bSRafal Jaworowski#########################################################################
7907ebf7443Swdenk## MPC8xx Systems
7917ebf7443Swdenk#########################################################################
7927ebf7443Swdenk
7932d24a3a7SwdenkAdder_config	\
7942d24a3a7SwdenkAdder87x_config \
79526238132SwdenkAdderII_config	\
7962d24a3a7Swdenk	:		unconfig
797f9328639SMarian Balakowicz	@mkdir -p $(obj)include
79826238132Swdenk	$(if $(findstring AdderII,$@), \
799f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
800f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
8012d24a3a7Swdenk
80216c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
80391c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
80416c8d5e7SWolfgang Denk
805180d3f74SwdenkADS860_config	  \
806180d3f74SwdenkFADS823_config	  \
807180d3f74SwdenkFADS850SAR_config \
808180d3f74SwdenkMPC86xADS_config  \
8091114257cSwdenkMPC885ADS_config  \
810180d3f74SwdenkFADS860T_config:	unconfig
811f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
8127ebf7443Swdenk
8137ebf7443SwdenkAMX860_config	:	unconfig
814f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
8157ebf7443Swdenk
8167ebf7443Swdenkc2mon_config:		unconfig
817f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
8187ebf7443Swdenk
8197ebf7443SwdenkCCM_config:		unconfig
820f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
8217ebf7443Swdenk
8227ebf7443Swdenkcogent_mpc8xx_config:	unconfig
823f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
8247ebf7443Swdenk
8253bac3513SwdenkELPT860_config:		unconfig
826f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
8273bac3513Swdenk
82884c960ceSWolfgang DenkEP88x_config:		unconfig
829f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
83084c960ceSWolfgang Denk
8317ebf7443SwdenkESTEEM192E_config:	unconfig
832f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
8337ebf7443Swdenk
8347ebf7443SwdenkETX094_config	:	unconfig
835f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
8367ebf7443Swdenk
8377ebf7443SwdenkFLAGADM_config:	unconfig
838f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
8397ebf7443Swdenk
8407aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
8417aa78614Swdenk
8427aa78614SwdenkGEN860T_SC_config	\
8437ebf7443SwdenkGEN860T_config: unconfig
844f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8457aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
846f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
847ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
8487aa78614Swdenk		}
849f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
8507ebf7443Swdenk
8517ebf7443SwdenkGENIETV_config:	unconfig
852f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
8537ebf7443Swdenk
8547ebf7443SwdenkGTH_config:	unconfig
855f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
8567ebf7443Swdenk
8577ebf7443Swdenkhermes_config	:	unconfig
858f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
8597ebf7443Swdenk
860c40b2956SwdenkHMI10_config	:	unconfig
8614677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
862c40b2956Swdenk
8637ebf7443SwdenkIAD210_config: unconfig
864f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
8657ebf7443Swdenk
8667ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
8677ebf7443Swdenk
8687ebf7443SwdenkICU862_100MHz_config	\
8697ebf7443SwdenkICU862_config: unconfig
870f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8717ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
872f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
873ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
8747ebf7443Swdenk		}
875f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8767ebf7443Swdenk
8777ebf7443SwdenkIP860_config	:	unconfig
878f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8797ebf7443Swdenk
8807ebf7443SwdenkIVML24_256_config \
8817ebf7443SwdenkIVML24_128_config \
8827ebf7443SwdenkIVML24_config:	unconfig
883f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8847ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
885f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
8867ebf7443Swdenk		 }
8877ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
888f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
8897ebf7443Swdenk		 }
8907ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
891f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
8927ebf7443Swdenk		 }
893f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
8947ebf7443Swdenk
8957ebf7443SwdenkIVMS8_256_config \
8967ebf7443SwdenkIVMS8_128_config \
8977ebf7443SwdenkIVMS8_config:	unconfig
898f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8997ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
900f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
9017ebf7443Swdenk		 }
9027ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
903f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
9047ebf7443Swdenk		 }
9057ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
906f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
9077ebf7443Swdenk		 }
908f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
9097ebf7443Swdenk
91056f94be3SwdenkKUP4K_config	:	unconfig
911f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
9120608e04dSwdenk
9130608e04dSwdenkKUP4X_config	:	unconfig
914f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
91556f94be3Swdenk
9167ebf7443SwdenkLANTEC_config	:	unconfig
917f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
9187ebf7443Swdenk
9197ebf7443Swdenklwmon_config:		unconfig
920f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
9217ebf7443Swdenk
9227ebf7443SwdenkMBX_config	\
9237ebf7443SwdenkMBX860T_config:	unconfig
924f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
9257ebf7443Swdenk
926381e4e63SHeiko Schochermgsuvd_config:		unconfig
92786e9cdf8SHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd keymile
928381e4e63SHeiko Schocher
9297ebf7443SwdenkMHPC_config:		unconfig
930f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
9317ebf7443Swdenk
932993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
933993cad93Swdenk
934993cad93SwdenkNETVIA_V2_config \
9357ebf7443SwdenkNETVIA_config:		unconfig
936f9328639SMarian Balakowicz	@mkdir -p $(obj)include
937993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
938f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
939ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
940993cad93Swdenk		 }
941993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
942f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
943ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
944993cad93Swdenk		 }
945f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
9467ebf7443Swdenk
947c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
948c26e454dSwdenk
949c26e454dSwdenkNETPHONE_V2_config \
95004a85b3bSwdenkNETPHONE_config:	unconfig
951f9328639SMarian Balakowicz	@mkdir -p $(obj)include
952c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
953f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
954c26e454dSwdenk		 }
955c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
956f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
957c26e454dSwdenk		 }
958f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
95904a85b3bSwdenk
96079fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
96104a85b3bSwdenk
96279fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
96379fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
96479fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
96579fa88f3SwdenkNETTA_SWAPHOOK_config \
96679fa88f3SwdenkNETTA_ISDN_6412_config \
96704a85b3bSwdenkNETTA_ISDN_config \
96879fa88f3SwdenkNETTA_6412_config \
96904a85b3bSwdenkNETTA_config:		unconfig
970f9328639SMarian Balakowicz	@mkdir -p $(obj)include
97179fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
972f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
97304a85b3bSwdenk		 }
97479fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
975f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
97679fa88f3Swdenk		 }
97779fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
978f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
97979fa88f3Swdenk		 }
98079fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
981f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
98279fa88f3Swdenk		 }
98379fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
984f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
98579fa88f3Swdenk		 }
98679fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
987f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
98879fa88f3Swdenk		 }
989f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
99004a85b3bSwdenk
99179fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
99279fa88f3Swdenk
99379fa88f3SwdenkNETTA2_V2_config \
99479fa88f3SwdenkNETTA2_config:		unconfig
995f9328639SMarian Balakowicz	@mkdir -p $(obj)include
99679fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
997f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
99879fa88f3Swdenk		 }
99979fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
1000f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
100179fa88f3Swdenk		 }
1002f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
100379fa88f3Swdenk
1004a367d426Sdzu@denx.deNC650_Rev1_config \
1005a367d426Sdzu@denx.deNC650_Rev2_config \
1006a367d426Sdzu@denx.deCP850_config:	unconfig
1007f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1008a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
1009f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1010f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1011a367d426Sdzu@denx.de		 }
1012a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
1013f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1014a367d426Sdzu@denx.de		 }
1015a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
1016f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1017a367d426Sdzu@denx.de		 }
1018f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
10197ca202f5Swdenk
10207ebf7443SwdenkNX823_config:		unconfig
1021f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
10227ebf7443Swdenk
10237ebf7443Swdenkpcu_e_config:		unconfig
1024f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
10257ebf7443Swdenk
10263bbc899fSwdenkQS850_config:	unconfig
1027f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10283bbc899fSwdenk
10293bbc899fSwdenkQS823_config:	unconfig
1030f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10313bbc899fSwdenk
10323bbc899fSwdenkQS860T_config:	unconfig
1033f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
10343bbc899fSwdenk
1035da93ed81Swdenkquantum_config:	unconfig
1036f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1037da93ed81Swdenk
10387ebf7443SwdenkR360MPI_config:	unconfig
1039f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
10407ebf7443Swdenk
1041682011ffSwdenkRBC823_config:	unconfig
1042f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1043682011ffSwdenk
10447ebf7443SwdenkRPXClassic_config:	unconfig
1045f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
10467ebf7443Swdenk
10477ebf7443SwdenkRPXlite_config:		unconfig
1048f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
10497ebf7443Swdenk
1050e63c8ee3SwdenkRPXlite_DW_64_config		\
1051e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1052e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1053e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1054e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config	\
1055e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1056e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config	\
1057e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1058f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1059e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1060f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1061ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1062e63c8ee3Swdenk		}
1063e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1064f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1065f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1066ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1067e63c8ee3Swdenk		}
1068e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
10699314cee6SJean-Christophe PLAGNIOL-VILLARD		{ echo "#define  CONFIG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1070ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1071e63c8ee3Swdenk		}
1072f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1073e63c8ee3Swdenk
107473a8b27cSwdenkrmu_config:	unconfig
1075f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
107673a8b27cSwdenk
10777ebf7443SwdenkRRvision_config:	unconfig
1078f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10797ebf7443Swdenk
10807ebf7443SwdenkRRvision_LCD_config:	unconfig
1081f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1082f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1083f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1084f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10857ebf7443Swdenk
10867ebf7443SwdenkSM850_config	:	unconfig
10874677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
10887ebf7443Swdenk
108991c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config:		unconfig
1090f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1091b02d0177SMarkus Klotzbuecher
10927ebf7443SwdenkSPD823TS_config:	unconfig
1093f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
10947ebf7443Swdenk
10956bdf4306SWolfgang Denkstxxtc_config:	unconfig
1096f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
10976bdf4306SWolfgang Denk
1098dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1099f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1100dc7c9a1aSwdenk
11017ebf7443SwdenkSXNI855T_config:	unconfig
1102f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
11037ebf7443Swdenk
1104db2f721fSwdenk# EMK MPC8xx based modules
1105db2f721fSwdenkTOP860_config:		unconfig
1106f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1107db2f721fSwdenk
11087ebf7443Swdenk# Play some tricks for configuration selection
1109e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1110e9132ea9Swdenk# and only 823 boards may have LCD support
1111e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
11127ebf7443Swdenk
11137ebf7443SwdenkFPS850L_config		\
1114384ae025SwdenkFPS860L_config		\
1115f12e568cSwdenkNSCU_config		\
11167ebf7443SwdenkTQM823L_config		\
11177ebf7443SwdenkTQM823L_LCD_config	\
11187ebf7443SwdenkTQM850L_config		\
11197ebf7443SwdenkTQM855L_config		\
11207ebf7443SwdenkTQM860L_config		\
1121d126bfbdSwdenkTQM862L_config		\
1122ae3af05eSwdenkTQM823M_config		\
1123ae3af05eSwdenkTQM850M_config		\
1124f12e568cSwdenkTQM855M_config		\
1125f12e568cSwdenkTQM860M_config		\
1126f12e568cSwdenkTQM862M_config		\
11278cba090cSWolfgang DenkTQM866M_config		\
1128090eb735SMarkus KlotzbuecherTQM885D_config		\
1129efc6f447SGuennadi LiakhovetskiTK885D_config		\
11308cba090cSWolfgang Denkvirtlab2_config:	unconfig
1131f9328639SMarian Balakowicz	@mkdir -p $(obj)include
11327ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1133f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1134f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1135ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
11367ebf7443Swdenk		}
11374677988cSWolfgang Grandegger	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
11387ebf7443Swdenk
11397ebf7443SwdenkTTTech_config:	unconfig
1140f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1141f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1142f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
11434677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
11447ebf7443Swdenk
1145ec0aee7bSwdenkuc100_config	:	unconfig
1146f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1147f7d1572bSwdenk
1148608c9146Swdenkv37_config:	unconfig
1149f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1150f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1151f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1152f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1153608c9146Swdenk
115491e940d9Sdzuwtk_config:	unconfig
1155f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1156f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1157f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
11584677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
115991e940d9Sdzu
11607ebf7443Swdenk#########################################################################
11617ebf7443Swdenk## PPC4xx Systems
11627ebf7443Swdenk#########################################################################
1163e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11647ebf7443Swdenk
116516c0cc1cSStefan Roeseacadia_config:	unconfig
116616c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
116716c0cc1cSStefan Roese
1168c440bfe6SStefan Roeseacadia_nand_config:	unconfig
116963e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
117063e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1171c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1172c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1173c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1174c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1175c440bfe6SStefan Roese
11767ebf7443SwdenkADCIOP_config:	unconfig
1177f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11787ebf7443Swdenk
1179899620c2SStefan Roesealpr_config:	unconfig
118035d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1181899620c2SStefan Roese
11827521af1cSWolfgang DenkAP1000_config:unconfig
1183f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11847521af1cSWolfgang Denk
1185c419d1d6SstroeseAPC405_config:	unconfig
1186f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1187c419d1d6Sstroese
11887ebf7443SwdenkAR405_config:	unconfig
1189f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
11907ebf7443Swdenk
1191549826eaSstroeseASH405_config:	unconfig
1192f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1193549826eaSstroese
11948a316c9bSStefan Roesebamboo_config:	unconfig
1195f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
11968a316c9bSStefan Roese
1197cf959c7dSStefan Roesebamboo_nand_config:	unconfig
119863e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
119963e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1200cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1201f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1202cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1203cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1204cf959c7dSStefan Roese
12058a316c9bSStefan Roesebubinga_config:	unconfig
1206f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1207549826eaSstroese
12087ebf7443SwdenkCANBT_config:	unconfig
1209f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
12107ebf7443Swdenk
1211f09f09d3SAdam Graham# Arches, Canyonlands & Glacier use different U-Boot images
1212f09f09d3SAdam Grahamarches_config \
12134c9e8557SStefan Roesecanyonlands_config \
12144c9e8557SStefan Roeseglacier_config:	unconfig
12154c9e8557SStefan Roese	@mkdir -p $(obj)include
12164c9e8557SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
12174c9e8557SStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
12184c9e8557SStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1219c813f1f8SStefan Roese
1220fe7c0db6SStefan Roesecanyonlands_nand_config \
1221fe7c0db6SStefan Roeseglacier_nand_config:	unconfig
122271665ebfSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/canyonlands
122371665ebfSStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/canyonlands
122471665ebfSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1225fe7c0db6SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1226fe7c0db6SStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
122771665ebfSStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
122871665ebfSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
122971665ebfSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
123071665ebfSStefan Roese
12311d6f9720SwdenkCATcenter_config	\
12321d6f9720SwdenkCATcenter_25_config	\
12331d6f9720SwdenkCATcenter_33_config:	unconfig
1234f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1235f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1236f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
12371d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1238f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1239ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
12401d6f9720Swdenk		}
12411d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1242f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1243ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
12441d6f9720Swdenk		}
1245f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
124610767ccbSwdenk
1247699f0512SWolfgang DenkCMS700_config:	unconfig
1248699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1249699f0512SWolfgang Denk
12507644f16fSStefan RoeseCPCI2DP_config:	unconfig
1251f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
12527644f16fSStefan Roese
1253767f9159SMatthias FuchsCPCI405_config:		unconfig
1254767f9159SMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1255767f9159SMatthias Fuchs
1256549826eaSstroeseCPCI4052_config		\
1257c419d1d6SstroeseCPCI405DT_config	\
1258549826eaSstroeseCPCI405AB_config:	unconfig
1259dd794323SMatthias Fuchs	@mkdir -p $(obj)board/esd/cpci405
1260767f9159SMatthias Fuchs	@echo "TEXT_BASE = 0xFFFC0000" > $(obj)board/esd/cpci405/config.tmp
1261f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
12627ebf7443Swdenk
12637ebf7443SwdenkCPCIISER4_config:	unconfig
1264f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
12657ebf7443Swdenk
12667ebf7443SwdenkCRAYL1_config:	unconfig
1267f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
12687ebf7443Swdenk
1269cd0a9de6Swdenkcsb272_config:	unconfig
1270f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1271cd0a9de6Swdenk
1272aa245090Swdenkcsb472_config:	unconfig
1273f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1274aa245090Swdenk
12757ebf7443SwdenkDASA_SIM_config: unconfig
1276f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
12777ebf7443Swdenk
127872cd5aa7SstroeseDP405_config:	unconfig
1279f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
128072cd5aa7Sstroese
12817ebf7443SwdenkDU405_config:	unconfig
1282f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
12837ebf7443Swdenk
12841a3ac86bSMatthias FuchsDU440_config:	unconfig
12851a3ac86bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
12861a3ac86bSMatthias Fuchs
12878a316c9bSStefan Roeseebony_config:	unconfig
1288f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
12897ebf7443Swdenk
12907ebf7443SwdenkERIC_config:	unconfig
1291f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
12927ebf7443Swdenk
1293d1cbe85bSwdenkEXBITGEN_config:	unconfig
1294f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1295d1cbe85bSwdenk
1296c419d1d6SstroeseG2000_config:	unconfig
1297f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1298c419d1d6Sstroese
1299ac982ea5SNiklaus Gigerhcu4_config:	unconfig
1300b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
130135d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1302ac982ea5SNiklaus Giger
1303ac982ea5SNiklaus Gigerhcu5_config:	unconfig
1304b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
130535d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1306ac982ea5SNiklaus Giger
1307c419d1d6SstroeseHH405_config:	unconfig
1308f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1309c419d1d6Sstroese
131072cd5aa7SstroeseHUB405_config:	unconfig
1311f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
131272cd5aa7Sstroese
1313db01a2eaSwdenkJSE_config:	unconfig
1314f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1315db01a2eaSwdenk
1316b79316f2SStefan RoeseKAREF_config: unconfig
1317f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1318b79316f2SStefan Roese
13194745acaaSStefan Roesekatmai_config:	unconfig
13204745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
13214745acaaSStefan Roese
1322353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1323353f2688SStefan Roesekilauea_config \
1324353f2688SStefan Roesehaleakala_config: unconfig
1325353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1326566806caSStefan Roese
13273d6cb3b2SStefan Roesekilauea_nand_config \
13283d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
13293d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
13303d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
13313d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
13323d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
13333d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
13343d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
13353d6cb3b2SStefan Roese
1336c591dffeSLarry Johnsonkorat_config:	unconfig
1337c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1338c591dffeSLarry Johnson
13396e7fb6eaSStefan Roeseluan_config:	unconfig
1340f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
13416e7fb6eaSStefan Roese
1342b765ffb7SStefan Roeselwmon5_config:	unconfig
1343b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1344b765ffb7SStefan Roese
1345211ea91aSStefan Roesemakalu_config:	unconfig
1346211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1347211ea91aSStefan Roese
1348b05f3543SNiklaus Gigermcu25_config:  unconfig
1349b05f3543SNiklaus Giger	@mkdir -p $(obj)board/netstal/common
1350b05f3543SNiklaus Giger	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1351b05f3543SNiklaus Giger
1352b79316f2SStefan RoeseMETROBOX_config: unconfig
1353f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1354b79316f2SStefan Roese
13557ebf7443SwdenkMIP405_config:	unconfig
1356f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
13577ebf7443Swdenk
1358f3e0de60SwdenkMIP405T_config:	unconfig
1359f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1360f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1361ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1362f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1363f3e0de60Swdenk
13647ebf7443SwdenkML2_config:	unconfig
1365f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
13667ebf7443Swdenk
1367028ab6b5Swdenkml300_config:	unconfig
1368f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1369028ab6b5Swdenk
137001a00431SRicardo Ribalda Delgadoml507_flash_config: unconfig
1371880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
137201a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1373880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1374880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1375880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1376880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1377e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
137801a00431SRicardo Ribalda Delgado
1379086511fcSRicardo Ribalda Delgadoml507_config: unconfig
1380880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
138101a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1382880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1383880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1384880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000"  \
1385880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1386e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1387086511fcSRicardo Ribalda Delgado
1388d7b26d58SDirk Eibachneo_config:	unconfig
1389d7b26d58SDirk Eibach	@$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys
1390d7b26d58SDirk Eibach
13918a316c9bSStefan Roeseocotea_config:	unconfig
1392f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
13930e6d798cSwdenk
13947ebf7443SwdenkOCRTC_config		\
13957ebf7443SwdenkORSG_config:	unconfig
1396f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
13977ebf7443Swdenk
13985568e613SStefan Roesep3p440_config:	unconfig
1399f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
14005568e613SStefan Roese
14017ebf7443SwdenkPCI405_config:	unconfig
1402f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
14037ebf7443Swdenk
1404a4c8d138SStefan Roesepcs440ep_config:	unconfig
1405f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1406a4c8d138SStefan Roese
14077ebf7443SwdenkPIP405_config:	unconfig
1408f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
14097ebf7443Swdenk
141072cd5aa7SstroesePLU405_config:	unconfig
1411f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
141272cd5aa7Sstroese
1413549826eaSstroesePMC405_config:	unconfig
1414f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1415549826eaSstroese
14168ba132caSMatthias FuchsPMC440_config:	unconfig
14178ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
14188ba132caSMatthias Fuchs
1419281e00a3SwdenkPPChameleonEVB_config		\
1420e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1421e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1422e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1423e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1424e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1425e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1426f9328639SMarian Balakowicz	@mkdir -p $(obj)include
14271d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1428f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1429ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1430fbe4b5cbSwdenk		}
14311d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1432f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1433ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1434fbe4b5cbSwdenk		}
14351d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1436f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1437ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1438fbe4b5cbSwdenk		}
1439e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1440f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1441ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1442e55ca7e2Swdenk		}
1443e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1444f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1445ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1446e55ca7e2Swdenk		}
1447f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
144812f34241Swdenk
144973ccb341SGary Jennejohnquad100hd_config:	unconfig
145073ccb341SGary Jennejohn	@$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
145173ccb341SGary Jennejohn
145211188d55SStefan Roeseredwood_config: unconfig
145311188d55SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
145411188d55SStefan Roese
1455430f1b0fSStefan Roesesbc405_config:	unconfig
1456430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1457430f1b0fSStefan Roese
1458699f0512SWolfgang Denksc3_config:unconfig
1459699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1460699f0512SWolfgang Denk
1461430f1b0fSStefan Roesesequoia_config \
1462854bc8daSStefan Roeserainier_config: unconfig
14638318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1464430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1465430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14662aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1467854bc8daSStefan Roese
1468430f1b0fSStefan Roesesequoia_nand_config \
1469854bc8daSStefan Roeserainier_nand_config: unconfig
147063e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
147163e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
14728318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1473430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1474430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1475430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
14768318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
14778318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1478652a10c0Swdenk
1479d4024bb7SJohn Otkentaihu_config:	unconfig
1480d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1481d4024bb7SJohn Otken
14825fb692caSStefan Roesetaishan_config:	unconfig
14835fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
14845fb692caSStefan Roese
1485e07f4a80SRicardo Ribalda Delgadov5fx30teval_config: unconfig
1486880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1487e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1488880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1489880f6a5dSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1490880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x03000000" \
1491880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1492e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1493e07f4a80SRicardo Ribalda Delgado
1494e07f4a80SRicardo Ribalda Delgadov5fx30teval_flash_config: unconfig
1495880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1496e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1497880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
14982bec498eSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1499880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFF1C0000" \
15002bec498eSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1501e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1502e07f4a80SRicardo Ribalda Delgado
150372cd5aa7SstroeseVOH405_config:	unconfig
1504f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
150572cd5aa7Sstroese
1506c419d1d6SstroeseVOM405_config:	unconfig
1507f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1508c419d1d6Sstroese
15097ebf7443SwdenkW7OLMC_config	\
15107ebf7443SwdenkW7OLMG_config: unconfig
1511f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
15127ebf7443Swdenk
1513430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1514430f1b0fSStefan Roesewalnut_config \
1515430f1b0fSStefan Roesesycamore_config: unconfig
1516430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
15177ebf7443Swdenk
1518c419d1d6SstroeseWUH405_config:	unconfig
1519f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1520c419d1d6Sstroese
1521*1f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_flash_config: unconfig
1522*1f4d5326SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1523*1f4d5326SRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1524*1f4d5326SRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc405-generic/config.tmp
1525*1f4d5326SRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1526*1f4d5326SRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc405-generic/config.tmp
1527*1f4d5326SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
1528*1f4d5326SRicardo Ribalda Delgado
1529*1f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_config: unconfig
1530*1f4d5326SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1531*1f4d5326SRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1532*1f4d5326SRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc405-generic/config.tmp
1533*1f4d5326SRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
1534*1f4d5326SRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc405-generic/config.tmp
1535*1f4d5326SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
1536*1f4d5326SRicardo Ribalda Delgado
1537e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_flash_config: unconfig
1538880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1539880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1540880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1541880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1542880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1543e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1544e07f4a80SRicardo Ribalda Delgado
1545e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_config: unconfig
1546880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1547880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1548880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1549880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
1550880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1551e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1552e07f4a80SRicardo Ribalda Delgado
1553ba56f625SwdenkXPEDITE1K_config:	unconfig
1554f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1555ba56f625Swdenk
1556430f1b0fSStefan Roeseyosemite_config \
15578a316c9bSStefan Roeseyellowstone_config: unconfig
1558700200c6SStefan Roese	@mkdir -p $(obj)include
1559430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1560430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
15612aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
15628a316c9bSStefan Roese
15636c5879f3SMarian Balakowiczyucca_config:	unconfig
1564f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
15656c5879f3SMarian Balakowicz
1566779e9751SStefan Roesezeus_config:	unconfig
1567779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1568779e9751SStefan Roese
15697ebf7443Swdenk#########################################################################
1570983fda83Swdenk## MPC8220 Systems
1571983fda83Swdenk#########################################################################
1572dc17fb6dSWolfgang Denk
1573dc17fb6dSWolfgang DenkAlaska8220_config	\
1574dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1575f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1576983fda83Swdenk
157712b43d51Swdenksorcery_config:		unconfig
1578f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
157912b43d51Swdenk
1580983fda83Swdenk#########################################################################
15817ebf7443Swdenk## MPC824x Systems
15827ebf7443Swdenk#########################################################################
1583efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
15843bac3513Swdenk
15850332990bSwdenkA3000_config: unconfig
1586f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
15870332990bSwdenk
15888e6f1a8eSWolfgang Denkbarco_config: unconfig
1589f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
15908e6f1a8eSWolfgang Denk
15917ebf7443SwdenkBMW_config: unconfig
1592f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
15937ebf7443Swdenk
15943bac3513SwdenkCPC45_config	\
15953bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1596f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1597f9328639SMarian Balakowicz	@cd $(obj)include ;				\
15983bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
15993bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1600ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
16013bac3513Swdenk	else \
16023bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1603ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
16043bac3513Swdenk	fi; \
16053bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
16063bac3513Swdenk
16077ebf7443SwdenkCU824_config: unconfig
1608f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
16097ebf7443Swdenk
16107abf0c58Swdenkdebris_config: unconfig
1611f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
16127abf0c58Swdenk
161380885a9dSwdenkeXalion_config: unconfig
1614f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
161580885a9dSwdenk
1616756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1617f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1618756f586aSwdenk
161953dd6ce4SWolfgang Denkkvme080_config: unconfig
1620f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
162153dd6ce4SWolfgang Denk
162261525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
162361525f2fSGuennadi Liakhovetski# time permits.
162461525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \
162561525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed
162661525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig
162761525f2fSGuennadi Liakhovetski	@mkdir -p $(obj)include
162861525f2fSGuennadi Liakhovetski	@case $@ in \
162961525f2fSGuennadi Liakhovetski		*HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
163061525f2fSGuennadi Liakhovetski		*HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
163161525f2fSGuennadi Liakhovetski	esac
163261525f2fSGuennadi Liakhovetski	@$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
163361525f2fSGuennadi Liakhovetski
16347ebf7443SwdenkMOUSSE_config: unconfig
1635f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
16367ebf7443Swdenk
16377ebf7443SwdenkMUSENKI_config: unconfig
1638f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
16397ebf7443Swdenk
1640b4676a25SwdenkMVBLUE_config:	unconfig
1641f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1642b4676a25Swdenk
16437ebf7443SwdenkOXC_config: unconfig
1644f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
16457ebf7443Swdenk
16467ebf7443SwdenkPN62_config: unconfig
1647f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
16487ebf7443Swdenk
16497ebf7443SwdenkSandpoint8240_config: unconfig
1650f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
16517ebf7443Swdenk
16527ebf7443SwdenkSandpoint8245_config: unconfig
1653f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
16547ebf7443Swdenk
1655466b7410Swdenksbc8240_config: unconfig
1656f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1657466b7410Swdenk
1658d1cbe85bSwdenkSL8245_config: unconfig
1659f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1660d1cbe85bSwdenk
16617ebf7443Swdenkutx8245_config: unconfig
1662f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
16637ebf7443Swdenk
16647ebf7443Swdenk#########################################################################
16657ebf7443Swdenk## MPC8260 Systems
16667ebf7443Swdenk#########################################################################
16677ebf7443Swdenk
166854387ac9Swdenkatc_config:	unconfig
1669f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
167054387ac9Swdenk
16717ebf7443Swdenkcogent_mpc8260_config:	unconfig
1672f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
16737ebf7443Swdenk
16747ebf7443SwdenkCPU86_config	\
16757ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1676f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1677f9328639SMarian Balakowicz	@cd $(obj)include ;				\
16787ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
16797ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1680ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
16817ebf7443Swdenk	else \
16827ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1683ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
16847ebf7443Swdenk	fi; \
16857ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
16867ebf7443Swdenk
1687384cc687SwdenkCPU87_config	\
1688384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1689f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1690f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1691384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1692384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1693ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1694384cc687Swdenk	else \
1695384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1696ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1697384cc687Swdenk	fi; \
1698384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1699384cc687Swdenk
1700f901a83bSWolfgang Denkep8248_config	\
1701f901a83bSWolfgang Denkep8248E_config	:	unconfig
1702f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1703f901a83bSWolfgang Denk
17047ebf7443Swdenkep8260_config:	unconfig
1705f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
17067ebf7443Swdenk
17078d4ac794SWolfgang Denkep82xxm_config:	unconfig
170890b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
17098d4ac794SWolfgang Denk
17107ebf7443Swdenkgw8260_config:	unconfig
1711f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
17127ebf7443Swdenk
17137ebf7443Swdenkhymod_config:	unconfig
1714f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
17157ebf7443Swdenk
17169dd41a7bSwdenkIDS8247_config:	unconfig
1717f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
17189dd41a7bSwdenk
17197ebf7443SwdenkIPHASE4539_config:	unconfig
1720f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
17217ebf7443Swdenk
1722c3c7f861SwdenkISPAN_config		\
1723c3c7f861SwdenkISPAN_REVB_config:	unconfig
1724f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1725c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
17266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1727c3c7f861Swdenk	fi
1728f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1729c3c7f861Swdenk
1730ac9db066SHeiko Schochermgcoge_config	:	unconfig
173186e9cdf8SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile
1732ac9db066SHeiko Schocher
173304a85b3bSwdenkMPC8260ADS_config	\
1734901787d6SwdenkMPC8260ADS_lowboot_config	\
173504a85b3bSwdenkMPC8260ADS_33MHz_config	\
1736901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
173704a85b3bSwdenkMPC8260ADS_40MHz_config	\
1738901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
173904a85b3bSwdenkMPC8272ADS_config	\
1740901787d6SwdenkMPC8272ADS_lowboot_config	\
174104a85b3bSwdenkPQ2FADS_config		\
1742901787d6SwdenkPQ2FADS_lowboot_config		\
174304a85b3bSwdenkPQ2FADS-VR_config	\
1744901787d6SwdenkPQ2FADS-VR_lowboot_config	\
174504a85b3bSwdenkPQ2FADS-ZU_config	\
1746901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
174704a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1748901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
174904a85b3bSwdenk	:		unconfig
1750f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1751b7e24d28SJon Loeliger	@mkdir -p $(obj)board/freescale/mpc8260ads
175204a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
17536d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
17546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
175504a85b3bSwdenk	$(if $(findstring MHz,$@), \
1756f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
175704a85b3bSwdenk	$(if $(findstring VR,$@), \
1758f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1759901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1760b7e24d28SJon Loeliger		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1761ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1762901787d6Swdenk		}
1763b7e24d28SJon Loeliger	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
17647ebf7443Swdenk
1765db2f721fSwdenkMPC8266ADS_config:	unconfig
1766aa3511e4SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1767db2f721fSwdenk
1768adf22b66SHeiko Schochermuas3001_dev_config \
1769adf22b66SHeiko Schochermuas3001_config	:	unconfig
1770adf22b66SHeiko Schocher	@mkdir -p $(obj)include
1771adf22b66SHeiko Schocher	@mkdir -p $(obj)board/muas3001
1772adf22b66SHeiko Schocher	@if [ "$(findstring dev,$@)" ] ; then \
1773adf22b66SHeiko Schocher		echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1774adf22b66SHeiko Schocher	fi
1775adf22b66SHeiko Schocher	@$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1776adf22b66SHeiko Schocher
1777efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
177810f67017SwdenkPM825_config	\
1779efa329cbSwdenkPM825_ROMBOOT_config	\
1780efa329cbSwdenkPM825_BIGFLASH_config	\
1781efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
17827ebf7443SwdenkPM826_config	\
1783efa329cbSwdenkPM826_ROMBOOT_config	\
1784efa329cbSwdenkPM826_BIGFLASH_config	\
1785efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1786f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1787f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1788efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1789f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
17907ebf7443Swdenk	else \
1791f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1792efa329cbSwdenk	fi
1793efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1794ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1795f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1796f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1797efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1798ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1799f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
18007ebf7443Swdenk		fi; \
1801efa329cbSwdenk	else \
1802ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1803efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1804ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1805f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1806f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1807efa329cbSwdenk		else \
1808f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1809efa329cbSwdenk		fi; \
1810efa329cbSwdenk	fi
1811f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1812efa329cbSwdenk
1813efa329cbSwdenkPM828_config	\
1814efa329cbSwdenkPM828_PCI_config	\
1815efa329cbSwdenkPM828_ROMBOOT_config	\
1816efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1817f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1818f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
181917076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1820f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1821ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1822efa329cbSwdenk	fi
1823efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1824ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1825f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1826f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1827efa329cbSwdenk	fi
1828f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
18297ebf7443Swdenk
18307ebf7443Swdenkppmc8260_config:	unconfig
1831f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
18327ebf7443Swdenk
18338b0bfc68SwdenkRattler8248_config	\
18348b0bfc68SwdenkRattler_config:		unconfig
1835f9328639SMarian Balakowicz	@mkdir -p $(obj)include
18368b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1837f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1838f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
18398b0bfc68Swdenk
18407ebf7443SwdenkRPXsuper_config:	unconfig
1841f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
18427ebf7443Swdenk
18437ebf7443Swdenkrsdproto_config:	unconfig
1844f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
18457ebf7443Swdenk
18467ebf7443Swdenksacsng_config:	unconfig
1847f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
18487ebf7443Swdenk
18497ebf7443Swdenksbc8260_config:	unconfig
1850f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
18517ebf7443Swdenk
18527ebf7443SwdenkSCM_config:		unconfig
1853f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
18547ebf7443Swdenk
185527b207fdSwdenkTQM8255_AA_config \
185627b207fdSwdenkTQM8260_AA_config \
185727b207fdSwdenkTQM8260_AB_config \
185827b207fdSwdenkTQM8260_AC_config \
185927b207fdSwdenkTQM8260_AD_config \
186027b207fdSwdenkTQM8260_AE_config \
186127b207fdSwdenkTQM8260_AF_config \
186227b207fdSwdenkTQM8260_AG_config \
186327b207fdSwdenkTQM8260_AH_config \
18641f62bc2dSWolfgang DenkTQM8260_AI_config \
186527b207fdSwdenkTQM8265_AA_config:  unconfig
1866f9328639SMarian Balakowicz	@mkdir -p $(obj)include
186727b207fdSwdenk	@case "$@" in \
186827b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
186927b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
187027b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
187127b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
187227b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
187327b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
187427b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
187527b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
187627b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
18771f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
187827b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
187927b207fdSwdenk	esac; \
188027b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1881f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
188227b207fdSwdenk	fi; \
1883f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
188427b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
18851aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1886f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1887ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
18887ebf7443Swdenk	else \
1889f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1890ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
189127b207fdSwdenk	fi; \
18921aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1893f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1894ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
189527b207fdSwdenk	else \
1896f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1897ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
18987ebf7443Swdenk	fi
18994677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
19007ebf7443Swdenk
1901fa230445SHeiko SchocherTQM8272_config: unconfig
19024677988cSWolfgang Grandegger	@$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1903fa230445SHeiko Schocher
1904ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1905ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1906f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1907f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1908f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1909ba91e26aSwdenk
191054387ac9SwdenkZPC1900_config: unconfig
1911f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
19127aa78614Swdenk
19134e5ca3ebSwdenk#########################################################################
19144e5ca3ebSwdenk## Coldfire
19154e5ca3ebSwdenk#########################################################################
19164e5ca3ebSwdenk
19171552af70STsiChungLiewM52277EVB_config:	unconfig
19181552af70STsiChungLiew	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
19191552af70STsiChungLiew
19204a442d31STsiChungLiewM5235EVB_config \
19214a442d31STsiChungLiewM5235EVB_Flash16_config \
19224a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
19234a442d31STsiChungLiew	@case "$@" in \
19244a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
19254a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
19264a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
19274a442d31STsiChungLiew	esac; \
19284a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
1929ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
19304a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
19314a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
19324a442d31STsiChungLiew	else \
19334a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
19344a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
19354a442d31STsiChungLiew	fi
19364a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
19374a442d31STsiChungLiew
1938a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1939a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1940a605aacdSTsiChungLiew
19416d33c6acSTsiChung LiewM5253DEMO_config :		unconfig
19426d33c6acSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
19436d33c6acSTsiChung Liew
1944a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1945a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1946a1436a84STsiChungLiew
19477481266eSWolfgang Denkcobra5272_config :		unconfig
1948f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
19497481266eSWolfgang Denk
19504176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1951f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1952f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1953f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1954f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
19554176c799SWolfgang Denk
19564176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1957f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1958f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1959f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1960f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
19614176c799SWolfgang Denk
1962daa6e418SBartlomiej Siekaidmr_config :			unconfig
1963daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1964daa6e418SBartlomiej Sieka
19654176c799SWolfgang DenkM5271EVB_config :		unconfig
1966659e9badSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
19674176c799SWolfgang Denk
19684e5ca3ebSwdenkM5272C3_config :		unconfig
196956df091dSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
19704e5ca3ebSwdenk
1971545c8e0aSMatthew FettkeM5275EVB_config :		unconfig
1972545c8e0aSMatthew Fettke	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1973545c8e0aSMatthew Fettke
19744e5ca3ebSwdenkM5282EVB_config :		unconfig
197510db3a17STsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
19764e5ca3ebSwdenk
19778e585f02STsiChung LiewM5329AFEE_config \
19788e585f02STsiChung LiewM5329BFEE_config :	unconfig
19798e585f02STsiChung Liew	@case "$@" in \
19808e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
19818e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
19828e585f02STsiChung Liew	esac; \
19838e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
1984ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
19858e585f02STsiChung Liew	fi
19868e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
19878e585f02STsiChung Liew
1988aa5f1f9dSTsiChungLiewM5373EVB_config :	unconfig
1989aa5f1f9dSTsiChungLiew	@case "$@" in \
1990aa5f1f9dSTsiChungLiew	M5373EVB_config)	NAND=16;; \
1991aa5f1f9dSTsiChungLiew	esac; \
1992aa5f1f9dSTsiChungLiew	if [ "$${NAND}" != "0" ] ; then \
1993aa5f1f9dSTsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
1994aa5f1f9dSTsiChungLiew	fi
1995aa5f1f9dSTsiChungLiew	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1996aa5f1f9dSTsiChungLiew
199705316f8eSTsiChung LiewM54451EVB_config \
199805316f8eSTsiChung LiewM54451EVB_spansion_config \
199905316f8eSTsiChung LiewM54451EVB_stmicro_config :	unconfig
200005316f8eSTsiChung Liew	@case "$@" in \
200105316f8eSTsiChung Liew	M54451EVB_config)		FLASH=SPANSION;; \
200205316f8eSTsiChung Liew	M54451EVB_spansion_config)	FLASH=SPANSION;; \
200305316f8eSTsiChung Liew	M54451EVB_stmicro_config)	FLASH=STMICRO;; \
200405316f8eSTsiChung Liew	esac; \
200505316f8eSTsiChung Liew	if [ "$${FLASH}" = "SPANSION" ] ; then \
20066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_SPANSION_BOOT"	>> $(obj)include/config.h ; \
200705316f8eSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
200805316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
200905316f8eSTsiChung Liew		$(XECHO) "... with SPANSION boot..." ; \
201005316f8eSTsiChung Liew	fi; \
201105316f8eSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
201205316f8eSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
20136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
201405316f8eSTsiChung Liew		echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
201505316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
201605316f8eSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
201705316f8eSTsiChung Liew	fi; \
20186d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
201905316f8eSTsiChung Liew	@$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
202005316f8eSTsiChung Liew
20218ae158cdSTsiChungLiewM54455EVB_config \
20228ae158cdSTsiChungLiewM54455EVB_atmel_config \
20238ae158cdSTsiChungLiewM54455EVB_intel_config \
20248ae158cdSTsiChungLiewM54455EVB_a33_config \
20258ae158cdSTsiChungLiewM54455EVB_a66_config \
20268ae158cdSTsiChungLiewM54455EVB_i33_config \
20279f751551STsiChung LiewM54455EVB_i66_config \
20289f751551STsiChung LiewM54455EVB_stm33_config :	unconfig
20298ae158cdSTsiChungLiew	@case "$@" in \
20308ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
20318ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
20328ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
20338ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
20348ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
20358ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
20368ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
20379f751551STsiChung Liew	M54455EVB_stm33_config)		FLASH=STMICRO; FREQ=33333333;; \
20388ae158cdSTsiChungLiew	esac; \
20391aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
20406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
2041e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2042e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2043ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
20449f751551STsiChung Liew	fi; \
20459f751551STsiChung Liew	if [ "$${FLASH}" = "ATMEL" ] ; then \
20466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_ATMEL_BOOT"	>> $(obj)include/config.h ; \
2047e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2048e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2049ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
20508ae158cdSTsiChungLiew	fi; \
20519f751551STsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
20529f751551STsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
20536d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
20549f751551STsiChung Liew		echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
20559f751551STsiChung Liew		cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
20569f751551STsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
20579f751551STsiChung Liew	fi; \
20586d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2059ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
20608ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
20618ae158cdSTsiChungLiew
206257a12720STsiChungLiewM5475AFE_config \
206357a12720STsiChungLiewM5475BFE_config \
206457a12720STsiChungLiewM5475CFE_config \
206557a12720STsiChungLiewM5475DFE_config \
206657a12720STsiChungLiewM5475EFE_config \
206757a12720STsiChungLiewM5475FFE_config \
206857a12720STsiChungLiewM5475GFE_config :	unconfig
206957a12720STsiChungLiew	@case "$@" in \
207057a12720STsiChungLiew	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
207157a12720STsiChungLiew	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
207257a12720STsiChungLiew	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
207357a12720STsiChungLiew	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
207457a12720STsiChungLiew	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
207557a12720STsiChungLiew	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
207657a12720STsiChungLiew	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
207757a12720STsiChungLiew	esac; \
20786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BUSCLK	133333333" > $(obj)include/config.h ; \
20796d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
20806d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
208157a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
20826d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
208357a12720STsiChungLiew	fi; \
208457a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
20856d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
208657a12720STsiChungLiew	fi; \
208757a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
20886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
208957a12720STsiChungLiew	fi; \
209057a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
20916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
209257a12720STsiChungLiew	fi
209357a12720STsiChungLiew	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
209457a12720STsiChungLiew
209557a12720STsiChungLiewM5485AFE_config \
209657a12720STsiChungLiewM5485BFE_config \
209757a12720STsiChungLiewM5485CFE_config \
209857a12720STsiChungLiewM5485DFE_config \
209957a12720STsiChungLiewM5485EFE_config \
210057a12720STsiChungLiewM5485FFE_config \
210157a12720STsiChungLiewM5485GFE_config \
210257a12720STsiChungLiewM5485HFE_config :	unconfig
210357a12720STsiChungLiew	@case "$@" in \
210457a12720STsiChungLiew	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
210557a12720STsiChungLiew	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
210657a12720STsiChungLiew	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
210757a12720STsiChungLiew	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
210857a12720STsiChungLiew	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
210957a12720STsiChungLiew	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
211057a12720STsiChungLiew	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
21114d264effSTsiChungLiew	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
211257a12720STsiChungLiew	esac; \
21136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BUSCLK	100000000" > $(obj)include/config.h ; \
21146d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
21156d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
211657a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
21176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
211857a12720STsiChungLiew	fi; \
211957a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
21206d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
212157a12720STsiChungLiew	fi; \
212257a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
21236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
212457a12720STsiChungLiew	fi; \
212557a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
21266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
212757a12720STsiChungLiew	fi
212857a12720STsiChungLiew	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
212957a12720STsiChungLiew
2130699f0512SWolfgang DenkTASREG_config :		unconfig
2131699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2132699f0512SWolfgang Denk
21337ebf7443Swdenk#########################################################################
2134f046ccd1SEran Liberty## MPC83xx Systems
2135f046ccd1SEran Liberty#########################################################################
2136f046ccd1SEran Liberty
21375c5d3242SKim PhillipsMPC8313ERDB_33_config \
2138e4c09508SScott WoodMPC8313ERDB_66_config \
2139e4c09508SScott WoodMPC8313ERDB_NAND_33_config \
2140e4c09508SScott WoodMPC8313ERDB_NAND_66_config: unconfig
2141cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2142e4c09508SScott Wood	@mkdir -p $(obj)board/freescale/mpc8313erdb
2143c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2144ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
21456d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
21465c5d3242SKim Phillips	fi ; \
21475c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2148ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
21496d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
2150e4c09508SScott Wood	fi ; \
2151e4c09508SScott Wood	if [ "$(findstring _NAND_,$@)" ] ; then \
2152e4c09508SScott Wood		$(XECHO) -n "...NAND..." ; \
2153f4e55a49SKim Phillips		echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2154e4c09508SScott Wood		echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
21555c5d3242SKim Phillips	fi ;
2156e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
215764ac1eb5SNick Spence	@if [ "$(findstring _NAND_,$@)" ] ; then \
215864ac1eb5SNick Spence		echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
215964ac1eb5SNick Spence	fi ;
21605c5d3242SKim Phillips
21618bd522ceSDave LiuMPC8315ERDB_config: unconfig
21628bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
21638bd522ceSDave Liu
21641c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
21651c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
21661c274c4eSKim Phillips
21674decd84eSKim PhillipsMPC832XEMDS_config \
21684decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
21694decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
2170281df457STony LiMPC832XEMDS_SLAVE_config \
2171281df457STony LiMPC832XEMDS_ATM_config:	unconfig
2172cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2173c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2174ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2175cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
21764decd84eSKim Phillips	fi ; \
21774decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2178ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2179cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2180cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
21814decd84eSKim Phillips	fi ; \
21824decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
2183ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2184cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2185281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
21864decd84eSKim Phillips	fi ; \
21874decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2188ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2189cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2190281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2191281df457STony Li	fi ; \
2192281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2193ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2194281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2195281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
21964decd84eSKim Phillips	fi ;
2197e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2198e6f2e902SMarian Balakowicz
2199991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
2200e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2201991425feSMarian Balakowicz
22027a78f148STimur TabiMPC8349ITX_config \
22037a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
22047a78f148STimur TabiMPC8349ITXGP_config:	unconfig
22057a78f148STimur Tabi	@mkdir -p $(obj)include
2206e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
22077a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
22087a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
2209e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
22107a78f148STimur Tabi	fi
22117a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
2212e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
22137a78f148STimur Tabi	fi
2214e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
22154decd84eSKim Phillips
22165f820439SDave LiuMPC8360EMDS_config \
22175f820439SDave LiuMPC8360EMDS_HOST_33_config \
22185f820439SDave LiuMPC8360EMDS_HOST_66_config \
2219281df457STony LiMPC8360EMDS_SLAVE_config \
2220281df457STony LiMPC8360EMDS_ATM_config: unconfig
2221cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2222c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2223ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2224cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
22255f820439SDave Liu	fi ; \
22265f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2227ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2228cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2229cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
22305f820439SDave Liu	fi ; \
22315f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
2232ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2233cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2234281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
22355f820439SDave Liu	fi ; \
22365f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
2237ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2238cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2239281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2240281df457STony Li	fi ; \
2241281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2242ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2243281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2244281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
22455f820439SDave Liu	fi ;
2246e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
22475f820439SDave Liu
2248fab6f556SAnton VorontsovMPC8360ERDK_33_config \
2249fab6f556SAnton VorontsovMPC8360ERDK_66_config \
225091c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config:	unconfig
2251fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
2252c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2253ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
2254fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2255fab6f556SAnton Vorontsov	fi ;
2256fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2257fab6f556SAnton Vorontsov
225819580e66SDave LiuMPC837XEMDS_config \
225919580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
226019580e66SDave Liu	@mkdir -p $(obj)include
2261c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2262ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
226319580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
226419580e66SDave Liu	fi ;
226519580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
226619580e66SDave Liu
22675e918a98SKim PhillipsMPC837XERDB_config:	unconfig
22685e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
22695e918a98SKim Phillips
2270a1293e54SAndre SchwarzMVBLM7_config: unconfig
22711a9eeb78SAndre Schwarz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2272a1293e54SAndre Schwarz
227391e25769SPaul Gortmakersbc8349_config:		unconfig
227491e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
227591e25769SPaul Gortmaker
22764decd84eSKim PhillipsTQM834x_config:	unconfig
22774677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
22784decd84eSKim Phillips
22792ad6b513STimur Tabi
2280f046ccd1SEran Liberty#########################################################################
228142d1f039Swdenk## MPC85xx Systems
228242d1f039Swdenk#########################################################################
228342d1f039Swdenk
22847bd6104bSrobert lazarskiATUM8548_config:	unconfig
22857bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
22867bd6104bSrobert lazarski
22879490a7f1SKumar GalaMPC8536DS_config:       unconfig
22889490a7f1SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
22899490a7f1SKumar Gala
229042d1f039SwdenkMPC8540ADS_config:	unconfig
2291c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
229242d1f039Swdenk
2293b0e32949SLunsheng WangMPC8540EVAL_config \
2294b0e32949SLunsheng WangMPC8540EVAL_33_config \
2295b0e32949SLunsheng WangMPC8540EVAL_66_config \
2296b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2297b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:	  unconfig
2298f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2299c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2300ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2301b0e32949SLunsheng Wang	else \
2302f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2303ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2304b0e32949SLunsheng Wang	fi ; \
2305b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2306f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2307ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2308b0e32949SLunsheng Wang	else \
2309ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2310b0e32949SLunsheng Wang	fi
2311f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2312b0e32949SLunsheng Wang
231342d1f039SwdenkMPC8560ADS_config:	unconfig
2314870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
231542d1f039Swdenk
23167f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
231703f5c550SwdenkMPC8541CDS_config:	unconfig
23187f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2319c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
23207f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2321ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
23227f3f2bd2SRandy Vinson	fi
2323415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
232403f5c550Swdenk
232581f481caSAndy FlemingMPC8544DS_config:	unconfig
232681f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
232781f481caSAndy Fleming
23287f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2329d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
23307f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2331c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
23327f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2333ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
23347f3f2bd2SRandy Vinson	fi
2335415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2336d9b94f28SJon Loeliger
23377f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
233803f5c550SwdenkMPC8555CDS_config:	unconfig
23397f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2340c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
23417f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2342ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
23437f3f2bd2SRandy Vinson	fi
2344415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
23457abf0c58Swdenk
234667431059SAndy FlemingMPC8568MDS_config:	unconfig
2347acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
234867431059SAndy Fleming
2349129ba616SKumar GalaMPC8572DS_config:       unconfig
2350129ba616SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8572ds freescale
2351129ba616SKumar Gala
2352384cc687SwdenkPM854_config:	unconfig
2353f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2354384cc687Swdenk
2355b20d0032SWolfgang DenkPM856_config:	unconfig
2356f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2357b20d0032SWolfgang Denk
2358c15f3120Swdenksbc8540_config \
2359c15f3120Swdenksbc8540_33_config \
2360c15f3120Swdenksbc8540_66_config:	unconfig
2361f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2362c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2363f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2364ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2365c15f3120Swdenk	else \
2366ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2367c15f3120Swdenk	fi
2368f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2369c15f3120Swdenk
237011c45ebdSJoe Hammansbc8548_config:		unconfig
237111c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
237211c45ebdSJoe Hamman
2373466b7410Swdenksbc8560_config \
2374466b7410Swdenksbc8560_33_config \
2375466b7410Swdenksbc8560_66_config:	unconfig
2376f9328639SMarian Balakowicz	@mkdir -p $(obj)include
23778b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2378f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2379ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
23808b07a110Swdenk	else \
2381ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
23828b07a110Swdenk	fi
2383f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
23848b07a110Swdenk
23855d108ac8SSergei Poselenovsocrates_config:	unconfig
23865d108ac8SSergei Poselenov	@$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
23875d108ac8SSergei Poselenov
238803f5c550Swdenkstxgp3_config:		unconfig
2389f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
239003f5c550Swdenk
2391ee152983SWolfgang Denkstxssa_config		\
2392ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2393ee152983SWolfgang Denk	@mkdir -p $(obj)include
2394ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2395ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2396ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2397ee152983SWolfgang Denk	fi
2398ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
239935171dc0SDan Malek
2400d96f41e0SStefan RoeseTQM8540_config		\
2401d96f41e0SStefan RoeseTQM8541_config		\
24021287e0c5SWolfgang GrandeggerTQM8548_config		\
2403d96f41e0SStefan RoeseTQM8555_config		\
2404f5c5ef4aSwdenkTQM8560_config:		unconfig
2405f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2406a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
2407ae6d1056SWolfgang Denk	$(XECHO) "... TQM"$${CTYPE}; \
2408f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2409f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2410f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
241125991353SWolfgang Grandegger	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
24124677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2413f5c5ef4aSwdenk
241442d1f039Swdenk#########################################################################
2415debb7354SJon Loeliger## MPC86xx Systems
2416debb7354SJon Loeliger#########################################################################
2417debb7354SJon Loeliger
24183c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
24193c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
24203c89d754SJon Loeliger
2421debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
24224ce91774SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2423debb7354SJon Loeliger
2424c646bba6SJoe Hammansbc8641d_config:	unconfig
242591c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2426debb7354SJon Loeliger
2427debb7354SJon Loeliger#########################################################################
24287ebf7443Swdenk## 74xx/7xx Systems
24297ebf7443Swdenk#########################################################################
24307ebf7443Swdenk
2431c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2432f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2433c7de829cSwdenk
243415647dc7SwdenkBAB7xx_config: unconfig
2435f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
243615647dc7Swdenk
2437c419d1d6SstroeseCPCI750_config:	unconfig
2438f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2439c419d1d6Sstroese
24403a473b2aSwdenkDB64360_config:	unconfig
2441f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
24423a473b2aSwdenk
24433a473b2aSwdenkDB64460_config:	unconfig
2444f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
24453a473b2aSwdenk
244615647dc7SwdenkELPPC_config: unconfig
2447f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
244815647dc7Swdenk
24497ebf7443SwdenkEVB64260_config	\
24507ebf7443SwdenkEVB64260_750CX_config:	unconfig
2451f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
24527ebf7443Swdenk
24534c52783bSroy zangmpc7448hpc2_config:  unconfig
24547f1d846eSJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
24554c52783bSroy zang
245615647dc7SwdenkP3G4_config: unconfig
2457f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
24587ebf7443Swdenk
24591eac2a71SStefan Roesep3m750_config	\
24601eac2a71SStefan Roesep3m7448_config:		unconfig
24611eac2a71SStefan Roese	@mkdir -p $(obj)include
24621eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
24631eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
24641eac2a71SStefan Roese	else \
24651eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
24661eac2a71SStefan Roese	fi
24671eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
24681eac2a71SStefan Roese
24697ebf7443SwdenkPCIPPC2_config \
24707ebf7443SwdenkPCIPPC6_config: unconfig
2471f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
24727ebf7443Swdenk
2473f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2474f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2475f5e0d039SHeiko Schocher
2476699f0512SWolfgang DenkZUMA_config:	unconfig
2477699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2478699f0512SWolfgang Denk
24797ebf7443Swdenk#========================================================================
24807ebf7443Swdenk# ARM
24817ebf7443Swdenk#========================================================================
24827ebf7443Swdenk#########################################################################
24837ebf7443Swdenk## StrongARM Systems
24847ebf7443Swdenk#########################################################################
24857ebf7443Swdenk
2486ea66bc88Swdenkassabet_config	:	unconfig
2487f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2488ea66bc88Swdenk
24897ebf7443Swdenkdnp1110_config	:	unconfig
2490f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
24917ebf7443Swdenk
2492855a496fSwdenkgcplus_config	:	unconfig
2493f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2494855a496fSwdenk
2495855a496fSwdenklart_config	:	unconfig
2496f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2497855a496fSwdenk
24987ebf7443Swdenkshannon_config	:	unconfig
2499f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
25007ebf7443Swdenk
25017ebf7443Swdenk#########################################################################
25022e5983d2Swdenk## ARM92xT Systems
25037ebf7443Swdenk#########################################################################
25047ebf7443Swdenk
2505a4b46ed6SUlf Samuelsson#########################################################################
2506a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems
2507a4b46ed6SUlf Samuelsson#########################################################################
250820b197c6SStelian Pop
2509a85f9f21Swdenkat91rm9200dk_config	:	unconfig
251065230107SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2511a85f9f21Swdenk
2512d99a8ff6SStelian Popat91sam9261ek_config	:	unconfig
25138ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91
2514d99a8ff6SStelian Pop
25158e429b3eSStelian Popat91sam9263ek_config	:	unconfig
25168ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91
25178e429b3eSStelian Pop
25182118ebb4SStelian Popat91sam9rlek_config	:	unconfig
25198ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91
25202118ebb4SStelian Pop
2521a85f9f21Swdenkcmc_pu2_config	:	unconfig
2522f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2523a85f9f21Swdenk
2524645da510SWolfgang Denkcsb637_config	:	unconfig
2525f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2526645da510SWolfgang Denk
2527a4b46ed6SUlf Samuelssonkb9202_config	:	unconfig
2528a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2529a4b46ed6SUlf Samuelsson
2530ea8d989fSTimo Tuunainenm501sk_config	:	unconfig
2531ea8d989fSTimo Tuunainen	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
253287cb6862SWolfgang Denk
2533699f0512SWolfgang Denkmp2usb_config	:	unconfig
2534699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2535699f0512SWolfgang Denk
2536a4b46ed6SUlf Samuelsson#########################################################################
2537a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems
2538a4b46ed6SUlf Samuelsson#########################################################################
2539a4b46ed6SUlf Samuelsson
2540a4b46ed6SUlf Samuelssonat91cap9adk_config	:	unconfig
25418ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2542a4b46ed6SUlf Samuelsson
2543a4b46ed6SUlf Samuelssonat91sam9260ek_config	:	unconfig
25448ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91
2545a4b46ed6SUlf Samuelsson
254674f4304eSWolfgang Denk########################################################################
254787cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
254887cb6862SWolfgang Denkintegratorap_config	\
254987cb6862SWolfgang Denkap_config		\
255087cb6862SWolfgang Denkap966_config		\
255187cb6862SWolfgang Denkap922_config		\
255287cb6862SWolfgang Denkap922_XA10_config	\
255387cb6862SWolfgang Denkap7_config		\
255487cb6862SWolfgang Denkap720t_config		\
255587cb6862SWolfgang Denkap920t_config		\
255687cb6862SWolfgang Denkap926ejs_config		\
255787cb6862SWolfgang Denkap946es_config: unconfig
255896782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
25593d3befa7Swdenk
256087cb6862SWolfgang Denkintegratorcp_config	\
256187cb6862SWolfgang Denkcp_config		\
256287cb6862SWolfgang Denkcp920t_config		\
256387cb6862SWolfgang Denkcp926ejs_config		\
256487cb6862SWolfgang Denkcp946es_config		\
256587cb6862SWolfgang Denkcp1136_config		\
256687cb6862SWolfgang Denkcp966_config		\
256787cb6862SWolfgang Denkcp922_config		\
256887cb6862SWolfgang Denkcp922_XA10_config	\
256987cb6862SWolfgang Denkcp1026_config: unconfig
257096782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
257125d6712aSwdenk
2572699f0512SWolfgang Denkdavinci_dvevm_config :	unconfig
257389d51d02SHugo Villeneuve	@$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2574699f0512SWolfgang Denk
2575699f0512SWolfgang Denkdavinci_schmoogie_config :	unconfig
2576699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2577699f0512SWolfgang Denk
2578699f0512SWolfgang Denkdavinci_sffsdr_config :	unconfig
2579699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2580699f0512SWolfgang Denk
2581699f0512SWolfgang Denkdavinci_sonata_config :	unconfig
2582699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2583699f0512SWolfgang Denk
2584f832d8a1Swdenklpd7a400_config \
2585f832d8a1Swdenklpd7a404_config:	unconfig
2586f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
25873d3befa7Swdenk
2588281e00a3Swdenkmx1ads_config	:	unconfig
2589f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2590281e00a3Swdenk
2591281e00a3Swdenkmx1fs2_config	:	unconfig
2592f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2593281e00a3Swdenk
2594ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2595f4e7cbfcSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
2596ac7eb8a3SWolfgang Denk
25972e5983d2Swdenkomap1510inn_config :	unconfig
2598f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
25992e5983d2Swdenk
2600a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2601a4b46ed6SUlf Samuelsson
260263e73c9aSwdenkomap1610inn_config \
260363e73c9aSwdenkomap1610inn_cs0boot_config \
260463e73c9aSwdenkomap1610inn_cs3boot_config \
26053ff02c27Swdenkomap1610inn_cs_autoboot_config \
260663e73c9aSwdenkomap1610h2_config \
260763e73c9aSwdenkomap1610h2_cs0boot_config \
26083ff02c27Swdenkomap1610h2_cs3boot_config \
26093ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2610f9328639SMarian Balakowicz	@mkdir -p $(obj)include
261163e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2612cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2613ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
26143ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2615cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2616ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
261763e73c9aSwdenk	else \
2618cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2619ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
262063e73c9aSwdenk	fi;
2621f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
26226f21347dSwdenk
2623699f0512SWolfgang Denkomap5912osk_config :	unconfig
2624699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2625699f0512SWolfgang Denk
2626a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2627a4b46ed6SUlf Samuelsson
2628a56bd922Swdenkomap730p2_config \
2629a56bd922Swdenkomap730p2_cs0boot_config \
2630a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2631f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2632a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2633f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2634ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
2635a56bd922Swdenk	else \
2636f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2637ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
2638a56bd922Swdenk	fi;
2639f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2640a56bd922Swdenk
264132cb2c70SWolfgang Denksbc2410x_config: unconfig
2642f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
264332cb2c70SWolfgang Denk
2644281e00a3Swdenkscb9328_config	:	unconfig
2645f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2646281e00a3Swdenk
26477ebf7443Swdenksmdk2400_config	:	unconfig
2648f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
26497ebf7443Swdenk
26507ebf7443Swdenksmdk2410_config	:	unconfig
2651f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
26527ebf7443Swdenk
26532d24a3a7SwdenkSX1_config :		unconfig
2654f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
26552d24a3a7Swdenk
2656b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
2657a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2658a4b46ed6SUlf Samuelsson
265943d9616cSwdenktrab_config \
2660b0639ca3Swdenktrab_bigram_config \
2661b0639ca3Swdenktrab_bigflash_config \
2662f54ebdfaSwdenktrab_old_config:	unconfig
2663f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2664f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2665b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2666f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2667f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2668ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2669b0639ca3Swdenk		}
2670b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2671f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2672f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2673ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2674f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2675b0639ca3Swdenk		}
2676f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2677f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2678f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2679ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2680f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
268143d9616cSwdenk		}
2682f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
26837ebf7443Swdenk
26841cb8e980SwdenkVCMA9_config	:	unconfig
2685f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
26861cb8e980Swdenk
2687699f0512SWolfgang Denk#########################################################################
268887cb6862SWolfgang Denk# ARM supplied Versatile development boards
2689699f0512SWolfgang Denk#########################################################################
2690699f0512SWolfgang Denk
2691699f0512SWolfgang Denkcm4008_config	:	unconfig
2692699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2693699f0512SWolfgang Denk
2694699f0512SWolfgang Denkcm41xx_config	:	unconfig
2695699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2696699f0512SWolfgang Denk
269787cb6862SWolfgang Denkversatile_config	\
269887cb6862SWolfgang Denkversatileab_config	\
269987cb6862SWolfgang Denkversatilepb_config :	unconfig
270096782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2701074cff0dSwdenk
27023c2b3d45Swdenkvoiceblue_config:	unconfig
27034fedfddfSLadislav Michl	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
27043c2b3d45Swdenk
2705074cff0dSwdenk#########################################################################
2706074cff0dSwdenk## S3C44B0 Systems
2707074cff0dSwdenk#########################################################################
2708074cff0dSwdenk
2709074cff0dSwdenkB2_config	:	unconfig
2710f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2711074cff0dSwdenk
27127ebf7443Swdenk#########################################################################
27137ebf7443Swdenk## ARM720T Systems
27147ebf7443Swdenk#########################################################################
27157ebf7443Swdenk
2716c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2717f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2718c570b2fdSWolfgang Denk
27197ebf7443Swdenkep7312_config	:	unconfig
2720f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
27217ebf7443Swdenk
27222d24a3a7Swdenkimpa7_config	:	unconfig
2723f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
27242d24a3a7Swdenk
27252d1a537dSwdenkmodnet50_config :	unconfig
2726f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
27272d1a537dSwdenk
272839539887Swdenkevb4510_config :	unconfig
2729f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
273039539887Swdenk
27316bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2732b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2733b0d8f5bfSPeter Pearse
2734b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2735b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
27366bd2447eSGary Jennejohn
27377ebf7443Swdenk#########################################################################
273843d9616cSwdenk## XScale Systems
27397ebf7443Swdenk#########################################################################
27407ebf7443Swdenk
2741799891efSMichael Schwingenactux1_config	:	unconfig
2742799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux1
2743799891efSMichael Schwingen
2744799891efSMichael Schwingenactux2_config	:	unconfig
2745799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux2
2746799891efSMichael Schwingen
2747799891efSMichael Schwingenactux3_config	:	unconfig
2748799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux3
2749799891efSMichael Schwingen
2750799891efSMichael Schwingenactux4_config	:	unconfig
2751799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux4
2752799891efSMichael Schwingen
2753fabd46acSwdenkcerf250_config :	unconfig
2754f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2755fabd46acSwdenk
27567ebf7443Swdenkcradle_config	:	unconfig
2757f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
27587ebf7443Swdenk
27597ebf7443Swdenkcsb226_config	:	unconfig
2760f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
27617ebf7443Swdenk
276291c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config :	unconfig
2763f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
27640be248faSWolfgang Denk
276543d9616cSwdenkinnokom_config	:	unconfig
2766f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
276743d9616cSwdenk
27682d5b561eSwdenkixdp425_config	:	unconfig
2769f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
27702d5b561eSwdenk
2771ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2772f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2773ba94a1bbSWolfgang Denk
277443d9616cSwdenklubbock_config	:	unconfig
2775f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
277643d9616cSwdenk
27775720df78SHeiko Schocherpleb2_config	:	unconfig
2778f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
27795720df78SHeiko Schocher
278052f52c14Swdenklogodl_config	:	unconfig
2781f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
278252f52c14Swdenk
27839d8d5a5bSStefan Roesepdnb3_config \
27849d8d5a5bSStefan Roesescpu_config:	unconfig
2785cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
27869d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2787cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
2788ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
27899d8d5a5bSStefan Roese	fi
27909d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2791ba94a1bbSWolfgang Denk
2792f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2793f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2794f57f70aaSWolfgang Denk
27955e5803e1Sstefano babictrizepsiv_config	:	unconfig
27965e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
27975e5803e1Sstefano babic
27983e38691eSwdenkwepep250_config	:	unconfig
2799f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
28003e38691eSwdenk
28014ec3a7f0Swdenkxaeniax_config	:	unconfig
2802f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
28034ec3a7f0Swdenk
2804efa329cbSwdenkxm250_config	:	unconfig
2805f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2806efa329cbSwdenk
2807ca0e7748Swdenkxsengine_config :	unconfig
2808f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2809ca0e7748Swdenk
2810e0269579SMarkus Klotzbücherzylonite_config :
2811f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2812e0269579SMarkus Klotzbücher
28138ed96046Swdenk#########################################################################
28148ed96046Swdenk## ARM1136 Systems
28158ed96046Swdenk#########################################################################
28165ca9881aSPeter Pearse
28175ca9881aSPeter Pearseapollon_config		: unconfig
2818c6fe4dabSWolfgang Denk	@mkdir -p $(obj)include
2819f2302d44SStefan Roese	@mkdir -p $(obj)onenand_ipl/board/apollon
2820751b9b51SKyungmin Park	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
28215252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2822751b9b51SKyungmin Park	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
28238ed96046Swdenk
2824caebc95bSSascha Hauerimx31_litekit_config	: unconfig
2825caebc95bSSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2826caebc95bSSascha Hauer
28275ad86216SSascha Hauerimx31_phycore_config	: unconfig
28285ad86216SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
28295ad86216SSascha Hauer
2830b5dc9b30SGuennadi Liakhovetskimx31ads_config		: unconfig
2831f5acb9fdSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2832b5dc9b30SGuennadi Liakhovetski
2833699f0512SWolfgang Denkomap2420h4_config	: unconfig
2834699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2835699f0512SWolfgang Denk
283611edcfe2SGuennadi Liakhovetski#########################################################################
283711edcfe2SGuennadi Liakhovetski## ARM1176 Systems
283811edcfe2SGuennadi Liakhovetski#########################################################################
283911edcfe2SGuennadi Liakhovetskismdk6400_noUSB_config	\
284011edcfe2SGuennadi Liakhovetskismdk6400_config	:	unconfig
284111edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)include $(obj)board/samsung/smdk6400
284211edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)nand_spl/board/samsung/smdk6400
284311edcfe2SGuennadi Liakhovetski	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
284411edcfe2SGuennadi Liakhovetski	@if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then			\
284511edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
284611edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx;		\
284711edcfe2SGuennadi Liakhovetski	else										\
284811edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
284911edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx;	\
285011edcfe2SGuennadi Liakhovetski	fi
285111edcfe2SGuennadi Liakhovetski	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
285211edcfe2SGuennadi Liakhovetski
28532262cfeeSwdenk#========================================================================
28542262cfeeSwdenk# i386
28552262cfeeSwdenk#========================================================================
28562262cfeeSwdenk#########################################################################
28572262cfeeSwdenk## AMD SC520 CDP
28582262cfeeSwdenk#########################################################################
28592262cfeeSwdenksc520_cdp_config	:	unconfig
2860f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
28612262cfeeSwdenk
28627a8e9bedSwdenksc520_spunk_config	:	unconfig
2863f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
28647a8e9bedSwdenk
28657a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2866f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
28677a8e9bedSwdenk
286843d9616cSwdenk#========================================================================
286943d9616cSwdenk# MIPS
287043d9616cSwdenk#========================================================================
28717ebf7443Swdenk#########################################################################
287243d9616cSwdenk## MIPS32 4Kc
287343d9616cSwdenk#########################################################################
287443d9616cSwdenk
2875e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2876e0ac62d7Swdenk
2877e0ac62d7Swdenkincaip_100MHz_config	\
2878e0ac62d7Swdenkincaip_133MHz_config	\
2879e0ac62d7Swdenkincaip_150MHz_config	\
288043d9616cSwdenkincaip_config: unconfig
2881f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2882e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2883f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2884ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
2885e0ac62d7Swdenk		}
2886e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2887f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2888ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
2889e0ac62d7Swdenk		}
2890e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2891f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2892ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
2893e0ac62d7Swdenk		}
2894f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2895e0ac62d7Swdenk
2896f4863a7aSwdenktb0229_config: unconfig
2897f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2898f4863a7aSwdenk
2899e0ac62d7Swdenk#########################################################################
290069459791Swdenk## MIPS32 AU1X00
290169459791Swdenk#########################################################################
2902699f0512SWolfgang Denk
290369459791Swdenkdbau1000_config		:	unconfig
2904f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2905210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2906f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
290769459791Swdenk
290869459791Swdenkdbau1100_config		:	unconfig
2909f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2910210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2911f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
291269459791Swdenk
291369459791Swdenkdbau1500_config		:	unconfig
2914f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2915210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2916f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
291769459791Swdenk
2918ff36fd85Swdenkdbau1550_config		:	unconfig
2919f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2920210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2921f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2922ff36fd85Swdenk
2923ff36fd85Swdenkdbau1550_el_config	:	unconfig
2924f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2925210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2926f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2927ff36fd85Swdenk
29288a773983SShinya Kuribayashigth2_config		:	unconfig
29298a773983SShinya Kuribayashi	@mkdir -p $(obj)include
29308a773983SShinya Kuribayashi	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
29318a773983SShinya Kuribayashi	@$(MKCONFIG) -a gth2 mips mips gth2
29328a773983SShinya Kuribayashi
2933699f0512SWolfgang Denkpb1000_config		:	unconfig
2934699f0512SWolfgang Denk	@mkdir -p $(obj)include
2935699f0512SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2936699f0512SWolfgang Denk	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2937699f0512SWolfgang Denk
29380764c164SVlad Lunguqemu_mips_config	: unconfig
29390764c164SVlad Lungu	@mkdir -p $(obj)include
2940210ed200SWolfgang Denk	@echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
29410764c164SVlad Lungu	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
29420764c164SVlad Lungu
294369459791Swdenk#########################################################################
2944e0ac62d7Swdenk## MIPS64 5Kc
2945e0ac62d7Swdenk#########################################################################
294643d9616cSwdenk
29473e38691eSwdenkpurple_config :		unconfig
2948f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
294943d9616cSwdenk
29504a551709Swdenk#========================================================================
29514a551709Swdenk# Nios
29524a551709Swdenk#========================================================================
29534a551709Swdenk#########################################################################
29544a551709Swdenk## Nios32
29554a551709Swdenk#########################################################################
29564a551709Swdenk
2957699f0512SWolfgang DenkADNPESC1_DNPEVA2_base_32_config	\
2958699f0512SWolfgang DenkADNPESC1_base_32_config		\
2959699f0512SWolfgang DenkADNPESC1_config: unconfig
2960699f0512SWolfgang Denk	@mkdir -p $(obj)include
2961699f0512SWolfgang Denk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2962699f0512SWolfgang Denk		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2963699f0512SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
2964699f0512SWolfgang Denk		}
2965699f0512SWolfgang Denk	@[ -z "$(findstring _base_32,$@)" ] || \
2966699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2967699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
2968699f0512SWolfgang Denk		}
2969699f0512SWolfgang Denk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2970699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2971699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2972699f0512SWolfgang Denk		}
2973699f0512SWolfgang Denk	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2974699f0512SWolfgang Denk
2975c935d3bdSwdenkDK1C20_safe_32_config		\
2976c935d3bdSwdenkDK1C20_standard_32_config	\
29774a551709SwdenkDK1C20_config:	unconfig
2978f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2979c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2980f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2981ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2982c935d3bdSwdenk		}
2983c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2984f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2985ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2986c935d3bdSwdenk		}
2987c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2988f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2989ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2990c935d3bdSwdenk		}
2991f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2992c935d3bdSwdenk
2993c935d3bdSwdenkDK1S10_safe_32_config		\
2994c935d3bdSwdenkDK1S10_standard_32_config	\
2995ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2996c935d3bdSwdenkDK1S10_config:	unconfig
2997f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2998c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2999f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3000ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
3001c935d3bdSwdenk		}
3002c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
3003f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3004ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
3005c935d3bdSwdenk		}
3006ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
3007f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
3008ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
3009ec4c544bSwdenk		}
3010c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
3011f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3012ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3013c935d3bdSwdenk		}
3014f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
30154a551709Swdenk
30165c952cf0Swdenk#########################################################################
30175c952cf0Swdenk## Nios-II
30185c952cf0Swdenk#########################################################################
30195c952cf0Swdenk
30209cc83378SScott McNuttEP1C20_config : unconfig
3021f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
30229cc83378SScott McNutt
30239cc83378SScott McNuttEP1S10_config : unconfig
3024f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
30259cc83378SScott McNutt
30269cc83378SScott McNuttEP1S40_config : unconfig
3027f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
30289cc83378SScott McNutt
30295c952cf0SwdenkPK1C20_config : unconfig
3030f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
30315c952cf0Swdenk
30325c952cf0SwdenkPCI5441_config : unconfig
3033f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
30344a551709Swdenk
3035507bbe3eSwdenk#========================================================================
3036507bbe3eSwdenk## Microblaze
3037699f0512SWolfgang Denk#========================================================================
3038507bbe3eSwdenk
3039cfc67116SMichal Simekml401_config:	unconfig
3040cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
3041210ed200SWolfgang Denk	@echo "#define CONFIG_ML401 1" > $(obj)include/config.h
304290b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
3043cfc67116SMichal Simek
3044699f0512SWolfgang Denksuzaku_config:	unconfig
3045699f0512SWolfgang Denk	@mkdir -p $(obj)include
3046699f0512SWolfgang Denk	@echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
3047699f0512SWolfgang Denk	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
3048699f0512SWolfgang Denk
304917980495SMichal Simekxupv2p_config:	unconfig
3050cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
3051210ed200SWolfgang Denk	@echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
305290b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
305317980495SMichal Simek
305460fa72d6SMike Frysinger#========================================================================
305560fa72d6SMike Frysinger# Blackfin
305660fa72d6SMike Frysinger#========================================================================
30570afe519aSWolfgang Denk
305860fa72d6SMike Frysinger# Analog Devices boards
305960fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
30600afe519aSWolfgang Denk
306160fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config)	: unconfig
30629171fc81SMike Frysinger	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
306326bf7decSAubrey Li
306460fa72d6SMike Frysinger$(BFIN_BOARDS):
306560fa72d6SMike Frysinger	$(MAKE) $@_config
306660fa72d6SMike Frysinger	$(MAKE)
30670afe519aSWolfgang Denk
30685e3b0bc1SHaavard Skinnemoen#========================================================================
30695e3b0bc1SHaavard Skinnemoen# AVR32
30705e3b0bc1SHaavard Skinnemoen#========================================================================
3071699f0512SWolfgang Denk
3072699f0512SWolfgang Denkatngw100_config	:	unconfig
3073699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
30745e3b0bc1SHaavard Skinnemoen
30755e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
307636f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
30775e3b0bc1SHaavard Skinnemoen
3078667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
3079667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3080667568dbSHaavard Skinnemoen
308164ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
308264ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
30830afe519aSWolfgang Denk
30840a2e4879SHaavard Skinnemoenatstk1006_config	:	unconfig
30850a2e4879SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
30860a2e4879SHaavard Skinnemoen
30870eb5717aSHans-Christian Egtvedtfavr-32-ezkit_config	:	unconfig
30880eb5717aSHans-Christian Egtvedt	@$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
30890eb5717aSHans-Christian Egtvedt
30905c374c9eSJulien Mayhammerhead_config	:	unconfig
30915c374c9eSJulien May	@$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
30925c374c9eSJulien May
309313b50fe3SMark Jacksonmimc200_config		:	unconfig
309413b50fe3SMark Jackson	@$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
309513b50fe3SMark Jackson
3096699f0512SWolfgang Denk#========================================================================
3097699f0512SWolfgang Denk# SH3 (SuperH)
3098699f0512SWolfgang Denk#========================================================================
30997ebf7443Swdenk
310069df3c4dSNobuhiro Iwamatsu#########################################################################
3101c655fad0SNobuhiro Iwamatsu## sh2 (Renesas SuperH)
3102c655fad0SNobuhiro Iwamatsu#########################################################################
3103c655fad0SNobuhiro Iwamatsursk7203_config: unconfig
3104c655fad0SNobuhiro Iwamatsu	@ >include/config.h
3105c655fad0SNobuhiro Iwamatsu	@echo "#define CONFIG_RSK7203 1" >> include/config.h
3106c655fad0SNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh2 rsk7203
3107c655fad0SNobuhiro Iwamatsu
3108c655fad0SNobuhiro Iwamatsu#########################################################################
3109b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
3110b2b5e2bbSYoshihiro Shimoda#########################################################################
3111699f0512SWolfgang Denk
31123313e0e2SMark Jonasmpr2_config: unconfig
31133ab4827cSWolfgang Denk	@mkdir -p $(obj)include
31143ab4827cSWolfgang Denk	@echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
31153313e0e2SMark Jonas	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
31163313e0e2SMark Jonas
3117b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
31183ab4827cSWolfgang Denk	@mkdir -p $(obj)include
31193ab4827cSWolfgang Denk	@echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
312091c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3121b2b5e2bbSYoshihiro Shimoda
3122b2b5e2bbSYoshihiro Shimoda#########################################################################
312369df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
312469df3c4dSNobuhiro Iwamatsu#########################################################################
3125699f0512SWolfgang Denk
3126699f0512SWolfgang DenkMigoR_config :       unconfig
3127699f0512SWolfgang Denk	@mkdir -p $(obj)include
3128699f0512SWolfgang Denk	@echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3129699f0512SWolfgang Denk	@./mkconfig -a $(@:_config=) sh sh4 MigoR
3130699f0512SWolfgang Denk
313169df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
31323ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3133210ed200SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
313491c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
313569df3c4dSNobuhiro Iwamatsu
3136d91ea45dSNobuhiro Iwamatsums7722se_config :	unconfig
31373ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3138210ed200SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
313991c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
31407a8e9bedSwdenk
3141699f0512SWolfgang Denkr2dplus_config  :   unconfig
31423ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3143699f0512SWolfgang Denk	@echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3144468eae06SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus
3145c2042f59Sgoda.yusuke
3146c133c1fbSYusuke Godar7780mp_config: unconfig
31473ab4827cSWolfgang Denk	@mkdir -p $(obj)include
31483ab4827cSWolfgang Denk	@echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3149468eae06SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp
3150c133c1fbSYusuke Goda
31517faddaecSNobuhiro Iwamatsush7763rdp_config  :   unconfig
31523ab4827cSWolfgang Denk	@mkdir -p $(obj)include
31533ab4827cSWolfgang Denk	@echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3154468eae06SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp
31557faddaecSNobuhiro Iwamatsu
31560d53a47dSNobuhiro Iwamatsush7785lcr_config  :   unconfig
31570d53a47dSNobuhiro Iwamatsu	@ >include/config.h
31580d53a47dSNobuhiro Iwamatsu	@echo "#define CONFIG_SH7785LCR 1" >> include/config.h
31590d53a47dSNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 sh7785lcr
31600d53a47dSNobuhiro Iwamatsu
31616f0da497SNobuhiro Iwamatsuap325rxa_config  :   unconfig
31626f0da497SNobuhiro Iwamatsu	@mkdir -p $(obj)include
31636f0da497SNobuhiro Iwamatsu	@echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
31646f0da497SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa
31656f0da497SNobuhiro Iwamatsu
3166c2f02da2SDaniel Hellstrom#========================================================================
3167c2f02da2SDaniel Hellstrom# SPARC
3168c2f02da2SDaniel Hellstrom#========================================================================
3169699f0512SWolfgang Denk
31701e9a164eSDaniel Hellstrom#########################################################################
31711e9a164eSDaniel Hellstrom## LEON3
31721e9a164eSDaniel Hellstrom#########################################################################
3173c2f02da2SDaniel Hellstrom
317471d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board
317571d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig
317671d7e4c0SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
317771d7e4c0SDaniel Hellstrom
31786ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
31796ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig
31806ed8a43aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
31816ed8a43aSDaniel Hellstrom
31826940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
31836940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60.
31846940383dSDaniel Hellstromgr_ep2s60_config: unconfig
31856940383dSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
31866940383dSDaniel Hellstrom
3187823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator
3188823edd8aSDaniel Hellstromgrsim_config : unconfig
3189823edd8aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3190823edd8aSDaniel Hellstrom
31917ebf7443Swdenk#########################################################################
3192b330990cSDaniel Hellstrom## LEON2
3193b330990cSDaniel Hellstrom#########################################################################
3194b330990cSDaniel Hellstrom
3195ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator
3196ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig
3197ab68f921SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3198ab68f921SDaniel Hellstrom
31997ebf7443Swdenk#########################################################################
32007ebf7443Swdenk#########################################################################
32017ebf7443Swdenk#########################################################################
320285ec0bccSwdenk
32033e38691eSwdenkclean:
3204f9301e1cSWolfgang Denk	@rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3205f9301e1cSWolfgang Denk	       $(obj)examples/hello_world  $(obj)examples/interrupt	  \
3206f9301e1cSWolfgang Denk	       $(obj)examples/mem_to_mem_idma2intr			  \
3207f9301e1cSWolfgang Denk	       $(obj)examples/sched	   $(obj)examples/smc91111_eeprom \
3208f9301e1cSWolfgang Denk	       $(obj)examples/test_burst   $(obj)examples/timer
3209f9301e1cSWolfgang Denk	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
3210f9301e1cSWolfgang Denk	       $(obj)tools/env/{fw_printenv,fw_setenv}			  \
3211f9301e1cSWolfgang Denk	       $(obj)tools/envcrc					  \
3212f9301e1cSWolfgang Denk	       $(obj)tools/gdb/{astest,gdbcont,gdbsend}			  \
3213f9301e1cSWolfgang Denk	       $(obj)tools/gen_eth_addr    $(obj)tools/img2srec		  \
3214f9301e1cSWolfgang Denk	       $(obj)tools/mkimage	   $(obj)tools/mpc86x_clk	  \
3215f9301e1cSWolfgang Denk	       $(obj)tools/ncb		   $(obj)tools/ubsha1
3216f9301e1cSWolfgang Denk	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
3217f9301e1cSWolfgang Denk	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
3218f9301e1cSWolfgang Denk	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
3219f9301e1cSWolfgang Denk	       $(obj)board/{integratorap,integratorcp}/u-boot.lds	  \
32209171fc81SMike Frysinger	       $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
32219171fc81SMike Frysinger	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3222dc7746d8SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
3223dc7746d8SWolfgang Denk	@rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
32241bb707c3SKyungmin Park	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3225f9301e1cSWolfgang Denk	@rm -f $(obj)api_examples/demo $(VERSION_FILE)
3226ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
32277ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
32287ebf7443Swdenk		-o -name '*.o'	-o -name '*.a'	\) -print \
32297ebf7443Swdenk		| xargs rm -f
32307ebf7443Swdenk
32317ebf7443Swdenkclobber:	clean
3232ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
32334c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
32344c0d4c3bSwdenk		-print0 \
32354c0d4c3bSwdenk		| xargs -0 rm -f
3236ffda586fSLi Yang	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
32375013c09fSWolfgang Denk		$(obj)cscope.* $(obj)*.*~
3238ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
32390cf4fd3cSJean-Christophe PLAGNIOL-VILLARD	@rm -f $(obj)tools/{crc32.c,env_embedded.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
324089cdab78SMike Frysinger	@rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
32417e492d82SMarian Balakowicz	@rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
32425013c09fSWolfgang Denk	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3243ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3244a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3245a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3246a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
32477ebf7443Swdenk
3248f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
32497ebf7443Swdenkmrproper \
32507ebf7443Swdenkdistclean:	clobber unconfig
3251f9328639SMarian Balakowiczelse
3252f9328639SMarian Balakowiczmrproper \
3253f9328639SMarian Balakowiczdistclean:	clobber unconfig
3254ae6d1056SWolfgang Denk	rm -rf $(obj)*
3255f9328639SMarian Balakowiczendif
32567ebf7443Swdenk
32577ebf7443Swdenkbackup:
32587ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
32597ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
32607ebf7443Swdenk
32617ebf7443Swdenk#########################################################################
3262