xref: /openbmc/u-boot/Makefile (revision b0e32949)
17ebf7443Swdenk#
25e5f9ed2Swdenk# (C) Copyright 2000-2005
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
107ebf7443Swdenk# published by the Free Software Foundation; 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
247ebf7443SwdenkHOSTARCH := $(shell uname -m | \
257ebf7443Swdenk	sed -e s/i.86/i386/ \
267ebf7443Swdenk	    -e s/sun4u/sparc64/ \
277ebf7443Swdenk	    -e s/arm.*/arm/ \
287ebf7443Swdenk	    -e s/sa110/arm/ \
297ebf7443Swdenk	    -e s/powerpc/ppc/ \
307ebf7443Swdenk	    -e s/macppc/ppc/)
317ebf7443Swdenk
327ebf7443SwdenkHOSTOS := $(shell uname -s | tr A-Z a-z | \
337ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
347ebf7443Swdenk
357ebf7443Swdenkexport	HOSTARCH
367ebf7443Swdenk
377ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
387ebf7443SwdenkVENDOR=
397ebf7443Swdenk
407ebf7443Swdenk#########################################################################
417ebf7443Swdenk
427ebf7443SwdenkTOPDIR	:= $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
437ebf7443Swdenkexport	TOPDIR
447ebf7443Swdenk
457ebf7443Swdenkifeq (include/config.mk,$(wildcard include/config.mk))
467ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
477ebf7443Swdenkinclude include/config.mk
481d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
497ebf7443Swdenk# load other configuration
507ebf7443Swdenkinclude $(TOPDIR)/config.mk
517ebf7443Swdenk
527ebf7443Swdenkifndef CROSS_COMPILE
537ebf7443Swdenkifeq ($(HOSTARCH),ppc)
547ebf7443SwdenkCROSS_COMPILE =
557ebf7443Swdenkelse
567ebf7443Swdenkifeq ($(ARCH),ppc)
57f046ccd1SEran LibertyCROSS_COMPILE = powerpc-linux-
587ebf7443Swdenkendif
597ebf7443Swdenkifeq ($(ARCH),arm)
60dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
617ebf7443Swdenkendif
622262cfeeSwdenkifeq ($(ARCH),i386)
637a8e9bedSwdenkifeq ($(HOSTARCH),i386)
647a8e9bedSwdenkCROSS_COMPILE =
657a8e9bedSwdenkelse
667a8e9bedSwdenkCROSS_COMPILE = i386-linux-
677a8e9bedSwdenkendif
682262cfeeSwdenkendif
6943d9616cSwdenkifeq ($(ARCH),mips)
7043d9616cSwdenkCROSS_COMPILE = mips_4KC-
7143d9616cSwdenkendif
724a551709Swdenkifeq ($(ARCH),nios)
734a551709SwdenkCROSS_COMPILE = nios-elf-
744a551709Swdenkendif
755c952cf0Swdenkifeq ($(ARCH),nios2)
765c952cf0SwdenkCROSS_COMPILE = nios2-elf-
775c952cf0Swdenkendif
784e5ca3ebSwdenkifeq ($(ARCH),m68k)
794e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
804e5ca3ebSwdenkendif
81507bbe3eSwdenkifeq ($(ARCH),microblaze)
82507bbe3eSwdenkCROSS_COMPILE = mb-
83507bbe3eSwdenkendif
847ebf7443Swdenkendif
857ebf7443Swdenkendif
867ebf7443Swdenk
877ebf7443Swdenkexport	CROSS_COMPILE
887ebf7443Swdenk
897ebf7443Swdenk#########################################################################
907ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
917ebf7443Swdenk
927ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
932262cfeeSwdenkifeq ($(CPU),i386)
942262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
952262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
962262cfeeSwdenkendif
977ebf7443Swdenkifeq ($(CPU),ppc4xx)
987ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
997ebf7443Swdenkendif
100f046ccd1SEran Libertyifeq ($(CPU),mpc83xx)
101f046ccd1SEran LibertyOBJS += cpu/$(CPU)/resetvec.o
102f046ccd1SEran Libertyendif
10342d1f039Swdenkifeq ($(CPU),mpc85xx)
10442d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
10542d1f039Swdenkendif
1067ebf7443Swdenk
1079fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
1089fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
1097ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
1101d9f4105Swdenkifdef SOC
1111d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
1121d9f4105Swdenkendif
1137ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
114518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
115c419d1d6Sstroese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
1167ebf7443SwdenkLIBS += net/libnet.a
1177ebf7443SwdenkLIBS += disk/libdisk.a
1187ebf7443SwdenkLIBS += rtc/librtc.a
1197ebf7443SwdenkLIBS += dtt/libdtt.a
1207ebf7443SwdenkLIBS += drivers/libdrivers.a
1217152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a
1227ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a
1237ebf7443SwdenkLIBS += common/libcommon.a
1249fd5e31fSwdenk.PHONY : $(LIBS)
125a8c7c708Swdenk
1264f7cb08eSwdenk# Add GCC lib
1271a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
1283d3befa7Swdenk
1297ebf7443Swdenk
130a8c7c708Swdenk# The "tools" are needed early, so put this first
131a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
132a8c7c708SwdenkSUBDIRS	= tools \
133a8c7c708Swdenk	  examples \
134a8c7c708Swdenk	  post \
135a8c7c708Swdenk	  post/cpu
136b028f715Swdenk.PHONY : $(SUBDIRS)
137a8c7c708Swdenk
1387ebf7443Swdenk#########################################################################
139bdccc4feSwdenk#########################################################################
1407ebf7443Swdenk
141bdccc4feSwdenkALL = u-boot.srec u-boot.bin System.map
1427ebf7443Swdenk
143bdccc4feSwdenkall:		$(ALL)
1447ebf7443Swdenk
1456310eb9dSwdenku-boot.hex:	u-boot
1466310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
1476310eb9dSwdenk
1487ebf7443Swdenku-boot.srec:	u-boot
1497ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
1507ebf7443Swdenk
1517ebf7443Swdenku-boot.bin:	u-boot
1527ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
1537ebf7443Swdenk
154bdccc4feSwdenku-boot.img:	u-boot.bin
155bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
156bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
157bdccc4feSwdenk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
158bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
159bdccc4feSwdenk		-d $< $@
160bdccc4feSwdenk
1617ebf7443Swdenku-boot.dis:	u-boot
1627ebf7443Swdenk		$(OBJDUMP) -d $< > $@
1637ebf7443Swdenk
164a8c7c708Swdenku-boot:		depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
1658bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
1668bde7f77Swdenk		$(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
1671a344f29Swdenk			--start-group $(LIBS) --end-group $(PLATFORM_LIBS) \
168b2184c31Swdenk			-Map u-boot.map -o u-boot
1697ebf7443Swdenk
170a8c7c708Swdenk$(LIBS):
171a8c7c708Swdenk		$(MAKE) -C `dirname $@`
172a8c7c708Swdenk
173a8c7c708Swdenk$(SUBDIRS):
174b028f715Swdenk		$(MAKE) -C $@ all
1757ebf7443Swdenk
1768f713fdfSdzugdbtools:
1778f713fdfSdzu		$(MAKE) -C tools/gdb || exit 1
1788f713fdfSdzu
1797ebf7443Swdenkdepend dep:
1807ebf7443Swdenk		@for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
1817ebf7443Swdenk
1827ebf7443Swdenktags:
1837ebf7443Swdenk		ctags -w `find $(SUBDIRS) include \
184bda6c8aeSwdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
185bda6c8aeSwdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
186bda6c8aeSwdenk				net disk rtc dtt drivers drivers/sk98lin common \
1877ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1887ebf7443Swdenk
1897ebf7443Swdenketags:
1907ebf7443Swdenk		etags -a `find $(SUBDIRS) include \
191eedcd078Swdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
192eedcd078Swdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
193eedcd078Swdenk				net disk rtc dtt drivers drivers/sk98lin common \
1947ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
1957ebf7443Swdenk
1967ebf7443SwdenkSystem.map:	u-boot
1977ebf7443Swdenk		@$(NM) $< | \
1987ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
1997ebf7443Swdenk		sort > System.map
2007ebf7443Swdenk
2017ebf7443Swdenk#########################################################################
2027ebf7443Swdenkelse
2037ebf7443Swdenkall install u-boot u-boot.srec depend dep:
2047ebf7443Swdenk	@echo "System not configured - see README" >&2
2057ebf7443Swdenk	@ exit 1
2067ebf7443Swdenkendif
2077ebf7443Swdenk
2087ebf7443Swdenk#########################################################################
2097ebf7443Swdenk
2107ebf7443Swdenkunconfig:
21117d704ebSwdenk	@rm -f include/config.h include/config.mk board/*/config.tmp
2127ebf7443Swdenk
2137ebf7443Swdenk#========================================================================
2147ebf7443Swdenk# PowerPC
2157ebf7443Swdenk#========================================================================
2160db5bca8Swdenk
2170db5bca8Swdenk#########################################################################
2180db5bca8Swdenk## MPC5xx Systems
2190db5bca8Swdenk#########################################################################
2200db5bca8Swdenk
2215e5f9ed2Swdenkcanmb_config:	unconfig
2225e5f9ed2Swdenk	@./mkconfig -a canmb ppc mpc5xxx canmb
2235e5f9ed2Swdenk
2240db5bca8Swdenkcmi_mpc5xx_config:	unconfig
2250db5bca8Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx cmi
2260db5bca8Swdenk
227b6e4c403SwdenkPATI_config:		unconfig
228b6e4c403Swdenk	@./mkconfig $(@:_config=) ppc mpc5xx pati mpl
229b6e4c403Swdenk
2307ebf7443Swdenk#########################################################################
231945af8d7Swdenk## MPC5xxx Systems
232945af8d7Swdenk#########################################################################
233a87589daSwdenk
234a87589daSwdenkhmi1001_config:         unconfig
235a87589daSwdenk	@./mkconfig hmi1001 ppc mpc5xxx hmi1001
236a87589daSwdenk
237e35745bbSwdenkLite5200_config				\
238e35745bbSwdenkLite5200_LOWBOOT_config			\
239e35745bbSwdenkLite5200_LOWBOOT08_config		\
240e35745bbSwdenkicecube_5200_config			\
241e35745bbSwdenkicecube_5200_LOWBOOT_config		\
242e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
243b2001f27Swdenkicecube_5200_DDR_config 		\
24479d696fcSwdenkicecube_5200_DDR_LOWBOOT_config 	\
24579d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
246e35745bbSwdenkicecube_5100_config:			unconfig
247945af8d7Swdenk	@ >include/config.h
24817d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
24917d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
25017d704ebSwdenk			then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
25117d704ebSwdenk			else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
25217d704ebSwdenk		  fi ; \
2535cf9da48Swdenk		  echo "... with LOWBOOT configuration" ; \
2545cf9da48Swdenk		}
2555cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
2565cf9da48Swdenk		{ echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
2575cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
25817d704ebSwdenk		  echo "... with LOWBOOT configuration" ; \
2595cf9da48Swdenk		}
260b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
261b2001f27Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
262b2001f27Swdenk		  echo "... DDR memory revision" ; \
263b2001f27Swdenk		}
264d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
265d4ca31c4Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
266d4ca31c4Swdenk		  echo "... with MPC5200 processor" ; \
267d4ca31c4Swdenk		}
268a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
269945af8d7Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
270945af8d7Swdenk		  echo "... with MGT5100 processor" ; \
271945af8d7Swdenk		}
272945af8d7Swdenk	@./mkconfig -a IceCube ppc mpc5xxx icecube
273945af8d7Swdenk
274138ff60cSwdenkinka4x0_config:		unconfig
275138ff60cSwdenk	@./mkconfig inka4x0 ppc mpc5xxx inka4x0
276138ff60cSwdenk
27789394047SwdenkPM520_config \
27889394047SwdenkPM520_DDR_config \
27989394047SwdenkPM520_ROMBOOT_config \
28089394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
28189394047Swdenk	@ >include/config.h
28289394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
28389394047Swdenk		{ echo "#define CONFIG_MPC5200_DDR"	>>include/config.h ; \
28489394047Swdenk		  echo "... DDR memory revision" ; \
28589394047Swdenk		}
28689394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
28789394047Swdenk		{ echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
28889394047Swdenk		  echo "... booting from 8-bit flash" ; \
28989394047Swdenk		}
29089394047Swdenk	@./mkconfig -a PM520 ppc mpc5xxx pm520
29189394047Swdenk
292d4ca31c4SwdenkMINI5200_config	\
293d4ca31c4SwdenkEVAL5200_config	\
294d4ca31c4SwdenkTOP5200_config:	unconfig
295d4ca31c4Swdenk	@ echo "#define CONFIG_$(@:_config=) 1"	>include/config.h
296d4ca31c4Swdenk	@./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
297d4ca31c4Swdenk
2986c7a1408SwdenkTotal5100_config		\
2996c7a1408SwdenkTotal5200_config		\
3006c7a1408SwdenkTotal5200_lowboot_config	\
3016c7a1408SwdenkTotal5200_Rev2_config		\
3026c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
3036c7a1408Swdenk	@ >include/config.h
3046c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
3056c7a1408Swdenk		{ echo "#define CONFIG_MGT5100"		>>include/config.h ; \
3066c7a1408Swdenk		  echo "... with MGT5100 processor" ; \
3076c7a1408Swdenk		}
3086c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
3096c7a1408Swdenk		{ echo "#define CONFIG_MPC5200"		>>include/config.h ; \
3106c7a1408Swdenk		  echo "... with MPC5200 processor" ; \
3116c7a1408Swdenk		}
3126c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
3136c7a1408Swdenk		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>include/config.h ; \
3146c7a1408Swdenk		  echo "... revision 1 board" ; \
3156c7a1408Swdenk		}
3166c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
3176c7a1408Swdenk		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>include/config.h ; \
3186c7a1408Swdenk		  echo "... revision 2 board" ; \
3196c7a1408Swdenk		}
3206c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
3216c7a1408Swdenk		{ echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \
3226c7a1408Swdenk		  echo "... with lowboot configuration" ; \
3236c7a1408Swdenk		}
3246c7a1408Swdenk	@./mkconfig -a Total5200 ppc mpc5xxx total5200
3256c7a1408Swdenk
3267e6bf358SwdenkTQM5200_auto_config		\
32756523f12SwdenkTQM5200_AA_config	\
32856523f12SwdenkTQM5200_AB_config	\
32956523f12SwdenkTQM5200_AC_config	\
33056523f12SwdenkMiniFAP_config:	unconfig
33156523f12Swdenk	@ >include/config.h
33289394047Swdenk	@[ -z "$(findstring MiniFAP,$@)" ] || \
33356523f12Swdenk		{ echo "#define CONFIG_MINIFAP"	>>include/config.h ; \
33456523f12Swdenk		  echo "#define CONFIG_TQM5200_AC"	>>include/config.h ; \
33589394047Swdenk		  echo "... TQM5200_AC on MiniFAP" ; \
33656523f12Swdenk		}
33756523f12Swdenk	@[ -z "$(findstring AA,$@)" ] || \
33856523f12Swdenk		{ echo "#define CONFIG_TQM5200_AA"	>>include/config.h ; \
33956523f12Swdenk		  echo "... with 4 MB Flash, 16 MB SDRAM, 32 kB EEPROM" ; \
34056523f12Swdenk		}
34156523f12Swdenk	@[ -z "$(findstring AB,$@)" ] || \
34256523f12Swdenk		{ echo "#define CONFIG_TQM5200_AB"	>>include/config.h ; \
34356523f12Swdenk		  echo "... with 64 MB Flash, 64 MB SDRAM, 32 kB EEPROM, 512 kB SRAM" ; \
34431a64923Swdenk		  echo "... with Graphics Controller"; \
34556523f12Swdenk		}
34656523f12Swdenk	@[ -z "$(findstring AC,$@)" ] || \
34756523f12Swdenk		{ echo "#define CONFIG_TQM5200_AC"	>>include/config.h ; \
34856523f12Swdenk		  echo "... with 4 MB Flash, 128 MB SDRAM" ; \
34931a64923Swdenk		  echo "... with Graphics Controller"; \
35056523f12Swdenk		}
3517e6bf358Swdenk	@[ -z "$(findstring auto,$@)" ] || \
3527e6bf358Swdenk		{ echo "#define CONFIG_CS_AUTOCONF"	>>include/config.h ; \
3537e6bf358Swdenk		  echo "... with automatic CS configuration" ; \
3547e6bf358Swdenk		}
35556523f12Swdenk	@./mkconfig -a TQM5200 ppc mpc5xxx tqm5200
35656523f12Swdenk
357945af8d7Swdenk#########################################################################
3587ebf7443Swdenk## MPC8xx Systems
3597ebf7443Swdenk#########################################################################
3607ebf7443Swdenk
3612d24a3a7SwdenkAdder_config    \
3622d24a3a7SwdenkAdder87x_config \
36326238132SwdenkAdderII_config  \
3642d24a3a7Swdenk	:		unconfig
36526238132Swdenk	$(if $(findstring AdderII,$@), \
3662d24a3a7Swdenk	@echo "#define CONFIG_MPC852T" > include/config.h)
3672d24a3a7Swdenk	@./mkconfig -a Adder ppc mpc8xx adder
3682d24a3a7Swdenk
369180d3f74SwdenkADS860_config     \
370180d3f74SwdenkFADS823_config    \
371180d3f74SwdenkFADS850SAR_config \
372180d3f74SwdenkMPC86xADS_config  \
3731114257cSwdenkMPC885ADS_config  \
374180d3f74SwdenkFADS860T_config:	unconfig
3757ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx fads
3767ebf7443Swdenk
3777ebf7443SwdenkAMX860_config	:	unconfig
3787ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
3797ebf7443Swdenk
3807ebf7443Swdenkc2mon_config:		unconfig
3817ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx c2mon
3827ebf7443Swdenk
3837ebf7443SwdenkCCM_config:		unconfig
3847ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
3857ebf7443Swdenk
3867ebf7443Swdenkcogent_mpc8xx_config:	unconfig
3877ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx cogent
3887ebf7443Swdenk
3893bac3513SwdenkELPT860_config:		unconfig
3903bac3513Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
3913bac3513Swdenk
3927ebf7443SwdenkESTEEM192E_config:	unconfig
3937ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx esteem192e
3947ebf7443Swdenk
3957ebf7443SwdenkETX094_config	:	unconfig
3967ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx etx094
3977ebf7443Swdenk
3987ebf7443SwdenkFLAGADM_config:	unconfig
3997ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx flagadm
4007ebf7443Swdenk
4017aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
4027aa78614Swdenk
4037aa78614SwdenkGEN860T_SC_config	\
4047ebf7443SwdenkGEN860T_config: unconfig
4057aa78614Swdenk	@ >include/config.h
4067aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
4077aa78614Swdenk		{ echo "#define CONFIG_SC" >>include/config.h ; \
4087aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
4097aa78614Swdenk		}
4107aa78614Swdenk	@./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
4117ebf7443Swdenk
4127ebf7443SwdenkGENIETV_config:	unconfig
4137ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx genietv
4147ebf7443Swdenk
4157ebf7443SwdenkGTH_config:	unconfig
4167ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx gth
4177ebf7443Swdenk
4187ebf7443Swdenkhermes_config	:	unconfig
4197ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx hermes
4207ebf7443Swdenk
421c40b2956SwdenkHMI10_config	:	unconfig
422c40b2956Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
423c40b2956Swdenk
4247ebf7443SwdenkIAD210_config: unconfig
4257ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
4267ebf7443Swdenk
4277ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
4287ebf7443Swdenk
4297ebf7443SwdenkICU862_100MHz_config	\
4307ebf7443SwdenkICU862_config: unconfig
4317ebf7443Swdenk	@ >include/config.h
4327ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
4337ebf7443Swdenk		{ echo "#define CONFIG_100MHz"	>>include/config.h ; \
4347ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
4357ebf7443Swdenk		}
4367ebf7443Swdenk	@./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
4377ebf7443Swdenk
4387ebf7443SwdenkIP860_config	:	unconfig
4397ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx ip860
4407ebf7443Swdenk
4417ebf7443SwdenkIVML24_256_config \
4427ebf7443SwdenkIVML24_128_config \
4437ebf7443SwdenkIVML24_config:	unconfig
4447ebf7443Swdenk	@ >include/config.h
4457ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
4467ebf7443Swdenk		 { echo "#define CONFIG_IVML24_16M"	>>include/config.h ; \
4477ebf7443Swdenk		 }
4487ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
4497ebf7443Swdenk		 { echo "#define CONFIG_IVML24_32M"	>>include/config.h ; \
4507ebf7443Swdenk		 }
4517ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
4527ebf7443Swdenk		 { echo "#define CONFIG_IVML24_64M"	>>include/config.h ; \
4537ebf7443Swdenk		 }
4547ebf7443Swdenk	@./mkconfig -a IVML24 ppc mpc8xx ivm
4557ebf7443Swdenk
4567ebf7443SwdenkIVMS8_256_config \
4577ebf7443SwdenkIVMS8_128_config \
4587ebf7443SwdenkIVMS8_config:	unconfig
4597ebf7443Swdenk	@ >include/config.h
4607ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
4617ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_16M"	>>include/config.h ; \
4627ebf7443Swdenk		 }
4637ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
4647ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_32M"	>>include/config.h ; \
4657ebf7443Swdenk		 }
4667ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
4677ebf7443Swdenk		 { echo "#define CONFIG_IVMS8_64M"	>>include/config.h ; \
4687ebf7443Swdenk		 }
4697ebf7443Swdenk	@./mkconfig -a IVMS8 ppc mpc8xx ivm
4707ebf7443Swdenk
47156f94be3SwdenkKUP4K_config	:	unconfig
4720608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4k kup
4730608e04dSwdenk
4740608e04dSwdenkKUP4X_config    :       unconfig
4750608e04dSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx kup4x kup
47656f94be3Swdenk
4777ebf7443SwdenkLANTEC_config	:	unconfig
4787ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lantec
4797ebf7443Swdenk
4807ebf7443Swdenklwmon_config:		unconfig
4817ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx lwmon
4827ebf7443Swdenk
4837ebf7443SwdenkMBX_config	\
4847ebf7443SwdenkMBX860T_config:	unconfig
4857ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
4867ebf7443Swdenk
4877ebf7443SwdenkMHPC_config:		unconfig
4887ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
4897ebf7443Swdenk
4907ebf7443SwdenkMVS1_config :		unconfig
4917ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx mvs1
4927ebf7443Swdenk
493993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
494993cad93Swdenk
495993cad93SwdenkNETVIA_V2_config \
4967ebf7443SwdenkNETVIA_config:		unconfig
497993cad93Swdenk	@ >include/config.h
498993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
499993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
500993cad93Swdenk		  echo "... Version 1" ; \
501993cad93Swdenk		 }
502993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
503993cad93Swdenk		 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
504993cad93Swdenk		  echo "... Version 2" ; \
505993cad93Swdenk		 }
506993cad93Swdenk	@./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
5077ebf7443Swdenk
508c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
509c26e454dSwdenk
510c26e454dSwdenkNETPHONE_V2_config \
51104a85b3bSwdenkNETPHONE_config:	unconfig
512c26e454dSwdenk	@ >include/config.h
513c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
514c26e454dSwdenk		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \
515c26e454dSwdenk		 }
516c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
517c26e454dSwdenk		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \
518c26e454dSwdenk		 }
519c26e454dSwdenk	@./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
52004a85b3bSwdenk
52179fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
52204a85b3bSwdenk
52379fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
52479fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
52579fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
52679fa88f3SwdenkNETTA_SWAPHOOK_config \
52779fa88f3SwdenkNETTA_ISDN_6412_config \
52804a85b3bSwdenkNETTA_ISDN_config \
52979fa88f3SwdenkNETTA_6412_config \
53004a85b3bSwdenkNETTA_config:		unconfig
53104a85b3bSwdenk	@ >include/config.h
53279fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
53304a85b3bSwdenk		 { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \
53404a85b3bSwdenk		 }
53579fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
53679fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \
53779fa88f3Swdenk		 }
53879fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
53979fa88f3Swdenk		 { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \
54079fa88f3Swdenk		 }
54179fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
54279fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \
54379fa88f3Swdenk		 }
54479fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
54579fa88f3Swdenk		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \
54679fa88f3Swdenk		 }
54779fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
54879fa88f3Swdenk		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \
54979fa88f3Swdenk		 }
55004a85b3bSwdenk	@./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta
55104a85b3bSwdenk
55279fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
55379fa88f3Swdenk
55479fa88f3SwdenkNETTA2_V2_config \
55579fa88f3SwdenkNETTA2_config:		unconfig
55679fa88f3Swdenk	@ >include/config.h
55779fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
55879fa88f3Swdenk		 { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \
55979fa88f3Swdenk		 }
56079fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
56179fa88f3Swdenk		 { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \
56279fa88f3Swdenk		 }
56379fa88f3Swdenk	@./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
56479fa88f3Swdenk
5657ca202f5SwdenkNC650_config:	unconfig
5667ca202f5Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx nc650
5677ca202f5Swdenk
5687ebf7443SwdenkNX823_config:		unconfig
5697ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx nx823
5707ebf7443Swdenk
5717ebf7443Swdenkpcu_e_config:		unconfig
5727ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
5737ebf7443Swdenk
5743bbc899fSwdenkQS850_config:	unconfig
5753bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
5763bbc899fSwdenk
5773bbc899fSwdenkQS823_config:	unconfig
5783bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
5793bbc899fSwdenk
5803bbc899fSwdenkQS860T_config:	unconfig
5813bbc899fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
5823bbc899fSwdenk
583da93ed81Swdenkquantum_config:	unconfig
584da93ed81Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx quantum
585da93ed81Swdenk
5867ebf7443SwdenkR360MPI_config:	unconfig
5877ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx r360mpi
5887ebf7443Swdenk
589682011ffSwdenkRBC823_config:	unconfig
590682011ffSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rbc823
591682011ffSwdenk
5927ebf7443SwdenkRPXClassic_config:	unconfig
5937ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
5947ebf7443Swdenk
5957ebf7443SwdenkRPXlite_config:		unconfig
5967ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RPXlite
5977ebf7443Swdenk
598e63c8ee3SwdenkRPXlite_DW_64_config  		\
599e63c8ee3SwdenkRPXlite_DW_LCD_config 		\
600e63c8ee3SwdenkRPXlite_DW_64_LCD_config 	\
601e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
602e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
603e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
604e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
605e63c8ee3SwdenkRPXlite_DW_config:         unconfig
606e63c8ee3Swdenk	@ >include/config.h
607e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
608e63c8ee3Swdenk		{ echo "#define RPXlite_64MHz"		>>include/config.h ; \
609e63c8ee3Swdenk		  echo "... with 64MHz system clock ..."; \
610e63c8ee3Swdenk		}
611e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
612e63c8ee3Swdenk		{ echo "#define CONFIG_LCD"          	>>include/config.h ; \
613e63c8ee3Swdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
614e63c8ee3Swdenk		  echo "... with LCD display ..."; \
615e63c8ee3Swdenk		}
616e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
617e63c8ee3Swdenk		{ echo "#define  CFG_ENV_IS_IN_NVRAM" 	>>include/config.h ; \
618e63c8ee3Swdenk		  echo "... with ENV in NVRAM ..."; \
619e63c8ee3Swdenk		}
620e63c8ee3Swdenk	@./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw
621e63c8ee3Swdenk
62273a8b27cSwdenkrmu_config:	unconfig
62373a8b27cSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx rmu
62473a8b27cSwdenk
6257ebf7443SwdenkRRvision_config:	unconfig
6267ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx RRvision
6277ebf7443Swdenk
6287ebf7443SwdenkRRvision_LCD_config:	unconfig
6297ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
6307ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
6317ebf7443Swdenk	@./mkconfig -a RRvision ppc mpc8xx RRvision
6327ebf7443Swdenk
6337ebf7443SwdenkSM850_config	:	unconfig
6347ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
6357ebf7443Swdenk
6367ebf7443SwdenkSPD823TS_config:	unconfig
6377ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx spd8xx
6387ebf7443Swdenk
639dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
640dc7c9a1aSwdenk	@ >include/config.h
641dc7c9a1aSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
642dc7c9a1aSwdenk
6437ebf7443SwdenkSXNI855T_config:	unconfig
6447ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx sixnet
6457ebf7443Swdenk
646db2f721fSwdenk# EMK MPC8xx based modules
647db2f721fSwdenkTOP860_config:		unconfig
648db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx top860 emk
649db2f721fSwdenk
6507ebf7443Swdenk# Play some tricks for configuration selection
651e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
652e9132ea9Swdenk# and only 823 boards may have LCD support
653e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
6547ebf7443Swdenk
6557ebf7443SwdenkFPS850L_config		\
656384ae025SwdenkFPS860L_config		\
657f12e568cSwdenkNSCU_config		\
6587ebf7443SwdenkTQM823L_config		\
6597ebf7443SwdenkTQM823L_LCD_config	\
6607ebf7443SwdenkTQM850L_config		\
6617ebf7443SwdenkTQM855L_config		\
6627ebf7443SwdenkTQM860L_config		\
663d126bfbdSwdenkTQM862L_config		\
664ae3af05eSwdenkTQM823M_config		\
665ae3af05eSwdenkTQM850M_config		\
666f12e568cSwdenkTQM855M_config		\
667f12e568cSwdenkTQM860M_config		\
668f12e568cSwdenkTQM862M_config		\
669c178d3daSwdenkTQM866M_config:		unconfig
6707ebf7443Swdenk	@ >include/config.h
6717ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
6727ebf7443Swdenk		{ echo "#define CONFIG_LCD"		>>include/config.h ; \
673fd3103bbSwdenk		  echo "#define CONFIG_NEC_NL6448BC20"	>>include/config.h ; \
6747ebf7443Swdenk		  echo "... with LCD display" ; \
6757ebf7443Swdenk		}
6767ebf7443Swdenk	@./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
6777ebf7443Swdenk
6787ebf7443SwdenkTTTech_config:	unconfig
6797ebf7443Swdenk	@echo "#define CONFIG_LCD" >include/config.h
6807ebf7443Swdenk	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
6817ebf7443Swdenk	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
6827ebf7443Swdenk
683ec0aee7bSwdenkuc100_config	:	unconfig
684f7d1572bSwdenk	@./mkconfig $(@:_config=) ppc mpc8xx uc100
685f7d1572bSwdenk
686608c9146Swdenkv37_config:	unconfig
687608c9146Swdenk	@echo "#define CONFIG_LCD" >include/config.h
688608c9146Swdenk	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
689608c9146Swdenk	@./mkconfig $(@:_config=) ppc mpc8xx v37
690608c9146Swdenk
69191e940d9Sdzuwtk_config:	unconfig
69291e940d9Sdzu	@echo "#define CONFIG_LCD" >include/config.h
69391e940d9Sdzu	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
69491e940d9Sdzu	@./mkconfig -a TQM823L ppc mpc8xx tqm8xx
69591e940d9Sdzu
6967ebf7443Swdenk#########################################################################
6977ebf7443Swdenk## PPC4xx Systems
6987ebf7443Swdenk#########################################################################
699e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
7007ebf7443Swdenk
7017ebf7443SwdenkADCIOP_config:	unconfig
7027ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx adciop esd
7037ebf7443Swdenk
704c419d1d6SstroeseAPC405_config:	unconfig
705c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx apc405 esd
706c419d1d6Sstroese
7077ebf7443SwdenkAR405_config:	unconfig
7087ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
7097ebf7443Swdenk
710549826eaSstroeseASH405_config:	unconfig
711549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
712549826eaSstroese
713549826eaSstroeseBUBINGA405EP_config:	unconfig
714549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
715549826eaSstroese
7167ebf7443SwdenkCANBT_config:	unconfig
7177ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx canbt esd
7187ebf7443Swdenk
7191d6f9720SwdenkCATcenter_config	\
7201d6f9720SwdenkCATcenter_25_config	\
7211d6f9720SwdenkCATcenter_33_config:	unconfig
72210767ccbSwdenk	@ echo "/* CATcenter uses PPChameleon Model ME */"  > include/config.h
72310767ccbSwdenk	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h
7241d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
7251d6f9720Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
7261d6f9720Swdenk		  echo "SysClk = 25MHz" ; \
7271d6f9720Swdenk		}
7281d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
7291d6f9720Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
7301d6f9720Swdenk		  echo "SysClk = 33MHz" ; \
7311d6f9720Swdenk		}
73210767ccbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
73310767ccbSwdenk
7347ebf7443SwdenkCPCI405_config	\
735549826eaSstroeseCPCI4052_config	\
736c419d1d6SstroeseCPCI405DT_config	\
737549826eaSstroeseCPCI405AB_config:	unconfig
7387ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
7397ebf7443Swdenk	@echo "BOARD_REVISION = $(@:_config=)"	>>include/config.mk
7407ebf7443Swdenk
7417ebf7443SwdenkCPCI440_config:	unconfig
7427ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
7437ebf7443Swdenk
7447ebf7443SwdenkCPCIISER4_config:	unconfig
7457ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
7467ebf7443Swdenk
7477ebf7443SwdenkCRAYL1_config:	unconfig
7487ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx L1 cray
7497ebf7443Swdenk
750cd0a9de6Swdenkcsb272_config:	unconfig
751cd0a9de6Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb272
752cd0a9de6Swdenk
753aa245090Swdenkcsb472_config:	unconfig
754aa245090Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx csb472
755aa245090Swdenk
7567ebf7443SwdenkDASA_SIM_config: unconfig
7577ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
7587ebf7443Swdenk
75972cd5aa7SstroeseDP405_config:	unconfig
76072cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
76172cd5aa7Sstroese
7627ebf7443SwdenkDU405_config:	unconfig
7637ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx du405 esd
7647ebf7443Swdenk
7657ebf7443SwdenkEBONY_config:	unconfig
7667ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ebony
7677ebf7443Swdenk
7687ebf7443SwdenkERIC_config:	unconfig
7697ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx eric
7707ebf7443Swdenk
771d1cbe85bSwdenkEXBITGEN_config:	unconfig
772d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx exbitgen
773d1cbe85bSwdenk
774c419d1d6SstroeseG2000_config:	unconfig
775c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx g2000
776c419d1d6Sstroese
777c419d1d6SstroeseHH405_config:	unconfig
778c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx hh405 esd
779c419d1d6Sstroese
78072cd5aa7SstroeseHUB405_config:	unconfig
78172cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
78272cd5aa7Sstroese
783db01a2eaSwdenkJSE_config:	unconfig
784db01a2eaSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx jse
785db01a2eaSwdenk
7867ebf7443SwdenkMIP405_config:	unconfig
7877ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
7887ebf7443Swdenk
789f3e0de60SwdenkMIP405T_config:	unconfig
790f3e0de60Swdenk	@echo "#define CONFIG_MIP405T" >include/config.h
791f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
792f3e0de60Swdenk	@./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
793f3e0de60Swdenk
7947ebf7443SwdenkML2_config:	unconfig
7957ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml2
7967ebf7443Swdenk
797028ab6b5Swdenkml300_config:	unconfig
798028ab6b5Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
799028ab6b5Swdenk
8000e6d798cSwdenkOCOTEA_config:	unconfig
8010e6d798cSwdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocotea
8020e6d798cSwdenk
8037ebf7443SwdenkOCRTC_config		\
8047ebf7443SwdenkORSG_config:	unconfig
8057ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
8067ebf7443Swdenk
8077ebf7443SwdenkPCI405_config:	unconfig
8087ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
8097ebf7443Swdenk
8107ebf7443SwdenkPIP405_config:	unconfig
8117ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
8127ebf7443Swdenk
81372cd5aa7SstroesePLU405_config:	unconfig
81472cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
81572cd5aa7Sstroese
816549826eaSstroesePMC405_config:	unconfig
817549826eaSstroese	@./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
818549826eaSstroese
819281e00a3SwdenkPPChameleonEVB_config		\
820e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
821e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
822e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
823e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
824e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
825e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
826fbe4b5cbSwdenk	@ >include/config.h
8271d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
828fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
829fbe4b5cbSwdenk		  echo "... BASIC model" ; \
830fbe4b5cbSwdenk		}
8311d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
832fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
833fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
834fbe4b5cbSwdenk		}
8351d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
836fbe4b5cbSwdenk		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
837fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
838fbe4b5cbSwdenk		}
839e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
840e55ca7e2Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
841e55ca7e2Swdenk		  echo "SysClk = 25MHz" ; \
842e55ca7e2Swdenk		}
843e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
844e55ca7e2Swdenk		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
845e55ca7e2Swdenk		  echo "SysClk = 33MHz" ; \
846e55ca7e2Swdenk		}
847fbe4b5cbSwdenk	@./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
84812f34241Swdenk
849652a10c0Swdenksbc405_config:	unconfig
850652a10c0Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx sbc405
851652a10c0Swdenk
85272cd5aa7SstroeseVOH405_config:	unconfig
85372cd5aa7Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
85472cd5aa7Sstroese
855c419d1d6SstroeseVOM405_config:	unconfig
856c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx vom405 esd
857c419d1d6Sstroese
8587ebf7443SwdenkW7OLMC_config	\
8597ebf7443SwdenkW7OLMG_config: unconfig
8607ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx w7o
8617ebf7443Swdenk
8627ebf7443SwdenkWALNUT405_config:	unconfig
8637ebf7443Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx walnut405
8647ebf7443Swdenk
865c419d1d6SstroeseWUH405_config:	unconfig
866c419d1d6Sstroese	@./mkconfig $(@:_config=) ppc ppc4xx wuh405 esd
867c419d1d6Sstroese
868ba56f625SwdenkXPEDITE1K_config:	unconfig
869ba56f625Swdenk	@./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
870ba56f625Swdenk
8717ebf7443Swdenk#########################################################################
872983fda83Swdenk## MPC8220 Systems
873983fda83Swdenk#########################################################################
874983fda83SwdenkAlaska8220_config:	unconfig
875983fda83Swdenk	@./mkconfig $(@:_config=) ppc mpc8220 alaska
876983fda83Swdenk
87712b43d51Swdenksorcery_config:		unconfig
87812b43d51Swdenk	@./mkconfig $(@:_config=) ppc mpc8220 sorcery
87912b43d51Swdenk
880983fda83SwdenkYukon8220_config:	unconfig
881983fda83Swdenk	@./mkconfig $(@:_config=) ppc mpc8220 yukon
882983fda83Swdenk
883983fda83Swdenk#########################################################################
8847ebf7443Swdenk## MPC824x Systems
8857ebf7443Swdenk#########################################################################
886efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
8873bac3513Swdenk
8880332990bSwdenkA3000_config: unconfig
8890332990bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x a3000
8900332990bSwdenk
8917ebf7443SwdenkBMW_config: unconfig
8927ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x bmw
8937ebf7443Swdenk
8943bac3513SwdenkCPC45_config	\
8953bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
8963bac3513Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
8973bac3513Swdenk	@cd ./include ;				\
8983bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
8993bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
9003bac3513Swdenk		echo "... booting from 8-bit flash" ; \
9013bac3513Swdenk	else \
9023bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
9033bac3513Swdenk		echo "... booting from 64-bit flash" ; \
9043bac3513Swdenk	fi; \
9053bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
9063bac3513Swdenk
9077ebf7443SwdenkCU824_config: unconfig
9087ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x cu824
9097ebf7443Swdenk
9107abf0c58Swdenkdebris_config: unconfig
9117abf0c58Swdenk	@./mkconfig $(@:_config=) ppc mpc824x debris etin
9127abf0c58Swdenk
91380885a9dSwdenkeXalion_config: unconfig
91480885a9dSwdenk	@./mkconfig $(@:_config=) ppc mpc824x eXalion
91580885a9dSwdenk
916756f586aSwdenkHIDDEN_DRAGON_config: unconfig
917756f586aSwdenk	@./mkconfig $(@:_config=) ppc mpc824x hidden_dragon
918756f586aSwdenk
9197ebf7443SwdenkMOUSSE_config: unconfig
9207ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mousse
9217ebf7443Swdenk
9227ebf7443SwdenkMUSENKI_config: unconfig
9237ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x musenki
9247ebf7443Swdenk
925b4676a25SwdenkMVBLUE_config:	unconfig
926b4676a25Swdenk	@./mkconfig $(@:_config=) ppc mpc824x mvblue
927b4676a25Swdenk
9287ebf7443SwdenkOXC_config: unconfig
9297ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x oxc
9307ebf7443Swdenk
9317ebf7443SwdenkPN62_config: unconfig
9327ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x pn62
9337ebf7443Swdenk
9347ebf7443SwdenkSandpoint8240_config: unconfig
9357ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
9367ebf7443Swdenk
9377ebf7443SwdenkSandpoint8245_config: unconfig
9387ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sandpoint
9397ebf7443Swdenk
940466b7410Swdenksbc8240_config: unconfig
941466b7410Swdenk	@./mkconfig $(@:_config=) ppc mpc824x sbc8240
942466b7410Swdenk
943d1cbe85bSwdenkSL8245_config: unconfig
944d1cbe85bSwdenk	@./mkconfig $(@:_config=) ppc mpc824x sl8245
945d1cbe85bSwdenk
9467ebf7443Swdenkutx8245_config: unconfig
9477ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc824x utx8245
9487ebf7443Swdenk
949a562e1bdSwdenkcobra5272_config :		unconfig
950a562e1bdSwdenk	@./mkconfig $(@:_config=) m68k mcf52x2 cobra5272
951a562e1bdSwdenk
9527ebf7443Swdenk#########################################################################
9537ebf7443Swdenk## MPC8260 Systems
9547ebf7443Swdenk#########################################################################
9557ebf7443Swdenk
95654387ac9Swdenkatc_config:	unconfig
95754387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 atc
95854387ac9Swdenk
9597ebf7443Swdenkcogent_mpc8260_config:	unconfig
9607ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 cogent
9617ebf7443Swdenk
9627ebf7443SwdenkCPU86_config	\
9637ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
9647ebf7443Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
9657ebf7443Swdenk	@cd ./include ;				\
9667ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
9677ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
9687ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
9697ebf7443Swdenk	else \
9707ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
9717ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
9727ebf7443Swdenk	fi; \
9737ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
9747ebf7443Swdenk
975384cc687SwdenkCPU87_config	\
976384cc687SwdenkCPU87_ROMBOOT_config: unconfig
977384cc687Swdenk	@./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu87
978384cc687Swdenk	@cd ./include ;				\
979384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
980384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
981384cc687Swdenk		echo "... booting from 8-bit flash" ; \
982384cc687Swdenk	else \
983384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
984384cc687Swdenk		echo "... booting from 64-bit flash" ; \
985384cc687Swdenk	fi; \
986384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
987384cc687Swdenk
9887ebf7443Swdenkep8260_config:	unconfig
9897ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ep8260
9907ebf7443Swdenk
9917ebf7443Swdenkgw8260_config:	unconfig
9927ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 gw8260
9937ebf7443Swdenk
9947ebf7443Swdenkhymod_config:	unconfig
9957ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 hymod
9967ebf7443Swdenk
9979dd41a7bSwdenkIDS8247_config:	unconfig
9989dd41a7bSwdenk	@./mkconfig $(@:_config=) ppc mpc8260 ids8247
9999dd41a7bSwdenk
10007ebf7443SwdenkIPHASE4539_config:	unconfig
10017ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 iphase4539
10027ebf7443Swdenk
1003c3c7f861SwdenkISPAN_config		\
1004c3c7f861SwdenkISPAN_REVB_config:	unconfig
1005c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1006c3c7f861Swdenk		echo "#define CFG_REV_B" > include/config.h ; \
1007c3c7f861Swdenk	fi
1008c3c7f861Swdenk	@./mkconfig -a ISPAN ppc mpc8260 ispan
1009c3c7f861Swdenk
101004a85b3bSwdenkMPC8260ADS_config	\
1011901787d6SwdenkMPC8260ADS_lowboot_config	\
101204a85b3bSwdenkMPC8260ADS_33MHz_config	\
1013901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
101404a85b3bSwdenkMPC8260ADS_40MHz_config	\
1015901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
101604a85b3bSwdenkMPC8272ADS_config	\
1017901787d6SwdenkMPC8272ADS_lowboot_config	\
101804a85b3bSwdenkPQ2FADS_config		\
1019901787d6SwdenkPQ2FADS_lowboot_config		\
102004a85b3bSwdenkPQ2FADS-VR_config	\
1021901787d6SwdenkPQ2FADS-VR_lowboot_config	\
102204a85b3bSwdenkPQ2FADS-ZU_config	\
1023901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
102404a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1025901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
102604a85b3bSwdenk	:		unconfig
102704a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
102804a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
102904a85b3bSwdenk	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
103004a85b3bSwdenk	$(if $(findstring MHz,$@), \
103104a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
103204a85b3bSwdenk	$(if $(findstring VR,$@), \
103304a85b3bSwdenk	@echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
1034901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1035901787d6Swdenk		{ echo "TEXT_BASE = 0xFF800000" >board/mpc8260ads/config.tmp ; \
1036901787d6Swdenk		  echo "... with lowboot configuration" ; \
1037901787d6Swdenk		}
103804a85b3bSwdenk	@./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
10397ebf7443Swdenk
1040db2f721fSwdenkMPC8266ADS_config:	unconfig
1041db2f721fSwdenk	@./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
1042db2f721fSwdenk
1043efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
104410f67017SwdenkPM825_config	\
1045efa329cbSwdenkPM825_ROMBOOT_config	\
1046efa329cbSwdenkPM825_BIGFLASH_config	\
1047efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
10487ebf7443SwdenkPM826_config	\
1049efa329cbSwdenkPM826_ROMBOOT_config	\
1050efa329cbSwdenkPM826_BIGFLASH_config	\
1051efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1052efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1053efa329cbSwdenk		echo "#define CONFIG_PCI"	>include/config.h ; \
10547ebf7443Swdenk	else \
1055efa329cbSwdenk		>include/config.h ; \
1056efa329cbSwdenk	fi
1057efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1058efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1059efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1060efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1061efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1062efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1063efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
10647ebf7443Swdenk		fi; \
1065efa329cbSwdenk	else \
1066efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
1067efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1068efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1069efa329cbSwdenk			echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
1070efa329cbSwdenk			echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
1071efa329cbSwdenk		else \
1072efa329cbSwdenk			echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
1073efa329cbSwdenk		fi; \
1074efa329cbSwdenk	fi
1075efa329cbSwdenk	@./mkconfig -a PM826 ppc mpc8260 pm826
1076efa329cbSwdenk
1077efa329cbSwdenkPM828_config	\
1078efa329cbSwdenkPM828_PCI_config	\
1079efa329cbSwdenkPM828_ROMBOOT_config	\
1080efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1081efa329cbSwdenk	@if [ -z "$(findstring _PCI_,$@)" ] ; then \
1082efa329cbSwdenk		echo "#define CONFIG_PCI"  >>include/config.h ; \
1083efa329cbSwdenk		echo "... with PCI enabled" ; \
1084efa329cbSwdenk	else \
1085efa329cbSwdenk		>include/config.h ; \
1086efa329cbSwdenk	fi
1087efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1088efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1089efa329cbSwdenk		echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1090efa329cbSwdenk		echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1091efa329cbSwdenk	fi
1092efa329cbSwdenk	@./mkconfig -a PM828 ppc mpc8260 pm828
10937ebf7443Swdenk
10947ebf7443Swdenkppmc8260_config:	unconfig
10957ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
10967ebf7443Swdenk
10978b0bfc68SwdenkRattler8248_config	\
10988b0bfc68SwdenkRattler_config:		unconfig
10998b0bfc68Swdenk	$(if $(findstring 8248,$@), \
11008b0bfc68Swdenk	@echo "#define CONFIG_MPC8248" > include/config.h)
11018b0bfc68Swdenk	@./mkconfig -a Rattler ppc mpc8260 rattler
11028b0bfc68Swdenk
11037ebf7443SwdenkRPXsuper_config:	unconfig
11047ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
11057ebf7443Swdenk
11067ebf7443Swdenkrsdproto_config:	unconfig
11077ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 rsdproto
11087ebf7443Swdenk
11097ebf7443Swdenksacsng_config:	unconfig
11107ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sacsng
11117ebf7443Swdenk
11127ebf7443Swdenksbc8260_config:	unconfig
11137ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 sbc8260
11147ebf7443Swdenk
11157ebf7443SwdenkSCM_config:		unconfig
11167ebf7443Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
11177ebf7443Swdenk
111827b207fdSwdenkTQM8255_AA_config \
111927b207fdSwdenkTQM8260_AA_config \
112027b207fdSwdenkTQM8260_AB_config \
112127b207fdSwdenkTQM8260_AC_config \
112227b207fdSwdenkTQM8260_AD_config \
112327b207fdSwdenkTQM8260_AE_config \
112427b207fdSwdenkTQM8260_AF_config \
112527b207fdSwdenkTQM8260_AG_config \
112627b207fdSwdenkTQM8260_AH_config \
112727b207fdSwdenkTQM8265_AA_config:  unconfig
112827b207fdSwdenk	@case "$@" in \
112927b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;  BMODE=8260;;  \
113027b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;  BMODE=8260;; \
113127b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
113227b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;;  \
113327b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
113427b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;  BMODE=8260;; \
113527b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=60x;;  \
113627b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;  BMODE=8260;; \
113727b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;;  \
113827b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;  BMODE=60x;;  \
113927b207fdSwdenk	esac; \
114027b207fdSwdenk	>include/config.h ; \
114127b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
114227b207fdSwdenk		echo "#define CONFIG_$${CTYPE}"	>>include/config.h ; \
114327b207fdSwdenk	fi; \
114427b207fdSwdenk	echo "#define CONFIG_$${CFREQ}MHz"	>>include/config.h ; \
114527b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
114627b207fdSwdenk	if [ "$${CACHE}" == "yes" ] ; then \
11477ebf7443Swdenk		echo "#define CONFIG_L2_CACHE"	>>include/config.h ; \
114827b207fdSwdenk		echo "... with L2 Cache support" ; \
11497ebf7443Swdenk	else \
11507ebf7443Swdenk		echo "#undef CONFIG_L2_CACHE"	>>include/config.h ; \
11517ebf7443Swdenk		echo "... without L2 Cache support" ; \
115227b207fdSwdenk	fi; \
115327b207fdSwdenk	if [ "$${BMODE}" == "60x" ] ; then \
115427b207fdSwdenk		echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
115527b207fdSwdenk		echo "... with 60x Bus Mode" ; \
115627b207fdSwdenk	else \
115727b207fdSwdenk		echo "#undef CONFIG_BUSMODE_60x"  >>include/config.h ; \
115827b207fdSwdenk		echo "... without 60x Bus Mode" ; \
11597ebf7443Swdenk	fi
11604532cb69Swdenk	@./mkconfig -a TQM8260 ppc mpc8260 tqm8260
11617ebf7443Swdenk
1162ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1163ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1164ba91e26aSwdenk	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > include/config.h
1165ba91e26aSwdenk	@./mkconfig -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1166ba91e26aSwdenk
116754387ac9SwdenkZPC1900_config: unconfig
116854387ac9Swdenk	@./mkconfig $(@:_config=) ppc mpc8260 zpc1900
11697aa78614Swdenk
11704e5ca3ebSwdenk#========================================================================
11714e5ca3ebSwdenk# M68K
11724e5ca3ebSwdenk#========================================================================
11734e5ca3ebSwdenk#########################################################################
11744e5ca3ebSwdenk## Coldfire
11754e5ca3ebSwdenk#########################################################################
11764e5ca3ebSwdenk
11774e5ca3ebSwdenkM5272C3_config :		unconfig
1178bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
11794e5ca3ebSwdenk
11804e5ca3ebSwdenkM5282EVB_config :		unconfig
1181bf9e3b38Swdenk	@./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
11824e5ca3ebSwdenk
1183c419d1d6SstroeseTASREG_config :		unconfig
1184c419d1d6Sstroese	@./mkconfig $(@:_config=) m68k mcf52x2 tasreg esd
1185c419d1d6Sstroese
11867ebf7443Swdenk#########################################################################
1187f046ccd1SEran Liberty## MPC83xx Systems
1188f046ccd1SEran Liberty#########################################################################
1189f046ccd1SEran Liberty
1190f046ccd1SEran LibertyMPC8349ADS_config:	unconfig
1191f046ccd1SEran Liberty	@./mkconfig $(@:_config=) ppc mpc83xx mpc8349ads
1192f046ccd1SEran Liberty
1193f046ccd1SEran Liberty#########################################################################
119442d1f039Swdenk## MPC85xx Systems
119542d1f039Swdenk#########################################################################
119642d1f039Swdenk
119742d1f039SwdenkMPC8540ADS_config:	unconfig
119842d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
119942d1f039Swdenk
1200*b0e32949SLunsheng WangMPC8540EVAL_config \
1201*b0e32949SLunsheng WangMPC8540EVAL_33_config \
1202*b0e32949SLunsheng WangMPC8540EVAL_66_config \
1203*b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
1204*b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:      unconfig
1205*b0e32949SLunsheng Wang	@echo "" >include/config.h ; \
1206*b0e32949SLunsheng Wang	if [ "$(findstring _33_,$@)" ] ; then \
1207*b0e32949SLunsheng Wang		echo -n "... 33 MHz PCI" ; \
1208*b0e32949SLunsheng Wang	else \
1209*b0e32949SLunsheng Wang		echo "#define CONFIG_SYSCLK_66M" >>include/config.h ; \
1210*b0e32949SLunsheng Wang		echo -n "... 66 MHz PCI" ; \
1211*b0e32949SLunsheng Wang	fi ; \
1212*b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
1213*b0e32949SLunsheng Wang		echo "#define CONFIG_PCI_SLAVE" >>include/config.h ; \
1214*b0e32949SLunsheng Wang		echo " slave" ; \
1215*b0e32949SLunsheng Wang	else \
1216*b0e32949SLunsheng Wang		echo " host" ; \
1217*b0e32949SLunsheng Wang	fi
1218*b0e32949SLunsheng Wang	@./mkconfig -a MPC8540EVAL ppc mpc85xx mpc8540eval
1219*b0e32949SLunsheng Wang
122042d1f039SwdenkMPC8560ADS_config:	unconfig
122142d1f039Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
122242d1f039Swdenk
122303f5c550SwdenkMPC8541CDS_config:	unconfig
122403f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds
122503f5c550Swdenk
1226d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
1227d9b94f28SJon Loeliger	@./mkconfig $(@:_config=) ppc mpc85xx mpc8548cds cds
1228d9b94f28SJon Loeliger
122903f5c550SwdenkMPC8555CDS_config:	unconfig
123003f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds
12317abf0c58Swdenk
1232384cc687SwdenkPM854_config:	unconfig
1233384cc687Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx pm854
1234384cc687Swdenk
1235c15f3120Swdenksbc8540_config \
1236c15f3120Swdenksbc8540_33_config \
1237c15f3120Swdenksbc8540_66_config:	unconfig
1238c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
1239c15f3120Swdenk		echo "#define CONFIG_PCI_66"	>>include/config.h ; \
1240c15f3120Swdenk		echo "... 66 MHz PCI" ; \
1241c15f3120Swdenk	else \
1242c15f3120Swdenk		>include/config.h ; \
1243c15f3120Swdenk		echo "... 33 MHz PCI" ; \
1244c15f3120Swdenk	fi
1245c15f3120Swdenk	@./mkconfig -a SBC8540 ppc mpc85xx sbc8560
1246c15f3120Swdenk
1247466b7410Swdenksbc8560_config \
1248466b7410Swdenksbc8560_33_config \
1249466b7410Swdenksbc8560_66_config:      unconfig
12508b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
12518b07a110Swdenk		echo "#define CONFIG_PCI_66"	>>include/config.h ; \
12528b07a110Swdenk		echo "... 66 MHz PCI" ; \
12538b07a110Swdenk	else \
12548b07a110Swdenk		>include/config.h ; \
12558b07a110Swdenk		echo "... 33 MHz PCI" ; \
12568b07a110Swdenk	fi
1257466b7410Swdenk	@./mkconfig -a sbc8560 ppc mpc85xx sbc8560
12588b07a110Swdenk
125903f5c550Swdenkstxgp3_config:		unconfig
126003f5c550Swdenk	@./mkconfig $(@:_config=) ppc mpc85xx stxgp3
126103f5c550Swdenk
12629d46ea4aSwdenkTQM8540_config:      unconfig
12639d46ea4aSwdenk	@./mkconfig $(@:_config=) ppc mpc85xx tqm8540
12649d46ea4aSwdenk
1265f5c5ef4aSwdenkTQM8560_config:      unconfig
1266f5c5ef4aSwdenk	@./mkconfig $(@:_config=) ppc mpc85xx tqm8560
1267f5c5ef4aSwdenk
126842d1f039Swdenk#########################################################################
12697ebf7443Swdenk## 74xx/7xx Systems
12707ebf7443Swdenk#########################################################################
12717ebf7443Swdenk
1272c7de829cSwdenkAmigaOneG3SE_config:	unconfig
1273c7de829cSwdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1274c7de829cSwdenk
127515647dc7SwdenkBAB7xx_config: unconfig
127615647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
127715647dc7Swdenk
1278c419d1d6SstroeseCPCI750_config:        unconfig
1279c419d1d6Sstroese	@./mkconfig CPCI750 ppc 74xx_7xx cpci750 esd
1280c419d1d6Sstroese
12813a473b2aSwdenkDB64360_config:  unconfig
12823a473b2aSwdenk	@./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
12833a473b2aSwdenk
12843a473b2aSwdenkDB64460_config:  unconfig
12853a473b2aSwdenk	@./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
12863a473b2aSwdenk
128715647dc7SwdenkELPPC_config: unconfig
128815647dc7Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
128915647dc7Swdenk
12907ebf7443SwdenkEVB64260_config	\
12917ebf7443SwdenkEVB64260_750CX_config:	unconfig
12927ebf7443Swdenk	@./mkconfig EVB64260 ppc 74xx_7xx evb64260
12937ebf7443Swdenk
129415647dc7SwdenkP3G4_config: unconfig
12957ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
12967ebf7443Swdenk
12977ebf7443SwdenkPCIPPC2_config \
12987ebf7443SwdenkPCIPPC6_config: unconfig
12997ebf7443Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
13007ebf7443Swdenk
130115647dc7SwdenkZUMA_config:	unconfig
130212f34241Swdenk	@./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
130312f34241Swdenk
13047ebf7443Swdenk#========================================================================
13057ebf7443Swdenk# ARM
13067ebf7443Swdenk#========================================================================
13077ebf7443Swdenk#########################################################################
13087ebf7443Swdenk## StrongARM Systems
13097ebf7443Swdenk#########################################################################
13107ebf7443Swdenk
1311ea66bc88Swdenkassabet_config	:	unconfig
1312ea66bc88Swdenk	@./mkconfig $(@:_config=) arm sa1100 assabet
1313ea66bc88Swdenk
13147ebf7443Swdenkdnp1110_config	:	unconfig
13157ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 dnp1110
13167ebf7443Swdenk
1317855a496fSwdenkgcplus_config	:	unconfig
1318855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 gcplus
1319855a496fSwdenk
1320855a496fSwdenklart_config	:	unconfig
1321855a496fSwdenk	@./mkconfig $(@:_config=) arm sa1100 lart
1322855a496fSwdenk
13237ebf7443Swdenkshannon_config	:	unconfig
13247ebf7443Swdenk	@./mkconfig $(@:_config=) arm sa1100 shannon
13257ebf7443Swdenk
13267ebf7443Swdenk#########################################################################
13272e5983d2Swdenk## ARM92xT Systems
13287ebf7443Swdenk#########################################################################
13297ebf7443Swdenk
1330b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
133143d9616cSwdenk
13323ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
133363e73c9aSwdenk
1334a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1335a56bd922Swdenk
1336a85f9f21Swdenkat91rm9200dk_config	:	unconfig
1337a85f9f21Swdenk	@./mkconfig $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1338a85f9f21Swdenk
1339a85f9f21Swdenkcmc_pu2_config	:	unconfig
1340a85f9f21Swdenk	@./mkconfig $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1341a85f9f21Swdenk
13423d3befa7Swdenkintegratorap_config :	unconfig
13433d3befa7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs integratorap
13443d3befa7Swdenk
134525d6712aSwdenkintegratorcp_config :	unconfig
134625d6712aSwdenk	@./mkconfig $(@:_config=) arm arm926ejs integratorcp
134725d6712aSwdenk
1348f832d8a1Swdenklpd7a400_config \
1349f832d8a1Swdenklpd7a404_config:	unconfig
13502d24a3a7Swdenk	@./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
13513d3befa7Swdenk
1352281e00a3Swdenkmx1ads_config	:	unconfig
13531d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx
1354281e00a3Swdenk
1355281e00a3Swdenkmx1fs2_config	:	unconfig
13561d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx
1357281e00a3Swdenk
13582e5983d2Swdenkomap1510inn_config :	unconfig
13592e5983d2Swdenk	@./mkconfig $(@:_config=) arm arm925t omap1510inn
13602e5983d2Swdenk
13611eaeb58eSwdenkomap5912osk_config :	unconfig
13621eaeb58eSwdenk	@./mkconfig $(@:_config=) arm arm926ejs omap5912osk
13631eaeb58eSwdenk
136463e73c9aSwdenkomap1610inn_config \
136563e73c9aSwdenkomap1610inn_cs0boot_config \
136663e73c9aSwdenkomap1610inn_cs3boot_config \
13673ff02c27Swdenkomap1610inn_cs_autoboot_config \
136863e73c9aSwdenkomap1610h2_config \
136963e73c9aSwdenkomap1610h2_cs0boot_config \
13703ff02c27Swdenkomap1610h2_cs3boot_config \
13713ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
137263e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
137363e73c9aSwdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1374b79a11ccSwdenk		echo "... configured for CS0 boot"; \
13753ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
13763ff02c27Swdenk		echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
13773ff02c27Swdenk		echo "... configured for CS_AUTO boot"; \
137863e73c9aSwdenk	else \
137963e73c9aSwdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1380b79a11ccSwdenk		echo "... configured for CS3 boot"; \
138163e73c9aSwdenk	fi;
138263e73c9aSwdenk	@./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
13836f21347dSwdenk
1384a56bd922Swdenkomap730p2_config \
1385a56bd922Swdenkomap730p2_cs0boot_config \
1386a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
1387a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
1388a56bd922Swdenk		echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1389a56bd922Swdenk		echo "... configured for CS0 boot"; \
1390a56bd922Swdenk	else \
1391a56bd922Swdenk		echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1392a56bd922Swdenk		echo "... configured for CS3 boot"; \
1393a56bd922Swdenk	fi;
1394a56bd922Swdenk	@./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2
1395a56bd922Swdenk
1396281e00a3Swdenkscb9328_config	:	unconfig
13971d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx
1398281e00a3Swdenk
13997ebf7443Swdenksmdk2400_config	:	unconfig
14001d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
14017ebf7443Swdenk
14027ebf7443Swdenksmdk2410_config	:	unconfig
14031d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
14047ebf7443Swdenk
14052d24a3a7SwdenkSX1_config :		unconfig
14062d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm925t sx1
14072d24a3a7Swdenk
1408b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
140943d9616cSwdenktrab_config \
1410b0639ca3Swdenktrab_bigram_config \
1411b0639ca3Swdenktrab_bigflash_config \
1412f54ebdfaSwdenktrab_old_config:	unconfig
141343d9616cSwdenk	@ >include/config.h
1414b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
1415b0639ca3Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1416b2001f27Swdenk		  echo "#define CONFIG_RAM_32MB"   >>include/config.h ; \
1417b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
1418b0639ca3Swdenk		}
1419b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
1420b2001f27Swdenk		{ echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
1421b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1422b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
1423a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
1424b0639ca3Swdenk		}
1425f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
1426b2001f27Swdenk		{ echo "#define CONFIG_FLASH_8MB"  >>include/config.h ; \
1427b2001f27Swdenk		  echo "#define CONFIG_RAM_16MB"   >>include/config.h ; \
1428b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
1429a8c7c708Swdenk		  echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
143043d9616cSwdenk		}
14311d9f4105Swdenk	@./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
14327ebf7443Swdenk
14331cb8e980SwdenkVCMA9_config	:	unconfig
14341d9f4105Swdenk	@./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0
14351cb8e980Swdenk
14362d24a3a7Swdenkversatile_config :	unconfig
14372d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm926ejs versatile
1438074cff0dSwdenk
14393c2b3d45Swdenkvoiceblue_smallflash_config	\
14403c2b3d45Swdenkvoiceblue_config:	unconfig
14413c2b3d45Swdenk	@if [ "$(findstring _smallflash_,$@)" ] ; then \
14423c2b3d45Swdenk		echo "... boot from lower flash bank" ; \
14433c2b3d45Swdenk		echo "#define VOICEBLUE_SMALL_FLASH" >>include/config.h ; \
14443c2b3d45Swdenk		echo "VOICEBLUE_SMALL_FLASH=y" >board/voiceblue/config.tmp ; \
14453c2b3d45Swdenk	else \
14463c2b3d45Swdenk		echo "... boot from upper flash bank" ; \
14473c2b3d45Swdenk		>include/config.h ; \
14483c2b3d45Swdenk		echo "VOICEBLUE_SMALL_FLASH=n" >board/voiceblue/config.tmp ; \
14493c2b3d45Swdenk	fi
14503c2b3d45Swdenk	@./mkconfig -a voiceblue arm arm925t voiceblue
14513c2b3d45Swdenk
145216b013e7Swdenkcm4008_config	:	unconfig
145316b013e7Swdenk	@./mkconfig $(@:_config=) arm arm920t cm4008 NULL ks8695
145416b013e7Swdenk
145516b013e7Swdenkcm41xx_config	:	unconfig
145616b013e7Swdenk	@./mkconfig $(@:_config=) arm arm920t cm41xx NULL ks8695
145716b013e7Swdenk
1458074cff0dSwdenk#########################################################################
1459074cff0dSwdenk## S3C44B0 Systems
1460074cff0dSwdenk#########################################################################
1461074cff0dSwdenk
1462074cff0dSwdenkB2_config	:	unconfig
1463074cff0dSwdenk	@./mkconfig $(@:_config=) arm s3c44b0 B2 dave
1464074cff0dSwdenk
14657ebf7443Swdenk#########################################################################
14667ebf7443Swdenk## ARM720T Systems
14677ebf7443Swdenk#########################################################################
14687ebf7443Swdenk
14697ebf7443Swdenkep7312_config	:	unconfig
14707ebf7443Swdenk	@./mkconfig $(@:_config=) arm arm720t ep7312
14717ebf7443Swdenk
14722d24a3a7Swdenkimpa7_config	:	unconfig
14732d24a3a7Swdenk	@./mkconfig $(@:_config=) arm arm720t impa7
14742d24a3a7Swdenk
14752d1a537dSwdenkmodnet50_config :	unconfig
14762d1a537dSwdenk	@./mkconfig $(@:_config=) arm arm720t modnet50
14772d1a537dSwdenk
147839539887Swdenkevb4510_config :	unconfig
147939539887Swdenk	@./mkconfig $(@:_config=) arm arm720t evb4510
148039539887Swdenk
14817ebf7443Swdenk#########################################################################
148243d9616cSwdenk## XScale Systems
14837ebf7443Swdenk#########################################################################
14847ebf7443Swdenk
148520787e23Swdenkadsvix_config	:	unconfig
148620787e23Swdenk	@./mkconfig $(@:_config=) arm pxa adsvix
148720787e23Swdenk
1488fabd46acSwdenkcerf250_config :	unconfig
1489fabd46acSwdenk	@./mkconfig $(@:_config=) arm pxa cerf250
1490fabd46acSwdenk
14917ebf7443Swdenkcradle_config	:	unconfig
14924c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa cradle
14937ebf7443Swdenk
14947ebf7443Swdenkcsb226_config	:	unconfig
14954c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa csb226
14967ebf7443Swdenk
149743d9616cSwdenkinnokom_config	:	unconfig
14984c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa innokom
149943d9616cSwdenk
15002d5b561eSwdenkixdp425_config	:	unconfig
15012d5b561eSwdenk	@./mkconfig $(@:_config=) arm ixp ixdp425
15022d5b561eSwdenk
150343d9616cSwdenklubbock_config	:	unconfig
15044c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa lubbock
150543d9616cSwdenk
150652f52c14Swdenklogodl_config	:	unconfig
150752f52c14Swdenk	@./mkconfig $(@:_config=) arm pxa logodl
150852f52c14Swdenk
15093e38691eSwdenkwepep250_config	:	unconfig
15104c3b21a5Swdenk	@./mkconfig $(@:_config=) arm pxa wepep250
15113e38691eSwdenk
15124ec3a7f0Swdenkxaeniax_config	:	unconfig
15134ec3a7f0Swdenk	@./mkconfig $(@:_config=) arm pxa xaeniax
15144ec3a7f0Swdenk
1515efa329cbSwdenkxm250_config	:	unconfig
1516efa329cbSwdenk	@./mkconfig $(@:_config=) arm pxa xm250
1517efa329cbSwdenk
1518ca0e7748Swdenkxsengine_config :	unconfig
1519ca0e7748Swdenk	@./mkconfig $(@:_config=) arm pxa xsengine
1520ca0e7748Swdenk
15218ed96046Swdenk#########################################################################
15228ed96046Swdenk## ARM1136 Systems
15238ed96046Swdenk#########################################################################
15248ed96046Swdenkomap2420h4_config :    unconfig
15258ed96046Swdenk	@./mkconfig $(@:_config=) arm arm1136 omap2420h4
15268ed96046Swdenk
15272262cfeeSwdenk#========================================================================
15282262cfeeSwdenk# i386
15292262cfeeSwdenk#========================================================================
15302262cfeeSwdenk#########################################################################
15312262cfeeSwdenk## AMD SC520 CDP
15322262cfeeSwdenk#########################################################################
15332262cfeeSwdenksc520_cdp_config	:	unconfig
15342262cfeeSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_cdp
15352262cfeeSwdenk
15367a8e9bedSwdenksc520_spunk_config	:	unconfig
15377a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
15387a8e9bedSwdenk
15397a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
15407a8e9bedSwdenk	@./mkconfig $(@:_config=) i386 i386 sc520_spunk
15417a8e9bedSwdenk
154243d9616cSwdenk#========================================================================
154343d9616cSwdenk# MIPS
154443d9616cSwdenk#========================================================================
15457ebf7443Swdenk#########################################################################
154643d9616cSwdenk## MIPS32 4Kc
154743d9616cSwdenk#########################################################################
154843d9616cSwdenk
1549e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1550e0ac62d7Swdenk
1551e0ac62d7Swdenkincaip_100MHz_config	\
1552e0ac62d7Swdenkincaip_133MHz_config	\
1553e0ac62d7Swdenkincaip_150MHz_config	\
155443d9616cSwdenkincaip_config: unconfig
1555e0ac62d7Swdenk	@ >include/config.h
1556e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
1557e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
1558e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
1559e0ac62d7Swdenk		}
1560e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
1561e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
1562e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
1563e0ac62d7Swdenk		}
1564e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
1565e0ac62d7Swdenk		{ echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
1566e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
1567e0ac62d7Swdenk		}
1568e0ac62d7Swdenk	@./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
1569e0ac62d7Swdenk
1570f4863a7aSwdenktb0229_config: unconfig
1571f4863a7aSwdenk	@./mkconfig $(@:_config=) mips mips tb0229
1572f4863a7aSwdenk
1573e0ac62d7Swdenk#########################################################################
157469459791Swdenk## MIPS32 AU1X00
157569459791Swdenk#########################################################################
157669459791Swdenkdbau1000_config		: 	unconfig
157769459791Swdenk	@ >include/config.h
157869459791Swdenk	@echo "#define CONFIG_DBAU1000 1" >>include/config.h
157969459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
158069459791Swdenk
158169459791Swdenkdbau1100_config		: 	unconfig
158269459791Swdenk	@ >include/config.h
158369459791Swdenk	@echo "#define CONFIG_DBAU1100 1" >>include/config.h
158469459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
158569459791Swdenk
158669459791Swdenkdbau1500_config		: 	unconfig
158769459791Swdenk	@ >include/config.h
158869459791Swdenk	@echo "#define CONFIG_DBAU1500 1" >>include/config.h
158969459791Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
159069459791Swdenk
1591ff36fd85Swdenkdbau1550_config		:	unconfig
1592ff36fd85Swdenk	@ >include/config.h
1593ff36fd85Swdenk	@echo "#define CONFIG_DBAU1550 1" >>include/config.h
1594ff36fd85Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00
1595ff36fd85Swdenk
1596ff36fd85Swdenkdbau1550_el_config	:	unconfig
1597ff36fd85Swdenk	@ >include/config.h
1598ff36fd85Swdenk	@echo "#define CONFIG_DBAU1550 1" >>include/config.h
1599ff36fd85Swdenk	@./mkconfig -a dbau1x00 mips mips dbau1x00 "" little
1600ff36fd85Swdenk
160169459791Swdenk#########################################################################
1602e0ac62d7Swdenk## MIPS64 5Kc
1603e0ac62d7Swdenk#########################################################################
160443d9616cSwdenk
16053e38691eSwdenkpurple_config :		unconfig
16063e38691eSwdenk	@./mkconfig $(@:_config=) mips mips purple
160743d9616cSwdenk
16084a551709Swdenk#========================================================================
16094a551709Swdenk# Nios
16104a551709Swdenk#========================================================================
16114a551709Swdenk#########################################################################
16124a551709Swdenk## Nios32
16134a551709Swdenk#########################################################################
16144a551709Swdenk
1615c935d3bdSwdenkDK1C20_safe_32_config		\
1616c935d3bdSwdenkDK1C20_standard_32_config	\
16174a551709SwdenkDK1C20_config:	unconfig
1618c935d3bdSwdenk	@ >include/config.h
1619c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1620c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1621c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1622c935d3bdSwdenk		}
1623c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1624c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1625c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1626c935d3bdSwdenk		}
1627c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
1628c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1629c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1630c935d3bdSwdenk		}
1631c935d3bdSwdenk	@./mkconfig -a DK1C20 nios nios dk1c20 altera
1632c935d3bdSwdenk
1633c935d3bdSwdenkDK1S10_safe_32_config		\
1634c935d3bdSwdenkDK1S10_standard_32_config	\
1635ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
1636c935d3bdSwdenkDK1S10_config:	unconfig
1637c935d3bdSwdenk	@ >include/config.h
1638c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
1639c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1640c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
1641c935d3bdSwdenk		}
1642c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
1643c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1644c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
1645c935d3bdSwdenk		}
1646ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
1647ec4c544bSwdenk		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
1648ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
1649ec4c544bSwdenk		}
1650c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
1651c935d3bdSwdenk		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1652c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1653c935d3bdSwdenk		}
1654c935d3bdSwdenk	@./mkconfig -a DK1S10 nios nios dk1s10 altera
16554a551709Swdenk
1656aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
1657aaf224abSwdenkADNPESC1_base_32_config		\
1658aaf224abSwdenkADNPESC1_config: unconfig
1659aaf224abSwdenk	@ >include/config.h
1660aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
1661aaf224abSwdenk		{ echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
1662aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
1663aaf224abSwdenk		}
1664aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
1665aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1666aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
1667aaf224abSwdenk		}
1668aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
1669aaf224abSwdenk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1670aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
1671aaf224abSwdenk		}
1672aaf224abSwdenk	@./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
1673aaf224abSwdenk
16745c952cf0Swdenk#########################################################################
16755c952cf0Swdenk## Nios-II
16765c952cf0Swdenk#########################################################################
16775c952cf0Swdenk
16785c952cf0SwdenkPK1C20_config : unconfig
16795c952cf0Swdenk	@./mkconfig  PK1C20 nios2 nios2 pk1c20 psyent
16805c952cf0Swdenk
16815c952cf0SwdenkPCI5441_config : unconfig
16825c952cf0Swdenk	@./mkconfig  PCI5441 nios2 nios2 pci5441 psyent
16834a551709Swdenk
1684507bbe3eSwdenk#========================================================================
1685507bbe3eSwdenk# MicroBlaze
1686507bbe3eSwdenk#========================================================================
1687507bbe3eSwdenk#########################################################################
1688507bbe3eSwdenk## Microblaze
1689507bbe3eSwdenk#########################################################################
1690507bbe3eSwdenksuzaku_config:	unconfig
1691507bbe3eSwdenk	@ >include/config.h
1692507bbe3eSwdenk	@echo "#define CONFIG_SUZAKU 1" >> include/config.h
1693507bbe3eSwdenk	@./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
1694507bbe3eSwdenk
16953e38691eSwdenk#########################################################################
16963e38691eSwdenk#########################################################################
16977ebf7443Swdenk
16987ebf7443Swdenkclean:
16997ebf7443Swdenk	find . -type f \
17007ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
17017ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
17027ebf7443Swdenk		| xargs rm -f
170385ec0bccSwdenk	rm -f examples/hello_world examples/timer \
17043e38691eSwdenk	      examples/eepro100_eeprom examples/sched \
1705ed16fefcSwdenk	      examples/mem_to_mem_idma2intr examples/82559_eeprom \
1706ed16fefcSwdenk	      examples/test_burst
17077ebf7443Swdenk	rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
1708eedcd078Swdenk	rm -f tools/mpc86x_clk tools/ncb
17097ebf7443Swdenk	rm -f tools/easylogo/easylogo tools/bmp_logo
17107ebf7443Swdenk	rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
1711228f29acSwdenk	rm -f tools/env/fw_printenv tools/env/fw_setenv
17127f70e853Swdenk	rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
17137e780369Swdenk	rm -f board/trab/trab_fkt
17147ebf7443Swdenk
17157ebf7443Swdenkclobber:	clean
17164c0d4c3bSwdenk	find . -type f \( -name .depend \
17174c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
17184c0d4c3bSwdenk		-print0 \
17194c0d4c3bSwdenk		| xargs -0 rm -f
17207ebf7443Swdenk	rm -f $(OBJS) *.bak tags TAGS
17217ebf7443Swdenk	rm -fr *.*~
17226310eb9dSwdenk	rm -f u-boot u-boot.map u-boot.hex $(ALL)
1723228f29acSwdenk	rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
17243e38691eSwdenk	rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
1725b783edaeSwdenk	rm -f include/asm/proc include/asm/arch include/asm
17267ebf7443Swdenk
17277ebf7443Swdenkmrproper \
17287ebf7443Swdenkdistclean:	clobber unconfig
17297ebf7443Swdenk
17307ebf7443Swdenkbackup:
17317ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
17327ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
17337ebf7443Swdenk
17347ebf7443Swdenk#########################################################################
1735