blob: b0ad8252fbfd9830d9f39b4dae49a8cf10ec3214 [file] [log] [blame]
Greg Watson4890a662003-06-23 01:01:17 +00001#######################################################
2#
Stefan Reinauerf8ee1802008-01-18 15:08:58 +00003# Main options file for coreboot
Greg Watson4890a662003-06-23 01:01:17 +00004#
5# Each option used by a part must be defined in
6# this file. The format for options is:
7#
8# define <name>
9# default <expr> | {<expr>} | "<string>" | none
10# format "<string>"
11# export always | used | never
12# comment "<string>"
13# end
14#
15# where
16#
17# <name> is the name of the option
18# <expr> is a numeric expression
19# <string> is a string
20#
21# Either a default value or 'default none' must
22# be specified for every option. An option
23# specified as 'default none' will not be exported
24# (i.e. will remain undefined) unless it has
25# been assigned a value.
26#
27# Option values can be an immediate expression that
28# evaluates to a numeric value, a delayed expression
29# (surrounded by curley braces), or a string
30# (surrounded by double quotes.)
31#
32# Immediate expressions are evaluated at the time an
33# option is defined or set and the numeric result
34# becomes the value of the option.
35#
36# Delayed expression are evaluated at the time the
37# option is used, either in another expression or
38# when being exported.
39#
40# String values will have the double quotes removed
41# automatically.
42#
43# Format strings determine the print format that is
44# used when exporting options. The default format
45# is "%s" for strings and "%d" for numbers.
46#
47# Exported options generate entries in the
48# Makefile.settings file. Options can be always
49# exported, exported only if used, or never exported.
50#
51# A comment string must be supplied for every option.
52#
53#######################################################
54
55###############################################
56# Architecture options
57###############################################
58
Myles Watsonf17f6472009-06-19 21:18:14 +000059define CONFIG_ARCH_X86
60 default 1
61 export always
62 comment "X86 is the default"
63end
Stefan Reinauer08670622009-06-30 15:17:49 +000064define CONFIG_ARCH
Greg Watson4890a662003-06-23 01:01:17 +000065 default "i386"
66 export always
67 comment "Default architecture is i386, options are alpha and ppc"
68end
Stefan Reinauer08670622009-06-30 15:17:49 +000069define CONFIG_HAVE_MOVNTI
Eric Biedermanf8a2ddd2004-10-30 08:05:41 +000070 default 0
71 export always
72 comment "This cpu supports the MOVNTI directive"
Greg Watson4890a662003-06-23 01:01:17 +000073end
74
75###############################################
76# Build options
77###############################################
78
Stefan Reinauer08670622009-06-30 15:17:49 +000079define CONFIG_CROSS_COMPILE
Greg Watson4890a662003-06-23 01:01:17 +000080 default ""
81 export always
82 comment "Cross compiler prefix"
83end
84define CC
Stefan Reinauer08670622009-06-30 15:17:49 +000085 default "$(CONFIG_CROSS_COMPILE)gcc"
Greg Watson4890a662003-06-23 01:01:17 +000086 export always
87 comment "Target C Compiler"
88end
Stefan Reinauer9dd27bc2009-06-30 17:13:58 +000089define HOSTCC
Greg Watson109959d2003-07-14 18:00:10 +000090 default "gcc"
Greg Watson4890a662003-06-23 01:01:17 +000091 export always
92 comment "Host C Compiler"
93end
Stefan Reinauer08670622009-06-30 15:17:49 +000094define CONFIG_CPU_OPT
Greg Watson499b3042003-07-28 21:15:13 +000095 default none
96 export used
97 comment "Additional per-cpu CFLAGS"
98end
Stefan Reinauer08670622009-06-30 15:17:49 +000099define CONFIG_OBJCOPY
100 default "$(CONFIG_CROSS_COMPILE)objcopy --gap-fill 0xff"
Greg Watson4890a662003-06-23 01:01:17 +0000101 export always
102 comment "Objcopy command"
103end
Carl-Daniel Hailfinger4940ab72009-04-23 13:05:45 +0000104
105# Try to determine svn revision first.
106# If that fails, try last svn revision in git log.
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000107define COREBOOT_VERSION
Carl-Daniel Hailfinger4940ab72009-04-23 13:05:45 +0000108 default "2.0.0-r$(shell if [ -d $(TOP)/.svn -a -f `which svnversion` ]; then svnversion $(TOP); else if [ -d $(TOP)/.git -a -f `which git` ]; then git --git-dir=/$(TOP)/.git log|grep git-svn-id|cut -f 2 -d@|cut -f 1 -d' '|sort -g|tail -1; fi; fi)"
Greg Watson4890a662003-06-23 01:01:17 +0000109 export always
Eric Biedermanb78c1972004-10-14 20:54:17 +0000110 format "\"%s\""
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000111 comment "coreboot version"
Greg Watson4890a662003-06-23 01:01:17 +0000112end
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000113define COREBOOT_EXTRA_VERSION
Ronald G. Minnich57ffeb02003-07-30 03:05:20 +0000114 default ""
115 export used
Eric Biedermanb78c1972004-10-14 20:54:17 +0000116 format "\"%s\""
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000117 comment "coreboot extra version"
Ronald G. Minnich57ffeb02003-07-30 03:05:20 +0000118end
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000119define COREBOOT_BUILD
Greg Watson4890a662003-06-23 01:01:17 +0000120 default "$(shell date)"
121 export always
Eric Biedermanb78c1972004-10-14 20:54:17 +0000122 format "\"%s\""
Greg Watson4890a662003-06-23 01:01:17 +0000123 comment "Build date"
124end
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000125define COREBOOT_COMPILE_TIME
Greg Watson4890a662003-06-23 01:01:17 +0000126 default "$(shell date +%T)"
127 export always
Eric Biedermanb78c1972004-10-14 20:54:17 +0000128 format "\"%s\""
Greg Watson4890a662003-06-23 01:01:17 +0000129 comment "Build time"
130end
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000131define COREBOOT_COMPILE_BY
Greg Watson4890a662003-06-23 01:01:17 +0000132 default "$(shell whoami)"
133 export always
Eric Biedermanb78c1972004-10-14 20:54:17 +0000134 format "\"%s\""
Greg Watson4890a662003-06-23 01:01:17 +0000135 comment "Who build this image"
136end
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000137define COREBOOT_COMPILE_HOST
Greg Watson4890a662003-06-23 01:01:17 +0000138 default "$(shell hostname)"
139 export always
Eric Biedermanb78c1972004-10-14 20:54:17 +0000140 format "\"%s\""
Greg Watson4890a662003-06-23 01:01:17 +0000141 comment "Build host"
142end
143
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000144define COREBOOT_COMPILE_DOMAIN
Eric Biederman9bdb4602003-09-01 23:17:58 +0000145 default "$(shell dnsdomainname)"
Greg Watson4890a662003-06-23 01:01:17 +0000146 export always
Eric Biedermanb78c1972004-10-14 20:54:17 +0000147 format "\"%s\""
Greg Watson4890a662003-06-23 01:01:17 +0000148 comment "Build domain name"
149end
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000150define COREBOOT_COMPILER
Patrick Georgia84a99b2009-05-26 14:03:51 +0000151 default "$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -1)"
Greg Watson4890a662003-06-23 01:01:17 +0000152 export always
Eric Biedermanb78c1972004-10-14 20:54:17 +0000153 format "\"%s\""
Greg Watson4890a662003-06-23 01:01:17 +0000154 comment "Build compiler"
155end
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000156define COREBOOT_LINKER
Stefan Reinauerbe7f7982009-03-13 15:42:27 +0000157 default "$(shell $(CC) -Wl,--version 2>&1 | grep \" ld\")"
Greg Watson4890a662003-06-23 01:01:17 +0000158 export always
Eric Biedermanb78c1972004-10-14 20:54:17 +0000159 format "\"%s\""
Greg Watson4890a662003-06-23 01:01:17 +0000160 comment "Build linker"
161end
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000162define COREBOOT_ASSEMBLER
Greg Watson4890a662003-06-23 01:01:17 +0000163 default "$(shell touch dummy.s ; $(CC) -c -Wa,-v dummy.s 2>&1; rm -f dummy.s dummy.o )"
164 export always
Eric Biedermanb78c1972004-10-14 20:54:17 +0000165 format "\"%s\""
Greg Watson4890a662003-06-23 01:01:17 +0000166 comment "Build assembler"
167end
Greg Watson2b02b632003-07-21 14:00:53 +0000168define CONFIG_CHIP_CONFIGURE
169 default 0
170 export used
171 comment "Use new chip_configure method for configuring (non-pci) devices"
172end
Greg Watsone3da4d32003-11-09 23:29:42 +0000173define CONFIG_USE_INIT
174 default 0
arch import user (historical)6ca76362005-07-06 17:17:25 +0000175 export always
Greg Watsone3da4d32003-11-09 23:29:42 +0000176 comment "Use stage 1 initialization code"
177end
Greg Watson4890a662003-06-23 01:01:17 +0000178
Patrick Georgi313973d2009-08-05 12:16:01 +0000179define CONFIG_COREBOOT_V2
Stefan Reinauer36c83402009-03-01 10:16:01 +0000180 default 1
181 export always
182 comment "This is used by code to determine v2 vs v3"
183end
184
Greg Watson4890a662003-06-23 01:01:17 +0000185###############################################
186# ROM image options
187###############################################
188
Stefan Reinauer08670622009-06-30 15:17:49 +0000189define CONFIG_HAVE_FALLBACK_BOOT
Ronald G. Minnich848d3362003-10-01 16:09:23 +0000190 format "%d"
Greg Watson4890a662003-06-23 01:01:17 +0000191 default 0
192 export always
193 comment "Set if fallback booting required"
194end
Stefan Reinauer08670622009-06-30 15:17:49 +0000195define CONFIG_HAVE_FAILOVER_BOOT
Yinghai Lud4b278c2006-10-04 20:46:15 +0000196 format "%d"
197 default 0
198 export always
199 comment "Set if failover booting required"
200end
Stefan Reinauer08670622009-06-30 15:17:49 +0000201define CONFIG_USE_FALLBACK_IMAGE
Ronald G. Minnich848d3362003-10-01 16:09:23 +0000202 format "%d"
203 default 0
Greg Watson4890a662003-06-23 01:01:17 +0000204 export used
205 comment "Set to build a fallback image"
206end
Stefan Reinauer08670622009-06-30 15:17:49 +0000207define CONFIG_USE_FAILOVER_IMAGE
Yinghai Lud4b278c2006-10-04 20:46:15 +0000208 format "%d"
209 default 0
210 export used
211 comment "Set to build a failover image"
212end
Stefan Reinauer08670622009-06-30 15:17:49 +0000213define CONFIG_FALLBACK_SIZE
Greg Watson4890a662003-06-23 01:01:17 +0000214 default 65536
215 format "0x%x"
216 export used
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000217 comment "Default fallback image size"
Greg Watson4890a662003-06-23 01:01:17 +0000218end
Stefan Reinauer08670622009-06-30 15:17:49 +0000219define CONFIG_FAILOVER_SIZE
Yinghai Lud4b278c2006-10-04 20:46:15 +0000220 default 0
221 format "0x%x"
222 export used
223 comment "Default failover image size"
224end
Stefan Reinauer08670622009-06-30 15:17:49 +0000225define CONFIG_ROM_SIZE
Ronald G. Minnichca34c042003-09-25 17:34:56 +0000226 default none
Greg Watson4890a662003-06-23 01:01:17 +0000227 format "0x%x"
228 export used
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000229 comment "Size of your ROM"
Greg Watson4890a662003-06-23 01:01:17 +0000230end
Stefan Reinauer08670622009-06-30 15:17:49 +0000231define CONFIG_ROM_IMAGE_SIZE
Greg Watson4890a662003-06-23 01:01:17 +0000232 default 65535
233 format "0x%x"
234 export always
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000235 comment "Default image size"
Greg Watson4890a662003-06-23 01:01:17 +0000236end
Stefan Reinauer08670622009-06-30 15:17:49 +0000237define CONFIG_ROM_SECTION_SIZE
238 default {CONFIG_FALLBACK_SIZE}
Greg Watson4890a662003-06-23 01:01:17 +0000239 format "0x%x"
240 export used
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000241 comment "Default rom section size"
Greg Watson4890a662003-06-23 01:01:17 +0000242end
Stefan Reinauer08670622009-06-30 15:17:49 +0000243define CONFIG_ROM_SECTION_OFFSET
244 default {CONFIG_ROM_SIZE - CONFIG_FALLBACK_SIZE}
Greg Watson4890a662003-06-23 01:01:17 +0000245 format "0x%x"
246 export used
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000247 comment "Default rom section offset"
Greg Watson4890a662003-06-23 01:01:17 +0000248end
Stefan Reinauer08670622009-06-30 15:17:49 +0000249define CONFIG_PAYLOAD_SIZE
250 default {CONFIG_ROM_SECTION_SIZE - CONFIG_ROM_IMAGE_SIZE}
Greg Watson4890a662003-06-23 01:01:17 +0000251 format "0x%x"
252 export always
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000253 comment "Default payload size"
Greg Watson4890a662003-06-23 01:01:17 +0000254end
Stefan Reinauer08670622009-06-30 15:17:49 +0000255define CONFIG_ROMBASE
256 default {CONFIG_PAYLOAD_SIZE}
Greg Watson4890a662003-06-23 01:01:17 +0000257 format "0x%x"
258 export always
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000259 comment "Base address of coreboot in ROM"
Greg Watson499b3042003-07-28 21:15:13 +0000260end
Stefan Reinauer08670622009-06-30 15:17:49 +0000261define CONFIG_ROMSTART
Greg Watson0d4295f2003-11-15 15:29:30 +0000262 default none
263 format "0x%x"
264 export used
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000265 comment "Start address of coreboot in ROM"
Greg Watson0d4295f2003-11-15 15:29:30 +0000266end
Stefan Reinauer08670622009-06-30 15:17:49 +0000267define CONFIG_RESET
268 default {CONFIG_ROMBASE}
Greg Watson499b3042003-07-28 21:15:13 +0000269 format "0x%x"
270 export always
271 comment "Hardware reset vector address"
Greg Watson4890a662003-06-23 01:01:17 +0000272end
Stefan Reinauer08670622009-06-30 15:17:49 +0000273define CONFIG_EXCEPTION_VECTORS
274 default {CONFIG_ROMBASE+0x100}
Greg Watsoned462582003-11-05 18:21:30 +0000275 format "0x%x"
276 export always
277 comment "Address of exception vector table"
278end
Stefan Reinauer08670622009-06-30 15:17:49 +0000279define CONFIG_STACK_SIZE
Greg Watson4890a662003-06-23 01:01:17 +0000280 default 0x2000
281 format "0x%x"
282 export always
283 comment "Default stack size"
284end
Stefan Reinauer08670622009-06-30 15:17:49 +0000285define CONFIG_HEAP_SIZE
Greg Watson4890a662003-06-23 01:01:17 +0000286 default 0x2000
287 format "0x%x"
Greg Watson9f461322004-03-23 17:41:15 +0000288 export always
Greg Watson4890a662003-06-23 01:01:17 +0000289 comment "Default heap size"
290end
Stefan Reinauer08670622009-06-30 15:17:49 +0000291define CONFIG_RAMBASE
Ronald G. Minnich57ffeb02003-07-30 03:05:20 +0000292 default none
Greg Watson4890a662003-06-23 01:01:17 +0000293 format "0x%x"
Greg Watson9cf8c2e2003-06-23 05:00:08 +0000294 export always
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000295 comment "Base address of coreboot in RAM"
Greg Watson4890a662003-06-23 01:01:17 +0000296end
Stefan Reinauer08670622009-06-30 15:17:49 +0000297define CONFIG_RAMSTART
Greg Watson0d4295f2003-11-15 15:29:30 +0000298 default none
299 format "0x%x"
300 export used
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000301 comment "Start address of coreboot in RAM"
Greg Watson0d4295f2003-11-15 15:29:30 +0000302end
Stefan Reinauer08670622009-06-30 15:17:49 +0000303define CONFIG_USE_DCACHE_RAM
Greg Watson4890a662003-06-23 01:01:17 +0000304 default 0
arch import user (historical)6ca76362005-07-06 17:17:25 +0000305 export always
Greg Watsoned462582003-11-05 18:21:30 +0000306 comment "Use data cache as temporary RAM if possible"
Greg Watson4890a662003-06-23 01:01:17 +0000307end
Stefan Reinauer08670622009-06-30 15:17:49 +0000308define CONFIG_CAR_FAM10
Marc Jones8ae8c882007-12-19 01:32:08 +0000309 default 0
310 export always
311 comment "AMD family 10 CAR requires additional setup"
312end
Stefan Reinauer08670622009-06-30 15:17:49 +0000313define CONFIG_DCACHE_RAM_BASE
Yinghai Lud4b278c2006-10-04 20:46:15 +0000314 default 0xc0000
Greg Watson4890a662003-06-23 01:01:17 +0000315 format "0x%x"
Yinghai Lud4b278c2006-10-04 20:46:15 +0000316 export always
Greg Watsoned462582003-11-05 18:21:30 +0000317 comment "Base address of data cache when using it for temporary RAM"
Greg Watson4890a662003-06-23 01:01:17 +0000318end
Stefan Reinauer08670622009-06-30 15:17:49 +0000319define CONFIG_DCACHE_RAM_SIZE
Yinghai Lu9a791df2006-04-03 20:38:34 +0000320 default 0x1000
Greg Watson4890a662003-06-23 01:01:17 +0000321 format "0x%x"
Yinghai Lu9a791df2006-04-03 20:38:34 +0000322 export always
Greg Watsoned462582003-11-05 18:21:30 +0000323 comment "Size of data cache when using it for temporary RAM"
Greg Watson4890a662003-06-23 01:01:17 +0000324end
Stefan Reinauer08670622009-06-30 15:17:49 +0000325define CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE
Yinghai Lu9a791df2006-04-03 20:38:34 +0000326 default 0
327 format "0x%x"
328 export always
329 comment "Size of region that for global variable of cache as ram stage"
330end
Yinghai Lud4b278c2006-10-04 20:46:15 +0000331define CONFIG_AP_CODE_IN_CAR
332 default 0
333 export always
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000334 comment "will copy coreboot_apc to AP cache ane execute in AP"
Yinghai Lud4b278c2006-10-04 20:46:15 +0000335end
Stefan Reinauer08670622009-06-30 15:17:49 +0000336define CONFIG_MEM_TRAIN_SEQ
Yinghai Lud4b278c2006-10-04 20:46:15 +0000337 default 0
338 export always
339 comment "0: three for in bsp, 1: on every core0, 2: one for on bsp"
340end
Stefan Reinauer08670622009-06-30 15:17:49 +0000341define CONFIG_WAIT_BEFORE_CPUS_INIT
Yinghai Lud4b278c2006-10-04 20:46:15 +0000342 default 0
343 export always
344 comment "execute cpus_ready_for_init if it is set to 1"
345end
Stefan Reinauer08670622009-06-30 15:17:49 +0000346define CONFIG_XIP_ROM_BASE
Eric Biederman9bdb4602003-09-01 23:17:58 +0000347 default 0
Stefan Reinauer91232c12003-08-06 10:45:57 +0000348 format "0x%x"
349 export used
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000350 comment "Start address of area to cache during coreboot execution directly from ROM"
Stefan Reinauer91232c12003-08-06 10:45:57 +0000351end
Stefan Reinauer08670622009-06-30 15:17:49 +0000352define CONFIG_XIP_ROM_SIZE
Eric Biederman9bdb4602003-09-01 23:17:58 +0000353 default 0
Stefan Reinauer91232c12003-08-06 10:45:57 +0000354 format "0x%x"
355 export used
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000356 comment "Size of area to cache during coreboot execution directly from ROM"
Stefan Reinauer91232c12003-08-06 10:45:57 +0000357end
Greg Watson4890a662003-06-23 01:01:17 +0000358define CONFIG_COMPRESS
359 default 1
360 export always
361 comment "Set for compressed image"
362end
363define CONFIG_UNCOMPRESSED
Ronald G. Minnichf8651ed2003-07-25 17:31:53 +0000364 format "%d"
Greg Watson4890a662003-06-23 01:01:17 +0000365 default {!CONFIG_COMPRESS}
366 export always
367 comment "Set for uncompressed image"
368end
Eric Biederman5cd81732004-03-11 15:01:31 +0000369define CONFIG_LB_MEM_TOPK
370 format "%d"
Yinghai Lu9a791df2006-04-03 20:38:34 +0000371 default 2048
Eric Biederman5cd81732004-03-11 15:01:31 +0000372 export always
373 comment "Kilobytes of memory to initialized before executing code from RAM"
374end
Stefan Reinauer08670622009-06-30 15:17:49 +0000375define CONFIG_HAVE_OPTION_TABLE
Greg Watson4890a662003-06-23 01:01:17 +0000376 default 0
377 export always
378 comment "Export CMOS option table"
379end
Stefan Reinauer08670622009-06-30 15:17:49 +0000380define CONFIG_USE_OPTION_TABLE
Ronald G. Minnich336b4592003-07-25 17:28:43 +0000381 format "%d"
Stefan Reinauer08670622009-06-30 15:17:49 +0000382 default {CONFIG_HAVE_OPTION_TABLE && !CONFIG_USE_FALLBACK_IMAGE}
Greg Watson4890a662003-06-23 01:01:17 +0000383 export always
384 comment "Use option table"
385end
386
387###############################################
Eric Biederman5cd81732004-03-11 15:01:31 +0000388# CMOS variable options
389###############################################
Stefan Reinauer08670622009-06-30 15:17:49 +0000390define CONFIG_LB_CKS_RANGE_START
Eric Biederman5cd81732004-03-11 15:01:31 +0000391 default 49
392 format "%d"
393 export always
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000394 comment "First CMOS byte to use for coreboot options"
Eric Biederman5cd81732004-03-11 15:01:31 +0000395end
Stefan Reinauer08670622009-06-30 15:17:49 +0000396define CONFIG_LB_CKS_RANGE_END
Eric Biederman5cd81732004-03-11 15:01:31 +0000397 default 125
398 format "%d"
399 export always
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000400 comment "Last CMOS byte to use for coreboot options"
Eric Biederman5cd81732004-03-11 15:01:31 +0000401end
Stefan Reinauer08670622009-06-30 15:17:49 +0000402define CONFIG_LB_CKS_LOC
Eric Biederman5cd81732004-03-11 15:01:31 +0000403 default 126
404 format "%d"
405 export always
406 comment "Pair of bytes to use for CMOS checksum"
407end
408
409
410###############################################
Greg Watson4890a662003-06-23 01:01:17 +0000411# Build targets
412###############################################
413
Stefan Reinauer08670622009-06-30 15:17:49 +0000414define CONFIG_CRT0
415 default "$(TOP)/src/arch/$(CONFIG_ARCH)/init/crt0.S.lb"
Greg Watson4890a662003-06-23 01:01:17 +0000416 export always
417 comment "Main initialization target"
418end
419
420###############################################
421# Debugging/Logging options
422###############################################
423
Stefan Reinauer08670622009-06-30 15:17:49 +0000424define CONFIG_DEBUG
Stefan Reinauerdf2eb8e2009-01-21 01:56:53 +0000425 default 0
Greg Watson4890a662003-06-23 01:01:17 +0000426 export always
Stefan Reinauerdf2eb8e2009-01-21 01:56:53 +0000427 comment "Enable x86emu debugging code"
Greg Watson4890a662003-06-23 01:01:17 +0000428end
429define CONFIG_CONSOLE_VGA
430 default 0
431 export always
Torsten Duwe1f2f8002008-01-06 01:10:54 +0000432 comment "Log messages to any VGA-compatible device (may require *_ROM_RUN to bring up)"
Greg Watson4890a662003-06-23 01:01:17 +0000433end
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000434define CONFIG_CONSOLE_VGA_MULTI
435 default 0
436 export always
437 comment "Multi VGA console"
438end
Yinghai Lu2b396cd2006-05-18 16:54:30 +0000439define CONFIG_CONSOLE_VGA_ONBOARD_AT_FIRST
440 default 0
441 export always
442 comment "Use onboard VGA instead of add on VGA card"
443end
Stefan Reinauerf05dcb82004-04-24 22:29:44 +0000444define CONFIG_CONSOLE_BTEXT
445 default 0
446 export always
447 comment "Log messages to btext fb console"
448end
Greg Watson4890a662003-06-23 01:01:17 +0000449define CONFIG_CONSOLE_LOGBUF
450 default 0
451 export always
452 comment "Log messages to buffer"
453end
454define CONFIG_CONSOLE_SROM
455 default 0
456 export always
457 comment "Log messages to SROM console"
458end
459define CONFIG_CONSOLE_SERIAL8250
460 default 0
461 export always
Eric Biederman9bdb4602003-09-01 23:17:58 +0000462 comment "Log messages to 8250 uart based serial console"
Greg Watson4890a662003-06-23 01:01:17 +0000463end
Yinghai Lud57241f2007-02-28 11:17:02 +0000464define CONFIG_USBDEBUG_DIRECT
465 default 0
466 export always
467 comment "Log messages to ehci debug port console"
468end
Stefan Reinauer08670622009-06-30 15:17:49 +0000469define CONFIG_DEFAULT_CONSOLE_LOGLEVEL
Ronald G. Minnichffc161e2003-07-23 01:42:29 +0000470 default 7
471 export always
472 comment "Console will log at this level unless changed"
473end
Stefan Reinauer08670622009-06-30 15:17:49 +0000474define CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
Greg Watsonc99bd5f2003-07-23 21:36:12 +0000475 default 8
Greg Watson4890a662003-06-23 01:01:17 +0000476 export always
Ronald G. Minnichffc161e2003-07-23 01:42:29 +0000477 comment "Error messages up to this level can be printed"
Greg Watson4890a662003-06-23 01:01:17 +0000478end
Ronald G. Minnichb9e06c22004-03-19 21:02:36 +0000479define CONFIG_SERIAL_POST
480 default 0
481 export always
482 comment "Enable SERIAL POST codes"
483end
Stefan Reinauer08670622009-06-30 15:17:49 +0000484define CONFIG_NO_POST
Greg Watson4890a662003-06-23 01:01:17 +0000485 default none
Greg Watson9f461322004-03-23 17:41:15 +0000486 export used
Greg Watson4890a662003-06-23 01:01:17 +0000487 comment "Disable POST codes"
488end
Stefan Reinauer08670622009-06-30 15:17:49 +0000489define CONFIG_TTYS0_BASE
Eric Biederman9bdb4602003-09-01 23:17:58 +0000490 default 0x3f8
Greg Watsoned462582003-11-05 18:21:30 +0000491 format "0x%x"
Eric Biederman9bdb4602003-09-01 23:17:58 +0000492 export always
493 comment "Base address for 8250 uart for the serial console"
494end
Stefan Reinauer08670622009-06-30 15:17:49 +0000495define CONFIG_TTYS0_BAUD
Greg Watson4890a662003-06-23 01:01:17 +0000496 default 115200
497 export always
498 comment "Default baud rate for serial console"
499end
Stefan Reinauer08670622009-06-30 15:17:49 +0000500define CONFIG_TTYS0_DIV
Greg Watsonbf5b5842004-01-14 17:08:14 +0000501 default none
502 format "%d"
503 export used
504 comment "Allow UART divisor to be set explicitly"
505end
Stefan Reinauer08670622009-06-30 15:17:49 +0000506define CONFIG_TTYS0_LCS
Eric Biederman9bdb4602003-09-01 23:17:58 +0000507 default 0x3
Greg Watsoned462582003-11-05 18:21:30 +0000508 format "0x%x"
Eric Biederman9bdb4602003-09-01 23:17:58 +0000509 export always
510 comment "Default flow control settings for the 8250 serial console uart"
511end
Yinghai Lu5f9624d2006-10-04 22:56:21 +0000512
513define CONFIG_USE_PRINTK_IN_CAR
514 default 0
515 export always
516 comment "use printk instead of print in CAR stage code"
517end
Stefan Reinauer08670622009-06-30 15:17:49 +0000518define CONFIG_ASSEMBLER_DEBUG
Stefan Reinauer23b655f2009-01-20 22:07:20 +0000519 default 0
520 export always
Stefan Reinaueref6cb092009-01-20 20:13:01 +0000521 comment "Create disassembly files for debugging"
522end
Yinghai Lu5f9624d2006-10-04 22:56:21 +0000523
Greg Watson4890a662003-06-23 01:01:17 +0000524###############################################
525# Mainboard options
526###############################################
527
Stefan Reinauer08670622009-06-30 15:17:49 +0000528define CONFIG_MAINBOARD
Greg Watson4890a662003-06-23 01:01:17 +0000529 default "Mainboard_not_set"
530 export always
531 comment "Mainboard name"
532end
Stefan Reinauer08670622009-06-30 15:17:49 +0000533define CONFIG_MAINBOARD_PART_NUMBER
Greg Watson4890a662003-06-23 01:01:17 +0000534 default "Part_number_not_set"
535 export always
Eric Biedermanb78c1972004-10-14 20:54:17 +0000536 format "\"%s\""
Greg Watson4890a662003-06-23 01:01:17 +0000537 comment "Part number of mainboard"
538end
Stefan Reinauer08670622009-06-30 15:17:49 +0000539define CONFIG_MAINBOARD_VENDOR
Greg Watson4890a662003-06-23 01:01:17 +0000540 default "Vendor_not_set"
541 export always
Eric Biedermanb78c1972004-10-14 20:54:17 +0000542 format "\"%s\""
Greg Watson4890a662003-06-23 01:01:17 +0000543 comment "Vendor of mainboard"
544end
Stefan Reinauer08670622009-06-30 15:17:49 +0000545define CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
Eric Biedermanb78c1972004-10-14 20:54:17 +0000546 default 0
547 export always
548 comment "PCI Vendor ID of mainboard manufacturer"
549end
Stefan Reinauer08670622009-06-30 15:17:49 +0000550define CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
Eric Biedermanb78c1972004-10-14 20:54:17 +0000551 default 0
552 format "0x%x"
553 export always
554 comment "PCI susbsystem device id assigned my mainboard manufacturer"
555end
Stefan Reinauer08670622009-06-30 15:17:49 +0000556define CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL
Eric Biederman5cd81732004-03-11 15:01:31 +0000557 default none
558 export used
559 comment "Default power on after power fail setting"
560end
Greg Watson499b3042003-07-28 21:15:13 +0000561define CONFIG_SYS_CLK_FREQ
562 default none
563 export used
564 comment "System clock frequency in MHz"
565end
Richard Smith2a7352c2006-04-23 23:12:21 +0000566define CONFIG_MAX_PCI_BUSES
567 default 255
568 export always
569 comment "Maximum number of PCI buses to search for devices"
570end
Jon Harrisoncfb9cd22009-07-01 10:57:25 +0000571define CONFIG_EPIA_VT8237R_INIT
572 default none
573 export used
574 comment "Enable EPIA Specific Initialisation of VT8237R SB"
575end
Greg Watson4890a662003-06-23 01:01:17 +0000576###############################################
577# SMP options
578###############################################
579
580define CONFIG_SMP
Ronald G. Minnich1807c372003-06-24 19:44:00 +0000581 default 0
Greg Watson4890a662003-06-23 01:01:17 +0000582 export always
583 comment "Define if we support SMP"
584end
Ronald G. Minnich57ffeb02003-07-30 03:05:20 +0000585define CONFIG_MAX_CPUS
586 default 1
587 export always
Eric Biederman9bdb4602003-09-01 23:17:58 +0000588 comment "Maximum CPU count for this machine"
Ronald G. Minnich57ffeb02003-07-30 03:05:20 +0000589end
arch import user (historical)ef03afa2005-07-06 17:15:30 +0000590define CONFIG_MAX_PHYSICAL_CPUS
591 default 1
592 export always
593 comment "Maximum physical CPU count for this machine"
594end
Eric Biederman9bdb4602003-09-01 23:17:58 +0000595define CONFIG_LOGICAL_CPUS
596 default 0
597 export always
598 comment "Should multiple cpus per die be enabled?"
599end
Stefan Reinauer68524062008-08-02 15:15:23 +0000600define CONFIG_AP_IN_SIPI_WAIT
601 default 0
602 export always
603 comment "Should application processors go to SIPI wait state after initialization? (Required for Intel Core Duo)"
604end
Stefan Reinauer08670622009-06-30 15:17:49 +0000605define CONFIG_HAVE_MP_TABLE
Greg Watson4890a662003-06-23 01:01:17 +0000606 default none
Greg Watson9f461322004-03-23 17:41:15 +0000607 export used
Greg Watson4890a662003-06-23 01:01:17 +0000608 comment "Define to build an MP table"
609end
Stefan Reinauer08670622009-06-30 15:17:49 +0000610define CONFIG_SERIAL_CPU_INIT
arch import user (historical)ef03afa2005-07-06 17:15:30 +0000611 default 1
612 export always
613 comment "Serialize CPU init"
614end
Stefan Reinauer08670622009-06-30 15:17:49 +0000615define CONFIG_APIC_ID_OFFSET
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000616 default 0
617 export always
618 comment "We need to share this value between cache_as_ram_auto.c and northbridge.c"
619end
Stefan Reinauer08670622009-06-30 15:17:49 +0000620define CONFIG_ENABLE_APIC_EXT_ID
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000621 default 0
622 export always
623 comment "Enable APIC ext id mode 8 bit"
624end
Stefan Reinauer08670622009-06-30 15:17:49 +0000625define CONFIG_LIFT_BSP_APIC_ID
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000626 default 0
627 export always
628 comment "decide if we lift bsp apic id while ap apic id"
629end
Greg Watson4890a662003-06-23 01:01:17 +0000630###############################################
631# Boot options
632###############################################
633
Robert Millan81af3d42008-11-11 20:20:54 +0000634define CONFIG_MULTIBOOT
635 default 1
636 export always
637 comment "Use Multiboot (rather than ELF boot notes) to boot the payload"
638end
Ed Swierkbe13dc72006-12-15 12:56:28 +0000639define CONFIG_IDE_PAYLOAD
Greg Watson4890a662003-06-23 01:01:17 +0000640 default 0
641 export always
642 comment "Boot from IDE device"
643end
Ed Swierkbe13dc72006-12-15 12:56:28 +0000644define CONFIG_ROM_PAYLOAD
Greg Watson4890a662003-06-23 01:01:17 +0000645 default 0
646 export always
647 comment "Boot image is located in ROM"
648end
Ed Swierkbe13dc72006-12-15 12:56:28 +0000649define CONFIG_ROM_PAYLOAD_START
Stefan Reinauer08670622009-06-30 15:17:49 +0000650 default {0xffffffff - CONFIG_ROM_SIZE + CONFIG_ROM_SECTION_OFFSET + 1}
Greg Watson4890a662003-06-23 01:01:17 +0000651 format "0x%x"
652 export always
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000653 comment "ROM stream start location"
Greg Watson4890a662003-06-23 01:01:17 +0000654end
Ed Swierk1a7a5b42006-12-15 11:42:16 +0000655define CONFIG_COMPRESSED_PAYLOAD_NRV2B
Carl-Daniel Hailfingercba07dd2006-09-14 15:12:36 +0000656 default 0
657 export always
658 comment "NRV2B compressed boot image is located in ROM"
659end
Ed Swierk1a7a5b42006-12-15 11:42:16 +0000660define CONFIG_COMPRESSED_PAYLOAD_LZMA
Carl-Daniel Hailfingercba07dd2006-09-14 15:12:36 +0000661 default 0
662 export always
663 comment "LZMA compressed boot image is located in ROM"
Stefan Reinaueread73682006-05-02 12:05:13 +0000664end
Ed Swierk1a7a5b42006-12-15 11:42:16 +0000665define CONFIG_PRECOMPRESSED_PAYLOAD
Stefan Reinauer8ad7c062006-08-03 16:19:27 +0000666 default 0
667 export always
668 comment "boot image is already compressed"
669end
Ed Swierkbe13dc72006-12-15 12:56:28 +0000670define CONFIG_SERIAL_PAYLOAD
Stefan Reinauerebafa4d2006-10-07 00:13:24 +0000671 default 0
672 export always
673 comment "Download boot image from serial port"
674end
Ed Swierkbe13dc72006-12-15 12:56:28 +0000675define CONFIG_FS_PAYLOAD
Greg Watsonb8603e22004-03-13 03:18:32 +0000676 default 0
677 export always
678 comment "Boot from a filesystem"
679end
680define CONFIG_FS_EXT2
681 default 0
682 export always
683 comment "Enable ext2 filesystem support"
684end
685define CONFIG_FS_ISO9660
686 default 0
687 export always
688 comment "Enable ISO9660 filesystem support"
689end
Greg Watson711c8bd2004-03-13 04:04:58 +0000690define CONFIG_FS_FAT
691 default 0
692 export always
693 comment "Enable FAT filesystem support"
694end
Peter Stuge483b7bb2009-04-14 07:40:01 +0000695define CONFIG_CBFS
Patrick Georgib339e102009-08-11 17:35:02 +0000696 default 1
Ronald G. Minnichd469cda2009-03-31 16:32:01 +0000697 export always
Peter Stuge483b7bb2009-04-14 07:40:01 +0000698 comment "The new CBFS file system"
Ronald G. Minnichd469cda2009-03-31 16:32:01 +0000699end
Stefan Reinauer08670622009-06-30 15:17:49 +0000700define CONFIG_AUTOBOOT_DELAY
Greg Watsonb8603e22004-03-13 03:18:32 +0000701 default 2
702 export always
703 comment "Delay (in seconds) before autobooting"
704end
Stefan Reinauer08670622009-06-30 15:17:49 +0000705define CONFIG_AUTOBOOT_CMDLINE
Greg Watsonb8603e22004-03-13 03:18:32 +0000706 default "hdc1:/vmlinuz root=/dev/hdc3 console=tty0 console=ttyS0,115200"
707 export always
708 format "\"%s\""
709 comment "Default command line when autobooting"
710end
Greg Watson4890a662003-06-23 01:01:17 +0000711
Stefan Reinauer08670622009-06-30 15:17:49 +0000712define CONFIG_USE_WATCHDOG_ON_BOOT
Yinghai Lu13f1c2a2005-07-08 02:49:49 +0000713 default 0
714 export always
715 comment "Use the watchdog on booting"
716end
717
718###############################################
719# Plugin Device support options
720###############################################
721
722define CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT
723 default 1
724 export always
725 comment "Enable support for plugin Hypertransport busses"
726end
727define CONFIG_AGP_PLUGIN_SUPPORT
728 default 1
729 export always
730 comment "Enable support for plugin AGP busses"
731end
732define CONFIG_CARDBUS_PLUGIN_SUPPORT
733 default 1
734 export always
735 comment "Enable support cardbus plugin cards"
736end
737define CONFIG_PCIX_PLUGIN_SUPPORT
738 default 1
739 export always
740 comment "Enable support for plugin PCI-X busses"
741end
742define CONFIG_PCIEXP_PLUGIN_SUPPORT
743 default 1
744 export always
745 comment "Enable support for plugin PCI-E busses"
746end
747
Greg Watson4890a662003-06-23 01:01:17 +0000748###############################################
749# IRQ options
750###############################################
751
Stefan Reinauer08670622009-06-30 15:17:49 +0000752define CONFIG_HAVE_PIRQ_TABLE
Greg Watson4890a662003-06-23 01:01:17 +0000753 default none
Greg Watson9f461322004-03-23 17:41:15 +0000754 export used
Greg Watson4890a662003-06-23 01:01:17 +0000755 comment "Define if we have a PIRQ table"
756end
Stefan Reinauer08670622009-06-30 15:17:49 +0000757define CONFIG_PIRQ_ROUTE
Nikolay Petukhov9c2255c2008-03-29 16:59:27 +0000758 default 0
Stefan Reinauerd0db8f92009-03-19 01:30:16 +0000759 export always
Nikolay Petukhov9c2255c2008-03-29 16:59:27 +0000760 comment "Define if we have a PIRQ table and want routing IRQs"
761end
Stefan Reinauer08670622009-06-30 15:17:49 +0000762define CONFIG_IRQ_SLOT_COUNT
Greg Watson4890a662003-06-23 01:01:17 +0000763 default none
Greg Watson9f461322004-03-23 17:41:15 +0000764 export used
Greg Watson4890a662003-06-23 01:01:17 +0000765 comment "Number of IRQ slots"
766end
767define CONFIG_PCIBIOS_IRQ
768 default none
Greg Watson9f461322004-03-23 17:41:15 +0000769 export used
Greg Watson4890a662003-06-23 01:01:17 +0000770 comment "PCIBIOS IRQ support"
771end
772define CONFIG_IOAPIC
773 default none
Greg Watson9f461322004-03-23 17:41:15 +0000774 export used
Greg Watson4890a662003-06-23 01:01:17 +0000775 comment "IOAPIC support"
776end
777
778###############################################
779# IDE specific options
780###############################################
781
Greg Watsoncfaeaf62004-03-13 03:28:05 +0000782define CONFIG_IDE
783 default 0
784 export always
785 comment "Define to include IDE support"
786end
Stefan Reinauer08670622009-06-30 15:17:49 +0000787define CONFIG_IDE_BOOT_DRIVE
Greg Watson4890a662003-06-23 01:01:17 +0000788 default 0
789 export always
790 comment "Disk number of boot drive"
791end
Stefan Reinauer08670622009-06-30 15:17:49 +0000792define CONFIG_IDE_SWAB
Greg Watson4890a662003-06-23 01:01:17 +0000793 default none
Greg Watson9f461322004-03-23 17:41:15 +0000794 export used
Greg Watson4890a662003-06-23 01:01:17 +0000795 comment "Swap bytes when reading from IDE device"
796end
Stefan Reinauer08670622009-06-30 15:17:49 +0000797define CONFIG_IDE_OFFSET
Greg Watson4890a662003-06-23 01:01:17 +0000798 default 0
799 export always
800 comment "Sector at which to start searching for boot image"
801end
802
803###############################################
Greg Watsoned462582003-11-05 18:21:30 +0000804# Options for memory mapped I/O
805###############################################
806
Stefan Reinauer08670622009-06-30 15:17:49 +0000807define CONFIG_PCI_IO_CFG_EXT
Yinghai Lu5f9624d2006-10-04 22:56:21 +0000808 default 0
809 export always
810 comment "allow 4K register space via io CFG port"
811end
812
Stefan Reinauer08670622009-06-30 15:17:49 +0000813define CONFIG_PCIC0_CFGADDR
Greg Watsoned462582003-11-05 18:21:30 +0000814 default none
815 format "0x%x"
816 export used
Greg Watson90947232004-01-22 01:03:41 +0000817 comment "Address of PCI Configuration Address Register"
Greg Watsoned462582003-11-05 18:21:30 +0000818end
Stefan Reinauer08670622009-06-30 15:17:49 +0000819define CONFIG_PCIC0_CFGDATA
Greg Watsoned462582003-11-05 18:21:30 +0000820 default none
821 format "0x%x"
822 export used
Greg Watson90947232004-01-22 01:03:41 +0000823 comment "Address of PCI Configuration Data Register"
824end
Stefan Reinauer08670622009-06-30 15:17:49 +0000825define CONFIG_ISA_IO_BASE
Greg Watson90947232004-01-22 01:03:41 +0000826 default none
827 format "0x%x"
828 export used
829 comment "Base address of PCI/ISA I/O address range"
830end
Stefan Reinauer08670622009-06-30 15:17:49 +0000831define CONFIG_ISA_MEM_BASE
Greg Watson90947232004-01-22 01:03:41 +0000832 default none
833 format "0x%x"
834 export used
835 comment "Base address of PCI/ISA memory address range"
Greg Watsoned462582003-11-05 18:21:30 +0000836end
Stefan Reinauer08670622009-06-30 15:17:49 +0000837define CONFIG_PNP_CFGADDR
Greg Watsone3da4d32003-11-09 23:29:42 +0000838 default none
839 format "0x%x"
840 export used
Greg Watson90947232004-01-22 01:03:41 +0000841 comment "PNP Configuration Address Register offset"
Greg Watsone3da4d32003-11-09 23:29:42 +0000842end
Stefan Reinauer08670622009-06-30 15:17:49 +0000843define CONFIG_PNP_CFGDATA
Greg Watsone3da4d32003-11-09 23:29:42 +0000844 default none
845 format "0x%x"
846 export used
Greg Watson90947232004-01-22 01:03:41 +0000847 comment "PNP Configuration Data Register offset"
Greg Watsone3da4d32003-11-09 23:29:42 +0000848end
Stefan Reinauer08670622009-06-30 15:17:49 +0000849define CONFIG_IO_BASE
Greg Watsoned462582003-11-05 18:21:30 +0000850 default none
851 format "0x%x"
852 export used
Greg Watson90947232004-01-22 01:03:41 +0000853 comment "Base address of memory mapped I/O operations"
Greg Watsoned462582003-11-05 18:21:30 +0000854end
855
856###############################################
857# Options for embedded systems
858###############################################
859
Stefan Reinauer08670622009-06-30 15:17:49 +0000860define CONFIG_EMBEDDED_RAM_SIZE
Greg Watsoned462582003-11-05 18:21:30 +0000861 default none
862 export used
863 comment "Embedded boards generally have fixed RAM size"
864end
865
866###############################################
Greg Watson4890a662003-06-23 01:01:17 +0000867# Misc options
868###############################################
869
Eric Biedermanf8a2ddd2004-10-30 08:05:41 +0000870define CONFIG_GDB_STUB
871 default 0
872 export used
873 comment "Compile in gdb stub support?"
874end
875
Stefan Reinauer08670622009-06-30 15:17:49 +0000876define CONFIG_HAVE_INIT_TIMER
Eric Biederman6e53f502004-10-27 08:53:57 +0000877 default 0
878 export always
879 comment "Have a init_timer function"
880end
Stefan Reinauer08670622009-06-30 15:17:49 +0000881define CONFIG_HAVE_HARD_RESET
Greg Watson4890a662003-06-23 01:01:17 +0000882 default none
883 export used
884 comment "Have hard reset"
885end
Stefan Reinauer08670622009-06-30 15:17:49 +0000886define CONFIG_HAVE_SMI_HANDLER
Stefan Reinauerd0363c32009-01-19 21:34:41 +0000887 default 0
888 export always
Stefan Reinauerdebb11f2008-10-29 04:46:52 +0000889 comment "Set, if the board needs an SMI handler"
890end
Stefan Reinauer08670622009-06-30 15:17:49 +0000891define CONFIG_MEMORY_HOLE
Greg Watson4890a662003-06-23 01:01:17 +0000892 default none
893 export used
894 comment "Set to deal with memory hole"
895end
Stefan Reinauer08670622009-06-30 15:17:49 +0000896define CONFIG_MAX_REBOOT_CNT
Eric Biederman9bdb4602003-09-01 23:17:58 +0000897 default 3
Greg Watson4890a662003-06-23 01:01:17 +0000898 export always
899 comment "Set maximum reboots"
900end
Greg Watson4890a662003-06-23 01:01:17 +0000901
902###############################################
903# Misc device options
904###############################################
905
Stefan Reinauer08670622009-06-30 15:17:49 +0000906define CONFIG_HAVE_FANCTL
Ronald Hoogenboom56cf01f2008-02-25 19:36:20 +0000907 default 0
908 export used
909 comment "Include board specific FAN control initialization"
910end
Greg Watson4890a662003-06-23 01:01:17 +0000911define CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
Eric Biederman9bdb4602003-09-01 23:17:58 +0000912 default 0
Greg Watson4890a662003-06-23 01:01:17 +0000913 export used
Eric Biederman9bdb4602003-09-01 23:17:58 +0000914 comment "Use timer2 to callibrate the x86 time stamp counter"
Greg Watson4890a662003-06-23 01:01:17 +0000915end
Stefan Reinauer08670622009-06-30 15:17:49 +0000916define CONFIG_INTEL_PPRO_MTRR
Greg Watson4890a662003-06-23 01:01:17 +0000917 default none
Greg Watson7011f9f2004-03-25 04:41:27 +0000918 export used
Greg Watson4890a662003-06-23 01:01:17 +0000919 comment ""
920end
Greg Watson4890a662003-06-23 01:01:17 +0000921define CONFIG_UDELAY_TSC
922 default 0
923 export used
Eric Biederman9bdb4602003-09-01 23:17:58 +0000924 comment "Implement udelay with the x86 time stamp counter"
Greg Watson4890a662003-06-23 01:01:17 +0000925end
Stefan Reinauer453dfdf2005-12-04 17:50:32 +0000926define CONFIG_UDELAY_IO
927 default 0
928 export used
929 comment "Implement udelay with x86 io registers"
930end
Stefan Reinauer4fbefdd2009-07-21 21:19:06 +0000931define CONFIG_UDELAY_LAPIC
932 default 0
933 export used
934 comment "Implement udelay with the x86 Local APIC"
935end
Stefan Reinauer08670622009-06-30 15:17:49 +0000936define CONFIG_FAKE_SPDROM
Stefan Reinauer7899a5f2003-11-19 12:29:08 +0000937 default 0
938 export always
939 comment "Use this to fake spd rom values"
940end
Greg Watson4890a662003-06-23 01:01:17 +0000941
Stefan Reinauer08670622009-06-30 15:17:49 +0000942define CONFIG_HAVE_ACPI_TABLES
Stefan Reinauer688b3852004-01-28 16:56:14 +0000943 default 0
944 export always
945 comment "Define to build ACPI tables"
946end
947
Stefan Reinauer08670622009-06-30 15:17:49 +0000948define CONFIG_HAVE_ACPI_RESUME
Rudolf Mareka572f832009-04-13 17:57:44 +0000949 default 0
950 export always
951 comment "Define to build ACPI with resume support"
952end
953
Stefan Reinauer08670622009-06-30 15:17:49 +0000954define CONFIG_ACPI_SSDTX_NUM
Stefan Reinauerf622d592005-11-26 16:56:05 +0000955 default 0
956 export always
957 comment "extra ssdt num for PCI Device"
958end
959
Stefan Reinauer08670622009-06-30 15:17:49 +0000960define CONFIG_AGP_APERTURE_SIZE
Li-Ta Loe5266692004-03-23 21:28:05 +0000961 default none
962 export used
Li-Ta Loa60bf672004-05-10 19:33:27 +0000963 format "0x%x"
Li-Ta Loe5266692004-03-23 21:28:05 +0000964 comment "AGP graphics virtual memory aperture size"
965end
Stefan Reinauer688b3852004-01-28 16:56:14 +0000966
Stefan Reinauer08670622009-06-30 15:17:49 +0000967define CONFIG_HT_CHAIN_UNITID_BASE
Stefan Reinauer7ce8c542005-12-02 21:52:30 +0000968 default 1
969 export always
Yinghai Lud4b278c2006-10-04 20:46:15 +0000970 comment "this will be first hypertransport device's unitid base, if sb ht chain only has one ht device, it could be 0"
Stefan Reinauer7ce8c542005-12-02 21:52:30 +0000971end
972
Stefan Reinauer08670622009-06-30 15:17:49 +0000973define CONFIG_HT_CHAIN_END_UNITID_BASE
Stefan Reinauer7ce8c542005-12-02 21:52:30 +0000974 default 0x20
975 export always
Stefan Reinauer08670622009-06-30 15:17:49 +0000976 comment "this will be unit id of the end of hypertransport chain (usually the real SB) if it is small than CONFIG_HT_CHAIN_UNITID_BASE, it could be 0"
Stefan Reinauer7ce8c542005-12-02 21:52:30 +0000977end
978
Stefan Reinauer08670622009-06-30 15:17:49 +0000979define CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY
Stefan Reinauer7ce8c542005-12-02 21:52:30 +0000980 default 1
981 export always
982 comment "this will decided if only offset SB hypertransport chain"
983end
984
Stefan Reinauer08670622009-06-30 15:17:49 +0000985define CONFIG_SB_HT_CHAIN_ON_BUS0
Stefan Reinauer7ce8c542005-12-02 21:52:30 +0000986 default 0
987 export always
Yinghai Lud4b278c2006-10-04 20:46:15 +0000988 comment "this will make SB hypertransport chain sit on bus 0, if it is 1, will put sb ht chain on bus 0, if it is 2 will put other chain on 0x40, 0x80, 0xc0"
Stefan Reinauer7ce8c542005-12-02 21:52:30 +0000989end
990
Stefan Reinauer08670622009-06-30 15:17:49 +0000991define CONFIG_PCI_BUS_SEGN_BITS
Yinghai Lu5f9624d2006-10-04 22:56:21 +0000992 default 0
993 export always
994 comment "It could be 0, 1, 2, 3 and 4 only"
995end
996
Stefan Reinauer08670622009-06-30 15:17:49 +0000997define CONFIG_MMCONF_SUPPORT
Yinghai Lu5f9624d2006-10-04 22:56:21 +0000998 default 0
999 export always
1000 comment "enable mmconfig for pci conf"
1001end
1002
Stefan Reinauer08670622009-06-30 15:17:49 +00001003define CONFIG_MMCONF_SUPPORT_DEFAULT
Marc Jones8ae8c882007-12-19 01:32:08 +00001004 default 0
1005 export always
1006 comment "enable mmconfig for pci conf"
1007end
1008
Stefan Reinauer08670622009-06-30 15:17:49 +00001009define CONFIG_MMCONF_BASE_ADDRESS
Stefan Reinauer43b29cf2009-03-06 19:11:52 +00001010 default none
1011 format "0x%x"
1012 export used
1013 comment "enable mmconfig base address"
1014end
1015
Stefan Reinauer08670622009-06-30 15:17:49 +00001016define CONFIG_HW_MEM_HOLE_SIZEK
arch import user (historical)ef03afa2005-07-06 17:15:30 +00001017 default 0
1018 export always
Stefan Reinauerf5183cf2005-12-01 11:01:01 +00001019 comment "Opteron E0 later memory hole size in K, 0 mean disable"
1020end
1021
Stefan Reinauer08670622009-06-30 15:17:49 +00001022define CONFIG_HW_MEM_HOLE_SIZE_AUTO_INC
Stefan Reinauerf5183cf2005-12-01 11:01:01 +00001023 default 0
1024 export always
1025 comment "Opteron E0 later memory hole size auto increase to avoid hole startk equal to basek"
1026end
1027
Marc Jones8ae8c882007-12-19 01:32:08 +00001028define CONFIG_VAR_MTRR_HOLE
1029 default 1
1030 export always
1031 comment "using hole in MTRR instead of increasing method"
1032end
1033
Stefan Reinauer08670622009-06-30 15:17:49 +00001034define CONFIG_K8_HT_FREQ_1G_SUPPORT
Yinghai Lud4b278c2006-10-04 20:46:15 +00001035 default 0
Stefan Reinauerf5183cf2005-12-01 11:01:01 +00001036 export always
1037 comment "Optern E0 later could support 1G HT, but still depends MB design"
arch import user (historical)ef03afa2005-07-06 17:15:30 +00001038end
1039
Stefan Reinauer08670622009-06-30 15:17:49 +00001040define CONFIG_K8_REV_F_SUPPORT
Yinghai Lud4b278c2006-10-04 20:46:15 +00001041 default 0
1042 export always
1043 comment "Opteron Rev F (DDR2) support"
1044end
1045
Stefan Reinauer08670622009-06-30 15:17:49 +00001046define CONFIG_CBB
Yinghai Lud4b278c2006-10-04 20:46:15 +00001047 default 0
1048 export always
1049 comment "Opteron cpu bus num base"
1050end
1051
Stefan Reinauer08670622009-06-30 15:17:49 +00001052define CONFIG_CDB
Yinghai Lud4b278c2006-10-04 20:46:15 +00001053 default 0x18
1054 export always
1055 comment "Opteron cpu device num base"
1056end
1057
Stefan Reinauer08670622009-06-30 15:17:49 +00001058define CONFIG_HT3_SUPPORT
Marc Jones8ae8c882007-12-19 01:32:08 +00001059 default 0
1060 export always
1061 comment "Hypertransport 3 support, include ac HT and unganged sublink feature"
1062end
1063
Stefan Reinauer08670622009-06-30 15:17:49 +00001064define CONFIG_EXT_RT_TBL_SUPPORT
Marc Jones8ae8c882007-12-19 01:32:08 +00001065 default 0
1066 export always
1067 comment "support AMD family 10 extended routing table via F0x158, normally is enabled when node nums is greater than 8"
1068end
1069
Stefan Reinauer08670622009-06-30 15:17:49 +00001070define CONFIG_EXT_CONF_SUPPORT
Marc Jones8ae8c882007-12-19 01:32:08 +00001071 default 0
1072 export always
1073 comment "support AMD family 10 extended config space for ram, bus, io, mmio via F1x110, normally is enabled when HT3 is enabled and non ht chain nums is greater than 4"
1074end
1075
Stefan Reinauer08670622009-06-30 15:17:49 +00001076define CONFIG_DIMM_SUPPORT
Yinghai Lud4b278c2006-10-04 20:46:15 +00001077 default 0x0108
1078 format "0x%x"
1079 export always
1080 comment "DIMM support: bit 0 - sdram, bit 1: ddr1, bit 2: ddr2, bit 3: ddr3, bit 4: fbdimm, bit 8: reg"
1081end
1082
Stefan Reinauer08670622009-06-30 15:17:49 +00001083define CONFIG_CPU_SOCKET_TYPE
Yinghai Lud4b278c2006-10-04 20:46:15 +00001084 default 0x10
1085 export always
1086 comment "cpu socket type, 0x10 mean Socket F, 0x11 mean socket M2, 0x20, Soxket G, and 0x21 mean socket M3"
1087end
1088
Stefan Reinauer08670622009-06-30 15:17:49 +00001089define CONFIG_CPU_ADDR_BITS
Yinghai Lud4b278c2006-10-04 20:46:15 +00001090 default 36
1091 export always
Marc Jones8ae8c882007-12-19 01:32:08 +00001092 comment "CPU hardware address lines num, for AMD K8 could be 40, and AMD family 10 could be 48"
Yinghai Lud4b278c2006-10-04 20:46:15 +00001093end
1094
Luc Verhaegen5c5beb72009-05-29 03:04:16 +00001095define CONFIG_VGA
1096 default 0
1097 export always
1098 comment "Include VGA initialisation code"
1099end
1100
Torsten Duwe1f2f8002008-01-06 01:10:54 +00001101define CONFIG_VGA_ROM_RUN
1102 default 0
1103 export always
1104 comment "Init x86 ROMs on VGA-class PCI devices"
1105end
1106
arch import user (historical)98d0d302005-07-06 17:13:46 +00001107define CONFIG_PCI_ROM_RUN
1108 default 0
1109 export always
Torsten Duwe1f2f8002008-01-06 01:10:54 +00001110 comment "Init x86 ROMs on all PCI devices"
arch import user (historical)98d0d302005-07-06 17:13:46 +00001111end
1112
Stefan Reinauer36c83402009-03-01 10:16:01 +00001113define CONFIG_PCI_OPTION_ROM_RUN_YABEL
1114 default 0
1115 export used
1116 comment "Use Yabel instead of old bios emulator"
1117end
1118
Pattrick Hueper2075dbe2009-03-14 15:43:42 +00001119define CONFIG_YABEL_DEBUG_FLAGS
1120 default 0
1121 export used
1122 comment "YABEL debug flags, for possible values, see util/x86emu/yabel/debug.h"
1123end
1124
Pattrick Hueper12330542009-03-18 16:25:34 +00001125define CONFIG_YABEL_PCI_ACCESS_OTHER_DEVICES
1126 default 0
1127 export used
1128 comment "Allow Option ROMs executed by YABEL to access the config space of devices other than the one YABEL is running for. This may be needed by some onboard Graphics cards ROMs."
1129
1130end
1131
Joseph Smith41216222009-05-29 18:41:09 +00001132define CONFIG_PCI_OPTION_ROM_RUN_REALMODE
Stefan Reinauer36c83402009-03-01 10:16:01 +00001133 default 0
1134 export used
1135 comment "Use Yabel instead of old bios emulator"
1136end
1137
Stefan Reinauerf5183cf2005-12-01 11:01:01 +00001138define CONFIG_PCI_64BIT_PREF_MEM
1139 default 0
1140 export always
1141 comment "allow PCI device get 4G above Region as pref mem"
1142end
1143
Marc Jones8ae8c882007-12-19 01:32:08 +00001144define CONFIG_AMDMCT
Yinghai Lud57241f2007-02-28 11:17:02 +00001145 default 0
1146 export always
Marc Jones8ae8c882007-12-19 01:32:08 +00001147 comment "use AMD MCT to init RAM instead of native code"
Yinghai Lud57241f2007-02-28 11:17:02 +00001148end
1149
Stefan Reinauer08670622009-06-30 15:17:49 +00001150define CONFIG_AMD_UCODE_PATCH_FILE
Marc Jones51737cf2008-07-23 21:11:20 +00001151 default none
1152 export used
1153 format "\"%s\""
Marc Jones2aa804f2008-07-23 22:27:19 +00001154 comment "name of the microcode patch file"
1155end
Marc Jones51737cf2008-07-23 21:11:20 +00001156
Stefan Reinauer08670622009-06-30 15:17:49 +00001157define CONFIG_K8_MEM_BANK_B_ONLY
Michael Xie06755e42008-09-22 13:07:20 +00001158 default 0
1159 export always
1160 comment "use AMD K8's memory bank B only to make a 64bit memory system and memory bank A is free, such as Filbert."
1161end
1162
Ronald G. Minnich2ad85db2006-09-20 16:39:30 +00001163define CONFIG_VIDEO_MB
1164 default none
1165 export used
1166 comment "Integrated graphics with UMA has dynamic setup"
1167end
1168
Michael Xie06755e42008-09-22 13:07:20 +00001169define CONFIG_GFXUMA
1170 default none
1171 export used
1172 comment "GFX UMA"
1173end
1174
Stefan Reinauer08670622009-06-30 15:17:49 +00001175define CONFIG_HAVE_MAINBOARD_RESOURCES
Stefan Reinauer045c3482008-12-13 20:51:34 +00001176 default 0
1177 export always
1178 comment "Enable if the mainboard/chipset requires extra entries in the memory map"
1179end
1180
Stefan Reinauer08670622009-06-30 15:17:49 +00001181define CONFIG_HAVE_LOW_TABLES
Stefan Reinauer3c7f46b2009-02-27 23:09:55 +00001182 default 1
1183 export always
1184 comment "Enable if ACPI, PIRQ, MP tables are supposed to live in the low megabyte"
1185end
1186
Stefan Reinauer08670622009-06-30 15:17:49 +00001187define CONFIG_HAVE_HIGH_TABLES
Stefan Reinauer3c7f46b2009-02-27 23:09:55 +00001188 default 0
1189 export always
1190 comment "Enable if ACPI, PIRQ, MP tables are supposed to live at top of memory"
1191end
1192
Juergen Beisert37f16692007-10-07 21:00:02 +00001193define CONFIG_SPLASH_GRAPHIC
1194 default 0
1195 export used
1196 comment "Paint a splash screen"
1197end
1198
Juergen Beisert4ac32172007-10-05 21:00:10 +00001199define CONFIG_GX1_VIDEO
1200 default 0
1201 export used
1202 comment "Build in GX1's graphic support"
1203end
Ronald G. Minnich2ad85db2006-09-20 16:39:30 +00001204
Juergen Beisert4ac32172007-10-05 21:00:10 +00001205define CONFIG_GX1_VIDEOMODE
1206 default none
1207 export used
1208 comment "Define video mode after reset"
1209# could be
1210# 0 for 640x480
1211# 1 for 800x600
1212# 2 for 1024x768
1213# 3 for 1280x960
1214# 4 for 1280x1024
1215end
arch import user (historical)98d0d302005-07-06 17:13:46 +00001216
Stefan Reinauer532fd2d2008-10-29 03:15:42 +00001217define CONFIG_PCIE_CONFIGSPACE_HOLE
1218 default 0
1219 export always
1220 comment "Leave a hole for PCIe config space in the device allocator"
1221end
1222
Greg Watson062d5402003-07-17 13:14:07 +00001223###############################################
Ronald G. Minniche1313fa2003-09-26 15:23:53 +00001224# Board specific options
Greg Watson062d5402003-07-17 13:14:07 +00001225###############################################
1226
1227###############################################
1228# Options for motorola/sandpoint
1229###############################################
1230define CONFIG_SANDPOINT_ALTIMUS
1231 default 0
Greg Watson375505f2003-07-17 22:10:11 +00001232 export never
Greg Watson062d5402003-07-17 13:14:07 +00001233 comment "Configure Sandpoint with Altimus PMC"
1234end
1235define CONFIG_SANDPOINT_TALUS
1236 default 0
Greg Watson375505f2003-07-17 22:10:11 +00001237 export never
Greg Watson062d5402003-07-17 13:14:07 +00001238 comment "Configure Sandpoint with Talus PMC"
1239end
1240define CONFIG_SANDPOINT_UNITY
1241 default 0
Greg Watson375505f2003-07-17 22:10:11 +00001242 export never
Greg Watson062d5402003-07-17 13:14:07 +00001243 comment "Configure Sandpoint with Unity PMC"
1244end
1245define CONFIG_SANDPOINT_VALIS
1246 default 0
Greg Watson375505f2003-07-17 22:10:11 +00001247 export never
Greg Watson062d5402003-07-17 13:14:07 +00001248 comment "Configure Sandpoint with Valis PMC"
1249end
1250define CONFIG_SANDPOINT_GYRUS
1251 default 0
Greg Watson375505f2003-07-17 22:10:11 +00001252 export never
Greg Watson062d5402003-07-17 13:14:07 +00001253 comment "Configure Sandpoint with Gyrus PMC"
1254end
Greg Watson24aa3c82004-01-13 22:01:09 +00001255
1256###############################################
1257# Options for totalimpact/briq
1258###############################################
1259define CONFIG_BRIQ_750FX
1260 default 0
1261 export never
1262 comment "Configure briQ with PowerPC 750FX"
1263end
1264define CONFIG_BRIQ_7400
1265 default 0
1266 export never
1267 comment "Configure briQ with PowerPC G4"
1268end