Commit 751b9b5189f3274b03c809172631316d6b002c82

Authored by Kyungmin Park
Committed by Wolfgang Denk
1 parent 21f6f9636f

OneNAND Initial Program Loader (IPL) support

This patch enables the OneNAND boot within U-Boot.
Before this work, we used another OneNAND IPL called X-Loader based
on open source. With this work, we can build the oneboot.bin image
without other program.

The build sequence is simple.
First, it compiles the u-boot.bin
Second, it compiles OneNAND IPL
Finally, it becomes the oneboot.bin from OneNAND IPL and u-boot.bin
The mechanism is similar with NAND boot except it boots from itself.

Another thing is that you can only use the OneNAND IPL only to work
other bootloader such as RedBoot and so on.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>

Showing 11 changed files with 698 additions and 2 deletions Inline Diff

1 # 1 #
2 # (C) Copyright 2000-2008 2 # (C) Copyright 2000-2008
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 # 4 #
5 # See file CREDITS for list of people who contributed to this 5 # See file CREDITS for list of people who contributed to this
6 # project. 6 # project.
7 # 7 #
8 # This program is free software; you can redistribute it and/or 8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as 9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundatio; either version 2 of 10 # published by the Free Software Foundatio; either version 2 of
11 # the License, or (at your option) any later version. 11 # the License, or (at your option) any later version.
12 # 12 #
13 # This program is distributed in the hope that it will be useful, 13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details. 16 # GNU General Public License for more details.
17 # 17 #
18 # You should have received a copy of the GNU General Public License 18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software 19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 # MA 02111-1307 USA 21 # MA 02111-1307 USA
22 # 22 #
23 23
24 VERSION = 1 24 VERSION = 1
25 PATCHLEVEL = 3 25 PATCHLEVEL = 3
26 SUBLEVEL = 1 26 SUBLEVEL = 1
27 EXTRAVERSION = 27 EXTRAVERSION =
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) 28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = $(obj)include/version_autogenerated.h 29 VERSION_FILE = $(obj)include/version_autogenerated.h
30 30
31 HOSTARCH := $(shell uname -m | \ 31 HOSTARCH := $(shell uname -m | \
32 sed -e s/i.86/i386/ \ 32 sed -e s/i.86/i386/ \
33 -e s/sun4u/sparc64/ \ 33 -e s/sun4u/sparc64/ \
34 -e s/arm.*/arm/ \ 34 -e s/arm.*/arm/ \
35 -e s/sa110/arm/ \ 35 -e s/sa110/arm/ \
36 -e s/powerpc/ppc/ \ 36 -e s/powerpc/ppc/ \
37 -e s/ppc64/ppc/ \ 37 -e s/ppc64/ppc/ \
38 -e s/macppc/ppc/) 38 -e s/macppc/ppc/)
39 39
40 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ 40 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
41 sed -e 's/\(cygwin\).*/cygwin/') 41 sed -e 's/\(cygwin\).*/cygwin/')
42 42
43 export HOSTARCH HOSTOS 43 export HOSTARCH HOSTOS
44 44
45 # Deal with colliding definitions from tcsh etc. 45 # Deal with colliding definitions from tcsh etc.
46 VENDOR= 46 VENDOR=
47 47
48 ######################################################################### 48 #########################################################################
49 # Allow for silent builds 49 # Allow for silent builds
50 ifeq (,$(findstring s,$(MAKEFLAGS))) 50 ifeq (,$(findstring s,$(MAKEFLAGS)))
51 XECHO = echo 51 XECHO = echo
52 else 52 else
53 XECHO = : 53 XECHO = :
54 endif 54 endif
55 55
56 ######################################################################### 56 #########################################################################
57 # 57 #
58 # U-boot build supports producing a object files to the separate external 58 # U-boot build supports producing a object files to the separate external
59 # directory. Two use cases are supported: 59 # directory. Two use cases are supported:
60 # 60 #
61 # 1) Add O= to the make command line 61 # 1) Add O= to the make command line
62 # 'make O=/tmp/build all' 62 # 'make O=/tmp/build all'
63 # 63 #
64 # 2) Set environement variable BUILD_DIR to point to the desired location 64 # 2) Set environement variable BUILD_DIR to point to the desired location
65 # 'export BUILD_DIR=/tmp/build' 65 # 'export BUILD_DIR=/tmp/build'
66 # 'make' 66 # 'make'
67 # 67 #
68 # The second approach can also be used with a MAKEALL script 68 # The second approach can also be used with a MAKEALL script
69 # 'export BUILD_DIR=/tmp/build' 69 # 'export BUILD_DIR=/tmp/build'
70 # './MAKEALL' 70 # './MAKEALL'
71 # 71 #
72 # Command line 'O=' setting overrides BUILD_DIR environent variable. 72 # Command line 'O=' setting overrides BUILD_DIR environent variable.
73 # 73 #
74 # When none of the above methods is used the local build is performed and 74 # When none of the above methods is used the local build is performed and
75 # the object files are placed in the source directory. 75 # the object files are placed in the source directory.
76 # 76 #
77 77
78 ifdef O 78 ifdef O
79 ifeq ("$(origin O)", "command line") 79 ifeq ("$(origin O)", "command line")
80 BUILD_DIR := $(O) 80 BUILD_DIR := $(O)
81 endif 81 endif
82 endif 82 endif
83 83
84 ifneq ($(BUILD_DIR),) 84 ifneq ($(BUILD_DIR),)
85 saved-output := $(BUILD_DIR) 85 saved-output := $(BUILD_DIR)
86 86
87 # Attempt to create a output directory. 87 # Attempt to create a output directory.
88 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) 88 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
89 89
90 # Verify if it was successful. 90 # Verify if it was successful.
91 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) 91 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
92 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) 92 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
93 endif # ifneq ($(BUILD_DIR),) 93 endif # ifneq ($(BUILD_DIR),)
94 94
95 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR)) 95 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
96 SRCTREE := $(CURDIR) 96 SRCTREE := $(CURDIR)
97 TOPDIR := $(SRCTREE) 97 TOPDIR := $(SRCTREE)
98 LNDIR := $(OBJTREE) 98 LNDIR := $(OBJTREE)
99 export TOPDIR SRCTREE OBJTREE 99 export TOPDIR SRCTREE OBJTREE
100 100
101 MKCONFIG := $(SRCTREE)/mkconfig 101 MKCONFIG := $(SRCTREE)/mkconfig
102 export MKCONFIG 102 export MKCONFIG
103 103
104 ifneq ($(OBJTREE),$(SRCTREE)) 104 ifneq ($(OBJTREE),$(SRCTREE))
105 REMOTE_BUILD := 1 105 REMOTE_BUILD := 1
106 export REMOTE_BUILD 106 export REMOTE_BUILD
107 endif 107 endif
108 108
109 # $(obj) and (src) are defined in config.mk but here in main Makefile 109 # $(obj) and (src) are defined in config.mk but here in main Makefile
110 # we also need them before config.mk is included which is the case for 110 # we also need them before config.mk is included which is the case for
111 # some targets like unconfig, clean, clobber, distclean, etc. 111 # some targets like unconfig, clean, clobber, distclean, etc.
112 ifneq ($(OBJTREE),$(SRCTREE)) 112 ifneq ($(OBJTREE),$(SRCTREE))
113 obj := $(OBJTREE)/ 113 obj := $(OBJTREE)/
114 src := $(SRCTREE)/ 114 src := $(SRCTREE)/
115 else 115 else
116 obj := 116 obj :=
117 src := 117 src :=
118 endif 118 endif
119 export obj src 119 export obj src
120 120
121 ######################################################################### 121 #########################################################################
122 122
123 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)) 123 ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
124 124
125 # load ARCH, BOARD, and CPU configuration 125 # load ARCH, BOARD, and CPU configuration
126 include $(obj)include/config.mk 126 include $(obj)include/config.mk
127 export ARCH CPU BOARD VENDOR SOC 127 export ARCH CPU BOARD VENDOR SOC
128 128
129 ifndef CROSS_COMPILE 129 ifndef CROSS_COMPILE
130 ifeq ($(HOSTARCH),$(ARCH)) 130 ifeq ($(HOSTARCH),$(ARCH))
131 CROSS_COMPILE = 131 CROSS_COMPILE =
132 else 132 else
133 ifeq ($(ARCH),ppc) 133 ifeq ($(ARCH),ppc)
134 CROSS_COMPILE = ppc_8xx- 134 CROSS_COMPILE = ppc_8xx-
135 endif 135 endif
136 ifeq ($(ARCH),arm) 136 ifeq ($(ARCH),arm)
137 CROSS_COMPILE = arm-linux- 137 CROSS_COMPILE = arm-linux-
138 endif 138 endif
139 ifeq ($(ARCH),i386) 139 ifeq ($(ARCH),i386)
140 CROSS_COMPILE = i386-linux- 140 CROSS_COMPILE = i386-linux-
141 endif 141 endif
142 ifeq ($(ARCH),mips) 142 ifeq ($(ARCH),mips)
143 CROSS_COMPILE = mips_4KC- 143 CROSS_COMPILE = mips_4KC-
144 endif 144 endif
145 ifeq ($(ARCH),nios) 145 ifeq ($(ARCH),nios)
146 CROSS_COMPILE = nios-elf- 146 CROSS_COMPILE = nios-elf-
147 endif 147 endif
148 ifeq ($(ARCH),nios2) 148 ifeq ($(ARCH),nios2)
149 CROSS_COMPILE = nios2-elf- 149 CROSS_COMPILE = nios2-elf-
150 endif 150 endif
151 ifeq ($(ARCH),m68k) 151 ifeq ($(ARCH),m68k)
152 CROSS_COMPILE = m68k-elf- 152 CROSS_COMPILE = m68k-elf-
153 endif 153 endif
154 ifeq ($(ARCH),microblaze) 154 ifeq ($(ARCH),microblaze)
155 CROSS_COMPILE = mb- 155 CROSS_COMPILE = mb-
156 endif 156 endif
157 ifeq ($(ARCH),blackfin) 157 ifeq ($(ARCH),blackfin)
158 CROSS_COMPILE = bfin-uclinux- 158 CROSS_COMPILE = bfin-uclinux-
159 endif 159 endif
160 ifeq ($(ARCH),avr32) 160 ifeq ($(ARCH),avr32)
161 CROSS_COMPILE = avr32-linux- 161 CROSS_COMPILE = avr32-linux-
162 endif 162 endif
163 ifeq ($(ARCH),sh) 163 ifeq ($(ARCH),sh)
164 CROSS_COMPILE = sh4-linux- 164 CROSS_COMPILE = sh4-linux-
165 endif # sh 165 endif # sh
166 endif # HOSTARCH,ARCH 166 endif # HOSTARCH,ARCH
167 endif # CROSS_COMPILE 167 endif # CROSS_COMPILE
168 168
169 export CROSS_COMPILE 169 export CROSS_COMPILE
170 170
171 # load other configuration 171 # load other configuration
172 include $(TOPDIR)/config.mk 172 include $(TOPDIR)/config.mk
173 173
174 ######################################################################### 174 #########################################################################
175 # U-Boot objects....order is important (i.e. start must be first) 175 # U-Boot objects....order is important (i.e. start must be first)
176 176
177 OBJS = cpu/$(CPU)/start.o 177 OBJS = cpu/$(CPU)/start.o
178 ifeq ($(CPU),i386) 178 ifeq ($(CPU),i386)
179 OBJS += cpu/$(CPU)/start16.o 179 OBJS += cpu/$(CPU)/start16.o
180 OBJS += cpu/$(CPU)/reset.o 180 OBJS += cpu/$(CPU)/reset.o
181 endif 181 endif
182 ifeq ($(CPU),ppc4xx) 182 ifeq ($(CPU),ppc4xx)
183 OBJS += cpu/$(CPU)/resetvec.o 183 OBJS += cpu/$(CPU)/resetvec.o
184 endif 184 endif
185 ifeq ($(CPU),mpc85xx) 185 ifeq ($(CPU),mpc85xx)
186 OBJS += cpu/$(CPU)/resetvec.o 186 OBJS += cpu/$(CPU)/resetvec.o
187 endif 187 endif
188 ifeq ($(CPU),bf533) 188 ifeq ($(CPU),bf533)
189 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o 189 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
190 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o 190 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
191 endif 191 endif
192 ifeq ($(CPU),bf537) 192 ifeq ($(CPU),bf537)
193 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o 193 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
194 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o 194 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
195 endif 195 endif
196 ifeq ($(CPU),bf561) 196 ifeq ($(CPU),bf561)
197 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o 197 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
198 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o 198 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
199 endif 199 endif
200 200
201 OBJS := $(addprefix $(obj),$(OBJS)) 201 OBJS := $(addprefix $(obj),$(OBJS))
202 202
203 LIBS = lib_generic/libgeneric.a 203 LIBS = lib_generic/libgeneric.a
204 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ 204 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
205 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi) 205 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
206 LIBS += board/$(BOARDDIR)/lib$(BOARD).a 206 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
207 LIBS += cpu/$(CPU)/lib$(CPU).a 207 LIBS += cpu/$(CPU)/lib$(CPU).a
208 ifdef SOC 208 ifdef SOC
209 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a 209 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
210 endif 210 endif
211 ifeq ($(CPU),ixp) 211 ifeq ($(CPU),ixp)
212 LIBS += cpu/ixp/npe/libnpe.a 212 LIBS += cpu/ixp/npe/libnpe.a
213 endif 213 endif
214 LIBS += lib_$(ARCH)/lib$(ARCH).a 214 LIBS += lib_$(ARCH)/lib$(ARCH).a
215 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 215 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
216 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a 216 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
217 LIBS += net/libnet.a 217 LIBS += net/libnet.a
218 LIBS += disk/libdisk.a 218 LIBS += disk/libdisk.a
219 LIBS += drivers/bios_emulator/libatibiosemu.a 219 LIBS += drivers/bios_emulator/libatibiosemu.a
220 LIBS += drivers/block/libblock.a 220 LIBS += drivers/block/libblock.a
221 LIBS += drivers/dma/libdma.a 221 LIBS += drivers/dma/libdma.a
222 LIBS += drivers/hwmon/libhwmon.a 222 LIBS += drivers/hwmon/libhwmon.a
223 LIBS += drivers/i2c/libi2c.a 223 LIBS += drivers/i2c/libi2c.a
224 LIBS += drivers/input/libinput.a 224 LIBS += drivers/input/libinput.a
225 LIBS += drivers/misc/libmisc.a 225 LIBS += drivers/misc/libmisc.a
226 LIBS += drivers/mtd/libmtd.a 226 LIBS += drivers/mtd/libmtd.a
227 LIBS += drivers/mtd/nand/libnand.a 227 LIBS += drivers/mtd/nand/libnand.a
228 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a 228 LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
229 LIBS += drivers/mtd/onenand/libonenand.a 229 LIBS += drivers/mtd/onenand/libonenand.a
230 LIBS += drivers/net/libnet.a 230 LIBS += drivers/net/libnet.a
231 LIBS += drivers/net/sk98lin/libsk98lin.a 231 LIBS += drivers/net/sk98lin/libsk98lin.a
232 LIBS += drivers/pci/libpci.a 232 LIBS += drivers/pci/libpci.a
233 LIBS += drivers/pcmcia/libpcmcia.a 233 LIBS += drivers/pcmcia/libpcmcia.a
234 LIBS += drivers/spi/libspi.a 234 LIBS += drivers/spi/libspi.a
235 ifeq ($(CPU),mpc83xx) 235 ifeq ($(CPU),mpc83xx)
236 LIBS += drivers/qe/qe.a 236 LIBS += drivers/qe/qe.a
237 endif 237 endif
238 ifeq ($(CPU),mpc85xx) 238 ifeq ($(CPU),mpc85xx)
239 LIBS += drivers/qe/qe.a 239 LIBS += drivers/qe/qe.a
240 endif 240 endif
241 LIBS += drivers/rtc/librtc.a 241 LIBS += drivers/rtc/librtc.a
242 LIBS += drivers/serial/libserial.a 242 LIBS += drivers/serial/libserial.a
243 LIBS += drivers/usb/libusb.a 243 LIBS += drivers/usb/libusb.a
244 LIBS += drivers/video/libvideo.a 244 LIBS += drivers/video/libvideo.a
245 LIBS += post/libpost.a post/drivers/libpostdrivers.a 245 LIBS += post/libpost.a post/drivers/libpostdrivers.a
246 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \ 246 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
247 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi) 247 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
248 LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \ 248 LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
249 "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi) 249 "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
250 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \ 250 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
251 "post/cpu/$(CPU)/libpost$(CPU).a"; fi) 251 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
252 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \ 252 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
253 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi) 253 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
254 LIBS += common/libcommon.a 254 LIBS += common/libcommon.a
255 LIBS += libfdt/libfdt.a 255 LIBS += libfdt/libfdt.a
256 LIBS += api/libapi.a 256 LIBS += api/libapi.a
257 257
258 LIBS := $(addprefix $(obj),$(LIBS)) 258 LIBS := $(addprefix $(obj),$(LIBS))
259 .PHONY : $(LIBS) 259 .PHONY : $(LIBS)
260 260
261 # Add GCC lib 261 # Add GCC lib
262 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 262 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
263 263
264 # The "tools" are needed early, so put this first 264 # The "tools" are needed early, so put this first
265 # Don't include stuff already done in $(LIBS) 265 # Don't include stuff already done in $(LIBS)
266 SUBDIRS = tools \ 266 SUBDIRS = tools \
267 examples \ 267 examples \
268 api_examples 268 api_examples
269 269
270 .PHONY : $(SUBDIRS) 270 .PHONY : $(SUBDIRS)
271 271
272 ifeq ($(CONFIG_NAND_U_BOOT),y) 272 ifeq ($(CONFIG_NAND_U_BOOT),y)
273 NAND_SPL = nand_spl 273 NAND_SPL = nand_spl
274 U_BOOT_NAND = $(obj)u-boot-nand.bin 274 U_BOOT_NAND = $(obj)u-boot-nand.bin
275 endif 275 endif
276 276
277 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
278 ONENAND_IPL = onenand_ipl
279 U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
280 endif
281
277 __OBJS := $(subst $(obj),,$(OBJS)) 282 __OBJS := $(subst $(obj),,$(OBJS))
278 __LIBS := $(subst $(obj),,$(LIBS)) 283 __LIBS := $(subst $(obj),,$(LIBS))
279 284
280 ######################################################################### 285 #########################################################################
281 ######################################################################### 286 #########################################################################
282 287
283 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) 288 ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
284 289
285 all: $(ALL) 290 all: $(ALL)
286 291
287 $(obj)u-boot.hex: $(obj)u-boot 292 $(obj)u-boot.hex: $(obj)u-boot
288 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 293 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
289 294
290 $(obj)u-boot.srec: $(obj)u-boot 295 $(obj)u-boot.srec: $(obj)u-boot
291 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ 296 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
292 297
293 $(obj)u-boot.bin: $(obj)u-boot 298 $(obj)u-boot.bin: $(obj)u-boot
294 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 299 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
295 300
296 $(obj)u-boot.img: $(obj)u-boot.bin 301 $(obj)u-boot.img: $(obj)u-boot.bin
297 ./tools/mkimage -A $(ARCH) -T firmware -C none \ 302 ./tools/mkimage -A $(ARCH) -T firmware -C none \
298 -a $(TEXT_BASE) -e 0 \ 303 -a $(TEXT_BASE) -e 0 \
299 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 304 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
300 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 305 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
301 -d $< $@ 306 -d $< $@
302 307
303 $(obj)u-boot.sha1: $(obj)u-boot.bin 308 $(obj)u-boot.sha1: $(obj)u-boot.bin
304 $(obj)tools/ubsha1 $(obj)u-boot.bin 309 $(obj)tools/ubsha1 $(obj)u-boot.bin
305 310
306 $(obj)u-boot.dis: $(obj)u-boot 311 $(obj)u-boot.dis: $(obj)u-boot
307 $(OBJDUMP) -d $< > $@ 312 $(OBJDUMP) -d $< > $@
308 313
309 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) 314 $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
310 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 315 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
311 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 316 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
312 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 317 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
313 -Map u-boot.map -o u-boot 318 -Map u-boot.map -o u-boot
314 319
315 $(OBJS): depend $(obj)include/autoconf.mk 320 $(OBJS): depend $(obj)include/autoconf.mk
316 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 321 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
317 322
318 $(LIBS): depend $(obj)include/autoconf.mk 323 $(LIBS): depend $(obj)include/autoconf.mk
319 $(MAKE) -C $(dir $(subst $(obj),,$@)) 324 $(MAKE) -C $(dir $(subst $(obj),,$@))
320 325
321 $(SUBDIRS): depend $(obj)include/autoconf.mk 326 $(SUBDIRS): depend $(obj)include/autoconf.mk
322 $(MAKE) -C $@ all 327 $(MAKE) -C $@ all
323 328
324 $(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk 329 $(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk
325 $(MAKE) -C nand_spl/board/$(BOARDDIR) all 330 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
326 331
327 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk 332 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
328 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 333 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
329 334
335 $(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk
336 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
337
338 $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
339 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
340
330 $(VERSION_FILE): 341 $(VERSION_FILE):
331 @( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \ 342 @( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \
332 echo -n "$(U_BOOT_VERSION)" ; \ 343 echo -n "$(U_BOOT_VERSION)" ; \
333 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \ 344 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
334 $(TOPDIR)) ; \ 345 $(TOPDIR)) ; \
335 echo "\"" ) > $(VERSION_FILE) 346 echo "\"" ) > $(VERSION_FILE)
336 347
337 gdbtools: 348 gdbtools:
338 $(MAKE) -C tools/gdb all || exit 1 349 $(MAKE) -C tools/gdb all || exit 1
339 350
340 updater: 351 updater:
341 $(MAKE) -C tools/updater all || exit 1 352 $(MAKE) -C tools/updater all || exit 1
342 353
343 env: 354 env:
344 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1 355 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
345 356
346 depend dep: $(VERSION_FILE) 357 depend dep: $(VERSION_FILE)
347 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done 358 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
348 359
349 TAG_SUBDIRS += include 360 TAG_SUBDIRS += include
350 TAG_SUBDIRS += lib_generic board/$(BOARDDIR) 361 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
351 TAG_SUBDIRS += cpu/$(CPU) 362 TAG_SUBDIRS += cpu/$(CPU)
352 TAG_SUBDIRS += lib_$(ARCH) 363 TAG_SUBDIRS += lib_$(ARCH)
353 TAG_SUBDIRS += fs/cramfs 364 TAG_SUBDIRS += fs/cramfs
354 TAG_SUBDIRS += fs/fat 365 TAG_SUBDIRS += fs/fat
355 TAG_SUBDIRS += fs/fdos 366 TAG_SUBDIRS += fs/fdos
356 TAG_SUBDIRS += fs/jffs2 367 TAG_SUBDIRS += fs/jffs2
357 TAG_SUBDIRS += net 368 TAG_SUBDIRS += net
358 TAG_SUBDIRS += disk 369 TAG_SUBDIRS += disk
359 TAG_SUBDIRS += common 370 TAG_SUBDIRS += common
360 TAG_SUBDIRS += drivers/bios_emulator 371 TAG_SUBDIRS += drivers/bios_emulator
361 TAG_SUBDIRS += drivers/block 372 TAG_SUBDIRS += drivers/block
362 TAG_SUBDIRS += drivers/hwmon 373 TAG_SUBDIRS += drivers/hwmon
363 TAG_SUBDIRS += drivers/i2c 374 TAG_SUBDIRS += drivers/i2c
364 TAG_SUBDIRS += drivers/input 375 TAG_SUBDIRS += drivers/input
365 TAG_SUBDIRS += drivers/misc 376 TAG_SUBDIRS += drivers/misc
366 TAG_SUBDIRS += drivers/mtd 377 TAG_SUBDIRS += drivers/mtd
367 TAG_SUBDIRS += drivers/mtd/nand 378 TAG_SUBDIRS += drivers/mtd/nand
368 TAG_SUBDIRS += drivers/mtd/nand_legacy 379 TAG_SUBDIRS += drivers/mtd/nand_legacy
369 TAG_SUBDIRS += drivers/mtd/onenand 380 TAG_SUBDIRS += drivers/mtd/onenand
370 TAG_SUBDIRS += drivers/net 381 TAG_SUBDIRS += drivers/net
371 TAG_SUBDIRS += drivers/net/sk98lin 382 TAG_SUBDIRS += drivers/net/sk98lin
372 TAG_SUBDIRS += drivers/pci 383 TAG_SUBDIRS += drivers/pci
373 TAG_SUBDIRS += drivers/pcmcia 384 TAG_SUBDIRS += drivers/pcmcia
374 TAG_SUBDIRS += drivers/qe 385 TAG_SUBDIRS += drivers/qe
375 TAG_SUBDIRS += drivers/rtc 386 TAG_SUBDIRS += drivers/rtc
376 TAG_SUBDIRS += drivers/serial 387 TAG_SUBDIRS += drivers/serial
377 TAG_SUBDIRS += drivers/spi 388 TAG_SUBDIRS += drivers/spi
378 TAG_SUBDIRS += drivers/usb 389 TAG_SUBDIRS += drivers/usb
379 TAG_SUBDIRS += drivers/video 390 TAG_SUBDIRS += drivers/video
380 391
381 tags ctags: 392 tags ctags:
382 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 393 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
383 -name '*.[ch]' -print` 394 -name '*.[ch]' -print`
384 395
385 etags: 396 etags:
386 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \ 397 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
387 -name '*.[ch]' -print` 398 -name '*.[ch]' -print`
388 399
389 $(obj)System.map: $(obj)u-boot 400 $(obj)System.map: $(obj)u-boot
390 @$(NM) $< | \ 401 @$(NM) $< | \
391 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 402 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
392 sort > $(obj)System.map 403 sort > $(obj)System.map
393 404
394 # 405 #
395 # Auto-generate the autoconf.mk file (which is included by all makefiles) 406 # Auto-generate the autoconf.mk file (which is included by all makefiles)
396 # 407 #
397 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. 408 # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
398 # the dep file is only include in this top level makefile to determine when 409 # the dep file is only include in this top level makefile to determine when
399 # to regenerate the autoconf.mk file. 410 # to regenerate the autoconf.mk file.
400 $(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE) 411 $(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
401 @$(XECHO) Generating include/autoconf.mk ; \ 412 @$(XECHO) Generating include/autoconf.mk ; \
402 : Generate the dependancies ; \ 413 : Generate the dependancies ; \
403 $(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \ 414 $(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
404 : Extract the config macros ; \ 415 : Extract the config macros ; \
405 $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@ 416 $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
406 417
407 sinclude $(obj)include/autoconf.mk.dep 418 sinclude $(obj)include/autoconf.mk.dep
408 419
409 ######################################################################### 420 #########################################################################
410 else # !config.mk 421 else # !config.mk
411 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 422 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
412 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 423 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
413 $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \ 424 $(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
414 dep tags ctags etags $(obj)System.map: 425 dep tags ctags etags $(obj)System.map:
415 @echo "System not configured - see README" >&2 426 @echo "System not configured - see README" >&2
416 @ exit 1 427 @ exit 1
417 endif # config.mk 428 endif # config.mk
418 429
419 .PHONY : CHANGELOG 430 .PHONY : CHANGELOG
420 CHANGELOG: 431 CHANGELOG:
421 git log --no-merges U-Boot-1_1_5.. | \ 432 git log --no-merges U-Boot-1_1_5.. | \
422 unexpand -a | sed -e 's/\s\s*$$//' > $@ 433 unexpand -a | sed -e 's/\s\s*$$//' > $@
423 434
424 ######################################################################### 435 #########################################################################
425 436
426 unconfig: 437 unconfig:
427 @rm -f $(obj)include/config.h $(obj)include/config.mk \ 438 @rm -f $(obj)include/config.h $(obj)include/config.mk \
428 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ 439 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
429 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep 440 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
430 441
431 #======================================================================== 442 #========================================================================
432 # PowerPC 443 # PowerPC
433 #======================================================================== 444 #========================================================================
434 445
435 ######################################################################### 446 #########################################################################
436 ## MPC5xx Systems 447 ## MPC5xx Systems
437 ######################################################################### 448 #########################################################################
438 449
439 canmb_config: unconfig 450 canmb_config: unconfig
440 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb 451 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
441 452
442 cmi_mpc5xx_config: unconfig 453 cmi_mpc5xx_config: unconfig
443 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi 454 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
444 455
445 PATI_config: unconfig 456 PATI_config: unconfig
446 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl 457 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
447 458
448 ######################################################################### 459 #########################################################################
449 ## MPC5xxx Systems 460 ## MPC5xxx Systems
450 ######################################################################### 461 #########################################################################
451 462
452 aev_config: unconfig 463 aev_config: unconfig
453 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 464 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
454 465
455 BC3450_config: unconfig 466 BC3450_config: unconfig
456 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450 467 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
457 468
458 cpci5200_config: unconfig 469 cpci5200_config: unconfig
459 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd 470 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
460 471
461 hmi1001_config: unconfig 472 hmi1001_config: unconfig
462 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001 473 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
463 474
464 Lite5200_config \ 475 Lite5200_config \
465 Lite5200_LOWBOOT_config \ 476 Lite5200_LOWBOOT_config \
466 Lite5200_LOWBOOT08_config \ 477 Lite5200_LOWBOOT08_config \
467 icecube_5200_config \ 478 icecube_5200_config \
468 icecube_5200_LOWBOOT_config \ 479 icecube_5200_LOWBOOT_config \
469 icecube_5200_LOWBOOT08_config \ 480 icecube_5200_LOWBOOT08_config \
470 icecube_5200_DDR_config \ 481 icecube_5200_DDR_config \
471 icecube_5200_DDR_LOWBOOT_config \ 482 icecube_5200_DDR_LOWBOOT_config \
472 icecube_5200_DDR_LOWBOOT08_config \ 483 icecube_5200_DDR_LOWBOOT08_config \
473 icecube_5100_config: unconfig 484 icecube_5100_config: unconfig
474 @mkdir -p $(obj)include 485 @mkdir -p $(obj)include
475 @mkdir -p $(obj)board/icecube 486 @mkdir -p $(obj)board/icecube
476 @ >$(obj)include/config.h 487 @ >$(obj)include/config.h
477 @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 488 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
478 { if [ "$(findstring DDR,$@)" ] ; \ 489 { if [ "$(findstring DDR,$@)" ] ; \
479 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 490 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
480 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 491 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
481 fi ; \ 492 fi ; \
482 $(XECHO) "... with LOWBOOT configuration" ; \ 493 $(XECHO) "... with LOWBOOT configuration" ; \
483 } 494 }
484 @[ -z "$(findstring LOWBOOT08,$@)" ] || \ 495 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
485 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ 496 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
486 echo "... with 8 MB flash only" ; \ 497 echo "... with 8 MB flash only" ; \
487 $(XECHO) "... with LOWBOOT configuration" ; \ 498 $(XECHO) "... with LOWBOOT configuration" ; \
488 } 499 }
489 @[ -z "$(findstring DDR,$@)" ] || \ 500 @[ -z "$(findstring DDR,$@)" ] || \
490 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 501 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
491 $(XECHO) "... DDR memory revision" ; \ 502 $(XECHO) "... DDR memory revision" ; \
492 } 503 }
493 @[ -z "$(findstring 5200,$@)" ] || \ 504 @[ -z "$(findstring 5200,$@)" ] || \
494 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 505 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
495 $(XECHO) "... with MPC5200 processor" ; \ 506 $(XECHO) "... with MPC5200 processor" ; \
496 } 507 }
497 @[ -z "$(findstring 5100,$@)" ] || \ 508 @[ -z "$(findstring 5100,$@)" ] || \
498 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 509 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
499 $(XECHO) "... with MGT5100 processor" ; \ 510 $(XECHO) "... with MGT5100 processor" ; \
500 } 511 }
501 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 512 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
502 513
503 jupiter_config: unconfig 514 jupiter_config: unconfig
504 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter 515 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
505 516
506 v38b_config: unconfig 517 v38b_config: unconfig
507 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b 518 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
508 519
509 inka4x0_config: unconfig 520 inka4x0_config: unconfig
510 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0 521 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
511 522
512 lite5200b_config \ 523 lite5200b_config \
513 lite5200b_PM_config \ 524 lite5200b_PM_config \
514 lite5200b_LOWBOOT_config: unconfig 525 lite5200b_LOWBOOT_config: unconfig
515 @mkdir -p $(obj)include 526 @mkdir -p $(obj)include
516 @mkdir -p $(obj)board/icecube 527 @mkdir -p $(obj)board/icecube
517 @ >$(obj)include/config.h 528 @ >$(obj)include/config.h
518 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h 529 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
519 @ $(XECHO) "... DDR memory revision" 530 @ $(XECHO) "... DDR memory revision"
520 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h 531 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
521 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h 532 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
522 @[ -z "$(findstring _PM_,$@)" ] || \ 533 @[ -z "$(findstring _PM_,$@)" ] || \
523 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \ 534 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
524 $(XECHO) "... with power management (low-power mode) support" ; \ 535 $(XECHO) "... with power management (low-power mode) support" ; \
525 } 536 }
526 @[ -z "$(findstring LOWBOOT_,$@)" ] || \ 537 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
527 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ 538 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
528 $(XECHO) "... with LOWBOOT configuration" ; \ 539 $(XECHO) "... with LOWBOOT configuration" ; \
529 } 540 }
530 @ $(XECHO) "... with MPC5200B processor" 541 @ $(XECHO) "... with MPC5200B processor"
531 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube 542 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
532 543
533 mcc200_config \ 544 mcc200_config \
534 mcc200_SDRAM_config \ 545 mcc200_SDRAM_config \
535 mcc200_highboot_config \ 546 mcc200_highboot_config \
536 mcc200_COM12_config \ 547 mcc200_COM12_config \
537 mcc200_COM12_SDRAM_config \ 548 mcc200_COM12_SDRAM_config \
538 mcc200_COM12_highboot_config \ 549 mcc200_COM12_highboot_config \
539 mcc200_COM12_highboot_SDRAM_config \ 550 mcc200_COM12_highboot_SDRAM_config \
540 mcc200_highboot_SDRAM_config \ 551 mcc200_highboot_SDRAM_config \
541 prs200_config \ 552 prs200_config \
542 prs200_DDR_config \ 553 prs200_DDR_config \
543 prs200_highboot_config \ 554 prs200_highboot_config \
544 prs200_highboot_DDR_config: unconfig 555 prs200_highboot_DDR_config: unconfig
545 @mkdir -p $(obj)include 556 @mkdir -p $(obj)include
546 @mkdir -p $(obj)board/mcc200 557 @mkdir -p $(obj)board/mcc200
547 @ >$(obj)include/config.h 558 @ >$(obj)include/config.h
548 @[ -n "$(findstring highboot,$@)" ] || \ 559 @[ -n "$(findstring highboot,$@)" ] || \
549 { $(XECHO) "... with lowboot configuration" ; \ 560 { $(XECHO) "... with lowboot configuration" ; \
550 } 561 }
551 @[ -z "$(findstring highboot,$@)" ] || \ 562 @[ -z "$(findstring highboot,$@)" ] || \
552 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \ 563 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
553 $(XECHO) "... with highboot configuration" ; \ 564 $(XECHO) "... with highboot configuration" ; \
554 } 565 }
555 @[ -n "$(findstring _SDRAM,$@)" ] || \ 566 @[ -n "$(findstring _SDRAM,$@)" ] || \
556 { if [ -n "$(findstring mcc200,$@)" ]; \ 567 { if [ -n "$(findstring mcc200,$@)" ]; \
557 then \ 568 then \
558 $(XECHO) "... with DDR" ; \ 569 $(XECHO) "... with DDR" ; \
559 else \ 570 else \
560 if [ -n "$(findstring _DDR,$@)" ];\ 571 if [ -n "$(findstring _DDR,$@)" ];\
561 then \ 572 then \
562 $(XECHO) "... with DDR" ; \ 573 $(XECHO) "... with DDR" ; \
563 else \ 574 else \
564 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ 575 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
565 $(XECHO) "... with SDRAM" ; \ 576 $(XECHO) "... with SDRAM" ; \
566 fi; \ 577 fi; \
567 fi; \ 578 fi; \
568 } 579 }
569 @[ -z "$(findstring _SDRAM,$@)" ] || \ 580 @[ -z "$(findstring _SDRAM,$@)" ] || \
570 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \ 581 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
571 $(XECHO) "... with SDRAM" ; \ 582 $(XECHO) "... with SDRAM" ; \
572 } 583 }
573 @[ -z "$(findstring COM12,$@)" ] || \ 584 @[ -z "$(findstring COM12,$@)" ] || \
574 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \ 585 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
575 $(XECHO) "... with console on COM12" ; \ 586 $(XECHO) "... with console on COM12" ; \
576 } 587 }
577 @[ -z "$(findstring prs200,$@)" ] || \ 588 @[ -z "$(findstring prs200,$@)" ] || \
578 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\ 589 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
579 } 590 }
580 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200 591 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
581 592
582 mecp5200_config: unconfig 593 mecp5200_config: unconfig
583 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd 594 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
584 595
585 munices_config: unconfig 596 munices_config: unconfig
586 @$(MKCONFIG) munices ppc mpc5xxx munices 597 @$(MKCONFIG) munices ppc mpc5xxx munices
587 598
588 o2dnt_config: 599 o2dnt_config:
589 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt 600 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
590 601
591 pf5200_config: unconfig 602 pf5200_config: unconfig
592 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd 603 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
593 604
594 PM520_config \ 605 PM520_config \
595 PM520_DDR_config \ 606 PM520_DDR_config \
596 PM520_ROMBOOT_config \ 607 PM520_ROMBOOT_config \
597 PM520_ROMBOOT_DDR_config: unconfig 608 PM520_ROMBOOT_DDR_config: unconfig
598 @mkdir -p $(obj)include 609 @mkdir -p $(obj)include
599 @ >$(obj)include/config.h 610 @ >$(obj)include/config.h
600 @[ -z "$(findstring DDR,$@)" ] || \ 611 @[ -z "$(findstring DDR,$@)" ] || \
601 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ 612 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
602 $(XECHO) "... DDR memory revision" ; \ 613 $(XECHO) "... DDR memory revision" ; \
603 } 614 }
604 @[ -z "$(findstring ROMBOOT,$@)" ] || \ 615 @[ -z "$(findstring ROMBOOT,$@)" ] || \
605 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 616 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
606 $(XECHO) "... booting from 8-bit flash" ; \ 617 $(XECHO) "... booting from 8-bit flash" ; \
607 } 618 }
608 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520 619 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
609 620
610 smmaco4_config: unconfig 621 smmaco4_config: unconfig
611 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 622 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
612 623
613 cm5200_config: unconfig 624 cm5200_config: unconfig
614 @./mkconfig -a cm5200 ppc mpc5xxx cm5200 625 @./mkconfig -a cm5200 ppc mpc5xxx cm5200
615 626
616 spieval_config: unconfig 627 spieval_config: unconfig
617 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 628 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
618 629
619 TB5200_B_config \ 630 TB5200_B_config \
620 TB5200_config: unconfig 631 TB5200_config: unconfig
621 @mkdir -p $(obj)include 632 @mkdir -p $(obj)include
622 @[ -z "$(findstring _B,$@)" ] || \ 633 @[ -z "$(findstring _B,$@)" ] || \
623 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 634 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
624 $(XECHO) "... with MPC5200B processor" ; \ 635 $(XECHO) "... with MPC5200B processor" ; \
625 } 636 }
626 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 637 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
627 638
628 MINI5200_config \ 639 MINI5200_config \
629 EVAL5200_config \ 640 EVAL5200_config \
630 TOP5200_config: unconfig 641 TOP5200_config: unconfig
631 @mkdir -p $(obj)include 642 @mkdir -p $(obj)include
632 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 643 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
633 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk 644 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
634 645
635 Total5100_config \ 646 Total5100_config \
636 Total5200_config \ 647 Total5200_config \
637 Total5200_lowboot_config \ 648 Total5200_lowboot_config \
638 Total5200_Rev2_config \ 649 Total5200_Rev2_config \
639 Total5200_Rev2_lowboot_config: unconfig 650 Total5200_Rev2_lowboot_config: unconfig
640 @mkdir -p $(obj)include 651 @mkdir -p $(obj)include
641 @mkdir -p $(obj)board/total5200 652 @mkdir -p $(obj)board/total5200
642 @ >$(obj)include/config.h 653 @ >$(obj)include/config.h
643 @[ -z "$(findstring 5100,$@)" ] || \ 654 @[ -z "$(findstring 5100,$@)" ] || \
644 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ 655 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
645 $(XECHO) "... with MGT5100 processor" ; \ 656 $(XECHO) "... with MGT5100 processor" ; \
646 } 657 }
647 @[ -z "$(findstring 5200,$@)" ] || \ 658 @[ -z "$(findstring 5200,$@)" ] || \
648 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ 659 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
649 $(XECHO) "... with MPC5200 processor" ; \ 660 $(XECHO) "... with MPC5200 processor" ; \
650 } 661 }
651 @[ -n "$(findstring Rev,$@)" ] || \ 662 @[ -n "$(findstring Rev,$@)" ] || \
652 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \ 663 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
653 $(XECHO) "... revision 1 board" ; \ 664 $(XECHO) "... revision 1 board" ; \
654 } 665 }
655 @[ -z "$(findstring Rev2_,$@)" ] || \ 666 @[ -z "$(findstring Rev2_,$@)" ] || \
656 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \ 667 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
657 $(XECHO) "... revision 2 board" ; \ 668 $(XECHO) "... revision 2 board" ; \
658 } 669 }
659 @[ -z "$(findstring lowboot_,$@)" ] || \ 670 @[ -z "$(findstring lowboot_,$@)" ] || \
660 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \ 671 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
661 $(XECHO) "... with lowboot configuration" ; \ 672 $(XECHO) "... with lowboot configuration" ; \
662 } 673 }
663 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200 674 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
664 675
665 cam5200_config \ 676 cam5200_config \
666 cam5200_niosflash_config \ 677 cam5200_niosflash_config \
667 fo300_config \ 678 fo300_config \
668 MiniFAP_config \ 679 MiniFAP_config \
669 TQM5200S_config \ 680 TQM5200S_config \
670 TQM5200S_HIGHBOOT_config \ 681 TQM5200S_HIGHBOOT_config \
671 TQM5200_B_config \ 682 TQM5200_B_config \
672 TQM5200_B_HIGHBOOT_config \ 683 TQM5200_B_HIGHBOOT_config \
673 TQM5200_config \ 684 TQM5200_config \
674 TQM5200_STK100_config: unconfig 685 TQM5200_STK100_config: unconfig
675 @mkdir -p $(obj)include 686 @mkdir -p $(obj)include
676 @mkdir -p $(obj)board/tqm5200 687 @mkdir -p $(obj)board/tqm5200
677 @ >$(obj)include/config.h 688 @ >$(obj)include/config.h
678 @[ -z "$(findstring cam5200,$@)" ] || \ 689 @[ -z "$(findstring cam5200,$@)" ] || \
679 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ 690 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
680 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 691 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
681 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 692 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
682 $(XECHO) "... TQM5200S on Cam5200" ; \ 693 $(XECHO) "... TQM5200S on Cam5200" ; \
683 } 694 }
684 @[ -z "$(findstring niosflash,$@)" ] || \ 695 @[ -z "$(findstring niosflash,$@)" ] || \
685 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \ 696 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
686 $(XECHO) "... with NIOS flash driver" ; \ 697 $(XECHO) "... with NIOS flash driver" ; \
687 } 698 }
688 @[ -z "$(findstring fo300,$@)" ] || \ 699 @[ -z "$(findstring fo300,$@)" ] || \
689 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \ 700 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
690 $(XECHO) "... TQM5200 on FO300" ; \ 701 $(XECHO) "... TQM5200 on FO300" ; \
691 } 702 }
692 @[ -z "$(findstring MiniFAP,$@)" ] || \ 703 @[ -z "$(findstring MiniFAP,$@)" ] || \
693 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \ 704 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
694 $(XECHO) "... TQM5200_AC on MiniFAP" ; \ 705 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
695 } 706 }
696 @[ -z "$(findstring STK100,$@)" ] || \ 707 @[ -z "$(findstring STK100,$@)" ] || \
697 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \ 708 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
698 $(XECHO) "... on a STK52XX.100 base board" ; \ 709 $(XECHO) "... on a STK52XX.100 base board" ; \
699 } 710 }
700 @[ -z "$(findstring TQM5200_B,$@)" ] || \ 711 @[ -z "$(findstring TQM5200_B,$@)" ] || \
701 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 712 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
702 } 713 }
703 @[ -z "$(findstring TQM5200S,$@)" ] || \ 714 @[ -z "$(findstring TQM5200S,$@)" ] || \
704 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ 715 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
705 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ 716 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
706 } 717 }
707 @[ -z "$(findstring HIGHBOOT,$@)" ] || \ 718 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
708 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \ 719 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
709 } 720 }
710 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 721 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
711 uc101_config: unconfig 722 uc101_config: unconfig
712 @$(MKCONFIG) uc101 ppc mpc5xxx uc101 723 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
713 motionpro_config: unconfig 724 motionpro_config: unconfig
714 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro 725 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
715 726
716 727
717 ######################################################################### 728 #########################################################################
718 ## MPC512x Systems 729 ## MPC512x Systems
719 ######################################################################### 730 #########################################################################
720 ads5121_config: unconfig 731 ads5121_config: unconfig
721 @$(MKCONFIG) ads5121 ppc mpc512x ads5121 732 @$(MKCONFIG) ads5121 ppc mpc512x ads5121
722 733
723 734
724 ######################################################################### 735 #########################################################################
725 ## MPC8xx Systems 736 ## MPC8xx Systems
726 ######################################################################### 737 #########################################################################
727 738
728 Adder_config \ 739 Adder_config \
729 Adder87x_config \ 740 Adder87x_config \
730 AdderII_config \ 741 AdderII_config \
731 : unconfig 742 : unconfig
732 @mkdir -p $(obj)include 743 @mkdir -p $(obj)include
733 $(if $(findstring AdderII,$@), \ 744 $(if $(findstring AdderII,$@), \
734 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) 745 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
735 @$(MKCONFIG) -a Adder ppc mpc8xx adder 746 @$(MKCONFIG) -a Adder ppc mpc8xx adder
736 747
737 AdderUSB_config: unconfig 748 AdderUSB_config: unconfig
738 @./mkconfig -a AdderUSB ppc mpc8xx adder 749 @./mkconfig -a AdderUSB ppc mpc8xx adder
739 750
740 ADS860_config \ 751 ADS860_config \
741 FADS823_config \ 752 FADS823_config \
742 FADS850SAR_config \ 753 FADS850SAR_config \
743 MPC86xADS_config \ 754 MPC86xADS_config \
744 MPC885ADS_config \ 755 MPC885ADS_config \
745 FADS860T_config: unconfig 756 FADS860T_config: unconfig
746 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads 757 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
747 758
748 AMX860_config : unconfig 759 AMX860_config : unconfig
749 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel 760 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
750 761
751 c2mon_config: unconfig 762 c2mon_config: unconfig
752 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon 763 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
753 764
754 CCM_config: unconfig 765 CCM_config: unconfig
755 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens 766 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
756 767
757 cogent_mpc8xx_config: unconfig 768 cogent_mpc8xx_config: unconfig
758 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent 769 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
759 770
760 ELPT860_config: unconfig 771 ELPT860_config: unconfig
761 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX 772 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
762 773
763 EP88x_config: unconfig 774 EP88x_config: unconfig
764 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x 775 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
765 776
766 ESTEEM192E_config: unconfig 777 ESTEEM192E_config: unconfig
767 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e 778 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
768 779
769 ETX094_config : unconfig 780 ETX094_config : unconfig
770 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094 781 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
771 782
772 FLAGADM_config: unconfig 783 FLAGADM_config: unconfig
773 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm 784 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
774 785
775 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) 786 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
776 787
777 GEN860T_SC_config \ 788 GEN860T_SC_config \
778 GEN860T_config: unconfig 789 GEN860T_config: unconfig
779 @mkdir -p $(obj)include 790 @mkdir -p $(obj)include
780 @ >$(obj)include/config.h 791 @ >$(obj)include/config.h
781 @[ -z "$(findstring _SC,$@)" ] || \ 792 @[ -z "$(findstring _SC,$@)" ] || \
782 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \ 793 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
783 $(XECHO) "With reduced H/W feature set (SC)..." ; \ 794 $(XECHO) "With reduced H/W feature set (SC)..." ; \
784 } 795 }
785 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t 796 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
786 797
787 GENIETV_config: unconfig 798 GENIETV_config: unconfig
788 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv 799 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
789 800
790 GTH_config: unconfig 801 GTH_config: unconfig
791 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth 802 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
792 803
793 hermes_config : unconfig 804 hermes_config : unconfig
794 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes 805 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
795 806
796 HMI10_config : unconfig 807 HMI10_config : unconfig
797 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 808 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
798 809
799 IAD210_config: unconfig 810 IAD210_config: unconfig
800 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens 811 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
801 812
802 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) 813 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
803 814
804 ICU862_100MHz_config \ 815 ICU862_100MHz_config \
805 ICU862_config: unconfig 816 ICU862_config: unconfig
806 @mkdir -p $(obj)include 817 @mkdir -p $(obj)include
807 @ >$(obj)include/config.h 818 @ >$(obj)include/config.h
808 @[ -z "$(findstring _100MHz,$@)" ] || \ 819 @[ -z "$(findstring _100MHz,$@)" ] || \
809 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \ 820 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
810 $(XECHO) "... with 100MHz system clock" ; \ 821 $(XECHO) "... with 100MHz system clock" ; \
811 } 822 }
812 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 823 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
813 824
814 IP860_config : unconfig 825 IP860_config : unconfig
815 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860 826 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
816 827
817 IVML24_256_config \ 828 IVML24_256_config \
818 IVML24_128_config \ 829 IVML24_128_config \
819 IVML24_config: unconfig 830 IVML24_config: unconfig
820 @mkdir -p $(obj)include 831 @mkdir -p $(obj)include
821 @ >$(obj)include/config.h 832 @ >$(obj)include/config.h
822 @[ -z "$(findstring IVML24_config,$@)" ] || \ 833 @[ -z "$(findstring IVML24_config,$@)" ] || \
823 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \ 834 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
824 } 835 }
825 @[ -z "$(findstring IVML24_128_config,$@)" ] || \ 836 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
826 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \ 837 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
827 } 838 }
828 @[ -z "$(findstring IVML24_256_config,$@)" ] || \ 839 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
829 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \ 840 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
830 } 841 }
831 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm 842 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
832 843
833 IVMS8_256_config \ 844 IVMS8_256_config \
834 IVMS8_128_config \ 845 IVMS8_128_config \
835 IVMS8_config: unconfig 846 IVMS8_config: unconfig
836 @mkdir -p $(obj)include 847 @mkdir -p $(obj)include
837 @ >$(obj)include/config.h 848 @ >$(obj)include/config.h
838 @[ -z "$(findstring IVMS8_config,$@)" ] || \ 849 @[ -z "$(findstring IVMS8_config,$@)" ] || \
839 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \ 850 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
840 } 851 }
841 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ 852 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
842 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \ 853 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
843 } 854 }
844 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ 855 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
845 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \ 856 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
846 } 857 }
847 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm 858 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
848 859
849 KUP4K_config : unconfig 860 KUP4K_config : unconfig
850 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup 861 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
851 862
852 KUP4X_config : unconfig 863 KUP4X_config : unconfig
853 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup 864 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
854 865
855 LANTEC_config : unconfig 866 LANTEC_config : unconfig
856 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec 867 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
857 868
858 lwmon_config: unconfig 869 lwmon_config: unconfig
859 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon 870 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
860 871
861 MBX_config \ 872 MBX_config \
862 MBX860T_config: unconfig 873 MBX860T_config: unconfig
863 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx 874 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
864 875
865 mgsuvd_config: unconfig 876 mgsuvd_config: unconfig
866 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd 877 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
867 878
868 MHPC_config: unconfig 879 MHPC_config: unconfig
869 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec 880 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
870 881
871 MVS1_config : unconfig 882 MVS1_config : unconfig
872 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1 883 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
873 884
874 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) 885 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
875 886
876 NETVIA_V2_config \ 887 NETVIA_V2_config \
877 NETVIA_config: unconfig 888 NETVIA_config: unconfig
878 @mkdir -p $(obj)include 889 @mkdir -p $(obj)include
879 @ >$(obj)include/config.h 890 @ >$(obj)include/config.h
880 @[ -z "$(findstring NETVIA_config,$@)" ] || \ 891 @[ -z "$(findstring NETVIA_config,$@)" ] || \
881 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \ 892 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
882 $(XECHO) "... Version 1" ; \ 893 $(XECHO) "... Version 1" ; \
883 } 894 }
884 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ 895 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
885 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \ 896 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
886 $(XECHO) "... Version 2" ; \ 897 $(XECHO) "... Version 2" ; \
887 } 898 }
888 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia 899 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
889 900
890 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) 901 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
891 902
892 NETPHONE_V2_config \ 903 NETPHONE_V2_config \
893 NETPHONE_config: unconfig 904 NETPHONE_config: unconfig
894 @mkdir -p $(obj)include 905 @mkdir -p $(obj)include
895 @ >$(obj)include/config.h 906 @ >$(obj)include/config.h
896 @[ -z "$(findstring NETPHONE_config,$@)" ] || \ 907 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
897 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \ 908 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
898 } 909 }
899 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ 910 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
900 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \ 911 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
901 } 912 }
902 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone 913 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
903 914
904 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) 915 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
905 916
906 NETTA_ISDN_6412_SWAPHOOK_config \ 917 NETTA_ISDN_6412_SWAPHOOK_config \
907 NETTA_ISDN_SWAPHOOK_config \ 918 NETTA_ISDN_SWAPHOOK_config \
908 NETTA_6412_SWAPHOOK_config \ 919 NETTA_6412_SWAPHOOK_config \
909 NETTA_SWAPHOOK_config \ 920 NETTA_SWAPHOOK_config \
910 NETTA_ISDN_6412_config \ 921 NETTA_ISDN_6412_config \
911 NETTA_ISDN_config \ 922 NETTA_ISDN_config \
912 NETTA_6412_config \ 923 NETTA_6412_config \
913 NETTA_config: unconfig 924 NETTA_config: unconfig
914 @mkdir -p $(obj)include 925 @mkdir -p $(obj)include
915 @ >$(obj)include/config.h 926 @ >$(obj)include/config.h
916 @[ -z "$(findstring ISDN_,$@)" ] || \ 927 @[ -z "$(findstring ISDN_,$@)" ] || \
917 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \ 928 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
918 } 929 }
919 @[ -n "$(findstring ISDN_,$@)" ] || \ 930 @[ -n "$(findstring ISDN_,$@)" ] || \
920 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \ 931 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
921 } 932 }
922 @[ -z "$(findstring 6412_,$@)" ] || \ 933 @[ -z "$(findstring 6412_,$@)" ] || \
923 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \ 934 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
924 } 935 }
925 @[ -n "$(findstring 6412_,$@)" ] || \ 936 @[ -n "$(findstring 6412_,$@)" ] || \
926 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \ 937 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
927 } 938 }
928 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ 939 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
929 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \ 940 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
930 } 941 }
931 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ 942 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
932 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \ 943 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
933 } 944 }
934 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta 945 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
935 946
936 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) 947 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
937 948
938 NETTA2_V2_config \ 949 NETTA2_V2_config \
939 NETTA2_config: unconfig 950 NETTA2_config: unconfig
940 @mkdir -p $(obj)include 951 @mkdir -p $(obj)include
941 @ >$(obj)include/config.h 952 @ >$(obj)include/config.h
942 @[ -z "$(findstring NETTA2_config,$@)" ] || \ 953 @[ -z "$(findstring NETTA2_config,$@)" ] || \
943 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \ 954 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
944 } 955 }
945 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ 956 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
946 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \ 957 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
947 } 958 }
948 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 959 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
949 960
950 NC650_Rev1_config \ 961 NC650_Rev1_config \
951 NC650_Rev2_config \ 962 NC650_Rev2_config \
952 CP850_config: unconfig 963 CP850_config: unconfig
953 @mkdir -p $(obj)include 964 @mkdir -p $(obj)include
954 @ >$(obj)include/config.h 965 @ >$(obj)include/config.h
955 @[ -z "$(findstring CP850,$@)" ] || \ 966 @[ -z "$(findstring CP850,$@)" ] || \
956 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ 967 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
957 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 968 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
958 } 969 }
959 @[ -z "$(findstring Rev1,$@)" ] || \ 970 @[ -z "$(findstring Rev1,$@)" ] || \
960 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ 971 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
961 } 972 }
962 @[ -z "$(findstring Rev2,$@)" ] || \ 973 @[ -z "$(findstring Rev2,$@)" ] || \
963 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ 974 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
964 } 975 }
965 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650 976 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
966 977
967 NX823_config: unconfig 978 NX823_config: unconfig
968 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823 979 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
969 980
970 pcu_e_config: unconfig 981 pcu_e_config: unconfig
971 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens 982 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
972 983
973 QS850_config: unconfig 984 QS850_config: unconfig
974 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 985 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
975 986
976 QS823_config: unconfig 987 QS823_config: unconfig
977 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc 988 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
978 989
979 QS860T_config: unconfig 990 QS860T_config: unconfig
980 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc 991 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
981 992
982 quantum_config: unconfig 993 quantum_config: unconfig
983 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum 994 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
984 995
985 R360MPI_config: unconfig 996 R360MPI_config: unconfig
986 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi 997 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
987 998
988 RBC823_config: unconfig 999 RBC823_config: unconfig
989 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823 1000 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
990 1001
991 RPXClassic_config: unconfig 1002 RPXClassic_config: unconfig
992 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic 1003 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
993 1004
994 RPXlite_config: unconfig 1005 RPXlite_config: unconfig
995 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite 1006 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
996 1007
997 RPXlite_DW_64_config \ 1008 RPXlite_DW_64_config \
998 RPXlite_DW_LCD_config \ 1009 RPXlite_DW_LCD_config \
999 RPXlite_DW_64_LCD_config \ 1010 RPXlite_DW_64_LCD_config \
1000 RPXlite_DW_NVRAM_config \ 1011 RPXlite_DW_NVRAM_config \
1001 RPXlite_DW_NVRAM_64_config \ 1012 RPXlite_DW_NVRAM_64_config \
1002 RPXlite_DW_NVRAM_LCD_config \ 1013 RPXlite_DW_NVRAM_LCD_config \
1003 RPXlite_DW_NVRAM_64_LCD_config \ 1014 RPXlite_DW_NVRAM_64_LCD_config \
1004 RPXlite_DW_config: unconfig 1015 RPXlite_DW_config: unconfig
1005 @mkdir -p $(obj)include 1016 @mkdir -p $(obj)include
1006 @ >$(obj)include/config.h 1017 @ >$(obj)include/config.h
1007 @[ -z "$(findstring _64,$@)" ] || \ 1018 @[ -z "$(findstring _64,$@)" ] || \
1008 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \ 1019 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
1009 $(XECHO) "... with 64MHz system clock ..."; \ 1020 $(XECHO) "... with 64MHz system clock ..."; \
1010 } 1021 }
1011 @[ -z "$(findstring _LCD,$@)" ] || \ 1022 @[ -z "$(findstring _LCD,$@)" ] || \
1012 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1023 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1013 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1024 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1014 $(XECHO) "... with LCD display ..."; \ 1025 $(XECHO) "... with LCD display ..."; \
1015 } 1026 }
1016 @[ -z "$(findstring _NVRAM,$@)" ] || \ 1027 @[ -z "$(findstring _NVRAM,$@)" ] || \
1017 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \ 1028 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
1018 $(XECHO) "... with ENV in NVRAM ..."; \ 1029 $(XECHO) "... with ENV in NVRAM ..."; \
1019 } 1030 }
1020 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw 1031 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1021 1032
1022 rmu_config: unconfig 1033 rmu_config: unconfig
1023 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu 1034 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
1024 1035
1025 RRvision_config: unconfig 1036 RRvision_config: unconfig
1026 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision 1037 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
1027 1038
1028 RRvision_LCD_config: unconfig 1039 RRvision_LCD_config: unconfig
1029 @mkdir -p $(obj)include 1040 @mkdir -p $(obj)include
1030 @echo "#define CONFIG_LCD" >$(obj)include/config.h 1041 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1031 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1042 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1032 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision 1043 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
1033 1044
1034 SM850_config : unconfig 1045 SM850_config : unconfig
1035 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx 1046 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
1036 1047
1037 spc1920_config: 1048 spc1920_config:
1038 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920 1049 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1039 1050
1040 SPD823TS_config: unconfig 1051 SPD823TS_config: unconfig
1041 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx 1052 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
1042 1053
1043 stxxtc_config: unconfig 1054 stxxtc_config: unconfig
1044 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc 1055 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
1045 1056
1046 svm_sc8xx_config: unconfig 1057 svm_sc8xx_config: unconfig
1047 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx 1058 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1048 1059
1049 SXNI855T_config: unconfig 1060 SXNI855T_config: unconfig
1050 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet 1061 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
1051 1062
1052 # EMK MPC8xx based modules 1063 # EMK MPC8xx based modules
1053 TOP860_config: unconfig 1064 TOP860_config: unconfig
1054 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk 1065 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1055 1066
1056 # Play some tricks for configuration selection 1067 # Play some tricks for configuration selection
1057 # Only 855 and 860 boards may come with FEC 1068 # Only 855 and 860 boards may come with FEC
1058 # and only 823 boards may have LCD support 1069 # and only 823 boards may have LCD support
1059 xtract_8xx = $(subst _LCD,,$(subst _config,,$1)) 1070 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
1060 1071
1061 FPS850L_config \ 1072 FPS850L_config \
1062 FPS860L_config \ 1073 FPS860L_config \
1063 NSCU_config \ 1074 NSCU_config \
1064 TQM823L_config \ 1075 TQM823L_config \
1065 TQM823L_LCD_config \ 1076 TQM823L_LCD_config \
1066 TQM850L_config \ 1077 TQM850L_config \
1067 TQM855L_config \ 1078 TQM855L_config \
1068 TQM860L_config \ 1079 TQM860L_config \
1069 TQM862L_config \ 1080 TQM862L_config \
1070 TQM823M_config \ 1081 TQM823M_config \
1071 TQM850M_config \ 1082 TQM850M_config \
1072 TQM855M_config \ 1083 TQM855M_config \
1073 TQM860M_config \ 1084 TQM860M_config \
1074 TQM862M_config \ 1085 TQM862M_config \
1075 TQM866M_config \ 1086 TQM866M_config \
1076 TQM885D_config \ 1087 TQM885D_config \
1077 TK885D_config \ 1088 TK885D_config \
1078 virtlab2_config: unconfig 1089 virtlab2_config: unconfig
1079 @mkdir -p $(obj)include 1090 @mkdir -p $(obj)include
1080 @ >$(obj)include/config.h 1091 @ >$(obj)include/config.h
1081 @[ -z "$(findstring _LCD,$@)" ] || \ 1092 @[ -z "$(findstring _LCD,$@)" ] || \
1082 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ 1093 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1083 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ 1094 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
1084 $(XECHO) "... with LCD display" ; \ 1095 $(XECHO) "... with LCD display" ; \
1085 } 1096 }
1086 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx 1097 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
1087 1098
1088 TTTech_config: unconfig 1099 TTTech_config: unconfig
1089 @mkdir -p $(obj)include 1100 @mkdir -p $(obj)include
1090 @echo "#define CONFIG_LCD" >$(obj)include/config.h 1101 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1091 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h 1102 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1092 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 1103 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1093 1104
1094 uc100_config : unconfig 1105 uc100_config : unconfig
1095 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100 1106 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1096 1107
1097 v37_config: unconfig 1108 v37_config: unconfig
1098 @mkdir -p $(obj)include 1109 @mkdir -p $(obj)include
1099 @echo "#define CONFIG_LCD" >$(obj)include/config.h 1110 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1100 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h 1111 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1101 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37 1112 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1102 1113
1103 wtk_config: unconfig 1114 wtk_config: unconfig
1104 @mkdir -p $(obj)include 1115 @mkdir -p $(obj)include
1105 @echo "#define CONFIG_LCD" >$(obj)include/config.h 1116 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1106 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h 1117 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1107 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx 1118 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1108 1119
1109 ######################################################################### 1120 #########################################################################
1110 ## PPC4xx Systems 1121 ## PPC4xx Systems
1111 ######################################################################### 1122 #########################################################################
1112 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) 1123 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1113 1124
1114 acadia_config: unconfig 1125 acadia_config: unconfig
1115 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc 1126 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1116 1127
1117 acadia_nand_config: unconfig 1128 acadia_nand_config: unconfig
1118 @mkdir -p $(obj)include $(obj)board/amcc/acadia 1129 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1119 @mkdir -p $(obj)nand_spl/board/amcc/acadia 1130 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1120 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1131 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1121 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc 1132 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1122 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp 1133 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1123 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1134 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1124 1135
1125 ADCIOP_config: unconfig 1136 ADCIOP_config: unconfig
1126 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd 1137 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1127 1138
1128 alpr_config: unconfig 1139 alpr_config: unconfig
1129 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive 1140 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1130 1141
1131 AP1000_config:unconfig 1142 AP1000_config:unconfig
1132 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix 1143 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1133 1144
1134 APC405_config: unconfig 1145 APC405_config: unconfig
1135 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd 1146 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1136 1147
1137 AR405_config: unconfig 1148 AR405_config: unconfig
1138 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd 1149 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1139 1150
1140 ASH405_config: unconfig 1151 ASH405_config: unconfig
1141 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd 1152 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1142 1153
1143 bamboo_config: unconfig 1154 bamboo_config: unconfig
1144 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc 1155 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1145 1156
1146 bamboo_nand_config: unconfig 1157 bamboo_nand_config: unconfig
1147 @mkdir -p $(obj)include $(obj)board/amcc/bamboo 1158 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1148 @mkdir -p $(obj)nand_spl/board/amcc/bamboo 1159 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
1149 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1160 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1150 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc 1161 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1151 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp 1162 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1152 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1163 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1153 1164
1154 bubinga_config: unconfig 1165 bubinga_config: unconfig
1155 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc 1166 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1156 1167
1157 CANBT_config: unconfig 1168 CANBT_config: unconfig
1158 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd 1169 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1159 1170
1160 CATcenter_config \ 1171 CATcenter_config \
1161 CATcenter_25_config \ 1172 CATcenter_25_config \
1162 CATcenter_33_config: unconfig 1173 CATcenter_33_config: unconfig
1163 @mkdir -p $(obj)include 1174 @mkdir -p $(obj)include
1164 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h 1175 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1165 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h 1176 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1166 @[ -z "$(findstring _25,$@)" ] || \ 1177 @[ -z "$(findstring _25,$@)" ] || \
1167 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \ 1178 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1168 $(XECHO) "SysClk = 25MHz" ; \ 1179 $(XECHO) "SysClk = 25MHz" ; \
1169 } 1180 }
1170 @[ -z "$(findstring _33,$@)" ] || \ 1181 @[ -z "$(findstring _33,$@)" ] || \
1171 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \ 1182 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1172 $(XECHO) "SysClk = 33MHz" ; \ 1183 $(XECHO) "SysClk = 33MHz" ; \
1173 } 1184 }
1174 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 1185 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1175 1186
1176 CPCI2DP_config: unconfig 1187 CPCI2DP_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd 1188 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1178 1189
1179 CPCI405_config \ 1190 CPCI405_config \
1180 CPCI4052_config \ 1191 CPCI4052_config \
1181 CPCI405DT_config \ 1192 CPCI405DT_config \
1182 CPCI405AB_config: unconfig 1193 CPCI405AB_config: unconfig
1183 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd 1194 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1184 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk 1195 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1185 1196
1186 CPCIISER4_config: unconfig 1197 CPCIISER4_config: unconfig
1187 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd 1198 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1188 1199
1189 CRAYL1_config: unconfig 1200 CRAYL1_config: unconfig
1190 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray 1201 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1191 1202
1192 csb272_config: unconfig 1203 csb272_config: unconfig
1193 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272 1204 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1194 1205
1195 csb472_config: unconfig 1206 csb472_config: unconfig
1196 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472 1207 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1197 1208
1198 DASA_SIM_config: unconfig 1209 DASA_SIM_config: unconfig
1199 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd 1210 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1200 1211
1201 DP405_config: unconfig 1212 DP405_config: unconfig
1202 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd 1213 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1203 1214
1204 DU405_config: unconfig 1215 DU405_config: unconfig
1205 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd 1216 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1206 1217
1207 DU440_config: unconfig 1218 DU440_config: unconfig
1208 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd 1219 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1209 1220
1210 ebony_config: unconfig 1221 ebony_config: unconfig
1211 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc 1222 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1212 1223
1213 ERIC_config: unconfig 1224 ERIC_config: unconfig
1214 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric 1225 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1215 1226
1216 EXBITGEN_config: unconfig 1227 EXBITGEN_config: unconfig
1217 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen 1228 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1218 1229
1219 G2000_config: unconfig 1230 G2000_config: unconfig
1220 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000 1231 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1221 1232
1222 hcu4_config: unconfig 1233 hcu4_config: unconfig
1223 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal 1234 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1224 1235
1225 hcu5_config: unconfig 1236 hcu5_config: unconfig
1226 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal 1237 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1227 1238
1228 HH405_config: unconfig 1239 HH405_config: unconfig
1229 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd 1240 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1230 1241
1231 HUB405_config: unconfig 1242 HUB405_config: unconfig
1232 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd 1243 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1233 1244
1234 JSE_config: unconfig 1245 JSE_config: unconfig
1235 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse 1246 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1236 1247
1237 KAREF_config: unconfig 1248 KAREF_config: unconfig
1238 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst 1249 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1239 1250
1240 katmai_config: unconfig 1251 katmai_config: unconfig
1241 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc 1252 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1242 1253
1243 # Kilauea & Haleakala images are identical (recognized via PVR) 1254 # Kilauea & Haleakala images are identical (recognized via PVR)
1244 kilauea_config \ 1255 kilauea_config \
1245 haleakala_config: unconfig 1256 haleakala_config: unconfig
1246 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 1257 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1247 1258
1248 kilauea_nand_config \ 1259 kilauea_nand_config \
1249 haleakala_nand_config: unconfig 1260 haleakala_nand_config: unconfig
1250 @mkdir -p $(obj)include $(obj)board/amcc/kilauea 1261 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1251 @mkdir -p $(obj)nand_spl/board/amcc/kilauea 1262 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1252 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1263 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1253 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc 1264 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1254 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp 1265 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1255 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1266 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1256 1267
1257 korat_config: unconfig 1268 korat_config: unconfig
1258 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat 1269 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1259 1270
1260 luan_config: unconfig 1271 luan_config: unconfig
1261 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc 1272 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1262 1273
1263 lwmon5_config: unconfig 1274 lwmon5_config: unconfig
1264 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5 1275 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1265 1276
1266 makalu_config: unconfig 1277 makalu_config: unconfig
1267 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc 1278 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1268 1279
1269 METROBOX_config: unconfig 1280 METROBOX_config: unconfig
1270 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst 1281 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1271 1282
1272 MIP405_config: unconfig 1283 MIP405_config: unconfig
1273 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl 1284 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1274 1285
1275 MIP405T_config: unconfig 1286 MIP405T_config: unconfig
1276 @mkdir -p $(obj)include 1287 @mkdir -p $(obj)include
1277 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h 1288 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1278 @$(XECHO) "Enable subset config for MIP405T" 1289 @$(XECHO) "Enable subset config for MIP405T"
1279 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl 1290 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1280 1291
1281 ML2_config: unconfig 1292 ML2_config: unconfig
1282 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2 1293 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1283 1294
1284 ml300_config: unconfig 1295 ml300_config: unconfig
1285 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx 1296 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1286 1297
1287 ocotea_config: unconfig 1298 ocotea_config: unconfig
1288 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc 1299 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1289 1300
1290 OCRTC_config \ 1301 OCRTC_config \
1291 ORSG_config: unconfig 1302 ORSG_config: unconfig
1292 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd 1303 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1293 1304
1294 p3p440_config: unconfig 1305 p3p440_config: unconfig
1295 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive 1306 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1296 1307
1297 PCI405_config: unconfig 1308 PCI405_config: unconfig
1298 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd 1309 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1299 1310
1300 pcs440ep_config: unconfig 1311 pcs440ep_config: unconfig
1301 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep 1312 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1302 1313
1303 PIP405_config: unconfig 1314 PIP405_config: unconfig
1304 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl 1315 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1305 1316
1306 PLU405_config: unconfig 1317 PLU405_config: unconfig
1307 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd 1318 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1308 1319
1309 PMC405_config: unconfig 1320 PMC405_config: unconfig
1310 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd 1321 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1311 1322
1312 PMC440_config: unconfig 1323 PMC440_config: unconfig
1313 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd 1324 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1314 1325
1315 PPChameleonEVB_config \ 1326 PPChameleonEVB_config \
1316 PPChameleonEVB_BA_25_config \ 1327 PPChameleonEVB_BA_25_config \
1317 PPChameleonEVB_ME_25_config \ 1328 PPChameleonEVB_ME_25_config \
1318 PPChameleonEVB_HI_25_config \ 1329 PPChameleonEVB_HI_25_config \
1319 PPChameleonEVB_BA_33_config \ 1330 PPChameleonEVB_BA_33_config \
1320 PPChameleonEVB_ME_33_config \ 1331 PPChameleonEVB_ME_33_config \
1321 PPChameleonEVB_HI_33_config: unconfig 1332 PPChameleonEVB_HI_33_config: unconfig
1322 @mkdir -p $(obj)include 1333 @mkdir -p $(obj)include
1323 @ >$(obj)include/config.h 1334 @ >$(obj)include/config.h
1324 @[ -z "$(findstring EVB_BA,$@)" ] || \ 1335 @[ -z "$(findstring EVB_BA,$@)" ] || \
1325 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \ 1336 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1326 $(XECHO) "... BASIC model" ; \ 1337 $(XECHO) "... BASIC model" ; \
1327 } 1338 }
1328 @[ -z "$(findstring EVB_ME,$@)" ] || \ 1339 @[ -z "$(findstring EVB_ME,$@)" ] || \
1329 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \ 1340 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1330 $(XECHO) "... MEDIUM model" ; \ 1341 $(XECHO) "... MEDIUM model" ; \
1331 } 1342 }
1332 @[ -z "$(findstring EVB_HI,$@)" ] || \ 1343 @[ -z "$(findstring EVB_HI,$@)" ] || \
1333 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \ 1344 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1334 $(XECHO) "... HIGH-END model" ; \ 1345 $(XECHO) "... HIGH-END model" ; \
1335 } 1346 }
1336 @[ -z "$(findstring _25,$@)" ] || \ 1347 @[ -z "$(findstring _25,$@)" ] || \
1337 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \ 1348 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1338 $(XECHO) "SysClk = 25MHz" ; \ 1349 $(XECHO) "SysClk = 25MHz" ; \
1339 } 1350 }
1340 @[ -z "$(findstring _33,$@)" ] || \ 1351 @[ -z "$(findstring _33,$@)" ] || \
1341 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \ 1352 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1342 $(XECHO) "SysClk = 33MHz" ; \ 1353 $(XECHO) "SysClk = 33MHz" ; \
1343 } 1354 }
1344 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave 1355 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1345 1356
1346 sbc405_config: unconfig 1357 sbc405_config: unconfig
1347 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405 1358 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1348 1359
1349 sequoia_config \ 1360 sequoia_config \
1350 rainier_config: unconfig 1361 rainier_config: unconfig
1351 @mkdir -p $(obj)include 1362 @mkdir -p $(obj)include
1352 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1363 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1353 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1364 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1354 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 1365 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1355 1366
1356 sequoia_nand_config \ 1367 sequoia_nand_config \
1357 rainier_nand_config: unconfig 1368 rainier_nand_config: unconfig
1358 @mkdir -p $(obj)include $(obj)board/amcc/sequoia 1369 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1359 @mkdir -p $(obj)nand_spl/board/amcc/sequoia 1370 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
1360 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 1371 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1361 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1372 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1362 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h 1373 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1363 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc 1374 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1364 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp 1375 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1365 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1376 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1366 1377
1367 sc3_config:unconfig 1378 sc3_config:unconfig
1368 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3 1379 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1369 1380
1370 taihu_config: unconfig 1381 taihu_config: unconfig
1371 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc 1382 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1372 1383
1373 taishan_config: unconfig 1384 taishan_config: unconfig
1374 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc 1385 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1375 1386
1376 VOH405_config: unconfig 1387 VOH405_config: unconfig
1377 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd 1388 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1378 1389
1379 VOM405_config: unconfig 1390 VOM405_config: unconfig
1380 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd 1391 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1381 1392
1382 CMS700_config: unconfig 1393 CMS700_config: unconfig
1383 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd 1394 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1384 1395
1385 W7OLMC_config \ 1396 W7OLMC_config \
1386 W7OLMG_config: unconfig 1397 W7OLMG_config: unconfig
1387 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o 1398 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1388 1399
1389 # Walnut & Sycamore images are identical (recognized via PVR) 1400 # Walnut & Sycamore images are identical (recognized via PVR)
1390 walnut_config \ 1401 walnut_config \
1391 sycamore_config: unconfig 1402 sycamore_config: unconfig
1392 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc 1403 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1393 1404
1394 WUH405_config: unconfig 1405 WUH405_config: unconfig
1395 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd 1406 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1396 1407
1397 XPEDITE1K_config: unconfig 1408 XPEDITE1K_config: unconfig
1398 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k 1409 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1399 1410
1400 yosemite_config \ 1411 yosemite_config \
1401 yellowstone_config: unconfig 1412 yellowstone_config: unconfig
1402 @mkdir -p $(obj)include 1413 @mkdir -p $(obj)include
1403 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ 1414 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1404 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h 1415 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1405 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc 1416 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1406 1417
1407 yucca_config: unconfig 1418 yucca_config: unconfig
1408 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc 1419 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1409 1420
1410 zeus_config: unconfig 1421 zeus_config: unconfig
1411 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus 1422 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1412 1423
1413 ######################################################################### 1424 #########################################################################
1414 ## MPC8220 Systems 1425 ## MPC8220 Systems
1415 ######################################################################### 1426 #########################################################################
1416 1427
1417 Alaska8220_config \ 1428 Alaska8220_config \
1418 Yukon8220_config: unconfig 1429 Yukon8220_config: unconfig
1419 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska 1430 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1420 1431
1421 sorcery_config: unconfig 1432 sorcery_config: unconfig
1422 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery 1433 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1423 1434
1424 ######################################################################### 1435 #########################################################################
1425 ## MPC824x Systems 1436 ## MPC824x Systems
1426 ######################################################################### 1437 #########################################################################
1427 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) 1438 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1428 1439
1429 A3000_config: unconfig 1440 A3000_config: unconfig
1430 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000 1441 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1431 1442
1432 barco_config: unconfig 1443 barco_config: unconfig
1433 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco 1444 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1434 1445
1435 BMW_config: unconfig 1446 BMW_config: unconfig
1436 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw 1447 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1437 1448
1438 CPC45_config \ 1449 CPC45_config \
1439 CPC45_ROMBOOT_config: unconfig 1450 CPC45_ROMBOOT_config: unconfig
1440 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45 1451 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1441 @cd $(obj)include ; \ 1452 @cd $(obj)include ; \
1442 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1453 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1443 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1454 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1444 $(XECHO) "... booting from 8-bit flash" ; \ 1455 $(XECHO) "... booting from 8-bit flash" ; \
1445 else \ 1456 else \
1446 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1457 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1447 $(XECHO) "... booting from 64-bit flash" ; \ 1458 $(XECHO) "... booting from 64-bit flash" ; \
1448 fi; \ 1459 fi; \
1449 echo "export CONFIG_BOOT_ROM" >> config.mk; 1460 echo "export CONFIG_BOOT_ROM" >> config.mk;
1450 1461
1451 CU824_config: unconfig 1462 CU824_config: unconfig
1452 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824 1463 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1453 1464
1454 debris_config: unconfig 1465 debris_config: unconfig
1455 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin 1466 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1456 1467
1457 eXalion_config: unconfig 1468 eXalion_config: unconfig
1458 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion 1469 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1459 1470
1460 HIDDEN_DRAGON_config: unconfig 1471 HIDDEN_DRAGON_config: unconfig
1461 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon 1472 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1462 1473
1463 kvme080_config: unconfig 1474 kvme080_config: unconfig
1464 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin 1475 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1465 1476
1466 MOUSSE_config: unconfig 1477 MOUSSE_config: unconfig
1467 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse 1478 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1468 1479
1469 MUSENKI_config: unconfig 1480 MUSENKI_config: unconfig
1470 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki 1481 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1471 1482
1472 MVBLUE_config: unconfig 1483 MVBLUE_config: unconfig
1473 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue 1484 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1474 1485
1475 OXC_config: unconfig 1486 OXC_config: unconfig
1476 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc 1487 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1477 1488
1478 PN62_config: unconfig 1489 PN62_config: unconfig
1479 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62 1490 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1480 1491
1481 Sandpoint8240_config: unconfig 1492 Sandpoint8240_config: unconfig
1482 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 1493 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1483 1494
1484 Sandpoint8245_config: unconfig 1495 Sandpoint8245_config: unconfig
1485 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint 1496 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1486 1497
1487 sbc8240_config: unconfig 1498 sbc8240_config: unconfig
1488 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240 1499 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1489 1500
1490 SL8245_config: unconfig 1501 SL8245_config: unconfig
1491 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245 1502 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1492 1503
1493 utx8245_config: unconfig 1504 utx8245_config: unconfig
1494 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245 1505 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1495 1506
1496 ######################################################################### 1507 #########################################################################
1497 ## MPC8260 Systems 1508 ## MPC8260 Systems
1498 ######################################################################### 1509 #########################################################################
1499 1510
1500 atc_config: unconfig 1511 atc_config: unconfig
1501 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc 1512 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1502 1513
1503 cogent_mpc8260_config: unconfig 1514 cogent_mpc8260_config: unconfig
1504 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent 1515 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1505 1516
1506 CPU86_config \ 1517 CPU86_config \
1507 CPU86_ROMBOOT_config: unconfig 1518 CPU86_ROMBOOT_config: unconfig
1508 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86 1519 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1509 @cd $(obj)include ; \ 1520 @cd $(obj)include ; \
1510 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1521 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1511 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1522 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1512 $(XECHO) "... booting from 8-bit flash" ; \ 1523 $(XECHO) "... booting from 8-bit flash" ; \
1513 else \ 1524 else \
1514 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1525 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1515 $(XECHO) "... booting from 64-bit flash" ; \ 1526 $(XECHO) "... booting from 64-bit flash" ; \
1516 fi; \ 1527 fi; \
1517 echo "export CONFIG_BOOT_ROM" >> config.mk; 1528 echo "export CONFIG_BOOT_ROM" >> config.mk;
1518 1529
1519 CPU87_config \ 1530 CPU87_config \
1520 CPU87_ROMBOOT_config: unconfig 1531 CPU87_ROMBOOT_config: unconfig
1521 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87 1532 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1522 @cd $(obj)include ; \ 1533 @cd $(obj)include ; \
1523 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1534 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1524 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ 1535 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1525 $(XECHO) "... booting from 8-bit flash" ; \ 1536 $(XECHO) "... booting from 8-bit flash" ; \
1526 else \ 1537 else \
1527 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ 1538 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1528 $(XECHO) "... booting from 64-bit flash" ; \ 1539 $(XECHO) "... booting from 64-bit flash" ; \
1529 fi; \ 1540 fi; \
1530 echo "export CONFIG_BOOT_ROM" >> config.mk; 1541 echo "export CONFIG_BOOT_ROM" >> config.mk;
1531 1542
1532 ep8248_config \ 1543 ep8248_config \
1533 ep8248E_config : unconfig 1544 ep8248E_config : unconfig
1534 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248 1545 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1535 1546
1536 ep8260_config: unconfig 1547 ep8260_config: unconfig
1537 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260 1548 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1538 1549
1539 ep82xxm_config: unconfig 1550 ep82xxm_config: unconfig
1540 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm 1551 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
1541 1552
1542 gw8260_config: unconfig 1553 gw8260_config: unconfig
1543 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260 1554 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1544 1555
1545 hymod_config: unconfig 1556 hymod_config: unconfig
1546 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod 1557 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1547 1558
1548 IDS8247_config: unconfig 1559 IDS8247_config: unconfig
1549 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247 1560 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1550 1561
1551 IPHASE4539_config: unconfig 1562 IPHASE4539_config: unconfig
1552 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539 1563 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1553 1564
1554 ISPAN_config \ 1565 ISPAN_config \
1555 ISPAN_REVB_config: unconfig 1566 ISPAN_REVB_config: unconfig
1556 @mkdir -p $(obj)include 1567 @mkdir -p $(obj)include
1557 @if [ "$(findstring _REVB_,$@)" ] ; then \ 1568 @if [ "$(findstring _REVB_,$@)" ] ; then \
1558 echo "#define CFG_REV_B" > $(obj)include/config.h ; \ 1569 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1559 fi 1570 fi
1560 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan 1571 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1561 1572
1562 mgcoge_config : unconfig 1573 mgcoge_config : unconfig
1563 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge 1574 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1564 1575
1565 MPC8260ADS_config \ 1576 MPC8260ADS_config \
1566 MPC8260ADS_lowboot_config \ 1577 MPC8260ADS_lowboot_config \
1567 MPC8260ADS_33MHz_config \ 1578 MPC8260ADS_33MHz_config \
1568 MPC8260ADS_33MHz_lowboot_config \ 1579 MPC8260ADS_33MHz_lowboot_config \
1569 MPC8260ADS_40MHz_config \ 1580 MPC8260ADS_40MHz_config \
1570 MPC8260ADS_40MHz_lowboot_config \ 1581 MPC8260ADS_40MHz_lowboot_config \
1571 MPC8272ADS_config \ 1582 MPC8272ADS_config \
1572 MPC8272ADS_lowboot_config \ 1583 MPC8272ADS_lowboot_config \
1573 PQ2FADS_config \ 1584 PQ2FADS_config \
1574 PQ2FADS_lowboot_config \ 1585 PQ2FADS_lowboot_config \
1575 PQ2FADS-VR_config \ 1586 PQ2FADS-VR_config \
1576 PQ2FADS-VR_lowboot_config \ 1587 PQ2FADS-VR_lowboot_config \
1577 PQ2FADS-ZU_config \ 1588 PQ2FADS-ZU_config \
1578 PQ2FADS-ZU_lowboot_config \ 1589 PQ2FADS-ZU_lowboot_config \
1579 PQ2FADS-ZU_66MHz_config \ 1590 PQ2FADS-ZU_66MHz_config \
1580 PQ2FADS-ZU_66MHz_lowboot_config \ 1591 PQ2FADS-ZU_66MHz_lowboot_config \
1581 : unconfig 1592 : unconfig
1582 @mkdir -p $(obj)include 1593 @mkdir -p $(obj)include
1583 @mkdir -p $(obj)board/mpc8260ads 1594 @mkdir -p $(obj)board/mpc8260ads
1584 $(if $(findstring PQ2FADS,$@), \ 1595 $(if $(findstring PQ2FADS,$@), \
1585 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \ 1596 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1586 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) 1597 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1587 $(if $(findstring MHz,$@), \ 1598 $(if $(findstring MHz,$@), \
1588 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ 1599 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1589 $(if $(findstring VR,$@), \ 1600 $(if $(findstring VR,$@), \
1590 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) 1601 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1591 @[ -z "$(findstring lowboot_,$@)" ] || \ 1602 @[ -z "$(findstring lowboot_,$@)" ] || \
1592 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \ 1603 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1593 $(XECHO) "... with lowboot configuration" ; \ 1604 $(XECHO) "... with lowboot configuration" ; \
1594 } 1605 }
1595 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads 1606 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1596 1607
1597 MPC8266ADS_config: unconfig 1608 MPC8266ADS_config: unconfig
1598 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads 1609 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1599 1610
1600 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash 1611 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1601 PM825_config \ 1612 PM825_config \
1602 PM825_ROMBOOT_config \ 1613 PM825_ROMBOOT_config \
1603 PM825_BIGFLASH_config \ 1614 PM825_BIGFLASH_config \
1604 PM825_ROMBOOT_BIGFLASH_config \ 1615 PM825_ROMBOOT_BIGFLASH_config \
1605 PM826_config \ 1616 PM826_config \
1606 PM826_ROMBOOT_config \ 1617 PM826_ROMBOOT_config \
1607 PM826_BIGFLASH_config \ 1618 PM826_BIGFLASH_config \
1608 PM826_ROMBOOT_BIGFLASH_config: unconfig 1619 PM826_ROMBOOT_BIGFLASH_config: unconfig
1609 @mkdir -p $(obj)include 1620 @mkdir -p $(obj)include
1610 @mkdir -p $(obj)board/pm826 1621 @mkdir -p $(obj)board/pm826
1611 @if [ "$(findstring PM825_,$@)" ] ; then \ 1622 @if [ "$(findstring PM825_,$@)" ] ; then \
1612 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ 1623 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1613 else \ 1624 else \
1614 >$(obj)include/config.h ; \ 1625 >$(obj)include/config.h ; \
1615 fi 1626 fi
1616 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1627 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1617 $(XECHO) "... booting from 8-bit flash" ; \ 1628 $(XECHO) "... booting from 8-bit flash" ; \
1618 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1629 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1619 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1630 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1620 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1631 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1621 $(XECHO) "... with 32 MB Flash" ; \ 1632 $(XECHO) "... with 32 MB Flash" ; \
1622 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1633 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1623 fi; \ 1634 fi; \
1624 else \ 1635 else \
1625 $(XECHO) "... booting from 64-bit flash" ; \ 1636 $(XECHO) "... booting from 64-bit flash" ; \
1626 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ 1637 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1627 $(XECHO) "... with 32 MB Flash" ; \ 1638 $(XECHO) "... with 32 MB Flash" ; \
1628 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ 1639 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1629 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ 1640 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1630 else \ 1641 else \
1631 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ 1642 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1632 fi; \ 1643 fi; \
1633 fi 1644 fi
1634 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826 1645 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1635 1646
1636 PM828_config \ 1647 PM828_config \
1637 PM828_PCI_config \ 1648 PM828_PCI_config \
1638 PM828_ROMBOOT_config \ 1649 PM828_ROMBOOT_config \
1639 PM828_ROMBOOT_PCI_config: unconfig 1650 PM828_ROMBOOT_PCI_config: unconfig
1640 @mkdir -p $(obj)include 1651 @mkdir -p $(obj)include
1641 @mkdir -p $(obj)board/pm826 1652 @mkdir -p $(obj)board/pm826
1642 @if [ "$(findstring _PCI_,$@)" ] ; then \ 1653 @if [ "$(findstring _PCI_,$@)" ] ; then \
1643 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1654 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1644 $(XECHO) "... with PCI enabled" ; \ 1655 $(XECHO) "... with PCI enabled" ; \
1645 else \ 1656 else \
1646 >$(obj)include/config.h ; \ 1657 >$(obj)include/config.h ; \
1647 fi 1658 fi
1648 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ 1659 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1649 $(XECHO) "... booting from 8-bit flash" ; \ 1660 $(XECHO) "... booting from 8-bit flash" ; \
1650 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ 1661 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1651 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ 1662 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1652 fi 1663 fi
1653 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828 1664 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1654 1665
1655 ppmc8260_config: unconfig 1666 ppmc8260_config: unconfig
1656 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260 1667 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1657 1668
1658 Rattler8248_config \ 1669 Rattler8248_config \
1659 Rattler_config: unconfig 1670 Rattler_config: unconfig
1660 @mkdir -p $(obj)include 1671 @mkdir -p $(obj)include
1661 $(if $(findstring 8248,$@), \ 1672 $(if $(findstring 8248,$@), \
1662 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) 1673 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1663 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler 1674 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1664 1675
1665 RPXsuper_config: unconfig 1676 RPXsuper_config: unconfig
1666 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper 1677 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1667 1678
1668 rsdproto_config: unconfig 1679 rsdproto_config: unconfig
1669 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto 1680 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1670 1681
1671 sacsng_config: unconfig 1682 sacsng_config: unconfig
1672 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng 1683 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1673 1684
1674 sbc8260_config: unconfig 1685 sbc8260_config: unconfig
1675 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260 1686 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1676 1687
1677 SCM_config: unconfig 1688 SCM_config: unconfig
1678 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens 1689 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1679 1690
1680 TQM8255_AA_config \ 1691 TQM8255_AA_config \
1681 TQM8260_AA_config \ 1692 TQM8260_AA_config \
1682 TQM8260_AB_config \ 1693 TQM8260_AB_config \
1683 TQM8260_AC_config \ 1694 TQM8260_AC_config \
1684 TQM8260_AD_config \ 1695 TQM8260_AD_config \
1685 TQM8260_AE_config \ 1696 TQM8260_AE_config \
1686 TQM8260_AF_config \ 1697 TQM8260_AF_config \
1687 TQM8260_AG_config \ 1698 TQM8260_AG_config \
1688 TQM8260_AH_config \ 1699 TQM8260_AH_config \
1689 TQM8260_AI_config \ 1700 TQM8260_AI_config \
1690 TQM8265_AA_config: unconfig 1701 TQM8265_AA_config: unconfig
1691 @mkdir -p $(obj)include 1702 @mkdir -p $(obj)include
1692 @case "$@" in \ 1703 @case "$@" in \
1693 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ 1704 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1694 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ 1705 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1695 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 1706 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1696 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ 1707 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1697 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 1708 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1698 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ 1709 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1699 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 1710 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1700 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ 1711 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1701 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ 1712 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1702 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ 1713 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1703 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ 1714 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1704 esac; \ 1715 esac; \
1705 >$(obj)include/config.h ; \ 1716 >$(obj)include/config.h ; \
1706 if [ "$${CTYPE}" != "MPC8260" ] ; then \ 1717 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1707 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ 1718 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1708 fi; \ 1719 fi; \
1709 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ 1720 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1710 echo "... with $${CFREQ}MHz system clock" ; \ 1721 echo "... with $${CFREQ}MHz system clock" ; \
1711 if [ "$${CACHE}" = "yes" ] ; then \ 1722 if [ "$${CACHE}" = "yes" ] ; then \
1712 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1723 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1713 $(XECHO) "... with L2 Cache support" ; \ 1724 $(XECHO) "... with L2 Cache support" ; \
1714 else \ 1725 else \
1715 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ 1726 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1716 $(XECHO) "... without L2 Cache support" ; \ 1727 $(XECHO) "... without L2 Cache support" ; \
1717 fi; \ 1728 fi; \
1718 if [ "$${BMODE}" = "60x" ] ; then \ 1729 if [ "$${BMODE}" = "60x" ] ; then \
1719 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1730 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1720 $(XECHO) "... with 60x Bus Mode" ; \ 1731 $(XECHO) "... with 60x Bus Mode" ; \
1721 else \ 1732 else \
1722 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ 1733 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1723 $(XECHO) "... without 60x Bus Mode" ; \ 1734 $(XECHO) "... without 60x Bus Mode" ; \
1724 fi 1735 fi
1725 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 1736 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1726 1737
1727 TQM8272_config: unconfig 1738 TQM8272_config: unconfig
1728 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272 1739 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1729 1740
1730 VoVPN-GW_66MHz_config \ 1741 VoVPN-GW_66MHz_config \
1731 VoVPN-GW_100MHz_config: unconfig 1742 VoVPN-GW_100MHz_config: unconfig
1732 @mkdir -p $(obj)include 1743 @mkdir -p $(obj)include
1733 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h 1744 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1734 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk 1745 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1735 1746
1736 ZPC1900_config: unconfig 1747 ZPC1900_config: unconfig
1737 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900 1748 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1738 1749
1739 ######################################################################### 1750 #########################################################################
1740 ## Coldfire 1751 ## Coldfire
1741 ######################################################################### 1752 #########################################################################
1742 1753
1743 M52277EVB_config: unconfig 1754 M52277EVB_config: unconfig
1744 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale 1755 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1745 1756
1746 M5235EVB_config \ 1757 M5235EVB_config \
1747 M5235EVB_Flash16_config \ 1758 M5235EVB_Flash16_config \
1748 M5235EVB_Flash32_config: unconfig 1759 M5235EVB_Flash32_config: unconfig
1749 @case "$@" in \ 1760 @case "$@" in \
1750 M5235EVB_config) FLASH=16;; \ 1761 M5235EVB_config) FLASH=16;; \
1751 M5235EVB_Flash16_config) FLASH=16;; \ 1762 M5235EVB_Flash16_config) FLASH=16;; \
1752 M5235EVB_Flash32_config) FLASH=32;; \ 1763 M5235EVB_Flash32_config) FLASH=32;; \
1753 esac; \ 1764 esac; \
1754 >$(obj)include/config.h ; \ 1765 >$(obj)include/config.h ; \
1755 if [ "$${FLASH}" != "16" ] ; then \ 1766 if [ "$${FLASH}" != "16" ] ; then \
1756 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ 1767 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
1757 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 1768 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1758 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 1769 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1759 else \ 1770 else \
1760 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 1771 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1761 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 1772 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1762 fi 1773 fi
1763 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale 1774 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1764 1775
1765 M5249EVB_config : unconfig 1776 M5249EVB_config : unconfig
1766 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale 1777 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1767 1778
1768 M5253EVBE_config : unconfig 1779 M5253EVBE_config : unconfig
1769 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale 1780 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1770 1781
1771 cobra5272_config : unconfig 1782 cobra5272_config : unconfig
1772 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272 1783 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1773 1784
1774 EB+MCF-EV123_config : unconfig 1785 EB+MCF-EV123_config : unconfig
1775 @mkdir -p $(obj)include 1786 @mkdir -p $(obj)include
1776 @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1787 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1777 @ >$(obj)include/config.h 1788 @ >$(obj)include/config.h
1778 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1789 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1779 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 1790 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1780 1791
1781 EB+MCF-EV123_internal_config : unconfig 1792 EB+MCF-EV123_internal_config : unconfig
1782 @mkdir -p $(obj)include 1793 @mkdir -p $(obj)include
1783 @mkdir -p $(obj)board/BuS/EB+MCF-EV123 1794 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1784 @ >$(obj)include/config.h 1795 @ >$(obj)include/config.h
1785 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 1796 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1786 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 1797 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1787 1798
1788 idmr_config : unconfig 1799 idmr_config : unconfig
1789 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr 1800 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1790 1801
1791 M5271EVB_config : unconfig 1802 M5271EVB_config : unconfig
1792 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb 1803 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1793 1804
1794 M5272C3_config : unconfig 1805 M5272C3_config : unconfig
1795 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 1806 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1796 1807
1797 M5282EVB_config : unconfig 1808 M5282EVB_config : unconfig
1798 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb 1809 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1799 1810
1800 TASREG_config : unconfig 1811 TASREG_config : unconfig
1801 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd 1812 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1802 1813
1803 r5200_config : unconfig 1814 r5200_config : unconfig
1804 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200 1815 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1805 1816
1806 M5329AFEE_config \ 1817 M5329AFEE_config \
1807 M5329BFEE_config : unconfig 1818 M5329BFEE_config : unconfig
1808 @case "$@" in \ 1819 @case "$@" in \
1809 M5329AFEE_config) NAND=0;; \ 1820 M5329AFEE_config) NAND=0;; \
1810 M5329BFEE_config) NAND=16;; \ 1821 M5329BFEE_config) NAND=16;; \
1811 esac; \ 1822 esac; \
1812 >$(obj)include/config.h ; \ 1823 >$(obj)include/config.h ; \
1813 if [ "$${NAND}" != "0" ] ; then \ 1824 if [ "$${NAND}" != "0" ] ; then \
1814 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 1825 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1815 fi 1826 fi
1816 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale 1827 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1817 1828
1818 M5373EVB_config : unconfig 1829 M5373EVB_config : unconfig
1819 @case "$@" in \ 1830 @case "$@" in \
1820 M5373EVB_config) NAND=16;; \ 1831 M5373EVB_config) NAND=16;; \
1821 esac; \ 1832 esac; \
1822 >include/config.h ; \ 1833 >include/config.h ; \
1823 if [ "$${NAND}" != "0" ] ; then \ 1834 if [ "$${NAND}" != "0" ] ; then \
1824 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 1835 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1825 fi 1836 fi
1826 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale 1837 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1827 1838
1828 M54455EVB_config \ 1839 M54455EVB_config \
1829 M54455EVB_atmel_config \ 1840 M54455EVB_atmel_config \
1830 M54455EVB_intel_config \ 1841 M54455EVB_intel_config \
1831 M54455EVB_a33_config \ 1842 M54455EVB_a33_config \
1832 M54455EVB_a66_config \ 1843 M54455EVB_a66_config \
1833 M54455EVB_i33_config \ 1844 M54455EVB_i33_config \
1834 M54455EVB_i66_config : unconfig 1845 M54455EVB_i66_config : unconfig
1835 @case "$@" in \ 1846 @case "$@" in \
1836 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 1847 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1837 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 1848 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1838 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 1849 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1839 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 1850 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1840 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 1851 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1841 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 1852 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1842 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 1853 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1843 esac; \ 1854 esac; \
1844 >$(obj)include/config.h ; \ 1855 >$(obj)include/config.h ; \
1845 if [ "$${FLASH}" = "INTEL" ] ; then \ 1856 if [ "$${FLASH}" = "INTEL" ] ; then \
1846 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1857 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1847 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1858 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1848 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1859 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1849 $(XECHO) "... with INTEL boot..." ; \ 1860 $(XECHO) "... with INTEL boot..." ; \
1850 else \ 1861 else \
1851 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ 1862 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1852 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 1863 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1853 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 1864 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1854 $(XECHO) "... with ATMEL boot..." ; \ 1865 $(XECHO) "... with ATMEL boot..." ; \
1855 fi; \ 1866 fi; \
1856 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 1867 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1857 $(XECHO) "... with $${FREQ}Hz input clock" 1868 $(XECHO) "... with $${FREQ}Hz input clock"
1858 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale 1869 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1859 1870
1860 M5475AFE_config \ 1871 M5475AFE_config \
1861 M5475BFE_config \ 1872 M5475BFE_config \
1862 M5475CFE_config \ 1873 M5475CFE_config \
1863 M5475DFE_config \ 1874 M5475DFE_config \
1864 M5475EFE_config \ 1875 M5475EFE_config \
1865 M5475FFE_config \ 1876 M5475FFE_config \
1866 M5475GFE_config : unconfig 1877 M5475GFE_config : unconfig
1867 @case "$@" in \ 1878 @case "$@" in \
1868 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 1879 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1869 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 1880 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1870 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 1881 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1871 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 1882 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1872 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 1883 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1873 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 1884 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1874 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 1885 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1875 esac; \ 1886 esac; \
1876 >include/config.h ; \ 1887 >include/config.h ; \
1877 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \ 1888 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
1878 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 1889 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1879 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 1890 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1880 if [ "$${RAM1}" != "0" ] ; then \ 1891 if [ "$${RAM1}" != "0" ] ; then \
1881 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 1892 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1882 fi; \ 1893 fi; \
1883 if [ "$${CODE}" != "0" ] ; then \ 1894 if [ "$${CODE}" != "0" ] ; then \
1884 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 1895 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1885 fi; \ 1896 fi; \
1886 if [ "$${VID}" == "1" ] ; then \ 1897 if [ "$${VID}" == "1" ] ; then \
1887 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \ 1898 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1888 fi; \ 1899 fi; \
1889 if [ "$${USB}" == "1" ] ; then \ 1900 if [ "$${USB}" == "1" ] ; then \
1890 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \ 1901 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1891 fi 1902 fi
1892 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale 1903 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
1893 1904
1894 M5485AFE_config \ 1905 M5485AFE_config \
1895 M5485BFE_config \ 1906 M5485BFE_config \
1896 M5485CFE_config \ 1907 M5485CFE_config \
1897 M5485DFE_config \ 1908 M5485DFE_config \
1898 M5485EFE_config \ 1909 M5485EFE_config \
1899 M5485FFE_config \ 1910 M5485FFE_config \
1900 M5485GFE_config \ 1911 M5485GFE_config \
1901 M5485HFE_config : unconfig 1912 M5485HFE_config : unconfig
1902 @case "$@" in \ 1913 @case "$@" in \
1903 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 1914 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1904 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 1915 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1905 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 1916 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1906 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 1917 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1907 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 1918 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1908 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 1919 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1909 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 1920 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1910 M5485HFE_config) BOOT=2;CODE=;VID=1;USB=0;RAM=64;RAM1=0;; \ 1921 M5485HFE_config) BOOT=2;CODE=;VID=1;USB=0;RAM=64;RAM1=0;; \
1911 esac; \ 1922 esac; \
1912 >include/config.h ; \ 1923 >include/config.h ; \
1913 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \ 1924 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
1914 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 1925 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1915 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 1926 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1916 if [ "$${RAM1}" != "0" ] ; then \ 1927 if [ "$${RAM1}" != "0" ] ; then \
1917 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 1928 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1918 fi; \ 1929 fi; \
1919 if [ "$${CODE}" != "0" ] ; then \ 1930 if [ "$${CODE}" != "0" ] ; then \
1920 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 1931 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1921 fi; \ 1932 fi; \
1922 if [ "$${VID}" == "1" ] ; then \ 1933 if [ "$${VID}" == "1" ] ; then \
1923 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \ 1934 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1924 fi; \ 1935 fi; \
1925 if [ "$${USB}" == "1" ] ; then \ 1936 if [ "$${USB}" == "1" ] ; then \
1926 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \ 1937 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1927 fi 1938 fi
1928 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale 1939 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
1929 1940
1930 ######################################################################### 1941 #########################################################################
1931 ## MPC83xx Systems 1942 ## MPC83xx Systems
1932 ######################################################################### 1943 #########################################################################
1933 1944
1934 MPC8313ERDB_33_config \ 1945 MPC8313ERDB_33_config \
1935 MPC8313ERDB_66_config: unconfig 1946 MPC8313ERDB_66_config: unconfig
1936 @mkdir -p $(obj)include 1947 @mkdir -p $(obj)include
1937 @echo "" >$(obj)include/config.h ; \ 1948 @echo "" >$(obj)include/config.h ; \
1938 if [ "$(findstring _33_,$@)" ] ; then \ 1949 if [ "$(findstring _33_,$@)" ] ; then \
1939 $(XECHO) -n "...33M ..." ; \ 1950 $(XECHO) -n "...33M ..." ; \
1940 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \ 1951 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
1941 fi ; \ 1952 fi ; \
1942 if [ "$(findstring _66_,$@)" ] ; then \ 1953 if [ "$(findstring _66_,$@)" ] ; then \
1943 $(XECHO) -n "...66M..." ; \ 1954 $(XECHO) -n "...66M..." ; \
1944 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \ 1955 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
1945 fi ; 1956 fi ;
1946 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale 1957 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
1947 1958
1948 MPC8315ERDB_config: unconfig 1959 MPC8315ERDB_config: unconfig
1949 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale 1960 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
1950 1961
1951 MPC8323ERDB_config: unconfig 1962 MPC8323ERDB_config: unconfig
1952 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale 1963 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
1953 1964
1954 MPC832XEMDS_config \ 1965 MPC832XEMDS_config \
1955 MPC832XEMDS_HOST_33_config \ 1966 MPC832XEMDS_HOST_33_config \
1956 MPC832XEMDS_HOST_66_config \ 1967 MPC832XEMDS_HOST_66_config \
1957 MPC832XEMDS_SLAVE_config \ 1968 MPC832XEMDS_SLAVE_config \
1958 MPC832XEMDS_ATM_config: unconfig 1969 MPC832XEMDS_ATM_config: unconfig
1959 @mkdir -p $(obj)include 1970 @mkdir -p $(obj)include
1960 @echo "" >$(obj)include/config.h ; \ 1971 @echo "" >$(obj)include/config.h ; \
1961 if [ "$(findstring _HOST_,$@)" ] ; then \ 1972 if [ "$(findstring _HOST_,$@)" ] ; then \
1962 $(XECHO) -n "... PCI HOST " ; \ 1973 $(XECHO) -n "... PCI HOST " ; \
1963 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1974 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1964 fi ; \ 1975 fi ; \
1965 if [ "$(findstring _SLAVE_,$@)" ] ; then \ 1976 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1966 $(XECHO) "...PCI SLAVE 66M" ; \ 1977 $(XECHO) "...PCI SLAVE 66M" ; \
1967 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 1978 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1968 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 1979 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
1969 fi ; \ 1980 fi ; \
1970 if [ "$(findstring _33_,$@)" ] ; then \ 1981 if [ "$(findstring _33_,$@)" ] ; then \
1971 $(XECHO) -n "...33M ..." ; \ 1982 $(XECHO) -n "...33M ..." ; \
1972 echo "#define PCI_33M" >>$(obj)include/config.h ; \ 1983 echo "#define PCI_33M" >>$(obj)include/config.h ; \
1973 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1984 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1974 fi ; \ 1985 fi ; \
1975 if [ "$(findstring _66_,$@)" ] ; then \ 1986 if [ "$(findstring _66_,$@)" ] ; then \
1976 $(XECHO) -n "...66M..." ; \ 1987 $(XECHO) -n "...66M..." ; \
1977 echo "#define PCI_66M" >>$(obj)include/config.h ; \ 1988 echo "#define PCI_66M" >>$(obj)include/config.h ; \
1978 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1989 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1979 fi ; \ 1990 fi ; \
1980 if [ "$(findstring _ATM_,$@)" ] ; then \ 1991 if [ "$(findstring _ATM_,$@)" ] ; then \
1981 $(XECHO) -n "...ATM..." ; \ 1992 $(XECHO) -n "...ATM..." ; \
1982 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 1993 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1983 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 1994 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
1984 fi ; 1995 fi ;
1985 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale 1996 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
1986 1997
1987 MPC8349EMDS_config: unconfig 1998 MPC8349EMDS_config: unconfig
1988 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale 1999 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
1989 2000
1990 MPC8349ITX_config \ 2001 MPC8349ITX_config \
1991 MPC8349ITX_LOWBOOT_config \ 2002 MPC8349ITX_LOWBOOT_config \
1992 MPC8349ITXGP_config: unconfig 2003 MPC8349ITXGP_config: unconfig
1993 @mkdir -p $(obj)include 2004 @mkdir -p $(obj)include
1994 @mkdir -p $(obj)board/freescale/mpc8349itx 2005 @mkdir -p $(obj)board/freescale/mpc8349itx
1995 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h 2006 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1996 @if [ "$(findstring GP,$@)" ] ; then \ 2007 @if [ "$(findstring GP,$@)" ] ; then \
1997 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 2008 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
1998 fi 2009 fi
1999 @if [ "$(findstring LOWBOOT,$@)" ] ; then \ 2010 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
2000 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ 2011 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
2001 fi 2012 fi
2002 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale 2013 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2003 2014
2004 MPC8360EMDS_config \ 2015 MPC8360EMDS_config \
2005 MPC8360EMDS_HOST_33_config \ 2016 MPC8360EMDS_HOST_33_config \
2006 MPC8360EMDS_HOST_66_config \ 2017 MPC8360EMDS_HOST_66_config \
2007 MPC8360EMDS_SLAVE_config \ 2018 MPC8360EMDS_SLAVE_config \
2008 MPC8360EMDS_ATM_config: unconfig 2019 MPC8360EMDS_ATM_config: unconfig
2009 @mkdir -p $(obj)include 2020 @mkdir -p $(obj)include
2010 @echo "" >$(obj)include/config.h ; \ 2021 @echo "" >$(obj)include/config.h ; \
2011 if [ "$(findstring _HOST_,$@)" ] ; then \ 2022 if [ "$(findstring _HOST_,$@)" ] ; then \
2012 $(XECHO) -n "... PCI HOST " ; \ 2023 $(XECHO) -n "... PCI HOST " ; \
2013 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2024 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2014 fi ; \ 2025 fi ; \
2015 if [ "$(findstring _SLAVE_,$@)" ] ; then \ 2026 if [ "$(findstring _SLAVE_,$@)" ] ; then \
2016 $(XECHO) "...PCI SLAVE 66M" ; \ 2027 $(XECHO) "...PCI SLAVE 66M" ; \
2017 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2028 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2018 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ 2029 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
2019 fi ; \ 2030 fi ; \
2020 if [ "$(findstring _33_,$@)" ] ; then \ 2031 if [ "$(findstring _33_,$@)" ] ; then \
2021 $(XECHO) -n "...33M ..." ; \ 2032 $(XECHO) -n "...33M ..." ; \
2022 echo "#define PCI_33M" >>$(obj)include/config.h ; \ 2033 echo "#define PCI_33M" >>$(obj)include/config.h ; \
2023 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2034 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2024 fi ; \ 2035 fi ; \
2025 if [ "$(findstring _66_,$@)" ] ; then \ 2036 if [ "$(findstring _66_,$@)" ] ; then \
2026 $(XECHO) -n "...66M..." ; \ 2037 $(XECHO) -n "...66M..." ; \
2027 echo "#define PCI_66M" >>$(obj)include/config.h ; \ 2038 echo "#define PCI_66M" >>$(obj)include/config.h ; \
2028 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2039 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2029 fi ; \ 2040 fi ; \
2030 if [ "$(findstring _ATM_,$@)" ] ; then \ 2041 if [ "$(findstring _ATM_,$@)" ] ; then \
2031 $(XECHO) -n "...ATM..." ; \ 2042 $(XECHO) -n "...ATM..." ; \
2032 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ 2043 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2033 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ 2044 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
2034 fi ; 2045 fi ;
2035 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale 2046 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
2036 2047
2037 MPC8360ERDK_33_config \ 2048 MPC8360ERDK_33_config \
2038 MPC8360ERDK_66_config \ 2049 MPC8360ERDK_66_config \
2039 MPC8360ERDK_config: 2050 MPC8360ERDK_config:
2040 @mkdir -p $(obj)include 2051 @mkdir -p $(obj)include
2041 @echo "" >$(obj)include/config.h ; \ 2052 @echo "" >$(obj)include/config.h ; \
2042 if [ "$(findstring _33_,$@)" ] ; then \ 2053 if [ "$(findstring _33_,$@)" ] ; then \
2043 $(XECHO) -n "... CLKIN 33MHz " ; \ 2054 $(XECHO) -n "... CLKIN 33MHz " ; \
2044 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\ 2055 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2045 fi ; 2056 fi ;
2046 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale 2057 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2047 2058
2048 MPC837XEMDS_config \ 2059 MPC837XEMDS_config \
2049 MPC837XEMDS_HOST_config: unconfig 2060 MPC837XEMDS_HOST_config: unconfig
2050 @mkdir -p $(obj)include 2061 @mkdir -p $(obj)include
2051 @echo "" >$(obj)include/config.h ; \ 2062 @echo "" >$(obj)include/config.h ; \
2052 if [ "$(findstring _HOST_,$@)" ] ; then \ 2063 if [ "$(findstring _HOST_,$@)" ] ; then \
2053 $(XECHO) -n "... PCI HOST " ; \ 2064 $(XECHO) -n "... PCI HOST " ; \
2054 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ 2065 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2055 fi ; 2066 fi ;
2056 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale 2067 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2057 2068
2058 MPC837XERDB_config: unconfig 2069 MPC837XERDB_config: unconfig
2059 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale 2070 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2060 2071
2061 sbc8349_config: unconfig 2072 sbc8349_config: unconfig
2062 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349 2073 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2063 2074
2064 TQM834x_config: unconfig 2075 TQM834x_config: unconfig
2065 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x 2076 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
2066 2077
2067 2078
2068 ######################################################################### 2079 #########################################################################
2069 ## MPC85xx Systems 2080 ## MPC85xx Systems
2070 ######################################################################### 2081 #########################################################################
2071 2082
2072 ATUM8548_config: unconfig 2083 ATUM8548_config: unconfig
2073 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548 2084 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2074 2085
2075 MPC8540ADS_config: unconfig 2086 MPC8540ADS_config: unconfig
2076 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale 2087 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
2077 2088
2078 MPC8540EVAL_config \ 2089 MPC8540EVAL_config \
2079 MPC8540EVAL_33_config \ 2090 MPC8540EVAL_33_config \
2080 MPC8540EVAL_66_config \ 2091 MPC8540EVAL_66_config \
2081 MPC8540EVAL_33_slave_config \ 2092 MPC8540EVAL_33_slave_config \
2082 MPC8540EVAL_66_slave_config: unconfig 2093 MPC8540EVAL_66_slave_config: unconfig
2083 @mkdir -p $(obj)include 2094 @mkdir -p $(obj)include
2084 @echo "" >$(obj)include/config.h ; \ 2095 @echo "" >$(obj)include/config.h ; \
2085 if [ "$(findstring _33_,$@)" ] ; then \ 2096 if [ "$(findstring _33_,$@)" ] ; then \
2086 $(XECHO) "... 33 MHz PCI" ; \ 2097 $(XECHO) "... 33 MHz PCI" ; \
2087 else \ 2098 else \
2088 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ 2099 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2089 $(XECHO) "... 66 MHz PCI" ; \ 2100 $(XECHO) "... 66 MHz PCI" ; \
2090 fi ; \ 2101 fi ; \
2091 if [ "$(findstring _slave_,$@)" ] ; then \ 2102 if [ "$(findstring _slave_,$@)" ] ; then \
2092 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ 2103 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2093 $(XECHO) " slave" ; \ 2104 $(XECHO) " slave" ; \
2094 else \ 2105 else \
2095 $(XECHO) " host" ; \ 2106 $(XECHO) " host" ; \
2096 fi 2107 fi
2097 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval 2108 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2098 2109
2099 MPC8560ADS_config: unconfig 2110 MPC8560ADS_config: unconfig
2100 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale 2111 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
2101 2112
2102 MPC8541CDS_legacy_config \ 2113 MPC8541CDS_legacy_config \
2103 MPC8541CDS_config: unconfig 2114 MPC8541CDS_config: unconfig
2104 @mkdir -p $(obj)include 2115 @mkdir -p $(obj)include
2105 @echo "" >$(obj)include/config.h ; \ 2116 @echo "" >$(obj)include/config.h ; \
2106 if [ "$(findstring _legacy_,$@)" ] ; then \ 2117 if [ "$(findstring _legacy_,$@)" ] ; then \
2107 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2118 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2108 $(XECHO) "... legacy" ; \ 2119 $(XECHO) "... legacy" ; \
2109 fi 2120 fi
2110 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale 2121 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
2111 2122
2112 MPC8544DS_config: unconfig 2123 MPC8544DS_config: unconfig
2113 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale 2124 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2114 2125
2115 MPC8548CDS_legacy_config \ 2126 MPC8548CDS_legacy_config \
2116 MPC8548CDS_config: unconfig 2127 MPC8548CDS_config: unconfig
2117 @mkdir -p $(obj)include 2128 @mkdir -p $(obj)include
2118 @echo "" >$(obj)include/config.h ; \ 2129 @echo "" >$(obj)include/config.h ; \
2119 if [ "$(findstring _legacy_,$@)" ] ; then \ 2130 if [ "$(findstring _legacy_,$@)" ] ; then \
2120 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2131 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2121 $(XECHO) "... legacy" ; \ 2132 $(XECHO) "... legacy" ; \
2122 fi 2133 fi
2123 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale 2134 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2124 2135
2125 MPC8555CDS_legacy_config \ 2136 MPC8555CDS_legacy_config \
2126 MPC8555CDS_config: unconfig 2137 MPC8555CDS_config: unconfig
2127 @mkdir -p $(obj)include 2138 @mkdir -p $(obj)include
2128 @echo "" >$(obj)include/config.h ; \ 2139 @echo "" >$(obj)include/config.h ; \
2129 if [ "$(findstring _legacy_,$@)" ] ; then \ 2140 if [ "$(findstring _legacy_,$@)" ] ; then \
2130 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ 2141 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2131 $(XECHO) "... legacy" ; \ 2142 $(XECHO) "... legacy" ; \
2132 fi 2143 fi
2133 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale 2144 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
2134 2145
2135 MPC8568MDS_config: unconfig 2146 MPC8568MDS_config: unconfig
2136 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale 2147 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
2137 2148
2138 PM854_config: unconfig 2149 PM854_config: unconfig
2139 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854 2150 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2140 2151
2141 PM856_config: unconfig 2152 PM856_config: unconfig
2142 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856 2153 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2143 2154
2144 sbc8540_config \ 2155 sbc8540_config \
2145 sbc8540_33_config \ 2156 sbc8540_33_config \
2146 sbc8540_66_config: unconfig 2157 sbc8540_66_config: unconfig
2147 @mkdir -p $(obj)include 2158 @mkdir -p $(obj)include
2148 @if [ "$(findstring _66_,$@)" ] ; then \ 2159 @if [ "$(findstring _66_,$@)" ] ; then \
2149 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2160 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2150 $(XECHO) "... 66 MHz PCI" ; \ 2161 $(XECHO) "... 66 MHz PCI" ; \
2151 else \ 2162 else \
2152 >$(obj)include/config.h ; \ 2163 >$(obj)include/config.h ; \
2153 $(XECHO) "... 33 MHz PCI" ; \ 2164 $(XECHO) "... 33 MHz PCI" ; \
2154 fi 2165 fi
2155 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560 2166 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2156 2167
2157 sbc8548_config: unconfig 2168 sbc8548_config: unconfig
2158 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548 2169 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2159 2170
2160 sbc8560_config \ 2171 sbc8560_config \
2161 sbc8560_33_config \ 2172 sbc8560_33_config \
2162 sbc8560_66_config: unconfig 2173 sbc8560_66_config: unconfig
2163 @mkdir -p $(obj)include 2174 @mkdir -p $(obj)include
2164 @if [ "$(findstring _66_,$@)" ] ; then \ 2175 @if [ "$(findstring _66_,$@)" ] ; then \
2165 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ 2176 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
2166 $(XECHO) "... 66 MHz PCI" ; \ 2177 $(XECHO) "... 66 MHz PCI" ; \
2167 else \ 2178 else \
2168 >$(obj)include/config.h ; \ 2179 >$(obj)include/config.h ; \
2169 $(XECHO) "... 33 MHz PCI" ; \ 2180 $(XECHO) "... 33 MHz PCI" ; \
2170 fi 2181 fi
2171 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560 2182 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
2172 2183
2173 stxgp3_config: unconfig 2184 stxgp3_config: unconfig
2174 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 2185 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
2175 2186
2176 stxssa_config \ 2187 stxssa_config \
2177 stxssa_4M_config: unconfig 2188 stxssa_4M_config: unconfig
2178 @mkdir -p $(obj)include 2189 @mkdir -p $(obj)include
2179 @if [ "$(findstring _4M_,$@)" ] ; then \ 2190 @if [ "$(findstring _4M_,$@)" ] ; then \
2180 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ 2191 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2181 $(XECHO) "... with 4 MiB flash memory" ; \ 2192 $(XECHO) "... with 4 MiB flash memory" ; \
2182 else \ 2193 else \
2183 >$(obj)include/config.h ; \ 2194 >$(obj)include/config.h ; \
2184 fi 2195 fi
2185 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa 2196 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
2186 2197
2187 TQM8540_config \ 2198 TQM8540_config \
2188 TQM8541_config \ 2199 TQM8541_config \
2189 TQM8555_config \ 2200 TQM8555_config \
2190 TQM8560_config: unconfig 2201 TQM8560_config: unconfig
2191 @mkdir -p $(obj)include 2202 @mkdir -p $(obj)include
2192 @CTYPE=$(subst TQM,,$(@:_config=)); \ 2203 @CTYPE=$(subst TQM,,$(@:_config=)); \
2193 >$(obj)include/config.h ; \ 2204 >$(obj)include/config.h ; \
2194 $(XECHO) "... TQM"$${CTYPE}; \ 2205 $(XECHO) "... TQM"$${CTYPE}; \
2195 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ 2206 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2196 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \ 2207 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2197 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ 2208 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2198 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \ 2209 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
2199 echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h 2210 echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2200 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx 2211 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2201 2212
2202 ######################################################################### 2213 #########################################################################
2203 ## MPC86xx Systems 2214 ## MPC86xx Systems
2204 ######################################################################### 2215 #########################################################################
2205 2216
2206 MPC8610HPCD_config: unconfig 2217 MPC8610HPCD_config: unconfig
2207 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale 2218 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2208 2219
2209 MPC8641HPCN_config: unconfig 2220 MPC8641HPCN_config: unconfig
2210 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale 2221 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2211 2222
2212 sbc8641d_config: unconfig 2223 sbc8641d_config: unconfig
2213 @./mkconfig $(@:_config=) ppc mpc86xx sbc8641d 2224 @./mkconfig $(@:_config=) ppc mpc86xx sbc8641d
2214 2225
2215 ######################################################################### 2226 #########################################################################
2216 ## 74xx/7xx Systems 2227 ## 74xx/7xx Systems
2217 ######################################################################### 2228 #########################################################################
2218 2229
2219 AmigaOneG3SE_config: unconfig 2230 AmigaOneG3SE_config: unconfig
2220 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI 2231 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2221 2232
2222 BAB7xx_config: unconfig 2233 BAB7xx_config: unconfig
2223 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec 2234 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
2224 2235
2225 CPCI750_config: unconfig 2236 CPCI750_config: unconfig
2226 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd 2237 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2227 2238
2228 DB64360_config: unconfig 2239 DB64360_config: unconfig
2229 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell 2240 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
2230 2241
2231 DB64460_config: unconfig 2242 DB64460_config: unconfig
2232 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell 2243 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
2233 2244
2234 ELPPC_config: unconfig 2245 ELPPC_config: unconfig
2235 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec 2246 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
2236 2247
2237 EVB64260_config \ 2248 EVB64260_config \
2238 EVB64260_750CX_config: unconfig 2249 EVB64260_750CX_config: unconfig
2239 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260 2250 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
2240 2251
2241 mpc7448hpc2_config: unconfig 2252 mpc7448hpc2_config: unconfig
2242 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 2253 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
2243 2254
2244 P3G4_config: unconfig 2255 P3G4_config: unconfig
2245 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 2256 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2246 2257
2247 p3m750_config \ 2258 p3m750_config \
2248 p3m7448_config: unconfig 2259 p3m7448_config: unconfig
2249 @mkdir -p $(obj)include 2260 @mkdir -p $(obj)include
2250 @if [ "$(findstring 750_,$@)" ] ; then \ 2261 @if [ "$(findstring 750_,$@)" ] ; then \
2251 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ 2262 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2252 else \ 2263 else \
2253 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ 2264 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2254 fi 2265 fi
2255 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive 2266 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2256 2267
2257 PCIPPC2_config \ 2268 PCIPPC2_config \
2258 PCIPPC6_config: unconfig 2269 PCIPPC6_config: unconfig
2259 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2 2270 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
2260 2271
2261 ZUMA_config: unconfig 2272 ZUMA_config: unconfig
2262 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 2273 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2263 2274
2264 ppmc7xx_config: unconfig 2275 ppmc7xx_config: unconfig
2265 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx 2276 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2266 2277
2267 #======================================================================== 2278 #========================================================================
2268 # ARM 2279 # ARM
2269 #======================================================================== 2280 #========================================================================
2270 ######################################################################### 2281 #########################################################################
2271 ## StrongARM Systems 2282 ## StrongARM Systems
2272 ######################################################################### 2283 #########################################################################
2273 2284
2274 assabet_config : unconfig 2285 assabet_config : unconfig
2275 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet 2286 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2276 2287
2277 dnp1110_config : unconfig 2288 dnp1110_config : unconfig
2278 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110 2289 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
2279 2290
2280 gcplus_config : unconfig 2291 gcplus_config : unconfig
2281 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus 2292 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2282 2293
2283 lart_config : unconfig 2294 lart_config : unconfig
2284 @$(MKCONFIG) $(@:_config=) arm sa1100 lart 2295 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
2285 2296
2286 shannon_config : unconfig 2297 shannon_config : unconfig
2287 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon 2298 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
2288 2299
2289 ######################################################################### 2300 #########################################################################
2290 ## ARM92xT Systems 2301 ## ARM92xT Systems
2291 ######################################################################### 2302 #########################################################################
2292 2303
2293 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) 2304 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2294 2305
2295 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 2306 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2296 2307
2297 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) 2308 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2298 2309
2299 at91rm9200dk_config : unconfig 2310 at91rm9200dk_config : unconfig
2300 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200 2311 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
2301 2312
2302 cmc_pu2_config : unconfig 2313 cmc_pu2_config : unconfig
2303 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200 2314 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2304 2315
2305 csb637_config : unconfig 2316 csb637_config : unconfig
2306 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200 2317 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2307 2318
2308 mp2usb_config : unconfig 2319 mp2usb_config : unconfig
2309 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200 2320 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2310 2321
2311 2322
2312 ######################################################################## 2323 ########################################################################
2313 ## ARM Integrator boards - see doc/README-integrator for more info. 2324 ## ARM Integrator boards - see doc/README-integrator for more info.
2314 integratorap_config \ 2325 integratorap_config \
2315 ap_config \ 2326 ap_config \
2316 ap966_config \ 2327 ap966_config \
2317 ap922_config \ 2328 ap922_config \
2318 ap922_XA10_config \ 2329 ap922_XA10_config \
2319 ap7_config \ 2330 ap7_config \
2320 ap720t_config \ 2331 ap720t_config \
2321 ap920t_config \ 2332 ap920t_config \
2322 ap926ejs_config \ 2333 ap926ejs_config \
2323 ap946es_config: unconfig 2334 ap946es_config: unconfig
2324 @board/integratorap/split_by_variant.sh $@ 2335 @board/integratorap/split_by_variant.sh $@
2325 2336
2326 integratorcp_config \ 2337 integratorcp_config \
2327 cp_config \ 2338 cp_config \
2328 cp920t_config \ 2339 cp920t_config \
2329 cp926ejs_config \ 2340 cp926ejs_config \
2330 cp946es_config \ 2341 cp946es_config \
2331 cp1136_config \ 2342 cp1136_config \
2332 cp966_config \ 2343 cp966_config \
2333 cp922_config \ 2344 cp922_config \
2334 cp922_XA10_config \ 2345 cp922_XA10_config \
2335 cp1026_config: unconfig 2346 cp1026_config: unconfig
2336 @board/integratorcp/split_by_variant.sh $@ 2347 @board/integratorcp/split_by_variant.sh $@
2337 2348
2338 kb9202_config : unconfig 2349 kb9202_config : unconfig
2339 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200 2350 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2340 2351
2341 lpd7a400_config \ 2352 lpd7a400_config \
2342 lpd7a404_config: unconfig 2353 lpd7a404_config: unconfig
2343 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x 2354 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
2344 2355
2345 mx1ads_config : unconfig 2356 mx1ads_config : unconfig
2346 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx 2357 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2347 2358
2348 mx1fs2_config : unconfig 2359 mx1fs2_config : unconfig
2349 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx 2360 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2350 2361
2351 netstar_32_config \ 2362 netstar_32_config \
2352 netstar_config: unconfig 2363 netstar_config: unconfig
2353 @mkdir -p $(obj)include 2364 @mkdir -p $(obj)include
2354 @if [ "$(findstring _32_,$@)" ] ; then \ 2365 @if [ "$(findstring _32_,$@)" ] ; then \
2355 $(XECHO) "... 32MB SDRAM" ; \ 2366 $(XECHO) "... 32MB SDRAM" ; \
2356 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \ 2367 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2357 else \ 2368 else \
2358 $(XECHO) "... 64MB SDRAM" ; \ 2369 $(XECHO) "... 64MB SDRAM" ; \
2359 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \ 2370 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2360 fi 2371 fi
2361 @$(MKCONFIG) -a netstar arm arm925t netstar 2372 @$(MKCONFIG) -a netstar arm arm925t netstar
2362 2373
2363 omap1510inn_config : unconfig 2374 omap1510inn_config : unconfig
2364 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn 2375 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2365 2376
2366 omap5912osk_config : unconfig 2377 omap5912osk_config : unconfig
2367 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap 2378 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2368 2379
2369 davinci_dvevm_config : unconfig 2380 davinci_dvevm_config : unconfig
2370 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci 2381 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2371 2382
2372 davinci_schmoogie_config : unconfig 2383 davinci_schmoogie_config : unconfig
2373 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci 2384 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2374 2385
2375 davinci_sonata_config : unconfig 2386 davinci_sonata_config : unconfig
2376 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci 2387 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2377 2388
2378 omap1610inn_config \ 2389 omap1610inn_config \
2379 omap1610inn_cs0boot_config \ 2390 omap1610inn_cs0boot_config \
2380 omap1610inn_cs3boot_config \ 2391 omap1610inn_cs3boot_config \
2381 omap1610inn_cs_autoboot_config \ 2392 omap1610inn_cs_autoboot_config \
2382 omap1610h2_config \ 2393 omap1610h2_config \
2383 omap1610h2_cs0boot_config \ 2394 omap1610h2_cs0boot_config \
2384 omap1610h2_cs3boot_config \ 2395 omap1610h2_cs3boot_config \
2385 omap1610h2_cs_autoboot_config: unconfig 2396 omap1610h2_cs_autoboot_config: unconfig
2386 @mkdir -p $(obj)include 2397 @mkdir -p $(obj)include
2387 @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2398 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2388 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 2399 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2389 $(XECHO) "... configured for CS0 boot"; \ 2400 $(XECHO) "... configured for CS0 boot"; \
2390 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 2401 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2391 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 2402 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2392 $(XECHO) "... configured for CS_AUTO boot"; \ 2403 $(XECHO) "... configured for CS_AUTO boot"; \
2393 else \ 2404 else \
2394 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2405 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2395 $(XECHO) "... configured for CS3 boot"; \ 2406 $(XECHO) "... configured for CS3 boot"; \
2396 fi; 2407 fi;
2397 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap 2408 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2398 2409
2399 omap730p2_config \ 2410 omap730p2_config \
2400 omap730p2_cs0boot_config \ 2411 omap730p2_cs0boot_config \
2401 omap730p2_cs3boot_config : unconfig 2412 omap730p2_cs3boot_config : unconfig
2402 @mkdir -p $(obj)include 2413 @mkdir -p $(obj)include
2403 @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 2414 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2404 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 2415 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2405 $(XECHO) "... configured for CS0 boot"; \ 2416 $(XECHO) "... configured for CS0 boot"; \
2406 else \ 2417 else \
2407 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 2418 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2408 $(XECHO) "... configured for CS3 boot"; \ 2419 $(XECHO) "... configured for CS3 boot"; \
2409 fi; 2420 fi;
2410 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap 2421 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2411 2422
2412 sbc2410x_config: unconfig 2423 sbc2410x_config: unconfig
2413 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 2424 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2414 2425
2415 scb9328_config : unconfig 2426 scb9328_config : unconfig
2416 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx 2427 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2417 2428
2418 smdk2400_config : unconfig 2429 smdk2400_config : unconfig
2419 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0 2430 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2420 2431
2421 smdk2410_config : unconfig 2432 smdk2410_config : unconfig
2422 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0 2433 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2423 2434
2424 SX1_config : unconfig 2435 SX1_config : unconfig
2425 @$(MKCONFIG) $(@:_config=) arm arm925t sx1 2436 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2426 2437
2427 # TRAB default configuration: 8 MB Flash, 32 MB RAM 2438 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2428 trab_config \ 2439 trab_config \
2429 trab_bigram_config \ 2440 trab_bigram_config \
2430 trab_bigflash_config \ 2441 trab_bigflash_config \
2431 trab_old_config: unconfig 2442 trab_old_config: unconfig
2432 @mkdir -p $(obj)include 2443 @mkdir -p $(obj)include
2433 @mkdir -p $(obj)board/trab 2444 @mkdir -p $(obj)board/trab
2434 @ >$(obj)include/config.h 2445 @ >$(obj)include/config.h
2435 @[ -z "$(findstring _bigram,$@)" ] || \ 2446 @[ -z "$(findstring _bigram,$@)" ] || \
2436 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2447 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2437 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 2448 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2438 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \ 2449 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2439 } 2450 }
2440 @[ -z "$(findstring _bigflash,$@)" ] || \ 2451 @[ -z "$(findstring _bigflash,$@)" ] || \
2441 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 2452 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2442 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2453 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2443 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \ 2454 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2444 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2455 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2445 } 2456 }
2446 @[ -z "$(findstring _old,$@)" ] || \ 2457 @[ -z "$(findstring _old,$@)" ] || \
2447 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 2458 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2448 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 2459 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2449 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \ 2460 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2450 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 2461 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2451 } 2462 }
2452 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 2463 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2453 2464
2454 VCMA9_config : unconfig 2465 VCMA9_config : unconfig
2455 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0 2466 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2456 2467
2457 #======================================================================== 2468 #========================================================================
2458 # ARM supplied Versatile development boards 2469 # ARM supplied Versatile development boards
2459 #======================================================================== 2470 #========================================================================
2460 versatile_config \ 2471 versatile_config \
2461 versatileab_config \ 2472 versatileab_config \
2462 versatilepb_config : unconfig 2473 versatilepb_config : unconfig
2463 @board/versatile/split_by_variant.sh $@ 2474 @board/versatile/split_by_variant.sh $@
2464 2475
2465 voiceblue_config: unconfig 2476 voiceblue_config: unconfig
2466 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue 2477 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
2467 2478
2468 cm4008_config : unconfig 2479 cm4008_config : unconfig
2469 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695 2480 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2470 2481
2471 cm41xx_config : unconfig 2482 cm41xx_config : unconfig
2472 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695 2483 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2473 2484
2474 gth2_config : unconfig 2485 gth2_config : unconfig
2475 @mkdir -p $(obj)include 2486 @mkdir -p $(obj)include
2476 @ >$(obj)include/config.h 2487 @ >$(obj)include/config.h
2477 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h 2488 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2478 @$(MKCONFIG) -a gth2 mips mips gth2 2489 @$(MKCONFIG) -a gth2 mips mips gth2
2479 2490
2480 ######################################################################### 2491 #########################################################################
2481 ## S3C44B0 Systems 2492 ## S3C44B0 Systems
2482 ######################################################################### 2493 #########################################################################
2483 2494
2484 B2_config : unconfig 2495 B2_config : unconfig
2485 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave 2496 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2486 2497
2487 ######################################################################### 2498 #########################################################################
2488 ## ARM720T Systems 2499 ## ARM720T Systems
2489 ######################################################################### 2500 #########################################################################
2490 2501
2491 armadillo_config: unconfig 2502 armadillo_config: unconfig
2492 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo 2503 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2493 2504
2494 ep7312_config : unconfig 2505 ep7312_config : unconfig
2495 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312 2506 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2496 2507
2497 impa7_config : unconfig 2508 impa7_config : unconfig
2498 @$(MKCONFIG) $(@:_config=) arm arm720t impa7 2509 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2499 2510
2500 modnet50_config : unconfig 2511 modnet50_config : unconfig
2501 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50 2512 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2502 2513
2503 evb4510_config : unconfig 2514 evb4510_config : unconfig
2504 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 2515 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2505 2516
2506 lpc2292sodimm_config: unconfig 2517 lpc2292sodimm_config: unconfig
2507 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292 2518 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2508 2519
2509 SMN42_config : unconfig 2520 SMN42_config : unconfig
2510 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292 2521 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2511 2522
2512 ######################################################################### 2523 #########################################################################
2513 ## XScale Systems 2524 ## XScale Systems
2514 ######################################################################### 2525 #########################################################################
2515 2526
2516 actux1_config : unconfig 2527 actux1_config : unconfig
2517 @$(MKCONFIG) $(@:_config=) arm ixp actux1 2528 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2518 2529
2519 actux2_config : unconfig 2530 actux2_config : unconfig
2520 @$(MKCONFIG) $(@:_config=) arm ixp actux2 2531 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2521 2532
2522 actux3_config : unconfig 2533 actux3_config : unconfig
2523 @$(MKCONFIG) $(@:_config=) arm ixp actux3 2534 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2524 2535
2525 actux4_config : unconfig 2536 actux4_config : unconfig
2526 @$(MKCONFIG) $(@:_config=) arm ixp actux4 2537 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2527 2538
2528 adsvix_config : unconfig 2539 adsvix_config : unconfig
2529 @$(MKCONFIG) $(@:_config=) arm pxa adsvix 2540 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2530 2541
2531 cerf250_config : unconfig 2542 cerf250_config : unconfig
2532 @$(MKCONFIG) $(@:_config=) arm pxa cerf250 2543 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2533 2544
2534 cradle_config : unconfig 2545 cradle_config : unconfig
2535 @$(MKCONFIG) $(@:_config=) arm pxa cradle 2546 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2536 2547
2537 csb226_config : unconfig 2548 csb226_config : unconfig
2538 @$(MKCONFIG) $(@:_config=) arm pxa csb226 2549 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2539 2550
2540 delta_config : 2551 delta_config :
2541 @$(MKCONFIG) $(@:_config=) arm pxa delta 2552 @$(MKCONFIG) $(@:_config=) arm pxa delta
2542 2553
2543 innokom_config : unconfig 2554 innokom_config : unconfig
2544 @$(MKCONFIG) $(@:_config=) arm pxa innokom 2555 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2545 2556
2546 ixdp425_config : unconfig 2557 ixdp425_config : unconfig
2547 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 2558 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2548 2559
2549 ixdpg425_config : unconfig 2560 ixdpg425_config : unconfig
2550 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 2561 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2551 2562
2552 lubbock_config : unconfig 2563 lubbock_config : unconfig
2553 @$(MKCONFIG) $(@:_config=) arm pxa lubbock 2564 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2554 2565
2555 pleb2_config : unconfig 2566 pleb2_config : unconfig
2556 @$(MKCONFIG) $(@:_config=) arm pxa pleb2 2567 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2557 2568
2558 logodl_config : unconfig 2569 logodl_config : unconfig
2559 @$(MKCONFIG) $(@:_config=) arm pxa logodl 2570 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2560 2571
2561 pdnb3_config \ 2572 pdnb3_config \
2562 scpu_config: unconfig 2573 scpu_config: unconfig
2563 @mkdir -p $(obj)include 2574 @mkdir -p $(obj)include
2564 @if [ "$(findstring scpu_,$@)" ] ; then \ 2575 @if [ "$(findstring scpu_,$@)" ] ; then \
2565 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 2576 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
2566 $(XECHO) "... on SCPU board variant" ; \ 2577 $(XECHO) "... on SCPU board variant" ; \
2567 else \ 2578 else \
2568 >$(obj)include/config.h ; \ 2579 >$(obj)include/config.h ; \
2569 fi 2580 fi
2570 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive 2581 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2571 2582
2572 pxa255_idp_config: unconfig 2583 pxa255_idp_config: unconfig
2573 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp 2584 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2574 2585
2575 trizepsiv_config : unconfig 2586 trizepsiv_config : unconfig
2576 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv 2587 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2577 2588
2578 wepep250_config : unconfig 2589 wepep250_config : unconfig
2579 @$(MKCONFIG) $(@:_config=) arm pxa wepep250 2590 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2580 2591
2581 xaeniax_config : unconfig 2592 xaeniax_config : unconfig
2582 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax 2593 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2583 2594
2584 xm250_config : unconfig 2595 xm250_config : unconfig
2585 @$(MKCONFIG) $(@:_config=) arm pxa xm250 2596 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2586 2597
2587 xsengine_config : unconfig 2598 xsengine_config : unconfig
2588 @$(MKCONFIG) $(@:_config=) arm pxa xsengine 2599 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2589 2600
2590 zylonite_config : 2601 zylonite_config :
2591 @$(MKCONFIG) $(@:_config=) arm pxa zylonite 2602 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2592 2603
2593 ######################################################################### 2604 #########################################################################
2594 ## ARM1136 Systems 2605 ## ARM1136 Systems
2595 ######################################################################### 2606 #########################################################################
2596 omap2420h4_config : unconfig 2607 omap2420h4_config : unconfig
2597 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 2608 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2598 2609
2599 apollon_config : unconfig 2610 apollon_config : unconfig
2611 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
2600 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon 2612 @$(MKCONFIG) $(@:_config=) arm arm1136 apollon
2613 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
2601 2614
2602 #======================================================================== 2615 #========================================================================
2603 # i386 2616 # i386
2604 #======================================================================== 2617 #========================================================================
2605 ######################################################################### 2618 #########################################################################
2606 ## AMD SC520 CDP 2619 ## AMD SC520 CDP
2607 ######################################################################### 2620 #########################################################################
2608 sc520_cdp_config : unconfig 2621 sc520_cdp_config : unconfig
2609 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp 2622 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2610 2623
2611 sc520_spunk_config : unconfig 2624 sc520_spunk_config : unconfig
2612 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 2625 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2613 2626
2614 sc520_spunk_rel_config : unconfig 2627 sc520_spunk_rel_config : unconfig
2615 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk 2628 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2616 2629
2617 #======================================================================== 2630 #========================================================================
2618 # MIPS 2631 # MIPS
2619 #======================================================================== 2632 #========================================================================
2620 ######################################################################### 2633 #########################################################################
2621 ## MIPS32 4Kc 2634 ## MIPS32 4Kc
2622 ######################################################################### 2635 #########################################################################
2623 2636
2624 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) 2637 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2625 2638
2626 incaip_100MHz_config \ 2639 incaip_100MHz_config \
2627 incaip_133MHz_config \ 2640 incaip_133MHz_config \
2628 incaip_150MHz_config \ 2641 incaip_150MHz_config \
2629 incaip_config: unconfig 2642 incaip_config: unconfig
2630 @mkdir -p $(obj)include 2643 @mkdir -p $(obj)include
2631 @ >$(obj)include/config.h 2644 @ >$(obj)include/config.h
2632 @[ -z "$(findstring _100MHz,$@)" ] || \ 2645 @[ -z "$(findstring _100MHz,$@)" ] || \
2633 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \ 2646 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2634 $(XECHO) "... with 100MHz system clock" ; \ 2647 $(XECHO) "... with 100MHz system clock" ; \
2635 } 2648 }
2636 @[ -z "$(findstring _133MHz,$@)" ] || \ 2649 @[ -z "$(findstring _133MHz,$@)" ] || \
2637 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \ 2650 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2638 $(XECHO) "... with 133MHz system clock" ; \ 2651 $(XECHO) "... with 133MHz system clock" ; \
2639 } 2652 }
2640 @[ -z "$(findstring _150MHz,$@)" ] || \ 2653 @[ -z "$(findstring _150MHz,$@)" ] || \
2641 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \ 2654 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2642 $(XECHO) "... with 150MHz system clock" ; \ 2655 $(XECHO) "... with 150MHz system clock" ; \
2643 } 2656 }
2644 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip 2657 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2645 2658
2646 tb0229_config: unconfig 2659 tb0229_config: unconfig
2647 @$(MKCONFIG) $(@:_config=) mips mips tb0229 2660 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2648 2661
2649 ######################################################################### 2662 #########################################################################
2650 ## MIPS32 AU1X00 2663 ## MIPS32 AU1X00
2651 ######################################################################### 2664 #########################################################################
2652 dbau1000_config : unconfig 2665 dbau1000_config : unconfig
2653 @mkdir -p $(obj)include 2666 @mkdir -p $(obj)include
2654 @ >$(obj)include/config.h 2667 @ >$(obj)include/config.h
2655 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h 2668 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2656 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2669 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2657 2670
2658 dbau1100_config : unconfig 2671 dbau1100_config : unconfig
2659 @mkdir -p $(obj)include 2672 @mkdir -p $(obj)include
2660 @ >$(obj)include/config.h 2673 @ >$(obj)include/config.h
2661 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h 2674 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2662 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2675 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2663 2676
2664 dbau1500_config : unconfig 2677 dbau1500_config : unconfig
2665 @mkdir -p $(obj)include 2678 @mkdir -p $(obj)include
2666 @ >$(obj)include/config.h 2679 @ >$(obj)include/config.h
2667 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h 2680 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2668 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2681 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2669 2682
2670 dbau1550_config : unconfig 2683 dbau1550_config : unconfig
2671 @mkdir -p $(obj)include 2684 @mkdir -p $(obj)include
2672 @ >$(obj)include/config.h 2685 @ >$(obj)include/config.h
2673 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h 2686 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2674 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2687 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2675 2688
2676 dbau1550_el_config : unconfig 2689 dbau1550_el_config : unconfig
2677 @mkdir -p $(obj)include 2690 @mkdir -p $(obj)include
2678 @ >$(obj)include/config.h 2691 @ >$(obj)include/config.h
2679 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h 2692 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2680 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 2693 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2681 2694
2682 pb1000_config : unconfig 2695 pb1000_config : unconfig
2683 @mkdir -p $(obj)include 2696 @mkdir -p $(obj)include
2684 @ >$(obj)include/config.h 2697 @ >$(obj)include/config.h
2685 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h 2698 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2686 @$(MKCONFIG) -a pb1x00 mips mips pb1x00 2699 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2687 2700
2688 qemu_mips_config: unconfig 2701 qemu_mips_config: unconfig
2689 @mkdir -p $(obj)include 2702 @mkdir -p $(obj)include
2690 @ >$(obj)include/config.h 2703 @ >$(obj)include/config.h
2691 @echo "#define CONFIG_QEMU_MIPS 1" >>$(obj)include/config.h 2704 @echo "#define CONFIG_QEMU_MIPS 1" >>$(obj)include/config.h
2692 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips 2705 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2693 2706
2694 ######################################################################### 2707 #########################################################################
2695 ## MIPS64 5Kc 2708 ## MIPS64 5Kc
2696 ######################################################################### 2709 #########################################################################
2697 2710
2698 purple_config : unconfig 2711 purple_config : unconfig
2699 @$(MKCONFIG) $(@:_config=) mips mips purple 2712 @$(MKCONFIG) $(@:_config=) mips mips purple
2700 2713
2701 #======================================================================== 2714 #========================================================================
2702 # Nios 2715 # Nios
2703 #======================================================================== 2716 #========================================================================
2704 ######################################################################### 2717 #########################################################################
2705 ## Nios32 2718 ## Nios32
2706 ######################################################################### 2719 #########################################################################
2707 2720
2708 DK1C20_safe_32_config \ 2721 DK1C20_safe_32_config \
2709 DK1C20_standard_32_config \ 2722 DK1C20_standard_32_config \
2710 DK1C20_config: unconfig 2723 DK1C20_config: unconfig
2711 @mkdir -p $(obj)include 2724 @mkdir -p $(obj)include
2712 @ >$(obj)include/config.h 2725 @ >$(obj)include/config.h
2713 @[ -z "$(findstring _safe_32,$@)" ] || \ 2726 @[ -z "$(findstring _safe_32,$@)" ] || \
2714 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2727 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2715 $(XECHO) "... NIOS 'safe_32' configuration" ; \ 2728 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2716 } 2729 }
2717 @[ -z "$(findstring _standard_32,$@)" ] || \ 2730 @[ -z "$(findstring _standard_32,$@)" ] || \
2718 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2731 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2719 $(XECHO) "... NIOS 'standard_32' configuration" ; \ 2732 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2720 } 2733 }
2721 @[ -z "$(findstring DK1C20_config,$@)" ] || \ 2734 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2722 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2735 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2723 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2736 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2724 } 2737 }
2725 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera 2738 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2726 2739
2727 DK1S10_safe_32_config \ 2740 DK1S10_safe_32_config \
2728 DK1S10_standard_32_config \ 2741 DK1S10_standard_32_config \
2729 DK1S10_mtx_ldk_20_config \ 2742 DK1S10_mtx_ldk_20_config \
2730 DK1S10_config: unconfig 2743 DK1S10_config: unconfig
2731 @mkdir -p $(obj)include 2744 @mkdir -p $(obj)include
2732 @ >$(obj)include/config.h 2745 @ >$(obj)include/config.h
2733 @[ -z "$(findstring _safe_32,$@)" ] || \ 2746 @[ -z "$(findstring _safe_32,$@)" ] || \
2734 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ 2747 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2735 $(XECHO) "... NIOS 'safe_32' configuration" ; \ 2748 $(XECHO) "... NIOS 'safe_32' configuration" ; \
2736 } 2749 }
2737 @[ -z "$(findstring _standard_32,$@)" ] || \ 2750 @[ -z "$(findstring _standard_32,$@)" ] || \
2738 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2751 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2739 $(XECHO) "... NIOS 'standard_32' configuration" ; \ 2752 $(XECHO) "... NIOS 'standard_32' configuration" ; \
2740 } 2753 }
2741 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ 2754 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2742 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \ 2755 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2743 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \ 2756 $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2744 } 2757 }
2745 @[ -z "$(findstring DK1S10_config,$@)" ] || \ 2758 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2746 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ 2759 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2747 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ 2760 $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2748 } 2761 }
2749 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera 2762 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2750 2763
2751 ADNPESC1_DNPEVA2_base_32_config \ 2764 ADNPESC1_DNPEVA2_base_32_config \
2752 ADNPESC1_base_32_config \ 2765 ADNPESC1_base_32_config \
2753 ADNPESC1_config: unconfig 2766 ADNPESC1_config: unconfig
2754 @mkdir -p $(obj)include 2767 @mkdir -p $(obj)include
2755 @ >$(obj)include/config.h 2768 @ >$(obj)include/config.h
2756 @[ -z "$(findstring _DNPEVA2,$@)" ] || \ 2769 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2757 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \ 2770 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2758 $(XECHO) "... DNP/EVA2 configuration" ; \ 2771 $(XECHO) "... DNP/EVA2 configuration" ; \
2759 } 2772 }
2760 @[ -z "$(findstring _base_32,$@)" ] || \ 2773 @[ -z "$(findstring _base_32,$@)" ] || \
2761 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2774 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2762 $(XECHO) "... NIOS 'base_32' configuration" ; \ 2775 $(XECHO) "... NIOS 'base_32' configuration" ; \
2763 } 2776 }
2764 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ 2777 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2765 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ 2778 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2766 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \ 2779 $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2767 } 2780 }
2768 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv 2781 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2769 2782
2770 ######################################################################### 2783 #########################################################################
2771 ## Nios-II 2784 ## Nios-II
2772 ######################################################################### 2785 #########################################################################
2773 2786
2774 EP1C20_config : unconfig 2787 EP1C20_config : unconfig
2775 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera 2788 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2776 2789
2777 EP1S10_config : unconfig 2790 EP1S10_config : unconfig
2778 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera 2791 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2779 2792
2780 EP1S40_config : unconfig 2793 EP1S40_config : unconfig
2781 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera 2794 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2782 2795
2783 PK1C20_config : unconfig 2796 PK1C20_config : unconfig
2784 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent 2797 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2785 2798
2786 PCI5441_config : unconfig 2799 PCI5441_config : unconfig
2787 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent 2800 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2788 2801
2789 #======================================================================== 2802 #========================================================================
2790 # MicroBlaze 2803 # MicroBlaze
2791 #======================================================================== 2804 #========================================================================
2792 ######################################################################### 2805 #########################################################################
2793 ## Microblaze 2806 ## Microblaze
2794 ######################################################################### 2807 #########################################################################
2795 suzaku_config: unconfig 2808 suzaku_config: unconfig
2796 @mkdir -p $(obj)include 2809 @mkdir -p $(obj)include
2797 @ >$(obj)include/config.h 2810 @ >$(obj)include/config.h
2798 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h 2811 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2799 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno 2812 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2800 2813
2801 ml401_config: unconfig 2814 ml401_config: unconfig
2802 @mkdir -p $(obj)include 2815 @mkdir -p $(obj)include
2803 @ >$(obj)include/config.h 2816 @ >$(obj)include/config.h
2804 @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h 2817 @echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
2805 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx 2818 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2806 2819
2807 xupv2p_config: unconfig 2820 xupv2p_config: unconfig
2808 @mkdir -p $(obj)include 2821 @mkdir -p $(obj)include
2809 @ >$(obj)include/config.h 2822 @ >$(obj)include/config.h
2810 @echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h 2823 @echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
2811 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx 2824 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
2812 2825
2813 ######################################################################### 2826 #########################################################################
2814 ## Blackfin 2827 ## Blackfin
2815 ######################################################################### 2828 #########################################################################
2816 bf533-ezkit_config: unconfig 2829 bf533-ezkit_config: unconfig
2817 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit 2830 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
2818 2831
2819 bf533-stamp_config: unconfig 2832 bf533-stamp_config: unconfig
2820 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp 2833 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
2821 2834
2822 bf537-stamp_config: unconfig 2835 bf537-stamp_config: unconfig
2823 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp 2836 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
2824 2837
2825 bf561-ezkit_config: unconfig 2838 bf561-ezkit_config: unconfig
2826 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit 2839 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
2827 2840
2828 #======================================================================== 2841 #========================================================================
2829 # AVR32 2842 # AVR32
2830 #======================================================================== 2843 #========================================================================
2831 ######################################################################### 2844 #########################################################################
2832 ## AT32AP7xxx 2845 ## AT32AP7xxx
2833 ######################################################################### 2846 #########################################################################
2834 2847
2835 atstk1002_config : unconfig 2848 atstk1002_config : unconfig
2836 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 2849 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2837 2850
2838 atstk1003_config : unconfig 2851 atstk1003_config : unconfig
2839 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 2852 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2840 2853
2841 atstk1004_config : unconfig 2854 atstk1004_config : unconfig
2842 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x 2855 @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2843 2856
2844 atngw100_config : unconfig 2857 atngw100_config : unconfig
2845 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x 2858 @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
2846 2859
2847 ######################################################################### 2860 #########################################################################
2848 ######################################################################### 2861 #########################################################################
2849 ######################################################################### 2862 #########################################################################
2850 2863
2851 ######################################################################### 2864 #########################################################################
2852 ## sh3 (Renesas SuperH) 2865 ## sh3 (Renesas SuperH)
2853 ######################################################################### 2866 #########################################################################
2854 ms7720se_config: unconfig 2867 ms7720se_config: unconfig
2855 @ >include/config.h 2868 @ >include/config.h
2856 @echo "#define CONFIG_MS7720SE 1" >> include/config.h 2869 @echo "#define CONFIG_MS7720SE 1" >> include/config.h
2857 @./mkconfig -a $(@:_config=) sh sh3 ms7720se 2870 @./mkconfig -a $(@:_config=) sh sh3 ms7720se
2858 2871
2859 ######################################################################### 2872 #########################################################################
2860 ## sh4 (Renesas SuperH) 2873 ## sh4 (Renesas SuperH)
2861 ######################################################################### 2874 #########################################################################
2862 ms7750se_config: unconfig 2875 ms7750se_config: unconfig
2863 @ >$(obj)include/config.h 2876 @ >$(obj)include/config.h
2864 @echo "#define CONFIG_MS7750SE 1" >> $(obj)include/config.h 2877 @echo "#define CONFIG_MS7750SE 1" >> $(obj)include/config.h
2865 @./mkconfig -a $(@:_config=) sh sh4 ms7750se 2878 @./mkconfig -a $(@:_config=) sh sh4 ms7750se
2866 2879
2867 ms7722se_config : unconfig 2880 ms7722se_config : unconfig
2868 @ >$(obj)include/config.h 2881 @ >$(obj)include/config.h
2869 @echo "#define CONFIG_MS7722SE 1" >> $(obj)include/config.h 2882 @echo "#define CONFIG_MS7722SE 1" >> $(obj)include/config.h
2870 @./mkconfig -a $(@:_config=) sh sh4 ms7722se 2883 @./mkconfig -a $(@:_config=) sh sh4 ms7722se
2871 2884
2872 ######################################################################### 2885 #########################################################################
2873 ######################################################################### 2886 #########################################################################
2874 ######################################################################### 2887 #########################################################################
2875 2888
2876 clean: 2889 clean:
2877 @find $(OBJTREE) -type f \ 2890 @find $(OBJTREE) -type f \
2878 \( -name 'core' -o -name '*.bak' -o -name '*~' \ 2891 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2879 -o -name '*.o' -o -name '*.a' \) -print \ 2892 -o -name '*.o' -o -name '*.a' \) -print \
2880 | xargs rm -f 2893 | xargs rm -f
2881 @rm -f $(obj)examples/hello_world $(obj)examples/timer \ 2894 @rm -f $(obj)examples/hello_world $(obj)examples/timer \
2882 $(obj)examples/eepro100_eeprom $(obj)examples/sched \ 2895 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2883 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \ 2896 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2884 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \ 2897 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2885 $(obj)examples/test_burst 2898 $(obj)examples/test_burst
2886 @rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \ 2899 @rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2887 $(obj)tools/gen_eth_addr $(obj)tools/ubsha1 2900 $(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2888 @rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb 2901 @rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2889 @rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo 2902 @rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2890 @rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend 2903 @rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2891 @rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv 2904 @rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2892 @rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image 2905 @rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2893 @rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit 2906 @rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2894 @rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin 2907 @rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2895 @rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom 2908 @rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2896 @rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds 2909 @rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2897 @rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds 2910 @rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2898 @rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds 2911 @rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2899 @rm -f $(obj)include/bmp_logo.h 2912 @rm -f $(obj)include/bmp_logo.h
2900 @rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map 2913 @rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2914 @rm -f $(obj)onenand_ipl/onenand-ipl $(obj)onenand_ipl/onenand-ipl.bin \
2915 $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)onenand_ipl/onenand-ipl.map
2901 @rm -f $(obj)api_examples/demo $(VERSION_FILE) 2916 @rm -f $(obj)api_examples/demo $(VERSION_FILE)
2902 2917
2903 clobber: clean 2918 clobber: clean
2904 @find $(OBJTREE) -type f \( -name .depend \ 2919 @find $(OBJTREE) -type f \( -name .depend \
2905 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 2920 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2906 -print0 \ 2921 -print0 \
2907 | xargs -0 rm -f 2922 | xargs -0 rm -f
2908 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS 2923 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS
2909 @rm -fr $(obj)*.*~ 2924 @rm -fr $(obj)*.*~
2910 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 2925 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2911 @rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c 2926 @rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2912 @rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c 2927 @rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2913 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 2928 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2914 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f 2929 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2930 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f
2915 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f 2931 @[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
2916 2932
2917 ifeq ($(OBJTREE),$(SRCTREE)) 2933 ifeq ($(OBJTREE),$(SRCTREE))
2918 mrproper \ 2934 mrproper \
2919 distclean: clobber unconfig 2935 distclean: clobber unconfig
2920 else 2936 else
2921 mrproper \ 2937 mrproper \
2922 distclean: clobber unconfig 2938 distclean: clobber unconfig
2923 rm -rf $(obj)* 2939 rm -rf $(obj)*
2924 endif 2940 endif
2925 2941
2926 backup: 2942 backup:
2927 F=`basename $(TOPDIR)` ; cd .. ; \ 2943 F=`basename $(TOPDIR)` ; cd .. ; \
2928 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 2944 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2929 2945
2930 ######################################################################### 2946 #########################################################################
2931 2947
board/apollon/apollon.c
1 /* 1 /*
2 * (C) Copyright 2005-2007 2 * (C) Copyright 2005-2007
3 * Samsung Electronics. 3 * Samsung Electronics.
4 * Kyungmin Park <kyungmin.park@samsung.com> 4 * Kyungmin Park <kyungmin.park@samsung.com>
5 * 5 *
6 * Derived from omap2420 6 * Derived from omap2420
7 * 7 *
8 * See file CREDITS for list of people who contributed to this 8 * See file CREDITS for list of people who contributed to this
9 * project. 9 * project.
10 * 10 *
11 * This program is free software; you can redistribute it and/or 11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as 12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of 13 * published by the Free Software Foundation; either version 2 of
14 * the License, or (at your option) any later version. 14 * the License, or (at your option) any later version.
15 * 15 *
16 * This program is distributed in the hope that it will be useful, 16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details. 19 * GNU General Public License for more details.
20 * 20 *
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software 22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 * MA 02111-1307 USA 24 * MA 02111-1307 USA
25 */ 25 */
26 #include <common.h> 26 #include <common.h>
27 #include <asm/arch/omap2420.h> 27 #include <asm/arch/omap2420.h>
28 #include <asm/io.h> 28 #include <asm/io.h>
29 #include <asm/arch/bits.h> 29 #include <asm/arch/bits.h>
30 #include <asm/arch/mux.h> 30 #include <asm/arch/mux.h>
31 #include <asm/arch/sys_proto.h> 31 #include <asm/arch/sys_proto.h>
32 #include <asm/arch/sys_info.h> 32 #include <asm/arch/sys_info.h>
33 #include <asm/arch/mem.h> 33 #include <asm/arch/mem.h>
34 #include <asm/mach-types.h> 34 #include <asm/mach-types.h>
35 35
36 void wait_for_command_complete(unsigned int wd_base); 36 void wait_for_command_complete(unsigned int wd_base);
37 37
38 DECLARE_GLOBAL_DATA_PTR; 38 DECLARE_GLOBAL_DATA_PTR;
39 39
40 #define write_config_reg(reg, value) \ 40 #define write_config_reg(reg, value) \
41 do { \ 41 do { \
42 writeb(value, reg); \ 42 writeb(value, reg); \
43 } while (0) 43 } while (0)
44 44
45 #define mask_config_reg(reg, mask) \ 45 #define mask_config_reg(reg, mask) \
46 do { \ 46 do { \
47 char value = readb(reg) & ~(mask); \ 47 char value = readb(reg) & ~(mask); \
48 writeb(value, reg); \ 48 writeb(value, reg); \
49 } while (0) 49 } while (0)
50 50
51 /******************************************************* 51 /*******************************************************
52 * Routine: delay 52 * Routine: delay
53 * Description: spinning delay to use before udelay works 53 * Description: spinning delay to use before udelay works
54 ******************************************************/ 54 ******************************************************/
55 static inline void delay(unsigned long loops) 55 static inline void delay(unsigned long loops)
56 { 56 {
57 __asm__("1:\n" "subs %0, %1, #1\n" 57 __asm__("1:\n" "subs %0, %1, #1\n"
58 "bne 1b":"=r" (loops):"0"(loops)); 58 "bne 1b":"=r" (loops):"0"(loops));
59 } 59 }
60 60
61 /***************************************** 61 /*****************************************
62 * Routine: board_init 62 * Routine: board_init
63 * Description: Early hardware init. 63 * Description: Early hardware init.
64 *****************************************/ 64 *****************************************/
65 int board_init(void) 65 int board_init(void)
66 { 66 {
67 gpmc_init(); /* in SRAM or SDRM, finish GPMC */ 67 gpmc_init(); /* in SRAM or SDRM, finish GPMC */
68 68
69 gd->bd->bi_arch_number = 919; 69 gd->bd->bi_arch_number = 919;
70 /* adress of boot parameters */ 70 /* adress of boot parameters */
71 gd->bd->bi_boot_params = (OMAP2420_SDRC_CS0 + 0x100); 71 gd->bd->bi_boot_params = (OMAP2420_SDRC_CS0 + 0x100);
72 72
73 return 0; 73 return 0;
74 } 74 }
75 75
76 /********************************************************** 76 /**********************************************************
77 * Routine: s_init 77 * Routine: s_init
78 * Description: Does early system init of muxing and clocks. 78 * Description: Does early system init of muxing and clocks.
79 * - Called path is with sram stack. 79 * - Called path is with sram stack.
80 **********************************************************/ 80 **********************************************************/
81 void s_init(void) 81 void s_init(void)
82 { 82 {
83 watchdog_init(); 83 watchdog_init();
84 set_muxconf_regs(); 84 set_muxconf_regs();
85 delay(100); 85 delay(100);
86 86
87 peripheral_enable(); 87 peripheral_enable();
88 icache_enable(); 88 icache_enable();
89 } 89 }
90 90
91 /******************************************************* 91 /*******************************************************
92 * Routine: misc_init_r 92 * Routine: misc_init_r
93 * Description: Init ethernet (done here so udelay works) 93 * Description: Init ethernet (done here so udelay works)
94 ********************************************************/ 94 ********************************************************/
95 int misc_init_r(void) 95 int misc_init_r(void)
96 { 96 {
97 ether_init(); /* better done here so timers are init'ed */ 97 ether_init(); /* better done here so timers are init'ed */
98 return (0); 98 return (0);
99 } 99 }
100 100
101 /**************************************** 101 /****************************************
102 * Routine: watchdog_init 102 * Routine: watchdog_init
103 * Description: Shut down watch dogs 103 * Description: Shut down watch dogs
104 *****************************************/ 104 *****************************************/
105 void watchdog_init(void) 105 void watchdog_init(void)
106 { 106 {
107 /* There are 4 watch dogs. 1 secure, and 3 general purpose. 107 /* There are 4 watch dogs. 1 secure, and 3 general purpose.
108 * The ROM takes care of the secure one. Of the 3 GP ones, 108 * The ROM takes care of the secure one. Of the 3 GP ones,
109 * 1 can reset us directly, the other 2 only generate MPU interrupts. 109 * 1 can reset us directly, the other 2 only generate MPU interrupts.
110 */ 110 */
111 __raw_writel(WD_UNLOCK1, WD2_BASE + WSPR); 111 __raw_writel(WD_UNLOCK1, WD2_BASE + WSPR);
112 wait_for_command_complete(WD2_BASE); 112 wait_for_command_complete(WD2_BASE);
113 __raw_writel(WD_UNLOCK2, WD2_BASE + WSPR); 113 __raw_writel(WD_UNLOCK2, WD2_BASE + WSPR);
114 114
115 #define MPU_WD_CLOCKED 1 115 #define MPU_WD_CLOCKED 1
116 #if MPU_WD_CLOCKED 116 #if MPU_WD_CLOCKED
117 /* value 0x10 stick on aptix, BIT4 polarity seems oppsite */ 117 /* value 0x10 stick on aptix, BIT4 polarity seems oppsite */
118 __raw_writel(WD_UNLOCK1, WD3_BASE + WSPR); 118 __raw_writel(WD_UNLOCK1, WD3_BASE + WSPR);
119 wait_for_command_complete(WD3_BASE); 119 wait_for_command_complete(WD3_BASE);
120 __raw_writel(WD_UNLOCK2, WD3_BASE + WSPR); 120 __raw_writel(WD_UNLOCK2, WD3_BASE + WSPR);
121 121
122 __raw_writel(WD_UNLOCK1, WD4_BASE + WSPR); 122 __raw_writel(WD_UNLOCK1, WD4_BASE + WSPR);
123 wait_for_command_complete(WD4_BASE); 123 wait_for_command_complete(WD4_BASE);
124 __raw_writel(WD_UNLOCK2, WD4_BASE + WSPR); 124 __raw_writel(WD_UNLOCK2, WD4_BASE + WSPR);
125 #endif 125 #endif
126 } 126 }
127 127
128 /****************************************************** 128 /******************************************************
129 * Routine: wait_for_command_complete 129 * Routine: wait_for_command_complete
130 * Description: Wait for posting to finish on watchdog 130 * Description: Wait for posting to finish on watchdog
131 ******************************************************/ 131 ******************************************************/
132 void wait_for_command_complete(unsigned int wd_base) 132 void wait_for_command_complete(unsigned int wd_base)
133 { 133 {
134 int pending = 1; 134 int pending = 1;
135 do { 135 do {
136 pending = __raw_readl(wd_base + WWPS); 136 pending = __raw_readl(wd_base + WWPS);
137 } while (pending); 137 } while (pending);
138 } 138 }
139 139
140 /******************************************************************* 140 /*******************************************************************
141 * Routine:ether_init 141 * Routine:ether_init
142 * Description: take the Ethernet controller out of reset and wait 142 * Description: take the Ethernet controller out of reset and wait
143 * for the EEPROM load to complete. 143 * for the EEPROM load to complete.
144 ******************************************************************/ 144 ******************************************************************/
145 void ether_init(void) 145 void ether_init(void)
146 { 146 {
147 #ifdef CONFIG_DRIVER_LAN91C96 147 #ifdef CONFIG_DRIVER_LAN91C96
148 int cnt = 20; 148 int cnt = 20;
149 149
150 __raw_writeb(0x03, OMAP2420_CTRL_BASE + 0x0f2); /*protect->gpio74 */ 150 __raw_writeb(0x03, OMAP2420_CTRL_BASE + 0x0f2); /*protect->gpio74 */
151 151
152 __raw_writew(0x0, LAN_RESET_REGISTER); 152 __raw_writew(0x0, LAN_RESET_REGISTER);
153 do { 153 do {
154 __raw_writew(0x1, LAN_RESET_REGISTER); 154 __raw_writew(0x1, LAN_RESET_REGISTER);
155 udelay(100); 155 udelay(100);
156 if (cnt == 0) { 156 if (cnt == 0) {
157 printf("1. eth reset err\n"); 157 printf("1. eth reset err\n");
158 goto eth_reset_err_out; 158 goto eth_reset_err_out;
159 } 159 }
160 --cnt; 160 --cnt;
161 } while (__raw_readw(LAN_RESET_REGISTER) != 0x1); 161 } while (__raw_readw(LAN_RESET_REGISTER) != 0x1);
162 162
163 cnt = 20; 163 cnt = 20;
164 164
165 do { 165 do {
166 __raw_writew(0x0, LAN_RESET_REGISTER); 166 __raw_writew(0x0, LAN_RESET_REGISTER);
167 udelay(100); 167 udelay(100);
168 if (cnt == 0) { 168 if (cnt == 0) {
169 printf("2. eth reset err\n"); 169 printf("2. eth reset err\n");
170 goto eth_reset_err_out; 170 goto eth_reset_err_out;
171 } 171 }
172 --cnt; 172 --cnt;
173 } while (__raw_readw(LAN_RESET_REGISTER) != 0x0000); 173 } while (__raw_readw(LAN_RESET_REGISTER) != 0x0000);
174 udelay(1000); 174 udelay(1000);
175 175
176 mask_config_reg(ETH_CONTROL_REG, 0x01); 176 mask_config_reg(ETH_CONTROL_REG, 0x01);
177 udelay(1000); 177 udelay(1000);
178 178
179 eth_reset_err_out: 179 eth_reset_err_out:
180 return; 180 return;
181 #endif 181 #endif
182 } 182 }
183 183
184 /********************************************** 184 /**********************************************
185 * Routine: dram_init 185 * Routine: dram_init
186 * Description: sets uboots idea of sdram size 186 * Description: sets uboots idea of sdram size
187 **********************************************/ 187 **********************************************/
188 int dram_init(void) 188 int dram_init(void)
189 { 189 {
190 unsigned int size0 = 0, size1 = 0; 190 unsigned int size0 = 0, size1 = 0;
191 u32 mtype, btype, rev = 0, cpu = 0; 191 u32 mtype, btype, rev = 0, cpu = 0;
192 #define NOT_EARLY 0 192 #define NOT_EARLY 0
193 193
194 btype = get_board_type(); 194 btype = get_board_type();
195 mtype = get_mem_type(); 195 mtype = get_mem_type();
196 rev = get_cpu_rev(); 196 rev = get_cpu_rev();
197 cpu = get_cpu_type(); 197 cpu = get_cpu_type();
198 198
199 display_board_info(btype); 199 display_board_info(btype);
200 200
201 if ((mtype == DDR_COMBO) || (mtype == DDR_STACKED)) { 201 if ((mtype == DDR_COMBO) || (mtype == DDR_STACKED)) {
202 /* init other chip select */ 202 /* init other chip select */
203 do_sdrc_init(SDRC_CS1_OSET, NOT_EARLY); 203 do_sdrc_init(SDRC_CS1_OSET, NOT_EARLY);
204 } 204 }
205 205
206 size0 = get_sdr_cs_size(SDRC_CS0_OSET); 206 size0 = get_sdr_cs_size(SDRC_CS0_OSET);
207 size1 = get_sdr_cs_size(SDRC_CS1_OSET); 207 size1 = get_sdr_cs_size(SDRC_CS1_OSET);
208 208
209 gd->bd->bi_dram[0].start = PHYS_SDRAM_1; 209 gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
210 gd->bd->bi_dram[0].size = size0; 210 gd->bd->bi_dram[0].size = size0;
211 #if CONFIG_NR_DRAM_BANKS > 1 211 #if CONFIG_NR_DRAM_BANKS > 1
212 gd->bd->bi_dram[1].start = PHYS_SDRAM_1 + size0; 212 gd->bd->bi_dram[1].start = PHYS_SDRAM_1 + size0;
213 gd->bd->bi_dram[1].size = size1; 213 gd->bd->bi_dram[1].size = size1;
214 #endif 214 #endif
215 215
216 return 0; 216 return 0;
217 } 217 }
218 218
219 /********************************************************** 219 /**********************************************************
220 * Routine: set_muxconf_regs 220 * Routine: set_muxconf_regs
221 * Description: Setting up the configuration Mux registers 221 * Description: Setting up the configuration Mux registers
222 * specific to the hardware 222 * specific to the hardware
223 *********************************************************/ 223 *********************************************************/
224 void set_muxconf_regs(void) 224 void set_muxconf_regs(void)
225 { 225 {
226 muxSetupSDRC(); 226 muxSetupSDRC();
227 muxSetupGPMC(); 227 muxSetupGPMC();
228 muxSetupUsb0(); /* USB Device */ 228 muxSetupUsb0(); /* USB Device */
229 muxSetupUsbHost(); /* USB Host */ 229 muxSetupUsbHost(); /* USB Host */
230 muxSetupUART1(); 230 muxSetupUART1();
231 muxSetupLCD(); 231 muxSetupLCD();
232 muxSetupMMCSD(); 232 muxSetupMMCSD();
233 muxSetupTouchScreen(); 233 muxSetupTouchScreen();
234 } 234 }
235 235
236 /***************************************************************** 236 /*****************************************************************
237 * Routine: peripheral_enable 237 * Routine: peripheral_enable
238 * Description: Enable the clks & power for perifs (GPT2, UART1,...) 238 * Description: Enable the clks & power for perifs (GPT2, UART1,...)
239 ******************************************************************/ 239 ******************************************************************/
240 void peripheral_enable(void) 240 void peripheral_enable(void)
241 { 241 {
242 unsigned int v, if_clks = 0, func_clks = 0; 242 unsigned int v, if_clks = 0, func_clks = 0;
243 243
244 /* Enable GP2 timer. */ 244 /* Enable GP2 timer. */
245 if_clks |= BIT4 | BIT3; 245 if_clks |= BIT4 | BIT3;
246 func_clks |= BIT4 | BIT3; 246 func_clks |= BIT4 | BIT3;
247 /* Sys_clk input OMAP2420_GPT2 */ 247 /* Sys_clk input OMAP2420_GPT2 */
248 v = __raw_readl(CM_CLKSEL2_CORE) | 0x4 | 0x2; 248 v = __raw_readl(CM_CLKSEL2_CORE) | 0x4 | 0x2;
249 __raw_writel(v, CM_CLKSEL2_CORE); 249 __raw_writel(v, CM_CLKSEL2_CORE);
250 __raw_writel(0x1, CM_CLKSEL_WKUP); 250 __raw_writel(0x1, CM_CLKSEL_WKUP);
251 251
252 #ifdef CFG_NS16550 252 #ifdef CFG_NS16550
253 /* Enable UART1 clock */ 253 /* Enable UART1 clock */
254 func_clks |= BIT21; 254 func_clks |= BIT21;
255 if_clks |= BIT21; 255 if_clks |= BIT21;
256 #endif 256 #endif
257 /* Interface clocks on */ 257 /* Interface clocks on */
258 v = __raw_readl(CM_ICLKEN1_CORE) | if_clks; 258 v = __raw_readl(CM_ICLKEN1_CORE) | if_clks;
259 __raw_writel(v, CM_ICLKEN1_CORE); 259 __raw_writel(v, CM_ICLKEN1_CORE);
260 /* Functional Clocks on */ 260 /* Functional Clocks on */
261 v = __raw_readl(CM_FCLKEN1_CORE) | func_clks; 261 v = __raw_readl(CM_FCLKEN1_CORE) | func_clks;
262 __raw_writel(v, CM_FCLKEN1_CORE); 262 __raw_writel(v, CM_FCLKEN1_CORE);
263 delay(1000); 263 delay(1000);
264 264
265 #ifndef KERNEL_UPDATED 265 #ifndef KERNEL_UPDATED
266 { 266 {
267 #define V1 0xffffffff 267 #define V1 0xffffffff
268 #define V2 0x00000007 268 #define V2 0x00000007
269 269
270 __raw_writel(V1, CM_FCLKEN1_CORE); 270 __raw_writel(V1, CM_FCLKEN1_CORE);
271 __raw_writel(V2, CM_FCLKEN2_CORE); 271 __raw_writel(V2, CM_FCLKEN2_CORE);
272 __raw_writel(V1, CM_ICLKEN1_CORE); 272 __raw_writel(V1, CM_ICLKEN1_CORE);
273 __raw_writel(V1, CM_ICLKEN2_CORE); 273 __raw_writel(V1, CM_ICLKEN2_CORE);
274 } 274 }
275 #endif 275 #endif
276 } 276 }
277 277
278 /**************************************** 278 /****************************************
279 * Routine: muxSetupUsb0 (ostboot) 279 * Routine: muxSetupUsb0 (ostboot)
280 * Description: Setup usb muxing 280 * Description: Setup usb muxing
281 *****************************************/ 281 *****************************************/
282 void muxSetupUsb0(void) 282 void muxSetupUsb0(void)
283 { 283 {
284 mask_config_reg(CONTROL_PADCONF_USB0_PUEN, 0x1f); 284 mask_config_reg(CONTROL_PADCONF_USB0_PUEN, 0x1f);
285 mask_config_reg(CONTROL_PADCONF_USB0_VP, 0x1f); 285 mask_config_reg(CONTROL_PADCONF_USB0_VP, 0x1f);
286 mask_config_reg(CONTROL_PADCONF_USB0_VM, 0x1f); 286 mask_config_reg(CONTROL_PADCONF_USB0_VM, 0x1f);
287 mask_config_reg(CONTROL_PADCONF_USB0_RCV, 0x1f); 287 mask_config_reg(CONTROL_PADCONF_USB0_RCV, 0x1f);
288 mask_config_reg(CONTROL_PADCONF_USB0_TXEN, 0x1f); 288 mask_config_reg(CONTROL_PADCONF_USB0_TXEN, 0x1f);
289 mask_config_reg(CONTROL_PADCONF_USB0_SE0, 0x1f); 289 mask_config_reg(CONTROL_PADCONF_USB0_SE0, 0x1f);
290 mask_config_reg(CONTROL_PADCONF_USB0_DAT, 0x1f); 290 mask_config_reg(CONTROL_PADCONF_USB0_DAT, 0x1f);
291 } 291 }
292 292
293 /**************************************** 293 /****************************************
294 * Routine: muxSetupUSBHost (ostboot) 294 * Routine: muxSetupUSBHost (ostboot)
295 * Description: Setup USB Host muxing 295 * Description: Setup USB Host muxing
296 *****************************************/ 296 *****************************************/
297 void muxSetupUsbHost(void) 297 void muxSetupUsbHost(void)
298 { 298 {
299 /* V19 */ 299 /* V19 */
300 write_config_reg(CONTROL_PADCONF_USB1_RCV, 1); 300 write_config_reg(CONTROL_PADCONF_USB1_RCV, 1);
301 /* W20 */ 301 /* W20 */
302 write_config_reg(CONTROL_PADCONF_USB1_TXEN, 1); 302 write_config_reg(CONTROL_PADCONF_USB1_TXEN, 1);
303 /* N14 */ 303 /* N14 */
304 write_config_reg(CONTROL_PADCONF_GPIO69, 3); 304 write_config_reg(CONTROL_PADCONF_GPIO69, 3);
305 /* P15 */ 305 /* P15 */
306 write_config_reg(CONTROL_PADCONF_GPIO70, 3); 306 write_config_reg(CONTROL_PADCONF_GPIO70, 3);
307 /* L18 */ 307 /* L18 */
308 write_config_reg(CONTROL_PADCONF_GPIO102, 3); 308 write_config_reg(CONTROL_PADCONF_GPIO102, 3);
309 /* L19 */ 309 /* L19 */
310 write_config_reg(CONTROL_PADCONF_GPIO103, 3); 310 write_config_reg(CONTROL_PADCONF_GPIO103, 3);
311 /* K15 */ 311 /* K15 */
312 write_config_reg(CONTROL_PADCONF_GPIO104, 3); 312 write_config_reg(CONTROL_PADCONF_GPIO104, 3);
313 /* K14 */ 313 /* K14 */
314 write_config_reg(CONTROL_PADCONF_GPIO105, 3); 314 write_config_reg(CONTROL_PADCONF_GPIO105, 3);
315 } 315 }
316 316
317 /**************************************** 317 /****************************************
318 * Routine: muxSetupUART1 (ostboot) 318 * Routine: muxSetupUART1 (ostboot)
319 * Description: Set up uart1 muxing 319 * Description: Set up uart1 muxing
320 *****************************************/ 320 *****************************************/
321 void muxSetupUART1(void) 321 void muxSetupUART1(void)
322 { 322 {
323 /* UART1_CTS pin configuration, PIN = D21, Mode = 0, PUPD=Disabled */ 323 /* UART1_CTS pin configuration, PIN = D21, Mode = 0, PUPD=Disabled */
324 write_config_reg(CONTROL_PADCONF_UART1_CTS, 0); 324 write_config_reg(CONTROL_PADCONF_UART1_CTS, 0);
325 /* UART1_RTS pin configuration, PIN = H21, Mode = 0, PUPD=Disabled */ 325 /* UART1_RTS pin configuration, PIN = H21, Mode = 0, PUPD=Disabled */
326 write_config_reg(CONTROL_PADCONF_UART1_RTS, 0); 326 write_config_reg(CONTROL_PADCONF_UART1_RTS, 0);
327 /* UART1_TX pin configuration, PIN = L20, Mode = 0, PUPD=Disabled */ 327 /* UART1_TX pin configuration, PIN = L20, Mode = 0, PUPD=Disabled */
328 write_config_reg(CONTROL_PADCONF_UART1_TX, 0); 328 write_config_reg(CONTROL_PADCONF_UART1_TX, 0);
329 /* UART1_RX pin configuration, PIN = T21, Mode = 0, PUPD=Disabled */ 329 /* UART1_RX pin configuration, PIN = T21, Mode = 0, PUPD=Disabled */
330 write_config_reg(CONTROL_PADCONF_UART1_RX, 0); 330 write_config_reg(CONTROL_PADCONF_UART1_RX, 0);
331 } 331 }
332 332
333 /**************************************** 333 /****************************************
334 * Routine: muxSetupLCD (ostboot) 334 * Routine: muxSetupLCD (ostboot)
335 * Description: Setup lcd muxing 335 * Description: Setup lcd muxing
336 *****************************************/ 336 *****************************************/
337 void muxSetupLCD(void) 337 void muxSetupLCD(void)
338 { 338 {
339 /* LCD_D0 pin configuration, PIN = Y7, Mode = 0, PUPD=Disabled */ 339 /* LCD_D0 pin configuration, PIN = Y7, Mode = 0, PUPD=Disabled */
340 write_config_reg(CONTROL_PADCONF_DSS_D0, 0); 340 write_config_reg(CONTROL_PADCONF_DSS_D0, 0);
341 /* LCD_D1 pin configuration, PIN = P10 , Mode = 0, PUPD=Disabled */ 341 /* LCD_D1 pin configuration, PIN = P10 , Mode = 0, PUPD=Disabled */
342 write_config_reg(CONTROL_PADCONF_DSS_D1, 0); 342 write_config_reg(CONTROL_PADCONF_DSS_D1, 0);
343 /* LCD_D2 pin configuration, PIN = V8, Mode = 0, PUPD=Disabled */ 343 /* LCD_D2 pin configuration, PIN = V8, Mode = 0, PUPD=Disabled */
344 write_config_reg(CONTROL_PADCONF_DSS_D2, 0); 344 write_config_reg(CONTROL_PADCONF_DSS_D2, 0);
345 /* LCD_D3 pin configuration, PIN = Y8, Mode = 0, PUPD=Disabled */ 345 /* LCD_D3 pin configuration, PIN = Y8, Mode = 0, PUPD=Disabled */
346 write_config_reg(CONTROL_PADCONF_DSS_D3, 0); 346 write_config_reg(CONTROL_PADCONF_DSS_D3, 0);
347 /* LCD_D4 pin configuration, PIN = W8, Mode = 0, PUPD=Disabled */ 347 /* LCD_D4 pin configuration, PIN = W8, Mode = 0, PUPD=Disabled */
348 write_config_reg(CONTROL_PADCONF_DSS_D4, 0); 348 write_config_reg(CONTROL_PADCONF_DSS_D4, 0);
349 /* LCD_D5 pin configuration, PIN = R10, Mode = 0, PUPD=Disabled */ 349 /* LCD_D5 pin configuration, PIN = R10, Mode = 0, PUPD=Disabled */
350 write_config_reg(CONTROL_PADCONF_DSS_D5, 0); 350 write_config_reg(CONTROL_PADCONF_DSS_D5, 0);
351 /* LCD_D6 pin configuration, PIN = Y9, Mode = 0, PUPD=Disabled */ 351 /* LCD_D6 pin configuration, PIN = Y9, Mode = 0, PUPD=Disabled */
352 write_config_reg(CONTROL_PADCONF_DSS_D6, 0); 352 write_config_reg(CONTROL_PADCONF_DSS_D6, 0);
353 /* LCD_D7 pin configuration, PIN = V9, Mode = 0, PUPD=Disabled */ 353 /* LCD_D7 pin configuration, PIN = V9, Mode = 0, PUPD=Disabled */
354 write_config_reg(CONTROL_PADCONF_DSS_D7, 0); 354 write_config_reg(CONTROL_PADCONF_DSS_D7, 0);
355 /* LCD_D8 pin configuration, PIN = W9, Mode = 0, PUPD=Disabled */ 355 /* LCD_D8 pin configuration, PIN = W9, Mode = 0, PUPD=Disabled */
356 write_config_reg(CONTROL_PADCONF_DSS_D8, 0); 356 write_config_reg(CONTROL_PADCONF_DSS_D8, 0);
357 /* LCD_D9 pin configuration, PIN = P11, Mode = 0, PUPD=Disabled */ 357 /* LCD_D9 pin configuration, PIN = P11, Mode = 0, PUPD=Disabled */
358 write_config_reg(CONTROL_PADCONF_DSS_D9, 0); 358 write_config_reg(CONTROL_PADCONF_DSS_D9, 0);
359 /* LCD_D10 pin configuration, PIN = V10, Mode = 0, PUPD=Disabled */ 359 /* LCD_D10 pin configuration, PIN = V10, Mode = 0, PUPD=Disabled */
360 write_config_reg(CONTROL_PADCONF_DSS_D10, 0); 360 write_config_reg(CONTROL_PADCONF_DSS_D10, 0);
361 /* LCD_D11 pin configuration, PIN = Y10, Mode = 0, PUPD=Disabled */ 361 /* LCD_D11 pin configuration, PIN = Y10, Mode = 0, PUPD=Disabled */
362 write_config_reg(CONTROL_PADCONF_DSS_D11, 0); 362 write_config_reg(CONTROL_PADCONF_DSS_D11, 0);
363 /* LCD_D12 pin configuration, PIN = W10, Mode = 0, PUPD=Disabled */ 363 /* LCD_D12 pin configuration, PIN = W10, Mode = 0, PUPD=Disabled */
364 write_config_reg(CONTROL_PADCONF_DSS_D12, 0); 364 write_config_reg(CONTROL_PADCONF_DSS_D12, 0);
365 /* LCD_D13 pin configuration, PIN = R11, Mode = 0, PUPD=Disabled */ 365 /* LCD_D13 pin configuration, PIN = R11, Mode = 0, PUPD=Disabled */
366 write_config_reg(CONTROL_PADCONF_DSS_D13, 0); 366 write_config_reg(CONTROL_PADCONF_DSS_D13, 0);
367 /* LCD_D14 pin configuration, PIN = V11, Mode = 0, PUPD=Disabled */ 367 /* LCD_D14 pin configuration, PIN = V11, Mode = 0, PUPD=Disabled */
368 write_config_reg(CONTROL_PADCONF_DSS_D14, 0); 368 write_config_reg(CONTROL_PADCONF_DSS_D14, 0);
369 /* LCD_D15 pin configuration, PIN = W11, Mode = 0, PUPD=Disabled */ 369 /* LCD_D15 pin configuration, PIN = W11, Mode = 0, PUPD=Disabled */
370 write_config_reg(CONTROL_PADCONF_DSS_D15, 0); 370 write_config_reg(CONTROL_PADCONF_DSS_D15, 0);
371 /* LCD_D16 pin configuration, PIN = P12, Mode = 0, PUPD=Disabled */ 371 /* LCD_D16 pin configuration, PIN = P12, Mode = 0, PUPD=Disabled */
372 write_config_reg(CONTROL_PADCONF_DSS_D16, 0); 372 write_config_reg(CONTROL_PADCONF_DSS_D16, 0);
373 /* LCD_D17 pin configuration, PIN = R12, Mode = 0, PUPD=Disabled */ 373 /* LCD_D17 pin configuration, PIN = R12, Mode = 0, PUPD=Disabled */
374 write_config_reg(CONTROL_PADCONF_DSS_D17, 0); 374 write_config_reg(CONTROL_PADCONF_DSS_D17, 0);
375 /* LCD_PCLK pin configuration, PIN = W6, Mode = 0, PUPD=Disabled */ 375 /* LCD_PCLK pin configuration, PIN = W6, Mode = 0, PUPD=Disabled */
376 write_config_reg(CONTROL_PADCONF_DSS_PCLK, 0); 376 write_config_reg(CONTROL_PADCONF_DSS_PCLK, 0);
377 /* LCD_VSYNC pin configuration, PIN = V7, Mode = 0, PUPD=Disabled */ 377 /* LCD_VSYNC pin configuration, PIN = V7, Mode = 0, PUPD=Disabled */
378 write_config_reg(CONTROL_PADCONF_DSS_VSYNC, 0); 378 write_config_reg(CONTROL_PADCONF_DSS_VSYNC, 0);
379 /* LCD_HSYNC pin configuration, PIN = Y6, Mode = 0, PUPD=Disabled */ 379 /* LCD_HSYNC pin configuration, PIN = Y6, Mode = 0, PUPD=Disabled */
380 write_config_reg(CONTROL_PADCONF_DSS_HSYNC, 0); 380 write_config_reg(CONTROL_PADCONF_DSS_HSYNC, 0);
381 /* LCD_ACBIAS pin configuration, PIN = W7, Mode = 0, PUPD=Disabled */ 381 /* LCD_ACBIAS pin configuration, PIN = W7, Mode = 0, PUPD=Disabled */
382 write_config_reg(CONTROL_PADCONF_DSS_ACBIAS, 0); 382 write_config_reg(CONTROL_PADCONF_DSS_ACBIAS, 0);
383 } 383 }
384 384
385 /**************************************** 385 /****************************************
386 * Routine: muxSetupMMCSD (ostboot) 386 * Routine: muxSetupMMCSD (ostboot)
387 * Description: set up MMC muxing 387 * Description: set up MMC muxing
388 *****************************************/ 388 *****************************************/
389 void muxSetupMMCSD(void) 389 void muxSetupMMCSD(void)
390 { 390 {
391 /* SDMMC_CLKI pin configuration, PIN = H15, Mode = 0, PUPD=Disabled */ 391 /* SDMMC_CLKI pin configuration, PIN = H15, Mode = 0, PUPD=Disabled */
392 write_config_reg(CONTROL_PADCONF_MMC_CLKI, 0); 392 write_config_reg(CONTROL_PADCONF_MMC_CLKI, 0);
393 /* SDMMC_CLKO pin configuration, PIN = G19, Mode = 0, PUPD=Disabled */ 393 /* SDMMC_CLKO pin configuration, PIN = G19, Mode = 0, PUPD=Disabled */
394 write_config_reg(CONTROL_PADCONF_MMC_CLKO, 0); 394 write_config_reg(CONTROL_PADCONF_MMC_CLKO, 0);
395 /* SDMMC_CMD pin configuration, PIN = H18, Mode = 0, PUPD=Disabled */ 395 /* SDMMC_CMD pin configuration, PIN = H18, Mode = 0, PUPD=Disabled */
396 write_config_reg(CONTROL_PADCONF_MMC_CMD, 0); 396 write_config_reg(CONTROL_PADCONF_MMC_CMD, 0);
397 /* SDMMC_DAT0 pin configuration, PIN = F20, Mode = 0, PUPD=Disabled */ 397 /* SDMMC_DAT0 pin configuration, PIN = F20, Mode = 0, PUPD=Disabled */
398 write_config_reg(CONTROL_PADCONF_MMC_DAT0, 0); 398 write_config_reg(CONTROL_PADCONF_MMC_DAT0, 0);
399 /* SDMMC_DAT1 pin configuration, PIN = H14, Mode = 0, PUPD=Disabled */ 399 /* SDMMC_DAT1 pin configuration, PIN = H14, Mode = 0, PUPD=Disabled */
400 write_config_reg(CONTROL_PADCONF_MMC_DAT1, 0); 400 write_config_reg(CONTROL_PADCONF_MMC_DAT1, 0);
401 /* SDMMC_DAT2 pin configuration, PIN = E19, Mode = 0, PUPD=Disabled */ 401 /* SDMMC_DAT2 pin configuration, PIN = E19, Mode = 0, PUPD=Disabled */
402 write_config_reg(CONTROL_PADCONF_MMC_DAT2, 0); 402 write_config_reg(CONTROL_PADCONF_MMC_DAT2, 0);
403 /* SDMMC_DAT3 pin configuration, PIN = D19, Mode = 0, PUPD=Disabled */ 403 /* SDMMC_DAT3 pin configuration, PIN = D19, Mode = 0, PUPD=Disabled */
404 write_config_reg(CONTROL_PADCONF_MMC_DAT3, 0); 404 write_config_reg(CONTROL_PADCONF_MMC_DAT3, 0);
405 /* SDMMC_DDIR0 pin configuration, PIN = F19, Mode = 0, PUPD=Disabled */ 405 /* SDMMC_DDIR0 pin configuration, PIN = F19, Mode = 0, PUPD=Disabled */
406 write_config_reg(CONTROL_PADCONF_MMC_DAT_DIR0, 0); 406 write_config_reg(CONTROL_PADCONF_MMC_DAT_DIR0, 0);
407 /* SDMMC_DDIR1 pin configuration, PIN = E20, Mode = 0, PUPD=Disabled */ 407 /* SDMMC_DDIR1 pin configuration, PIN = E20, Mode = 0, PUPD=Disabled */
408 write_config_reg(CONTROL_PADCONF_MMC_DAT_DIR1, 0); 408 write_config_reg(CONTROL_PADCONF_MMC_DAT_DIR1, 0);
409 /* SDMMC_DDIR2 pin configuration, PIN = F18, Mode = 0, PUPD=Disabled */ 409 /* SDMMC_DDIR2 pin configuration, PIN = F18, Mode = 0, PUPD=Disabled */
410 write_config_reg(CONTROL_PADCONF_MMC_DAT_DIR2, 0); 410 write_config_reg(CONTROL_PADCONF_MMC_DAT_DIR2, 0);
411 /* SDMMC_DDIR3 pin configuration, PIN = E18, Mode = 0, PUPD=Disabled */ 411 /* SDMMC_DDIR3 pin configuration, PIN = E18, Mode = 0, PUPD=Disabled */
412 write_config_reg(CONTROL_PADCONF_MMC_DAT_DIR3, 0); 412 write_config_reg(CONTROL_PADCONF_MMC_DAT_DIR3, 0);
413 /* SDMMC_CDIR pin configuration, PIN = G18, Mode = 0, PUPD=Disabled */ 413 /* SDMMC_CDIR pin configuration, PIN = G18, Mode = 0, PUPD=Disabled */
414 write_config_reg(CONTROL_PADCONF_MMC_CMD_DIR, 0); 414 write_config_reg(CONTROL_PADCONF_MMC_CMD_DIR, 0);
415 } 415 }
416 416
417 /****************************************** 417 /******************************************
418 * Routine: muxSetupTouchScreen (ostboot) 418 * Routine: muxSetupTouchScreen (ostboot)
419 * Description: Set up touch screen muxing 419 * Description: Set up touch screen muxing
420 *******************************************/ 420 *******************************************/
421 void muxSetupTouchScreen(void) 421 void muxSetupTouchScreen(void)
422 { 422 {
423 /* SPI1_CLK pin configuration, PIN = U18, Mode = 0, PUPD=Disabled */ 423 /* SPI1_CLK pin configuration, PIN = U18, Mode = 0, PUPD=Disabled */
424 write_config_reg(CONTROL_PADCONF_SPI1_CLK, 0); 424 write_config_reg(CONTROL_PADCONF_SPI1_CLK, 0);
425 /* SPI1_MOSI pin configuration, PIN = V20, Mode = 0, PUPD=Disabled */ 425 /* SPI1_MOSI pin configuration, PIN = V20, Mode = 0, PUPD=Disabled */
426 write_config_reg(CONTROL_PADCONF_SPI1_SIMO, 0); 426 write_config_reg(CONTROL_PADCONF_SPI1_SIMO, 0);
427 /* SPI1_MISO pin configuration, PIN = T18, Mode = 0, PUPD=Disabled */ 427 /* SPI1_MISO pin configuration, PIN = T18, Mode = 0, PUPD=Disabled */
428 write_config_reg(CONTROL_PADCONF_SPI1_SOMI, 0); 428 write_config_reg(CONTROL_PADCONF_SPI1_SOMI, 0);
429 /* SPI1_nCS0 pin configuration, PIN = U19, Mode = 0, PUPD=Disabled */ 429 /* SPI1_nCS0 pin configuration, PIN = U19, Mode = 0, PUPD=Disabled */
430 write_config_reg(CONTROL_PADCONF_SPI1_NCS0, 0); 430 write_config_reg(CONTROL_PADCONF_SPI1_NCS0, 0);
431 #define CONTROL_PADCONF_GPIO85 CONTROL_PADCONF_SPI1_NCS1 431 #define CONTROL_PADCONF_GPIO85 CONTROL_PADCONF_SPI1_NCS1
432 /* PEN_IRQ pin configuration, PIN = N15, Mode = 3, PUPD=Disabled */ 432 /* PEN_IRQ pin configuration, PIN = N15, Mode = 3, PUPD=Disabled */
433 write_config_reg(CONTROL_PADCONF_GPIO85, 3); 433 write_config_reg(CONTROL_PADCONF_GPIO85, 3);
434 } 434 }
435 435
436 /*************************************************************** 436 /***************************************************************
437 * Routine: muxSetupGPMC (ostboot) 437 * Routine: muxSetupGPMC (ostboot)
438 * Description: Configures balls which cam up in protected mode 438 * Description: Configures balls which cam up in protected mode
439 ***************************************************************/ 439 ***************************************************************/
440 void muxSetupGPMC(void) 440 void muxSetupGPMC(void)
441 { 441 {
442 /* gpmc_io_dir, MCR */ 442 /* gpmc_io_dir, MCR */
443 writel(0x4800008C, 0x19000000); 443 volatile unsigned int *MCR = (unsigned int *) 0x4800008C;
444 *MCR = 0x19000000;
444 445
445 /* NOR FLASH CS0 */ 446 /* NOR FLASH CS0 */
446 /* signal - Gpmc_clk; pin - J4; offset - 0x0088; mode 0; Byte-3 */ 447 /* signal - Gpmc_clk; pin - J4; offset - 0x0088; mode 0; Byte-3 */
447 write_config_reg(CONTROL_PADCONF_GPMC_D2_BYTE3, 0); 448 write_config_reg(CONTROL_PADCONF_GPMC_D2_BYTE3, 0);
448 /* MPDB(Multi Port Debug Port) CS1 */ 449 /* MPDB(Multi Port Debug Port) CS1 */
449 /* signal - gpmc_ncs1; pin - N8; offset - 0x008D; mode 0; Byte-1 */ 450 /* signal - gpmc_ncs1; pin - N8; offset - 0x008D; mode 0; Byte-1 */
450 write_config_reg(CONTROL_PADCONF_GPMC_NCS0_BYTE1, 0); 451 write_config_reg(CONTROL_PADCONF_GPMC_NCS0_BYTE1, 0);
451 /* signal - Gpmc_ncs2; pin - E2; offset - 0x008E; mode 0; Byte-2 */ 452 /* signal - Gpmc_ncs2; pin - E2; offset - 0x008E; mode 0; Byte-2 */
452 write_config_reg(CONTROL_PADCONF_GPMC_NCS0_BYTE2, 0); 453 write_config_reg(CONTROL_PADCONF_GPMC_NCS0_BYTE2, 0);
453 /* signal - Gpmc_ncs3; pin - N2; offset - 0x008F; mode 0; Byte-3 */ 454 /* signal - Gpmc_ncs3; pin - N2; offset - 0x008F; mode 0; Byte-3 */
454 write_config_reg(CONTROL_PADCONF_GPMC_NCS0_BYTE3, 0); 455 write_config_reg(CONTROL_PADCONF_GPMC_NCS0_BYTE3, 0);
455 /* signal - Gpmc_ncs4; pin - ??; offset - 0x0090; mode 0; Byte-4 */ 456 /* signal - Gpmc_ncs4; pin - ??; offset - 0x0090; mode 0; Byte-4 */
456 write_config_reg(CONTROL_PADCONF_GPMC_NCS0_BYTE4, 0); 457 write_config_reg(CONTROL_PADCONF_GPMC_NCS0_BYTE4, 0);
457 /* signal - Gpmc_ncs5; pin - ??; offset - 0x0091; mode 0; Byte-5 */ 458 /* signal - Gpmc_ncs5; pin - ??; offset - 0x0091; mode 0; Byte-5 */
458 write_config_reg(CONTROL_PADCONF_GPMC_NCS0_BYTE5, 0); 459 write_config_reg(CONTROL_PADCONF_GPMC_NCS0_BYTE5, 0);
459 /* signal - Gpmc_ncs6; pin - ??; offset - 0x0092; mode 0; Byte-6 */ 460 /* signal - Gpmc_ncs6; pin - ??; offset - 0x0092; mode 0; Byte-6 */
460 write_config_reg(CONTROL_PADCONF_GPMC_NCS0_BYTE6, 0); 461 write_config_reg(CONTROL_PADCONF_GPMC_NCS0_BYTE6, 0);
461 /* signal - Gpmc_ncs7; pin - ??; offset - 0x0093; mode 0; Byte-7 */ 462 /* signal - Gpmc_ncs7; pin - ??; offset - 0x0093; mode 0; Byte-7 */
462 write_config_reg(CONTROL_PADCONF_GPMC_NCS0_BYTE7, 0); 463 write_config_reg(CONTROL_PADCONF_GPMC_NCS0_BYTE7, 0);
463 } 464 }
464 465
465 /**************************************************************** 466 /****************************************************************
466 * Routine: muxSetupSDRC (ostboot) 467 * Routine: muxSetupSDRC (ostboot)
467 * Description: Configures balls which come up in protected mode 468 * Description: Configures balls which come up in protected mode
468 ****************************************************************/ 469 ****************************************************************/
469 void muxSetupSDRC(void) 470 void muxSetupSDRC(void)
470 { 471 {
471 /* It's set by IPL */ 472 /* It's set by IPL */
472 } 473 }
473 474
1 /* 1 /*
2 * armboot - Startup Code for OMP2420/ARM1136 CPU-core 2 * armboot - Startup Code for OMP2420/ARM1136 CPU-core
3 * 3 *
4 * Copyright (c) 2004 Texas Instruments <r-woodruff2@ti.com> 4 * Copyright (c) 2004 Texas Instruments <r-woodruff2@ti.com>
5 * 5 *
6 * Copyright (c) 2001 Marius Grรถger <mag@sysgo.de> 6 * Copyright (c) 2001 Marius Grรถger <mag@sysgo.de>
7 * Copyright (c) 2002 Alex Zรผpke <azu@sysgo.de> 7 * Copyright (c) 2002 Alex Zรผpke <azu@sysgo.de>
8 * Copyright (c) 2002 Gary Jennejohn <gj@denx.de> 8 * Copyright (c) 2002 Gary Jennejohn <gj@denx.de>
9 * Copyright (c) 2003 Richard Woodruff <r-woodruff2@ti.com> 9 * Copyright (c) 2003 Richard Woodruff <r-woodruff2@ti.com>
10 * Copyright (c) 2003 Kshitij <kshitij@ti.com> 10 * Copyright (c) 2003 Kshitij <kshitij@ti.com>
11 * 11 *
12 * See file CREDITS for list of people who contributed to this 12 * See file CREDITS for list of people who contributed to this
13 * project. 13 * project.
14 * 14 *
15 * This program is free software; you can redistribute it and/or 15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License as 16 * modify it under the terms of the GNU General Public License as
17 * published by the Free Software Foundation; either version 2 of 17 * published by the Free Software Foundation; either version 2 of
18 * the License, or (at your option) any later version. 18 * the License, or (at your option) any later version.
19 * 19 *
20 * This program is distributed in the hope that it will be useful, 20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of 21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details. 23 * GNU General Public License for more details.
24 * 24 *
25 * You should have received a copy of the GNU General Public License 25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software 26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 * MA 02111-1307 USA 28 * MA 02111-1307 USA
29 */ 29 */
30 30
31 #include <config.h> 31 #include <config.h>
32 #include <version.h> 32 #include <version.h>
33 #if !defined(CONFIG_INTEGRATOR) && ! defined(CONFIG_ARCH_CINTEGRATOR) 33 #if !defined(CONFIG_INTEGRATOR) && ! defined(CONFIG_ARCH_CINTEGRATOR)
34 #include <asm/arch/omap2420.h> 34 #include <asm/arch/omap2420.h>
35 #endif 35 #endif
36 .globl _start 36 .globl _start
37 _start: b reset 37 _start: b reset
38 #ifdef CONFIG_ONENAND_IPL
39 ldr pc, _hang
40 ldr pc, _hang
41 ldr pc, _hang
42 ldr pc, _hang
43 ldr pc, _hang
44 ldr pc, _hang
45 ldr pc, _hang
46
47 _hang:
48 .word do_hang
49 .word 0x12345678
50 .word 0x12345678
51 .word 0x12345678
52 .word 0x12345678
53 .word 0x12345678
54 .word 0x12345678
55 .word 0x12345678 /* now 16*4=64 */
56 #else
38 ldr pc, _undefined_instruction 57 ldr pc, _undefined_instruction
39 ldr pc, _software_interrupt 58 ldr pc, _software_interrupt
40 ldr pc, _prefetch_abort 59 ldr pc, _prefetch_abort
41 ldr pc, _data_abort 60 ldr pc, _data_abort
42 ldr pc, _not_used 61 ldr pc, _not_used
43 ldr pc, _irq 62 ldr pc, _irq
44 ldr pc, _fiq 63 ldr pc, _fiq
45 64
46 _undefined_instruction: .word undefined_instruction 65 _undefined_instruction: .word undefined_instruction
47 _software_interrupt: .word software_interrupt 66 _software_interrupt: .word software_interrupt
48 _prefetch_abort: .word prefetch_abort 67 _prefetch_abort: .word prefetch_abort
49 _data_abort: .word data_abort 68 _data_abort: .word data_abort
50 _not_used: .word not_used 69 _not_used: .word not_used
51 _irq: .word irq 70 _irq: .word irq
52 _fiq: .word fiq 71 _fiq: .word fiq
53 _pad: .word 0x12345678 /* now 16*4=64 */ 72 _pad: .word 0x12345678 /* now 16*4=64 */
73 #endif /* CONFIG_ONENAND_IPL */
54 .global _end_vect 74 .global _end_vect
55 _end_vect: 75 _end_vect:
56 76
57 .balignl 16,0xdeadbeef 77 .balignl 16,0xdeadbeef
58 /* 78 /*
59 ************************************************************************* 79 *************************************************************************
60 * 80 *
61 * Startup Code (reset vector) 81 * Startup Code (reset vector)
62 * 82 *
63 * do important init only if we don't start from memory! 83 * do important init only if we don't start from memory!
64 * setup Memory and board specific bits prior to relocation. 84 * setup Memory and board specific bits prior to relocation.
65 * relocate armboot to ram 85 * relocate armboot to ram
66 * setup stack 86 * setup stack
67 * 87 *
68 ************************************************************************* 88 *************************************************************************
69 */ 89 */
70 90
71 _TEXT_BASE: 91 _TEXT_BASE:
72 .word TEXT_BASE 92 .word TEXT_BASE
73 93
74 .globl _armboot_start 94 .globl _armboot_start
75 _armboot_start: 95 _armboot_start:
76 .word _start 96 .word _start
77 97
78 /* 98 /*
79 * These are defined in the board-specific linker script. 99 * These are defined in the board-specific linker script.
80 */ 100 */
81 .globl _bss_start 101 .globl _bss_start
82 _bss_start: 102 _bss_start:
83 .word __bss_start 103 .word __bss_start
84 104
85 .globl _bss_end 105 .globl _bss_end
86 _bss_end: 106 _bss_end:
87 .word _end 107 .word _end
88 108
89 #ifdef CONFIG_USE_IRQ 109 #ifdef CONFIG_USE_IRQ
90 /* IRQ stack memory (calculated at run-time) */ 110 /* IRQ stack memory (calculated at run-time) */
91 .globl IRQ_STACK_START 111 .globl IRQ_STACK_START
92 IRQ_STACK_START: 112 IRQ_STACK_START:
93 .word 0x0badc0de 113 .word 0x0badc0de
94 114
95 /* IRQ stack memory (calculated at run-time) */ 115 /* IRQ stack memory (calculated at run-time) */
96 .globl FIQ_STACK_START 116 .globl FIQ_STACK_START
97 FIQ_STACK_START: 117 FIQ_STACK_START:
98 .word 0x0badc0de 118 .word 0x0badc0de
99 #endif 119 #endif
100 120
101 /* 121 /*
102 * the actual reset code 122 * the actual reset code
103 */ 123 */
104 124
105 reset: 125 reset:
106 /* 126 /*
107 * set the cpu to SVC32 mode 127 * set the cpu to SVC32 mode
108 */ 128 */
109 mrs r0,cpsr 129 mrs r0,cpsr
110 bic r0,r0,#0x1f 130 bic r0,r0,#0x1f
111 orr r0,r0,#0xd3 131 orr r0,r0,#0xd3
112 msr cpsr,r0 132 msr cpsr,r0
113 133
114 #ifdef CONFIG_OMAP2420H4 134 #ifdef CONFIG_OMAP2420H4
115 /* Copy vectors to mask ROM indirect addr */ 135 /* Copy vectors to mask ROM indirect addr */
116 adr r0, _start /* r0 <- current position of code */ 136 adr r0, _start /* r0 <- current position of code */
117 add r0, r0, #4 /* skip reset vector */ 137 add r0, r0, #4 /* skip reset vector */
118 mov r2, #64 /* r2 <- size to copy */ 138 mov r2, #64 /* r2 <- size to copy */
119 add r2, r0, r2 /* r2 <- source end address */ 139 add r2, r0, r2 /* r2 <- source end address */
120 mov r1, #SRAM_OFFSET0 /* build vect addr */ 140 mov r1, #SRAM_OFFSET0 /* build vect addr */
121 mov r3, #SRAM_OFFSET1 141 mov r3, #SRAM_OFFSET1
122 add r1, r1, r3 142 add r1, r1, r3
123 mov r3, #SRAM_OFFSET2 143 mov r3, #SRAM_OFFSET2
124 add r1, r1, r3 144 add r1, r1, r3
125 next: 145 next:
126 ldmia r0!, {r3-r10} /* copy from source address [r0] */ 146 ldmia r0!, {r3-r10} /* copy from source address [r0] */
127 stmia r1!, {r3-r10} /* copy to target address [r1] */ 147 stmia r1!, {r3-r10} /* copy to target address [r1] */
128 cmp r0, r2 /* until source end address [r2] */ 148 cmp r0, r2 /* until source end address [r2] */
129 bne next /* loop until equal */ 149 bne next /* loop until equal */
130 bl cpy_clk_code /* put dpll adjust code behind vectors */ 150 bl cpy_clk_code /* put dpll adjust code behind vectors */
131 #endif 151 #endif
132 /* the mask ROM code should have PLL and others stable */ 152 /* the mask ROM code should have PLL and others stable */
133 #ifndef CONFIG_SKIP_LOWLEVEL_INIT 153 #ifndef CONFIG_SKIP_LOWLEVEL_INIT
134 bl cpu_init_crit 154 bl cpu_init_crit
135 #endif 155 #endif
136 156
137 #ifndef CONFIG_SKIP_RELOCATE_UBOOT 157 #ifndef CONFIG_SKIP_RELOCATE_UBOOT
138 relocate: /* relocate U-Boot to RAM */ 158 relocate: /* relocate U-Boot to RAM */
139 adr r0, _start /* r0 <- current position of code */ 159 adr r0, _start /* r0 <- current position of code */
140 ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ 160 ldr r1, _TEXT_BASE /* test if we run from flash or RAM */
141 cmp r0, r1 /* don't reloc during debug */ 161 cmp r0, r1 /* don't reloc during debug */
162 #ifndef CONFIG_ONENAND_IPL
142 beq stack_setup 163 beq stack_setup
164 #endif /* CONFIG_ONENAND_IPL */
143 165
144 ldr r2, _armboot_start 166 ldr r2, _armboot_start
145 ldr r3, _bss_start 167 ldr r3, _bss_start
146 sub r2, r3, r2 /* r2 <- size of armboot */ 168 sub r2, r3, r2 /* r2 <- size of armboot */
147 add r2, r0, r2 /* r2 <- source end address */ 169 add r2, r0, r2 /* r2 <- source end address */
148 170
149 copy_loop: 171 copy_loop:
150 ldmia r0!, {r3-r10} /* copy from source address [r0] */ 172 ldmia r0!, {r3-r10} /* copy from source address [r0] */
151 stmia r1!, {r3-r10} /* copy to target address [r1] */ 173 stmia r1!, {r3-r10} /* copy to target address [r1] */
152 cmp r0, r2 /* until source end addreee [r2] */ 174 cmp r0, r2 /* until source end addreee [r2] */
153 ble copy_loop 175 ble copy_loop
154 #endif /* CONFIG_SKIP_RELOCATE_UBOOT */ 176 #endif /* CONFIG_SKIP_RELOCATE_UBOOT */
155 177
156 /* Set up the stack */ 178 /* Set up the stack */
157 stack_setup: 179 stack_setup:
158 ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */ 180 ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */
181 #ifdef CONFIG_ONENAND_IPL
182 sub sp, r0, #128 /* leave 32 words for abort-stack */
183 #else
159 sub r0, r0, #CFG_MALLOC_LEN /* malloc area */ 184 sub r0, r0, #CFG_MALLOC_LEN /* malloc area */
160 sub r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo */ 185 sub r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo */
161 #ifdef CONFIG_USE_IRQ 186 #ifdef CONFIG_USE_IRQ
162 sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ) 187 sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
163 #endif 188 #endif
164 sub sp, r0, #12 /* leave 3 words for abort-stack */ 189 sub sp, r0, #12 /* leave 3 words for abort-stack */
190 #endif /* CONFIG_ONENAND_IPL */
165 191
166 clear_bss: 192 clear_bss:
167 ldr r0, _bss_start /* find start of bss segment */ 193 ldr r0, _bss_start /* find start of bss segment */
168 ldr r1, _bss_end /* stop here */ 194 ldr r1, _bss_end /* stop here */
169 mov r2, #0x00000000 /* clear */ 195 mov r2, #0x00000000 /* clear */
170 196
197 #ifndef CONFIG_ONENAND_IPL
171 clbss_l:str r2, [r0] /* clear loop... */ 198 clbss_l:str r2, [r0] /* clear loop... */
172 add r0, r0, #4 199 add r0, r0, #4
173 cmp r0, r1 200 cmp r0, r1
174 bne clbss_l 201 bne clbss_l
202 #endif
175 203
176 ldr pc, _start_armboot 204 ldr pc, _start_armboot
177 205
206 #ifdef CONFIG_ONENAND_IPL
207 _start_armboot: .word start_oneboot
208 #else
178 _start_armboot: .word start_armboot 209 _start_armboot: .word start_armboot
210 #endif
179 211
180 212
181 /* 213 /*
182 ************************************************************************* 214 *************************************************************************
183 * 215 *
184 * CPU_init_critical registers 216 * CPU_init_critical registers
185 * 217 *
186 * setup important registers 218 * setup important registers
187 * setup memory timing 219 * setup memory timing
188 * 220 *
189 ************************************************************************* 221 *************************************************************************
190 */ 222 */
191 cpu_init_crit: 223 cpu_init_crit:
192 /* 224 /*
193 * flush v4 I/D caches 225 * flush v4 I/D caches
194 */ 226 */
195 mov r0, #0 227 mov r0, #0
196 mcr p15, 0, r0, c7, c7, 0 /* flush v3/v4 cache */ 228 mcr p15, 0, r0, c7, c7, 0 /* flush v3/v4 cache */
197 mcr p15, 0, r0, c8, c7, 0 /* flush v4 TLB */ 229 mcr p15, 0, r0, c8, c7, 0 /* flush v4 TLB */
198 230
199 /* 231 /*
200 * disable MMU stuff and caches 232 * disable MMU stuff and caches
201 */ 233 */
202 mrc p15, 0, r0, c1, c0, 0 234 mrc p15, 0, r0, c1, c0, 0
203 bic r0, r0, #0x00002300 @ clear bits 13, 9:8 (--V- --RS) 235 bic r0, r0, #0x00002300 @ clear bits 13, 9:8 (--V- --RS)
204 bic r0, r0, #0x00000087 @ clear bits 7, 2:0 (B--- -CAM) 236 bic r0, r0, #0x00000087 @ clear bits 7, 2:0 (B--- -CAM)
205 orr r0, r0, #0x00000002 @ set bit 2 (A) Align 237 orr r0, r0, #0x00000002 @ set bit 2 (A) Align
206 orr r0, r0, #0x00001000 @ set bit 12 (I) I-Cache 238 orr r0, r0, #0x00001000 @ set bit 12 (I) I-Cache
207 mcr p15, 0, r0, c1, c0, 0 239 mcr p15, 0, r0, c1, c0, 0
208 240
209 /* 241 /*
210 * Jump to board specific initialization... The Mask ROM will have already initialized 242 * Jump to board specific initialization... The Mask ROM will have already initialized
211 * basic memory. Go here to bump up clock rate and handle wake up conditions. 243 * basic memory. Go here to bump up clock rate and handle wake up conditions.
212 */ 244 */
213 mov ip, lr /* persevere link reg across call */ 245 mov ip, lr /* persevere link reg across call */
214 bl lowlevel_init /* go setup pll,mux,memory */ 246 bl lowlevel_init /* go setup pll,mux,memory */
215 mov lr, ip /* restore link */ 247 mov lr, ip /* restore link */
216 mov pc, lr /* back to my caller */ 248 mov pc, lr /* back to my caller */
249
250 #ifndef CONFIG_ONENAND_IPL
217 /* 251 /*
218 ************************************************************************* 252 *************************************************************************
219 * 253 *
220 * Interrupt handling 254 * Interrupt handling
221 * 255 *
222 ************************************************************************* 256 *************************************************************************
223 */ 257 */
224 @ 258 @
225 @ IRQ stack frame. 259 @ IRQ stack frame.
226 @ 260 @
227 #define S_FRAME_SIZE 72 261 #define S_FRAME_SIZE 72
228 262
229 #define S_OLD_R0 68 263 #define S_OLD_R0 68
230 #define S_PSR 64 264 #define S_PSR 64
231 #define S_PC 60 265 #define S_PC 60
232 #define S_LR 56 266 #define S_LR 56
233 #define S_SP 52 267 #define S_SP 52
234 268
235 #define S_IP 48 269 #define S_IP 48
236 #define S_FP 44 270 #define S_FP 44
237 #define S_R10 40 271 #define S_R10 40
238 #define S_R9 36 272 #define S_R9 36
239 #define S_R8 32 273 #define S_R8 32
240 #define S_R7 28 274 #define S_R7 28
241 #define S_R6 24 275 #define S_R6 24
242 #define S_R5 20 276 #define S_R5 20
243 #define S_R4 16 277 #define S_R4 16
244 #define S_R3 12 278 #define S_R3 12
245 #define S_R2 8 279 #define S_R2 8
246 #define S_R1 4 280 #define S_R1 4
247 #define S_R0 0 281 #define S_R0 0
248 282
249 #define MODE_SVC 0x13 283 #define MODE_SVC 0x13
250 #define I_BIT 0x80 284 #define I_BIT 0x80
251 285
252 /* 286 /*
253 * use bad_save_user_regs for abort/prefetch/undef/swi ... 287 * use bad_save_user_regs for abort/prefetch/undef/swi ...
254 * use irq_save_user_regs / irq_restore_user_regs for IRQ/FIQ handling 288 * use irq_save_user_regs / irq_restore_user_regs for IRQ/FIQ handling
255 */ 289 */
256 290
257 .macro bad_save_user_regs 291 .macro bad_save_user_regs
258 sub sp, sp, #S_FRAME_SIZE @ carve out a frame on current user stack 292 sub sp, sp, #S_FRAME_SIZE @ carve out a frame on current user stack
259 stmia sp, {r0 - r12} @ Save user registers (now in svc mode) r0-r12 293 stmia sp, {r0 - r12} @ Save user registers (now in svc mode) r0-r12
260 294
261 ldr r2, _armboot_start 295 ldr r2, _armboot_start
262 sub r2, r2, #(CFG_MALLOC_LEN) 296 sub r2, r2, #(CFG_MALLOC_LEN)
263 sub r2, r2, #(CFG_GBL_DATA_SIZE+8) @ set base 2 words into abort stack 297 sub r2, r2, #(CFG_GBL_DATA_SIZE+8) @ set base 2 words into abort stack
264 ldmia r2, {r2 - r3} @ get values for "aborted" pc and cpsr (into parm regs) 298 ldmia r2, {r2 - r3} @ get values for "aborted" pc and cpsr (into parm regs)
265 add r0, sp, #S_FRAME_SIZE @ grab pointer to old stack 299 add r0, sp, #S_FRAME_SIZE @ grab pointer to old stack
266 300
267 add r5, sp, #S_SP 301 add r5, sp, #S_SP
268 mov r1, lr 302 mov r1, lr
269 stmia r5, {r0 - r3} @ save sp_SVC, lr_SVC, pc, cpsr 303 stmia r5, {r0 - r3} @ save sp_SVC, lr_SVC, pc, cpsr
270 mov r0, sp @ save current stack into r0 (param register) 304 mov r0, sp @ save current stack into r0 (param register)
271 .endm 305 .endm
272 306
273 .macro irq_save_user_regs 307 .macro irq_save_user_regs
274 sub sp, sp, #S_FRAME_SIZE 308 sub sp, sp, #S_FRAME_SIZE
275 stmia sp, {r0 - r12} @ Calling r0-r12 309 stmia sp, {r0 - r12} @ Calling r0-r12
276 add r8, sp, #S_PC @ !!!! R8 NEEDS to be saved !!!! a reserved stack spot would be good. 310 add r8, sp, #S_PC @ !!!! R8 NEEDS to be saved !!!! a reserved stack spot would be good.
277 stmdb r8, {sp, lr}^ @ Calling SP, LR 311 stmdb r8, {sp, lr}^ @ Calling SP, LR
278 str lr, [r8, #0] @ Save calling PC 312 str lr, [r8, #0] @ Save calling PC
279 mrs r6, spsr 313 mrs r6, spsr
280 str r6, [r8, #4] @ Save CPSR 314 str r6, [r8, #4] @ Save CPSR
281 str r0, [r8, #8] @ Save OLD_R0 315 str r0, [r8, #8] @ Save OLD_R0
282 mov r0, sp 316 mov r0, sp
283 .endm 317 .endm
284 318
285 .macro irq_restore_user_regs 319 .macro irq_restore_user_regs
286 ldmia sp, {r0 - lr}^ @ Calling r0 - lr 320 ldmia sp, {r0 - lr}^ @ Calling r0 - lr
287 mov r0, r0 321 mov r0, r0
288 ldr lr, [sp, #S_PC] @ Get PC 322 ldr lr, [sp, #S_PC] @ Get PC
289 add sp, sp, #S_FRAME_SIZE 323 add sp, sp, #S_FRAME_SIZE
290 subs pc, lr, #4 @ return & move spsr_svc into cpsr 324 subs pc, lr, #4 @ return & move spsr_svc into cpsr
291 .endm 325 .endm
292 326
293 .macro get_bad_stack 327 .macro get_bad_stack
294 ldr r13, _armboot_start @ setup our mode stack (enter in banked mode) 328 ldr r13, _armboot_start @ setup our mode stack (enter in banked mode)
295 sub r13, r13, #(CFG_MALLOC_LEN) @ move past malloc pool 329 sub r13, r13, #(CFG_MALLOC_LEN) @ move past malloc pool
296 sub r13, r13, #(CFG_GBL_DATA_SIZE+8) @ move to reserved a couple spots for abort stack 330 sub r13, r13, #(CFG_GBL_DATA_SIZE+8) @ move to reserved a couple spots for abort stack
297 331
298 str lr, [r13] @ save caller lr in position 0 of saved stack 332 str lr, [r13] @ save caller lr in position 0 of saved stack
299 mrs lr, spsr @ get the spsr 333 mrs lr, spsr @ get the spsr
300 str lr, [r13, #4] @ save spsr in position 1 of saved stack 334 str lr, [r13, #4] @ save spsr in position 1 of saved stack
301 335
302 mov r13, #MODE_SVC @ prepare SVC-Mode 336 mov r13, #MODE_SVC @ prepare SVC-Mode
303 @ msr spsr_c, r13 337 @ msr spsr_c, r13
304 msr spsr, r13 @ switch modes, make sure moves will execute 338 msr spsr, r13 @ switch modes, make sure moves will execute
305 mov lr, pc @ capture return pc 339 mov lr, pc @ capture return pc
306 movs pc, lr @ jump to next instruction & switch modes. 340 movs pc, lr @ jump to next instruction & switch modes.
307 .endm 341 .endm
308 342
309 .macro get_bad_stack_swi 343 .macro get_bad_stack_swi
310 sub r13, r13, #4 @ space on current stack for scratch reg. 344 sub r13, r13, #4 @ space on current stack for scratch reg.
311 str r0, [r13] @ save R0's value. 345 str r0, [r13] @ save R0's value.
312 ldr r0, _armboot_start @ get data regions start 346 ldr r0, _armboot_start @ get data regions start
313 sub r0, r0, #(CFG_MALLOC_LEN) @ move past malloc pool 347 sub r0, r0, #(CFG_MALLOC_LEN) @ move past malloc pool
314 sub r0, r0, #(CFG_GBL_DATA_SIZE+8) @ move past gbl and a couple spots for abort stack 348 sub r0, r0, #(CFG_GBL_DATA_SIZE+8) @ move past gbl and a couple spots for abort stack
315 str lr, [r0] @ save caller lr in position 0 of saved stack 349 str lr, [r0] @ save caller lr in position 0 of saved stack
316 mrs r0, spsr @ get the spsr 350 mrs r0, spsr @ get the spsr
317 str lr, [r0, #4] @ save spsr in position 1 of saved stack 351 str lr, [r0, #4] @ save spsr in position 1 of saved stack
318 ldr r0, [r13] @ restore r0 352 ldr r0, [r13] @ restore r0
319 add r13, r13, #4 @ pop stack entry 353 add r13, r13, #4 @ pop stack entry
320 .endm 354 .endm
321 355
322 .macro get_irq_stack @ setup IRQ stack 356 .macro get_irq_stack @ setup IRQ stack
323 ldr sp, IRQ_STACK_START 357 ldr sp, IRQ_STACK_START
324 .endm 358 .endm
325 359
326 .macro get_fiq_stack @ setup FIQ stack 360 .macro get_fiq_stack @ setup FIQ stack
327 ldr sp, FIQ_STACK_START 361 ldr sp, FIQ_STACK_START
328 .endm 362 .endm
363 #endif /* CONFIG_ONENAND_IPL */
329 364
330 /* 365 /*
331 * exception handlers 366 * exception handlers
332 */ 367 */
368 #ifdef CONFIG_ONENAND_IPL
333 .align 5 369 .align 5
370 do_hang:
371 ldr sp, _TEXT_BASE /* use 32 words about stack */
372 bl hang /* hang and never return */
373 #else /* !CONFIG_ONENAND IPL */
374 .align 5
334 undefined_instruction: 375 undefined_instruction:
335 get_bad_stack 376 get_bad_stack
336 bad_save_user_regs 377 bad_save_user_regs
337 bl do_undefined_instruction 378 bl do_undefined_instruction
338 379
339 .align 5 380 .align 5
340 software_interrupt: 381 software_interrupt:
341 get_bad_stack_swi 382 get_bad_stack_swi
342 bad_save_user_regs 383 bad_save_user_regs
343 bl do_software_interrupt 384 bl do_software_interrupt
344 385
345 .align 5 386 .align 5
346 prefetch_abort: 387 prefetch_abort:
347 get_bad_stack 388 get_bad_stack
348 bad_save_user_regs 389 bad_save_user_regs
349 bl do_prefetch_abort 390 bl do_prefetch_abort
350 391
351 .align 5 392 .align 5
352 data_abort: 393 data_abort:
353 get_bad_stack 394 get_bad_stack
354 bad_save_user_regs 395 bad_save_user_regs
355 bl do_data_abort 396 bl do_data_abort
356 397
357 .align 5 398 .align 5
358 not_used: 399 not_used:
359 get_bad_stack 400 get_bad_stack
360 bad_save_user_regs 401 bad_save_user_regs
361 bl do_not_used 402 bl do_not_used
362 403
363 #ifdef CONFIG_USE_IRQ 404 #ifdef CONFIG_USE_IRQ
364 405
365 .align 5 406 .align 5
366 irq: 407 irq:
367 get_irq_stack 408 get_irq_stack
368 irq_save_user_regs 409 irq_save_user_regs
369 bl do_irq 410 bl do_irq
370 irq_restore_user_regs 411 irq_restore_user_regs
371 412
372 .align 5 413 .align 5
373 fiq: 414 fiq:
374 get_fiq_stack 415 get_fiq_stack
375 /* someone ought to write a more effiction fiq_save_user_regs */ 416 /* someone ought to write a more effiction fiq_save_user_regs */
376 irq_save_user_regs 417 irq_save_user_regs
377 bl do_fiq 418 bl do_fiq
378 irq_restore_user_regs 419 irq_restore_user_regs
379 420
380 #else 421 #else
381 422
382 .align 5 423 .align 5
383 irq: 424 irq:
384 get_bad_stack 425 get_bad_stack
385 bad_save_user_regs 426 bad_save_user_regs
386 bl do_irq 427 bl do_irq
387 428
388 .align 5 429 .align 5
389 fiq: 430 fiq:
390 get_bad_stack 431 get_bad_stack
391 bad_save_user_regs 432 bad_save_user_regs
392 bl do_fiq 433 bl do_fiq
393 434
394 #endif 435 #endif
395 .align 5 436 .align 5
396 .global arm1136_cache_flush 437 .global arm1136_cache_flush
397 arm1136_cache_flush: 438 arm1136_cache_flush:
398 mcr p15, 0, r1, c7, c5, 0 @ invalidate I cache 439 mcr p15, 0, r1, c7, c5, 0 @ invalidate I cache
399 mov pc, lr @ back to caller 440 mov pc, lr @ back to caller
400 441
401 #if defined(CONFIG_INTEGRATOR) && defined(CONFIG_ARCH_CINTEGRATOR) 442 #if defined(CONFIG_INTEGRATOR) && defined(CONFIG_ARCH_CINTEGRATOR)
402 /* Use the IntegratorCP function from board/integratorcp/platform.S */ 443 /* Use the IntegratorCP function from board/integratorcp/platform.S */
403 #else 444 #else
404 445
405 .align 5 446 .align 5
406 .globl reset_cpu 447 .globl reset_cpu
407 reset_cpu: 448 reset_cpu:
408 ldr r1, rstctl /* get addr for global reset reg */ 449 ldr r1, rstctl /* get addr for global reset reg */
409 mov r3, #0x2 /* full reset pll+mpu */ 450 mov r3, #0x2 /* full reset pll+mpu */
410 str r3, [r1] /* force reset */ 451 str r3, [r1] /* force reset */
411 mov r0, r0 452 mov r0, r0
412 _loop_forever: 453 _loop_forever:
413 b _loop_forever 454 b _loop_forever
414 rstctl: 455 rstctl:
415 .word PM_RSTCTRL_WKUP 456 .word PM_RSTCTRL_WKUP
416 457
417 #endif 458 #endif
459 #endif /* CONFIG_ONENAND_IPL */
418 460
onenand_ipl/board/apollon/Makefile
File was created 1
2 include $(TOPDIR)/config.mk
3 include $(TOPDIR)/include/config.mk
4 include $(TOPDIR)/onenand_ipl/board/$(BOARDDIR)/config.mk
5
6 LDSCRIPT= $(TOPDIR)/onenand_ipl/board/$(BOARDDIR)/u-boot.onenand.lds
7 LDFLAGS = -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) $(PLATFORM_LDFLAGS)
8 AFLAGS += -DCONFIG_ONENAND_IPL
9 CFLAGS += -DCONFIG_ONENAND_IPL
10 OBJCLFAGS += --gap-fill=0x00
11
12 SOBJS = start.o low_levelinit.o # _memcpy32.o
13 COBJS = apollon.o onenand_read.o onenand_boot.o
14
15 SRCS := $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c))
16 OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
17 __OBJS := $(SOBJS) $(COBJS)
18 LNDIR := $(OBJTREE)/onenand_ipl/board/$(BOARDDIR)
19
20 onenandobj := $(OBJTREE)/onenand_ipl/
21
22 ALL = $(onenandobj)onenand-ipl $(onenandobj)onenand-ipl.bin $(onenandobj)onenand-ipl-2k.bin
23
24 all: $(obj).depend $(ALL)
25
26 $(onenandobj)onenand-ipl-2k.bin: $(onenandobj)onenand-ipl
27 $(OBJCOPY) ${OBJCFLAGS} --pad-to=0x800 -O binary $< $@
28
29 $(onenandobj)onenand-ipl.bin: $(onenandobj)onenand-ipl
30 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
31
32 $(onenandobj)onenand-ipl: $(OBJS)
33 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
34 -Map $(onenandobj)onenand-ipl.map \
35 -o $(onenandobj)onenand-ipl
36
37 # create symbolic links from common files
38
39 # from cpu directory
40 $(obj)start.S:
41 rm -f $(obj)start.S
42 ln -s $(SRCTREE)/cpu/$(CPU)/start.S $(obj)start.S
43
44 # from onenand_ipl directory
45 $(obj)onenand_ipl.h:
46 rm -f $(obj)onenand_ipl.h
47 ln -s $(SRCTREE)/onenand_ipl/onenand_ipl.h $(obj)onenand_ipl.h
48
49 $(obj)onenand_boot.c: $(obj)onenand_ipl.h
50 rm -f $(obj)onenand_boot.c
51 ln -s $(SRCTREE)/onenand_ipl/onenand_boot.c $(obj)onenand_boot.c
52
53 $(obj)onenand_read.c: $(obj)onenand_ipl.h
54 rm -f $(obj)onenand_read.c
55 ln -s $(SRCTREE)/onenand_ipl/onenand_read.c $(obj)onenand_read.c
56
57 $(obj)%.o: $(obj)%.S
58 $(CC) $(AFLAGS) -c -o $@ $<
59
60 $(obj)%.o: $(obj)$.c
61 $(CC) $(CFLAGS) -c -o $@ $<
62
63 include $(SRCTREE)/rules.mk
64
65 sinclude $(obj).depend
66
onenand_ipl/board/apollon/apollon.c
File was created 1 /*
2 * (C) Copyright 2005-2008 Samsung Electronics
3 * Kyungmin Park <kyungmin.park@samsung.com>
4 *
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA
22 */
23 #include <common.h>
24 #include <asm/arch/mux.h>
25
26 #define write_config_reg(reg, value) \
27 do { \
28 writeb(value, reg); \
29 } while (0)
30
31 /*****************************************
32 * Routine: board_init
33 * Description: Early hardware init.
34 *****************************************/
35 int board_init(void)
36 {
37 return 0;
38 }
39
40 #ifdef CFG_PRINTF
41 /* Pin Muxing registers used for UART1 */
42 /****************************************
43 * Routine: muxSetupUART1 (ostboot)
44 * Description: Set up uart1 muxing
45 *****************************************/
46 static void muxSetupUART1(void)
47 {
48 /* UART1_CTS pin configuration, PIN = D21 */
49 write_config_reg(CONTROL_PADCONF_UART1_CTS, 0);
50 /* UART1_RTS pin configuration, PIN = H21 */
51 write_config_reg(CONTROL_PADCONF_UART1_RTS, 0);
52 /* UART1_TX pin configuration, PIN = L20 */
53 write_config_reg(CONTROL_PADCONF_UART1_TX, 0);
54 /* UART1_RX pin configuration, PIN = T21 */
55 write_config_reg(CONTROL_PADCONF_UART1_RX, 0);
56 }
57 #endif
58
59 /**********************************************************
60 * Routine: s_init
61 * Description: Does early system init of muxing and clocks.
62 * - Called at time when only stack is available.
63 **********************************************************/
64 int s_init(int skip)
65 {
66 #ifdef CFG_PRINTF
67 muxSetupUART1();
68 #endif
69 return 0;
70 }
71
onenand_ipl/board/apollon/config.mk
File was created 1 #
2 # (C) Copyright 2005-2008 Samsung Electronics
3 # Kyungmin Park <kyungmin.park@samsung.com>
4 #
5 # Samsung Apollon board with OMAP2420 (ARM1136) cpu
6 #
7 # Apollon has 1 bank of 128MB mDDR-SDRAM on CS0
8 # Physical Address:
9 # 8000'0000 (bank0)
10 # 8800'0000 (bank1)
11 # Linux-Kernel is expected to be at 8000'8000, entry 8000'8000
12 # (mem base + reserved)
13
14 TEXT_BASE = 0x00000000
15
onenand_ipl/board/apollon/low_levelinit.S
File was created 1 /*
2 * Board specific setup info
3 *
4 * (C) Copyright 2005-2008 Samsung Electronics
5 * Kyungmin Park <kyungmin.park@samsung.com>
6 *
7 * Derived from board/omap2420h4/platform.S
8 *
9 * See file CREDITS for list of people who contributed to this
10 * project.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of
15 * the License, or (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 * MA 02111-1307 USA
26 */
27
28 #include <config.h>
29 #include <asm/arch/omap2420.h>
30 #include <asm/arch/mem.h>
31 #include <asm/arch/clocks.h>
32
33 #define APOLLON_CS0_BASE 0x00000000
34
35 #ifdef PRCM_CONFIG_I
36 #define SDRC_ACTIM_CTRLA_0_VAL 0x7BA35907
37 #define SDRC_ACTIM_CTRLB_0_VAL 0x00000013
38 #define SDRC_RFR_CTRL_0_VAL 0x00044C01
39
40 /* GPMC */
41 #define APOLLON_GPMC_CONFIG1_0 0xe30d1201
42 #define APOLLON_GPMC_CONFIG2_0 0x000c1000
43 #define APOLLON_GPMC_CONFIG3_0 0x00030400
44 #define APOLLON_GPMC_CONFIG4_0 0x0B841006
45 #define APOLLON_GPMC_CONFIG5_0 0x020F0C11
46 #define APOLLON_GPMC_CONFIG6_0 0x00000000
47 #define APOLLON_GPMC_CONFIG7_0 (0x00000e40 | (APOLLON_CS0_BASE >> 24))
48
49 #elif defined(PRCM_CONFIG_II)
50 #define SDRC_ACTIM_CTRLA_0_VAL 0x4A59B485
51 #define SDRC_ACTIM_CTRLB_0_VAL 0x0000000C
52 #define SDRC_RFR_CTRL_0_VAL 0x00030001
53
54 /* GPMC */
55 #define APOLLON_GPMC_CONFIG1_0 0xe30d1201
56 #define APOLLON_GPMC_CONFIG2_0 0x00080E81
57 #define APOLLON_GPMC_CONFIG3_0 0x00030400
58 #define APOLLON_GPMC_CONFIG4_0 0x08041586
59 #define APOLLON_GPMC_CONFIG5_0 0x020C090E
60 #define APOLLON_GPMC_CONFIG6_0 0x00000000
61 #define APOLLON_GPMC_CONFIG7_0 (0x00000e40 | (APOLLON_CS0_BASE >> 24))
62
63 #else
64 #error "Please configure PRCM schecm"
65 #endif
66
67 _TEXT_BASE:
68 .word TEXT_BASE /* sdram load addr from config.mk */
69
70 .globl lowlevel_init
71 lowlevel_init:
72 mov r3, r0 /* save skip information */
73
74 /* Disable watchdog */
75 ldr r0, =WD2_BASE
76 ldr r1, =WD_UNLOCK1
77 str r1, [r0, #WSPR]
78
79 ldr r1, =WD_UNLOCK2
80 str r1, [r0, #WSPR]
81
82 #ifdef DEBUG_LED
83 /* LED0 OFF */
84 ldr r0, =0x480000E5 /* ball AA10, mode 3 */
85 mov r1, #0x0b
86 strb r1, [r0]
87 #endif
88
89 /* Pin muxing for SDRC */
90 mov r1, #0x00
91 ldr r0, =0x480000A1 /* ball C12, mode 0 */
92 strb r1, [r0]
93
94 ldr r0, =0x48000032 /* ball D11, mode 0 */
95 strb r1, [r0]
96
97 ldr r0, =0x480000A3 /* ball B13, mode 0 */
98 strb r1, [r0]
99
100 /* SDRC setting */
101 ldr r0, =OMAP2420_SDRC_BASE
102 ldr r1, =0x00000010
103 str r1, [r0, #0x10]
104
105 ldr r1, =0x00000100
106 str r1, [r0, #0x44]
107
108 /* SDRC CS0 configuration */
109 #ifdef CONFIG_APOLLON_PLUS
110 ldr r1, =0x01702011
111 #else
112 ldr r1, =0x00d04011
113 #endif
114 str r1, [r0, #0x80]
115
116 ldr r1, =SDRC_ACTIM_CTRLA_0_VAL
117 str r1, [r0, #0x9C]
118
119 ldr r1, =SDRC_ACTIM_CTRLB_0_VAL
120 str r1, [r0, #0xA0]
121
122 ldr r1, =SDRC_RFR_CTRL_0_VAL
123 str r1, [r0, #0xA4]
124
125 ldr r1, =0x00000041
126 str r1, [r0, #0x70]
127
128 /* Manual command sequence */
129 ldr r1, =0x00000007
130 str r1, [r0, #0xA8]
131
132 ldr r1, =0x00000000
133 str r1, [r0, #0xA8]
134
135 ldr r1, =0x00000001
136 str r1, [r0, #0xA8]
137
138 ldr r1, =0x00000002
139 str r1, [r0, #0xA8]
140 str r1, [r0, #0xA8]
141
142 /*
143 * CS0 SDRC Mode register
144 * Burst length = 4 - DDR memory
145 * Serial mode
146 * CAS latency = 3
147 */
148 ldr r1, =0x00000032
149 str r1, [r0, #0x84]
150
151 /* Note: You MUST set EMR values */
152 /* EMR1 & EMR2 */
153 ldr r1, =0x00000000
154 str r1, [r0, #0x88]
155 str r1, [r0, #0x8C]
156
157 #ifdef OLD_SDRC_DLLA_CTRL
158 /* SDRC_DLLA_CTRL */
159 ldr r1, =0x00007306
160 str r1, [r0, #0x60]
161
162 ldr r1, =0x00007303
163 str r1, [r0, #0x60]
164 #else
165 /* SDRC_DLLA_CTRL */
166 ldr r1, =0x00000506
167 str r1, [r0, #0x60]
168
169 ldr r1, =0x00000503
170 str r1, [r0, #0x60]
171 #endif
172
173 #ifdef __BROKEN_FEATURE__
174 /* SDRC_DLLB_CTRL */
175 ldr r1, =0x00000506
176 str r1, [r0, #0x68]
177
178 ldr r1, =0x00000503
179 str r1, [r0, #0x68]
180 #endif
181
182 /* little delay after init */
183 mov r2, #0x1800
184 1:
185 subs r2, r2, #0x1
186 bne 1b
187
188 ldr sp, SRAM_STACK
189 str ip, [sp] /* stash old link register */
190 mov ip, lr /* save link reg across call */
191 mov r0, r3 /* pass skip info to s_init */
192
193 bl s_init /* go setup pll,mux,memory */
194
195 ldr ip, [sp] /* restore save ip */
196 mov lr, ip /* restore link reg */
197
198 /* back to arch calling code */
199 mov pc, lr
200
201 /* the literal pools origin */
202 .ltorg
203
204 SRAM_STACK:
205 .word LOW_LEVEL_SRAM_STACK
206
onenand_ipl/board/apollon/u-boot.onenand.lds
File was created 1 /*
2 * (C) Copyright 2005-2008 Samsung Electronics
3 * Kyungmin Park <kyungmin.park@samsung.com>
4 *
5 * Derived from X-loader
6 *
7 * See file CREDITS for list of people who contributed to this
8 * project.
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23 * MA 02111-1307 USA
24 */
25
26 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
27 OUTPUT_ARCH(arm)
28 ENTRY(_start)
29 SECTIONS
30 {
31 . = 0x00000000;
32
33 . = ALIGN(4);
34 .text :
35 {
36 start.o (.text)
37 *(.text)
38 }
39
40 . = ALIGN(4);
41 .rodata : { *(.rodata) }
42
43 . = ALIGN(4);
44 .data : { *(.data) }
45
46 . = ALIGN(4);
47 .got : { *(.got) }
48
49 . = ALIGN(4);
50 __bss_start = .;
51 .bss : { *(.bss) }
52 _end = .;
53 }
54
onenand_ipl/onenand_boot.c
File was created 1 /*
2 * (C) Copyright 2005-2008 Samsung Electronics
3 * Kyungmin Park <kyungmin.park@samsung.com>
4 *
5 * Derived from x-loader
6 *
7 * See file CREDITS for list of people who contributed to this
8 * project.
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23 * MA 02111-1307 USA
24 */
25
26 #include <common.h>
27 #include <version.h>
28
29 #include "onenand_ipl.h"
30
31 #ifdef CFG_PRINTF
32 int print_info(void)
33 {
34 printf(XLOADER_VERSION);
35
36 return 0;
37 }
38 #endif
39
40 typedef int (init_fnc_t)(void);
41
42 init_fnc_t *init_sequence[] = {
43 board_init, /* basic board dependent setup */
44 #ifdef CFG_PRINTF
45 serial_init, /* serial communications setup */
46 print_info,
47 #endif
48 NULL,
49 };
50
51 void start_oneboot(void)
52 {
53 init_fnc_t **init_fnc_ptr;
54 uchar *buf;
55
56 for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) {
57 if ((*init_fnc_ptr)() != 0)
58 hang();
59 }
60
61 buf = (uchar *) CFG_LOAD_ADDR;
62
63 if (!onenand_read_block(buf, ONENAND_START_BLOCK))
64 buf += ONENAND_BLOCK_SIZE;
65
66 if (buf == (uchar *)CFG_LOAD_ADDR)
67 hang();
68
69 /* go run U-Boot and never return */
70 printf("Starting OS Bootloader...\n");
71 ((init_fnc_t *)CFG_LOAD_ADDR)();
72
73 /* should never come here */
74 }
75
76 void hang(void)
77 {
78 /* if board_hang() returns, hange here */
79 printf("X-Loader hangs\n");
80 for (;;);
81 }
82
onenand_ipl/onenand_ipl.h
File was created 1 /*
2 * (C) Copyright 2005-2008 Samsung Electronics
3 * Kyungmin Park <kyungmin.park@samsung.com>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18 * MA 02111-1307 USA
19 */
20
21 #ifndef _ONENAND_IPL_H
22 #define _ONENAND_IPL_H
23
24 #include <linux/mtd/onenand_regs.h>
25
26 #define ONENAND_START_BLOCK 0
27 #define ONENAND_BLOCK_SIZE 2048
28
29 #ifndef CFG_PRINTF
30 #define printf(format, args...)
31 #endif
32
33 #define onenand_readw(a) readw(a)
34 #define onenand_writew(v, a) writew(v, a)
35
36 #define THIS_ONENAND(a) (CFG_ONENAND_BASE + (a))
37
38 #define READ_INTERRUPT() \
39 onenand_readw(THIS_ONENAND(ONENAND_REG_INTERRUPT))
40
41 #define ONENAND_PAGE_SIZE 2048
42
43 extern int onenand_read_block(unsigned char *buf, ulong block);
44 #endif
45
onenand_ipl/onenand_read.c
File was created 1 /*
2 * (C) Copyright 2005-2008 Samsung Electronis
3 * Kyungmin Park <kyungmin.park@samsung.com>
4 *
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA
22 */
23
24 #include <common.h>
25
26 #include <asm/io.h>
27 #include <asm/string.h>
28
29 #include "onenand_ipl.h"
30
31 #define onenand_block_address(block) (block)
32 #define onenand_sector_address(page) (page << 2)
33 #define onenand_buffer_address() ((1 << 3) << 8)
34 #define onenand_bufferram_address(block) (0)
35
36 /* read a page with ECC */
37 static inline int onenand_read_page(ulong block, ulong page, u_char *buf)
38 {
39 unsigned long *base;
40
41 #ifndef __HAVE_ARCH_MEMCPY32
42 unsigned int offset, value;
43 unsigned long *p;
44 #endif
45
46 onenand_writew(onenand_block_address(block),
47 THIS_ONENAND(ONENAND_REG_START_ADDRESS1));
48
49 onenand_writew(onenand_sector_address(page),
50 THIS_ONENAND(ONENAND_REG_START_ADDRESS8));
51
52 onenand_writew(onenand_buffer_address(),
53 THIS_ONENAND(ONENAND_REG_START_BUFFER));
54
55 onenand_writew(onenand_bufferram_address(block),
56 THIS_ONENAND(ONENAND_REG_START_ADDRESS2));
57
58 onenand_writew(ONENAND_INT_CLEAR, THIS_ONENAND(ONENAND_REG_INTERRUPT));
59
60 onenand_writew(ONENAND_CMD_READ, THIS_ONENAND(ONENAND_REG_COMMAND));
61
62 #ifndef __HAVE_ARCH_MEMCPY32
63 p = (unsigned long *) buf;
64 #endif
65 base = (unsigned long *) (CFG_ONENAND_BASE + ONENAND_DATARAM);
66
67 while (!(READ_INTERRUPT() & ONENAND_INT_READ))
68 continue;
69
70 #ifdef __HAVE_ARCH_MEMCPY32
71 /* 32 bytes boundary memory copy */
72 memcpy32(buf, base, ONENAND_PAGE_SIZE);
73 #else
74 for (offset = 0; offset < (ONENAND_PAGE_SIZE >> 2); offset++) {
75 value = *(base + offset);
76 *p++ = value;
77 }
78 #endif
79
80 return 0;
81 }
82
83 #define ONENAND_START_PAGE 1
84 #define ONENAND_PAGES_PER_BLOCK 64
85
86 /**
87 * onenand_read_block - Read a block data to buf
88 * @return 0 on success
89 */
90 int onenand_read_block(unsigned char *buf, ulong block)
91 {
92 int page, offset = 0;
93
94 /* NOTE: you must read page from page 1 of block 0 */
95 /* read the block page by page*/
96 for (page = ONENAND_START_PAGE;
97 page < ONENAND_PAGES_PER_BLOCK; page++) {
98
99 onenand_read_page(block, page, buf + offset);
100
101 offset += ONENAND_PAGE_SIZE;
102 }
103
104 return 0;
105 }
106