blob: 2ed9b47f396b7914ddd7e133a58ec72eb3ea6f8e [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_ROMBASE
Patrick Georgi24796fd2009-10-04 18:55:40 +0000250 default {0xffffffff - CONFIG_ROM_SIZE + 1}
Greg Watson4890a662003-06-23 01:01:17 +0000251 format "0x%x"
252 export always
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000253 comment "Base address of coreboot in ROM"
Greg Watson499b3042003-07-28 21:15:13 +0000254end
Stefan Reinauer08670622009-06-30 15:17:49 +0000255define CONFIG_ROMSTART
Greg Watson0d4295f2003-11-15 15:29:30 +0000256 default none
257 format "0x%x"
258 export used
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000259 comment "Start address of coreboot in ROM"
Greg Watson0d4295f2003-11-15 15:29:30 +0000260end
Stefan Reinauer08670622009-06-30 15:17:49 +0000261define CONFIG_RESET
262 default {CONFIG_ROMBASE}
Greg Watson499b3042003-07-28 21:15:13 +0000263 format "0x%x"
264 export always
265 comment "Hardware reset vector address"
Greg Watson4890a662003-06-23 01:01:17 +0000266end
Stefan Reinauer08670622009-06-30 15:17:49 +0000267define CONFIG_EXCEPTION_VECTORS
268 default {CONFIG_ROMBASE+0x100}
Greg Watsoned462582003-11-05 18:21:30 +0000269 format "0x%x"
270 export always
271 comment "Address of exception vector table"
272end
Stefan Reinauer08670622009-06-30 15:17:49 +0000273define CONFIG_STACK_SIZE
Greg Watson4890a662003-06-23 01:01:17 +0000274 default 0x2000
275 format "0x%x"
276 export always
277 comment "Default stack size"
278end
Stefan Reinauer08670622009-06-30 15:17:49 +0000279define CONFIG_HEAP_SIZE
Greg Watson4890a662003-06-23 01:01:17 +0000280 default 0x2000
281 format "0x%x"
Greg Watson9f461322004-03-23 17:41:15 +0000282 export always
Greg Watson4890a662003-06-23 01:01:17 +0000283 comment "Default heap size"
284end
Stefan Reinauer08670622009-06-30 15:17:49 +0000285define CONFIG_RAMBASE
Ronald G. Minnich57ffeb02003-07-30 03:05:20 +0000286 default none
Greg Watson4890a662003-06-23 01:01:17 +0000287 format "0x%x"
Greg Watson9cf8c2e2003-06-23 05:00:08 +0000288 export always
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000289 comment "Base address of coreboot in RAM"
Greg Watson4890a662003-06-23 01:01:17 +0000290end
Stefan Reinauer08670622009-06-30 15:17:49 +0000291define CONFIG_RAMSTART
Greg Watson0d4295f2003-11-15 15:29:30 +0000292 default none
293 format "0x%x"
294 export used
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000295 comment "Start address of coreboot in RAM"
Greg Watson0d4295f2003-11-15 15:29:30 +0000296end
Stefan Reinauer08670622009-06-30 15:17:49 +0000297define CONFIG_USE_DCACHE_RAM
Greg Watson4890a662003-06-23 01:01:17 +0000298 default 0
arch import user (historical)6ca76362005-07-06 17:17:25 +0000299 export always
Greg Watsoned462582003-11-05 18:21:30 +0000300 comment "Use data cache as temporary RAM if possible"
Greg Watson4890a662003-06-23 01:01:17 +0000301end
Stefan Reinauer08670622009-06-30 15:17:49 +0000302define CONFIG_DCACHE_RAM_BASE
Yinghai Lud4b278c2006-10-04 20:46:15 +0000303 default 0xc0000
Greg Watson4890a662003-06-23 01:01:17 +0000304 format "0x%x"
Yinghai Lud4b278c2006-10-04 20:46:15 +0000305 export always
Greg Watsoned462582003-11-05 18:21:30 +0000306 comment "Base address of data cache when using it for temporary RAM"
Greg Watson4890a662003-06-23 01:01:17 +0000307end
Stefan Reinauer08670622009-06-30 15:17:49 +0000308define CONFIG_DCACHE_RAM_SIZE
Yinghai Lu9a791df2006-04-03 20:38:34 +0000309 default 0x1000
Greg Watson4890a662003-06-23 01:01:17 +0000310 format "0x%x"
Yinghai Lu9a791df2006-04-03 20:38:34 +0000311 export always
Greg Watsoned462582003-11-05 18:21:30 +0000312 comment "Size of data cache when using it for temporary RAM"
Greg Watson4890a662003-06-23 01:01:17 +0000313end
Stefan Reinauer08670622009-06-30 15:17:49 +0000314define CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE
Yinghai Lu9a791df2006-04-03 20:38:34 +0000315 default 0
316 format "0x%x"
317 export always
318 comment "Size of region that for global variable of cache as ram stage"
319end
Yinghai Lud4b278c2006-10-04 20:46:15 +0000320define CONFIG_AP_CODE_IN_CAR
321 default 0
322 export always
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000323 comment "will copy coreboot_apc to AP cache ane execute in AP"
Yinghai Lud4b278c2006-10-04 20:46:15 +0000324end
Stefan Reinauer08670622009-06-30 15:17:49 +0000325define CONFIG_MEM_TRAIN_SEQ
Yinghai Lud4b278c2006-10-04 20:46:15 +0000326 default 0
327 export always
328 comment "0: three for in bsp, 1: on every core0, 2: one for on bsp"
329end
Stefan Reinauer08670622009-06-30 15:17:49 +0000330define CONFIG_WAIT_BEFORE_CPUS_INIT
Yinghai Lud4b278c2006-10-04 20:46:15 +0000331 default 0
332 export always
333 comment "execute cpus_ready_for_init if it is set to 1"
334end
Stefan Reinauer08670622009-06-30 15:17:49 +0000335define CONFIG_XIP_ROM_BASE
Eric Biederman9bdb4602003-09-01 23:17:58 +0000336 default 0
Stefan Reinauer91232c12003-08-06 10:45:57 +0000337 format "0x%x"
338 export used
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000339 comment "Start address of area to cache during coreboot execution directly from ROM"
Stefan Reinauer91232c12003-08-06 10:45:57 +0000340end
Stefan Reinauer08670622009-06-30 15:17:49 +0000341define CONFIG_XIP_ROM_SIZE
Eric Biederman9bdb4602003-09-01 23:17:58 +0000342 default 0
Stefan Reinauer91232c12003-08-06 10:45:57 +0000343 format "0x%x"
344 export used
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000345 comment "Size of area to cache during coreboot execution directly from ROM"
Stefan Reinauer91232c12003-08-06 10:45:57 +0000346end
Greg Watson4890a662003-06-23 01:01:17 +0000347define CONFIG_COMPRESS
348 default 1
349 export always
350 comment "Set for compressed image"
351end
352define CONFIG_UNCOMPRESSED
Ronald G. Minnichf8651ed2003-07-25 17:31:53 +0000353 format "%d"
Greg Watson4890a662003-06-23 01:01:17 +0000354 default {!CONFIG_COMPRESS}
355 export always
356 comment "Set for uncompressed image"
357end
Myles Watson0f61a4f2009-10-16 16:32:57 +0000358define CONFIG_RAMTOP
Eric Biederman5cd81732004-03-11 15:01:31 +0000359 format "%d"
Myles Watson0f61a4f2009-10-16 16:32:57 +0000360 default 2048*1024
Eric Biederman5cd81732004-03-11 15:01:31 +0000361 export always
Myles Watson0f61a4f2009-10-16 16:32:57 +0000362 comment "Highest RAM that coreboot_ram will use"
Eric Biederman5cd81732004-03-11 15:01:31 +0000363end
Stefan Reinauer08670622009-06-30 15:17:49 +0000364define CONFIG_HAVE_OPTION_TABLE
Greg Watson4890a662003-06-23 01:01:17 +0000365 default 0
366 export always
367 comment "Export CMOS option table"
368end
Stefan Reinauer08670622009-06-30 15:17:49 +0000369define CONFIG_USE_OPTION_TABLE
Ronald G. Minnich336b4592003-07-25 17:28:43 +0000370 format "%d"
Stefan Reinauer08670622009-06-30 15:17:49 +0000371 default {CONFIG_HAVE_OPTION_TABLE && !CONFIG_USE_FALLBACK_IMAGE}
Greg Watson4890a662003-06-23 01:01:17 +0000372 export always
373 comment "Use option table"
374end
375
376###############################################
Eric Biederman5cd81732004-03-11 15:01:31 +0000377# CMOS variable options
378###############################################
Stefan Reinauer08670622009-06-30 15:17:49 +0000379define CONFIG_LB_CKS_RANGE_START
Eric Biederman5cd81732004-03-11 15:01:31 +0000380 default 49
381 format "%d"
382 export always
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000383 comment "First CMOS byte to use for coreboot options"
Eric Biederman5cd81732004-03-11 15:01:31 +0000384end
Stefan Reinauer08670622009-06-30 15:17:49 +0000385define CONFIG_LB_CKS_RANGE_END
Eric Biederman5cd81732004-03-11 15:01:31 +0000386 default 125
387 format "%d"
388 export always
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000389 comment "Last CMOS byte to use for coreboot options"
Eric Biederman5cd81732004-03-11 15:01:31 +0000390end
Stefan Reinauer08670622009-06-30 15:17:49 +0000391define CONFIG_LB_CKS_LOC
Eric Biederman5cd81732004-03-11 15:01:31 +0000392 default 126
393 format "%d"
394 export always
395 comment "Pair of bytes to use for CMOS checksum"
396end
397
398
399###############################################
Greg Watson4890a662003-06-23 01:01:17 +0000400# Build targets
401###############################################
402
Stefan Reinauer08670622009-06-30 15:17:49 +0000403define CONFIG_CRT0
404 default "$(TOP)/src/arch/$(CONFIG_ARCH)/init/crt0.S.lb"
Greg Watson4890a662003-06-23 01:01:17 +0000405 export always
406 comment "Main initialization target"
407end
408
409###############################################
410# Debugging/Logging options
411###############################################
412
Stefan Reinauer08670622009-06-30 15:17:49 +0000413define CONFIG_DEBUG
Stefan Reinauerdf2eb8e2009-01-21 01:56:53 +0000414 default 0
Greg Watson4890a662003-06-23 01:01:17 +0000415 export always
Stefan Reinauerdf2eb8e2009-01-21 01:56:53 +0000416 comment "Enable x86emu debugging code"
Greg Watson4890a662003-06-23 01:01:17 +0000417end
Myles Watson6afb6982009-09-17 18:30:23 +0000418define CONFIG_VGA_BRIDGE_SETUP
419 default 1
420 export always
421 comment "Set bridge bits to enable legacy VGA ranges"
422end
Greg Watson4890a662003-06-23 01:01:17 +0000423define CONFIG_CONSOLE_VGA
424 default 0
425 export always
Torsten Duwe1f2f8002008-01-06 01:10:54 +0000426 comment "Log messages to any VGA-compatible device (may require *_ROM_RUN to bring up)"
Greg Watson4890a662003-06-23 01:01:17 +0000427end
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000428define CONFIG_CONSOLE_VGA_MULTI
429 default 0
430 export always
431 comment "Multi VGA console"
432end
Yinghai Lu2b396cd2006-05-18 16:54:30 +0000433define CONFIG_CONSOLE_VGA_ONBOARD_AT_FIRST
434 default 0
435 export always
436 comment "Use onboard VGA instead of add on VGA card"
437end
Stefan Reinauerf05dcb82004-04-24 22:29:44 +0000438define CONFIG_CONSOLE_BTEXT
439 default 0
440 export always
441 comment "Log messages to btext fb console"
442end
Greg Watson4890a662003-06-23 01:01:17 +0000443define CONFIG_CONSOLE_LOGBUF
444 default 0
445 export always
446 comment "Log messages to buffer"
447end
448define CONFIG_CONSOLE_SROM
449 default 0
450 export always
451 comment "Log messages to SROM console"
452end
453define CONFIG_CONSOLE_SERIAL8250
454 default 0
455 export always
Eric Biederman9bdb4602003-09-01 23:17:58 +0000456 comment "Log messages to 8250 uart based serial console"
Greg Watson4890a662003-06-23 01:01:17 +0000457end
Yinghai Lud57241f2007-02-28 11:17:02 +0000458define CONFIG_USBDEBUG_DIRECT
459 default 0
460 export always
461 comment "Log messages to ehci debug port console"
462end
Stefan Reinauer08670622009-06-30 15:17:49 +0000463define CONFIG_DEFAULT_CONSOLE_LOGLEVEL
Ronald G. Minnichffc161e2003-07-23 01:42:29 +0000464 default 7
465 export always
466 comment "Console will log at this level unless changed"
467end
Stefan Reinauer08670622009-06-30 15:17:49 +0000468define CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
Greg Watsonc99bd5f2003-07-23 21:36:12 +0000469 default 8
Greg Watson4890a662003-06-23 01:01:17 +0000470 export always
Ronald G. Minnichffc161e2003-07-23 01:42:29 +0000471 comment "Error messages up to this level can be printed"
Greg Watson4890a662003-06-23 01:01:17 +0000472end
Ronald G. Minnichb9e06c22004-03-19 21:02:36 +0000473define CONFIG_SERIAL_POST
474 default 0
475 export always
476 comment "Enable SERIAL POST codes"
477end
Stefan Reinauer08670622009-06-30 15:17:49 +0000478define CONFIG_NO_POST
Greg Watson4890a662003-06-23 01:01:17 +0000479 default none
Greg Watson9f461322004-03-23 17:41:15 +0000480 export used
Greg Watson4890a662003-06-23 01:01:17 +0000481 comment "Disable POST codes"
482end
Stefan Reinauer08670622009-06-30 15:17:49 +0000483define CONFIG_TTYS0_BASE
Eric Biederman9bdb4602003-09-01 23:17:58 +0000484 default 0x3f8
Greg Watsoned462582003-11-05 18:21:30 +0000485 format "0x%x"
Eric Biederman9bdb4602003-09-01 23:17:58 +0000486 export always
487 comment "Base address for 8250 uart for the serial console"
488end
Stefan Reinauer08670622009-06-30 15:17:49 +0000489define CONFIG_TTYS0_BAUD
Greg Watson4890a662003-06-23 01:01:17 +0000490 default 115200
491 export always
492 comment "Default baud rate for serial console"
493end
Stefan Reinauer08670622009-06-30 15:17:49 +0000494define CONFIG_TTYS0_DIV
Greg Watsonbf5b5842004-01-14 17:08:14 +0000495 default none
496 format "%d"
497 export used
498 comment "Allow UART divisor to be set explicitly"
499end
Stefan Reinauer08670622009-06-30 15:17:49 +0000500define CONFIG_TTYS0_LCS
Eric Biederman9bdb4602003-09-01 23:17:58 +0000501 default 0x3
Greg Watsoned462582003-11-05 18:21:30 +0000502 format "0x%x"
Eric Biederman9bdb4602003-09-01 23:17:58 +0000503 export always
504 comment "Default flow control settings for the 8250 serial console uart"
505end
Yinghai Lu5f9624d2006-10-04 22:56:21 +0000506
507define CONFIG_USE_PRINTK_IN_CAR
508 default 0
509 export always
510 comment "use printk instead of print in CAR stage code"
511end
Stefan Reinauer08670622009-06-30 15:17:49 +0000512define CONFIG_ASSEMBLER_DEBUG
Stefan Reinauer23b655f2009-01-20 22:07:20 +0000513 default 0
514 export always
Stefan Reinaueref6cb092009-01-20 20:13:01 +0000515 comment "Create disassembly files for debugging"
516end
Yinghai Lu5f9624d2006-10-04 22:56:21 +0000517
Greg Watson4890a662003-06-23 01:01:17 +0000518###############################################
519# Mainboard options
520###############################################
521
Stefan Reinauer08670622009-06-30 15:17:49 +0000522define CONFIG_MAINBOARD
Greg Watson4890a662003-06-23 01:01:17 +0000523 default "Mainboard_not_set"
524 export always
525 comment "Mainboard name"
526end
Stefan Reinauer08670622009-06-30 15:17:49 +0000527define CONFIG_MAINBOARD_PART_NUMBER
Greg Watson4890a662003-06-23 01:01:17 +0000528 default "Part_number_not_set"
529 export always
Eric Biedermanb78c1972004-10-14 20:54:17 +0000530 format "\"%s\""
Greg Watson4890a662003-06-23 01:01:17 +0000531 comment "Part number of mainboard"
532end
Stefan Reinauer08670622009-06-30 15:17:49 +0000533define CONFIG_MAINBOARD_VENDOR
Greg Watson4890a662003-06-23 01:01:17 +0000534 default "Vendor_not_set"
535 export always
Eric Biedermanb78c1972004-10-14 20:54:17 +0000536 format "\"%s\""
Greg Watson4890a662003-06-23 01:01:17 +0000537 comment "Vendor of mainboard"
538end
Stefan Reinauer08670622009-06-30 15:17:49 +0000539define CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
Eric Biedermanb78c1972004-10-14 20:54:17 +0000540 default 0
541 export always
542 comment "PCI Vendor ID of mainboard manufacturer"
543end
Stefan Reinauer08670622009-06-30 15:17:49 +0000544define CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
Eric Biedermanb78c1972004-10-14 20:54:17 +0000545 default 0
546 format "0x%x"
547 export always
548 comment "PCI susbsystem device id assigned my mainboard manufacturer"
549end
Stefan Reinauer08670622009-06-30 15:17:49 +0000550define CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL
Eric Biederman5cd81732004-03-11 15:01:31 +0000551 default none
552 export used
553 comment "Default power on after power fail setting"
554end
Greg Watson499b3042003-07-28 21:15:13 +0000555define CONFIG_SYS_CLK_FREQ
556 default none
557 export used
558 comment "System clock frequency in MHz"
559end
Jon Harrisoncfb9cd22009-07-01 10:57:25 +0000560define CONFIG_EPIA_VT8237R_INIT
561 default none
562 export used
563 comment "Enable EPIA Specific Initialisation of VT8237R SB"
564end
Greg Watson4890a662003-06-23 01:01:17 +0000565###############################################
566# SMP options
567###############################################
568
569define CONFIG_SMP
Ronald G. Minnich1807c372003-06-24 19:44:00 +0000570 default 0
Greg Watson4890a662003-06-23 01:01:17 +0000571 export always
572 comment "Define if we support SMP"
573end
Ronald G. Minnich57ffeb02003-07-30 03:05:20 +0000574define CONFIG_MAX_CPUS
575 default 1
576 export always
Eric Biederman9bdb4602003-09-01 23:17:58 +0000577 comment "Maximum CPU count for this machine"
Ronald G. Minnich57ffeb02003-07-30 03:05:20 +0000578end
arch import user (historical)ef03afa2005-07-06 17:15:30 +0000579define CONFIG_MAX_PHYSICAL_CPUS
580 default 1
581 export always
582 comment "Maximum physical CPU count for this machine"
583end
Eric Biederman9bdb4602003-09-01 23:17:58 +0000584define CONFIG_LOGICAL_CPUS
585 default 0
586 export always
587 comment "Should multiple cpus per die be enabled?"
588end
Stefan Reinauer68524062008-08-02 15:15:23 +0000589define CONFIG_AP_IN_SIPI_WAIT
590 default 0
591 export always
592 comment "Should application processors go to SIPI wait state after initialization? (Required for Intel Core Duo)"
593end
Myles Watsonb8e20272009-10-15 13:35:47 +0000594define CONFIG_GENERATE_MP_TABLE
Greg Watson4890a662003-06-23 01:01:17 +0000595 default none
Greg Watson9f461322004-03-23 17:41:15 +0000596 export used
Greg Watson4890a662003-06-23 01:01:17 +0000597 comment "Define to build an MP table"
598end
Stefan Reinauer08670622009-06-30 15:17:49 +0000599define CONFIG_SERIAL_CPU_INIT
arch import user (historical)ef03afa2005-07-06 17:15:30 +0000600 default 1
601 export always
602 comment "Serialize CPU init"
603end
Stefan Reinauer08670622009-06-30 15:17:49 +0000604define CONFIG_APIC_ID_OFFSET
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000605 default 0
606 export always
607 comment "We need to share this value between cache_as_ram_auto.c and northbridge.c"
608end
Stefan Reinauer08670622009-06-30 15:17:49 +0000609define CONFIG_ENABLE_APIC_EXT_ID
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000610 default 0
611 export always
612 comment "Enable APIC ext id mode 8 bit"
613end
Stefan Reinauer08670622009-06-30 15:17:49 +0000614define CONFIG_LIFT_BSP_APIC_ID
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000615 default 0
616 export always
617 comment "decide if we lift bsp apic id while ap apic id"
618end
Greg Watson4890a662003-06-23 01:01:17 +0000619###############################################
620# Boot options
621###############################################
622
Robert Millan81af3d42008-11-11 20:20:54 +0000623define CONFIG_MULTIBOOT
624 default 1
625 export always
626 comment "Use Multiboot (rather than ELF boot notes) to boot the payload"
627end
Ed Swierkbe13dc72006-12-15 12:56:28 +0000628define CONFIG_ROM_PAYLOAD
Greg Watson4890a662003-06-23 01:01:17 +0000629 default 0
630 export always
631 comment "Boot image is located in ROM"
632end
Ed Swierk1a7a5b42006-12-15 11:42:16 +0000633define CONFIG_COMPRESSED_PAYLOAD_NRV2B
Carl-Daniel Hailfingercba07dd2006-09-14 15:12:36 +0000634 default 0
635 export always
636 comment "NRV2B compressed boot image is located in ROM"
637end
Ed Swierk1a7a5b42006-12-15 11:42:16 +0000638define CONFIG_COMPRESSED_PAYLOAD_LZMA
Carl-Daniel Hailfingercba07dd2006-09-14 15:12:36 +0000639 default 0
640 export always
641 comment "LZMA compressed boot image is located in ROM"
Stefan Reinaueread73682006-05-02 12:05:13 +0000642end
Ed Swierk1a7a5b42006-12-15 11:42:16 +0000643define CONFIG_PRECOMPRESSED_PAYLOAD
Stefan Reinauer8ad7c062006-08-03 16:19:27 +0000644 default 0
645 export always
646 comment "boot image is already compressed"
647end
Greg Watson4890a662003-06-23 01:01:17 +0000648
Stefan Reinauer08670622009-06-30 15:17:49 +0000649define CONFIG_USE_WATCHDOG_ON_BOOT
Yinghai Lu13f1c2a2005-07-08 02:49:49 +0000650 default 0
651 export always
652 comment "Use the watchdog on booting"
653end
654
655###############################################
656# Plugin Device support options
657###############################################
658
659define CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT
660 default 1
661 export always
662 comment "Enable support for plugin Hypertransport busses"
663end
664define CONFIG_AGP_PLUGIN_SUPPORT
665 default 1
666 export always
667 comment "Enable support for plugin AGP busses"
668end
669define CONFIG_CARDBUS_PLUGIN_SUPPORT
670 default 1
671 export always
672 comment "Enable support cardbus plugin cards"
673end
674define CONFIG_PCIX_PLUGIN_SUPPORT
675 default 1
676 export always
677 comment "Enable support for plugin PCI-X busses"
678end
679define CONFIG_PCIEXP_PLUGIN_SUPPORT
680 default 1
681 export always
682 comment "Enable support for plugin PCI-E busses"
683end
684
Greg Watson4890a662003-06-23 01:01:17 +0000685###############################################
686# IRQ options
687###############################################
688
Myles Watsonb8e20272009-10-15 13:35:47 +0000689define CONFIG_GENERATE_PIRQ_TABLE
Greg Watson4890a662003-06-23 01:01:17 +0000690 default none
Greg Watson9f461322004-03-23 17:41:15 +0000691 export used
Greg Watson4890a662003-06-23 01:01:17 +0000692 comment "Define if we have a PIRQ table"
693end
Stefan Reinauer08670622009-06-30 15:17:49 +0000694define CONFIG_PIRQ_ROUTE
Nikolay Petukhov9c2255c2008-03-29 16:59:27 +0000695 default 0
Stefan Reinauerd0db8f92009-03-19 01:30:16 +0000696 export always
Nikolay Petukhov9c2255c2008-03-29 16:59:27 +0000697 comment "Define if we have a PIRQ table and want routing IRQs"
698end
Stefan Reinauer08670622009-06-30 15:17:49 +0000699define CONFIG_IRQ_SLOT_COUNT
Greg Watson4890a662003-06-23 01:01:17 +0000700 default none
Greg Watson9f461322004-03-23 17:41:15 +0000701 export used
Greg Watson4890a662003-06-23 01:01:17 +0000702 comment "Number of IRQ slots"
703end
704define CONFIG_PCIBIOS_IRQ
705 default none
Greg Watson9f461322004-03-23 17:41:15 +0000706 export used
Greg Watson4890a662003-06-23 01:01:17 +0000707 comment "PCIBIOS IRQ support"
708end
709define CONFIG_IOAPIC
Myles Watsonec0ee642009-10-19 16:21:30 +0000710 default 0
711 export always
Greg Watson4890a662003-06-23 01:01:17 +0000712 comment "IOAPIC support"
713end
714
715###############################################
Greg Watsoned462582003-11-05 18:21:30 +0000716# Options for memory mapped I/O
717###############################################
718
Stefan Reinauer08670622009-06-30 15:17:49 +0000719define CONFIG_PCI_IO_CFG_EXT
Yinghai Lu5f9624d2006-10-04 22:56:21 +0000720 default 0
721 export always
722 comment "allow 4K register space via io CFG port"
723end
724
Stefan Reinauer08670622009-06-30 15:17:49 +0000725define CONFIG_PCIC0_CFGADDR
Greg Watsoned462582003-11-05 18:21:30 +0000726 default none
727 format "0x%x"
728 export used
Greg Watson90947232004-01-22 01:03:41 +0000729 comment "Address of PCI Configuration Address Register"
Greg Watsoned462582003-11-05 18:21:30 +0000730end
Stefan Reinauer08670622009-06-30 15:17:49 +0000731define CONFIG_PCIC0_CFGDATA
Greg Watsoned462582003-11-05 18:21:30 +0000732 default none
733 format "0x%x"
734 export used
Greg Watson90947232004-01-22 01:03:41 +0000735 comment "Address of PCI Configuration Data Register"
736end
Stefan Reinauer08670622009-06-30 15:17:49 +0000737define CONFIG_ISA_IO_BASE
Greg Watson90947232004-01-22 01:03:41 +0000738 default none
739 format "0x%x"
740 export used
741 comment "Base address of PCI/ISA I/O address range"
742end
Stefan Reinauer08670622009-06-30 15:17:49 +0000743define CONFIG_ISA_MEM_BASE
Greg Watson90947232004-01-22 01:03:41 +0000744 default none
745 format "0x%x"
746 export used
747 comment "Base address of PCI/ISA memory address range"
Greg Watsoned462582003-11-05 18:21:30 +0000748end
Stefan Reinauer08670622009-06-30 15:17:49 +0000749define CONFIG_PNP_CFGADDR
Greg Watsone3da4d32003-11-09 23:29:42 +0000750 default none
751 format "0x%x"
752 export used
Greg Watson90947232004-01-22 01:03:41 +0000753 comment "PNP Configuration Address Register offset"
Greg Watsone3da4d32003-11-09 23:29:42 +0000754end
Stefan Reinauer08670622009-06-30 15:17:49 +0000755define CONFIG_PNP_CFGDATA
Greg Watsone3da4d32003-11-09 23:29:42 +0000756 default none
757 format "0x%x"
758 export used
Greg Watson90947232004-01-22 01:03:41 +0000759 comment "PNP Configuration Data Register offset"
Greg Watsone3da4d32003-11-09 23:29:42 +0000760end
Stefan Reinauer08670622009-06-30 15:17:49 +0000761define CONFIG_IO_BASE
Greg Watsoned462582003-11-05 18:21:30 +0000762 default none
763 format "0x%x"
764 export used
Greg Watson90947232004-01-22 01:03:41 +0000765 comment "Base address of memory mapped I/O operations"
Greg Watsoned462582003-11-05 18:21:30 +0000766end
767
768###############################################
769# Options for embedded systems
770###############################################
771
Stefan Reinauer08670622009-06-30 15:17:49 +0000772define CONFIG_EMBEDDED_RAM_SIZE
Greg Watsoned462582003-11-05 18:21:30 +0000773 default none
774 export used
775 comment "Embedded boards generally have fixed RAM size"
776end
777
778###############################################
Greg Watson4890a662003-06-23 01:01:17 +0000779# Misc options
780###############################################
781
Eric Biedermanf8a2ddd2004-10-30 08:05:41 +0000782define CONFIG_GDB_STUB
783 default 0
784 export used
785 comment "Compile in gdb stub support?"
786end
787
Stefan Reinauer08670622009-06-30 15:17:49 +0000788define CONFIG_HAVE_INIT_TIMER
Eric Biederman6e53f502004-10-27 08:53:57 +0000789 default 0
790 export always
791 comment "Have a init_timer function"
792end
Stefan Reinauer08670622009-06-30 15:17:49 +0000793define CONFIG_HAVE_HARD_RESET
Greg Watson4890a662003-06-23 01:01:17 +0000794 default none
795 export used
796 comment "Have hard reset"
797end
Stefan Reinauer08670622009-06-30 15:17:49 +0000798define CONFIG_HAVE_SMI_HANDLER
Stefan Reinauerd0363c32009-01-19 21:34:41 +0000799 default 0
800 export always
Stefan Reinauerdebb11f2008-10-29 04:46:52 +0000801 comment "Set, if the board needs an SMI handler"
802end
Stefan Reinauer08670622009-06-30 15:17:49 +0000803define CONFIG_MEMORY_HOLE
Greg Watson4890a662003-06-23 01:01:17 +0000804 default none
805 export used
806 comment "Set to deal with memory hole"
807end
Stefan Reinauer08670622009-06-30 15:17:49 +0000808define CONFIG_MAX_REBOOT_CNT
Eric Biederman9bdb4602003-09-01 23:17:58 +0000809 default 3
Greg Watson4890a662003-06-23 01:01:17 +0000810 export always
811 comment "Set maximum reboots"
812end
Greg Watson4890a662003-06-23 01:01:17 +0000813
814###############################################
815# Misc device options
816###############################################
817
Myles Watsonec0ee642009-10-19 16:21:30 +0000818define CONFIG_SUPERIO_ITE_IT8716F_OVERRIDE_FANCTL
Ronald Hoogenboom56cf01f2008-02-25 19:36:20 +0000819 default 0
820 export used
821 comment "Include board specific FAN control initialization"
822end
Greg Watson4890a662003-06-23 01:01:17 +0000823define CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
Eric Biederman9bdb4602003-09-01 23:17:58 +0000824 default 0
Greg Watson4890a662003-06-23 01:01:17 +0000825 export used
Eric Biederman9bdb4602003-09-01 23:17:58 +0000826 comment "Use timer2 to callibrate the x86 time stamp counter"
Greg Watson4890a662003-06-23 01:01:17 +0000827end
Stefan Reinauer08670622009-06-30 15:17:49 +0000828define CONFIG_INTEL_PPRO_MTRR
Greg Watson4890a662003-06-23 01:01:17 +0000829 default none
Greg Watson7011f9f2004-03-25 04:41:27 +0000830 export used
Greg Watson4890a662003-06-23 01:01:17 +0000831 comment ""
832end
Greg Watson4890a662003-06-23 01:01:17 +0000833define CONFIG_UDELAY_TSC
834 default 0
835 export used
Eric Biederman9bdb4602003-09-01 23:17:58 +0000836 comment "Implement udelay with the x86 time stamp counter"
Greg Watson4890a662003-06-23 01:01:17 +0000837end
Stefan Reinauer453dfdf2005-12-04 17:50:32 +0000838define CONFIG_UDELAY_IO
839 default 0
840 export used
841 comment "Implement udelay with x86 io registers"
842end
Stefan Reinauer4fbefdd2009-07-21 21:19:06 +0000843define CONFIG_UDELAY_LAPIC
844 default 0
845 export used
846 comment "Implement udelay with the x86 Local APIC"
847end
Stefan Reinauer08670622009-06-30 15:17:49 +0000848define CONFIG_FAKE_SPDROM
Stefan Reinauer7899a5f2003-11-19 12:29:08 +0000849 default 0
850 export always
851 comment "Use this to fake spd rom values"
852end
Greg Watson4890a662003-06-23 01:01:17 +0000853
Myles Watsonb8e20272009-10-15 13:35:47 +0000854define CONFIG_GENERATE_ACPI_TABLES
Stefan Reinauer688b3852004-01-28 16:56:14 +0000855 default 0
856 export always
857 comment "Define to build ACPI tables"
858end
859
Stefan Reinauer08670622009-06-30 15:17:49 +0000860define CONFIG_HAVE_ACPI_RESUME
Rudolf Mareka572f832009-04-13 17:57:44 +0000861 default 0
862 export always
863 comment "Define to build ACPI with resume support"
864end
865
Stefan Reinauer08670622009-06-30 15:17:49 +0000866define CONFIG_ACPI_SSDTX_NUM
Stefan Reinauerf622d592005-11-26 16:56:05 +0000867 default 0
868 export always
869 comment "extra ssdt num for PCI Device"
870end
871
Stefan Reinauer08670622009-06-30 15:17:49 +0000872define CONFIG_AGP_APERTURE_SIZE
Li-Ta Loe5266692004-03-23 21:28:05 +0000873 default none
874 export used
Li-Ta Loa60bf672004-05-10 19:33:27 +0000875 format "0x%x"
Li-Ta Loe5266692004-03-23 21:28:05 +0000876 comment "AGP graphics virtual memory aperture size"
877end
Stefan Reinauer688b3852004-01-28 16:56:14 +0000878
Stefan Reinauer08670622009-06-30 15:17:49 +0000879define CONFIG_HT_CHAIN_UNITID_BASE
Stefan Reinauer7ce8c542005-12-02 21:52:30 +0000880 default 1
881 export always
Yinghai Lud4b278c2006-10-04 20:46:15 +0000882 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 +0000883end
884
Stefan Reinauer08670622009-06-30 15:17:49 +0000885define CONFIG_HT_CHAIN_END_UNITID_BASE
Stefan Reinauer7ce8c542005-12-02 21:52:30 +0000886 default 0x20
887 export always
Stefan Reinauer08670622009-06-30 15:17:49 +0000888 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 +0000889end
890
Stefan Reinauer08670622009-06-30 15:17:49 +0000891define CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY
Stefan Reinauer7ce8c542005-12-02 21:52:30 +0000892 default 1
893 export always
894 comment "this will decided if only offset SB hypertransport chain"
895end
896
Stefan Reinauer08670622009-06-30 15:17:49 +0000897define CONFIG_SB_HT_CHAIN_ON_BUS0
Stefan Reinauer7ce8c542005-12-02 21:52:30 +0000898 default 0
899 export always
Yinghai Lud4b278c2006-10-04 20:46:15 +0000900 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 +0000901end
902
Stefan Reinauer08670622009-06-30 15:17:49 +0000903define CONFIG_PCI_BUS_SEGN_BITS
Yinghai Lu5f9624d2006-10-04 22:56:21 +0000904 default 0
905 export always
906 comment "It could be 0, 1, 2, 3 and 4 only"
907end
908
Stefan Reinauer08670622009-06-30 15:17:49 +0000909define CONFIG_MMCONF_SUPPORT
Yinghai Lu5f9624d2006-10-04 22:56:21 +0000910 default 0
911 export always
912 comment "enable mmconfig for pci conf"
913end
914
Stefan Reinauer08670622009-06-30 15:17:49 +0000915define CONFIG_MMCONF_SUPPORT_DEFAULT
Marc Jones8ae8c882007-12-19 01:32:08 +0000916 default 0
917 export always
918 comment "enable mmconfig for pci conf"
919end
920
Stefan Reinauer08670622009-06-30 15:17:49 +0000921define CONFIG_MMCONF_BASE_ADDRESS
Stefan Reinauer43b29cf2009-03-06 19:11:52 +0000922 default none
923 format "0x%x"
924 export used
925 comment "enable mmconfig base address"
926end
927
Stefan Reinauer08670622009-06-30 15:17:49 +0000928define CONFIG_HW_MEM_HOLE_SIZEK
arch import user (historical)ef03afa2005-07-06 17:15:30 +0000929 default 0
930 export always
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000931 comment "Opteron E0 later memory hole size in K, 0 mean disable"
932end
933
Stefan Reinauer08670622009-06-30 15:17:49 +0000934define CONFIG_HW_MEM_HOLE_SIZE_AUTO_INC
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000935 default 0
936 export always
937 comment "Opteron E0 later memory hole size auto increase to avoid hole startk equal to basek"
938end
939
Marc Jones8ae8c882007-12-19 01:32:08 +0000940define CONFIG_VAR_MTRR_HOLE
941 default 1
942 export always
943 comment "using hole in MTRR instead of increasing method"
944end
945
Stefan Reinauer08670622009-06-30 15:17:49 +0000946define CONFIG_K8_HT_FREQ_1G_SUPPORT
Yinghai Lud4b278c2006-10-04 20:46:15 +0000947 default 0
Stefan Reinauerf5183cf2005-12-01 11:01:01 +0000948 export always
949 comment "Optern E0 later could support 1G HT, but still depends MB design"
arch import user (historical)ef03afa2005-07-06 17:15:30 +0000950end
951
Stefan Reinauer08670622009-06-30 15:17:49 +0000952define CONFIG_K8_REV_F_SUPPORT
Yinghai Lud4b278c2006-10-04 20:46:15 +0000953 default 0
954 export always
955 comment "Opteron Rev F (DDR2) support"
956end
957
Stefan Reinauer08670622009-06-30 15:17:49 +0000958define CONFIG_CBB
Yinghai Lud4b278c2006-10-04 20:46:15 +0000959 default 0
960 export always
961 comment "Opteron cpu bus num base"
962end
963
Stefan Reinauer08670622009-06-30 15:17:49 +0000964define CONFIG_CDB
Yinghai Lud4b278c2006-10-04 20:46:15 +0000965 default 0x18
966 export always
967 comment "Opteron cpu device num base"
968end
969
Stefan Reinauer08670622009-06-30 15:17:49 +0000970define CONFIG_HT3_SUPPORT
Marc Jones8ae8c882007-12-19 01:32:08 +0000971 default 0
972 export always
973 comment "Hypertransport 3 support, include ac HT and unganged sublink feature"
974end
975
Stefan Reinauer08670622009-06-30 15:17:49 +0000976define CONFIG_EXT_RT_TBL_SUPPORT
Marc Jones8ae8c882007-12-19 01:32:08 +0000977 default 0
978 export always
979 comment "support AMD family 10 extended routing table via F0x158, normally is enabled when node nums is greater than 8"
980end
981
Stefan Reinauer08670622009-06-30 15:17:49 +0000982define CONFIG_EXT_CONF_SUPPORT
Marc Jones8ae8c882007-12-19 01:32:08 +0000983 default 0
984 export always
985 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"
986end
987
Stefan Reinauer08670622009-06-30 15:17:49 +0000988define CONFIG_DIMM_SUPPORT
Yinghai Lud4b278c2006-10-04 20:46:15 +0000989 default 0x0108
990 format "0x%x"
991 export always
992 comment "DIMM support: bit 0 - sdram, bit 1: ddr1, bit 2: ddr2, bit 3: ddr3, bit 4: fbdimm, bit 8: reg"
993end
994
Stefan Reinauer08670622009-06-30 15:17:49 +0000995define CONFIG_CPU_SOCKET_TYPE
Yinghai Lud4b278c2006-10-04 20:46:15 +0000996 default 0x10
997 export always
998 comment "cpu socket type, 0x10 mean Socket F, 0x11 mean socket M2, 0x20, Soxket G, and 0x21 mean socket M3"
999end
1000
Stefan Reinauer08670622009-06-30 15:17:49 +00001001define CONFIG_CPU_ADDR_BITS
Yinghai Lud4b278c2006-10-04 20:46:15 +00001002 default 36
1003 export always
Marc Jones8ae8c882007-12-19 01:32:08 +00001004 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 +00001005end
1006
Luc Verhaegen5c5beb72009-05-29 03:04:16 +00001007define CONFIG_VGA
1008 default 0
1009 export always
1010 comment "Include VGA initialisation code"
1011end
1012
Torsten Duwe1f2f8002008-01-06 01:10:54 +00001013define CONFIG_VGA_ROM_RUN
1014 default 0
1015 export always
1016 comment "Init x86 ROMs on VGA-class PCI devices"
1017end
1018
arch import user (historical)98d0d302005-07-06 17:13:46 +00001019define CONFIG_PCI_ROM_RUN
1020 default 0
1021 export always
Torsten Duwe1f2f8002008-01-06 01:10:54 +00001022 comment "Init x86 ROMs on all PCI devices"
arch import user (historical)98d0d302005-07-06 17:13:46 +00001023end
1024
Stefan Reinauer36c83402009-03-01 10:16:01 +00001025define CONFIG_PCI_OPTION_ROM_RUN_YABEL
1026 default 0
1027 export used
1028 comment "Use Yabel instead of old bios emulator"
1029end
1030
Pattrick Hueper2075dbe2009-03-14 15:43:42 +00001031define CONFIG_YABEL_DEBUG_FLAGS
1032 default 0
1033 export used
1034 comment "YABEL debug flags, for possible values, see util/x86emu/yabel/debug.h"
1035end
1036
Pattrick Hueper12330542009-03-18 16:25:34 +00001037define CONFIG_YABEL_PCI_ACCESS_OTHER_DEVICES
1038 default 0
1039 export used
1040 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."
1041
1042end
1043
Joseph Smith41216222009-05-29 18:41:09 +00001044define CONFIG_PCI_OPTION_ROM_RUN_REALMODE
Stefan Reinauer36c83402009-03-01 10:16:01 +00001045 default 0
1046 export used
1047 comment "Use Yabel instead of old bios emulator"
1048end
1049
Stefan Reinauerf5183cf2005-12-01 11:01:01 +00001050define CONFIG_PCI_64BIT_PREF_MEM
1051 default 0
1052 export always
1053 comment "allow PCI device get 4G above Region as pref mem"
1054end
1055
Marc Jones8ae8c882007-12-19 01:32:08 +00001056define CONFIG_AMDMCT
Yinghai Lud57241f2007-02-28 11:17:02 +00001057 default 0
1058 export always
Marc Jones8ae8c882007-12-19 01:32:08 +00001059 comment "use AMD MCT to init RAM instead of native code"
Yinghai Lud57241f2007-02-28 11:17:02 +00001060end
1061
Stefan Reinauer08670622009-06-30 15:17:49 +00001062define CONFIG_AMD_UCODE_PATCH_FILE
Marc Jones51737cf2008-07-23 21:11:20 +00001063 default none
1064 export used
1065 format "\"%s\""
Marc Jones2aa804f2008-07-23 22:27:19 +00001066 comment "name of the microcode patch file"
1067end
Marc Jones51737cf2008-07-23 21:11:20 +00001068
Stefan Reinauer08670622009-06-30 15:17:49 +00001069define CONFIG_K8_MEM_BANK_B_ONLY
Michael Xie06755e42008-09-22 13:07:20 +00001070 default 0
1071 export always
1072 comment "use AMD K8's memory bank B only to make a 64bit memory system and memory bank A is free, such as Filbert."
1073end
1074
Ronald G. Minnich2ad85db2006-09-20 16:39:30 +00001075define CONFIG_VIDEO_MB
Myles Watsonec0ee642009-10-19 16:21:30 +00001076 default 0
1077 export always
Ronald G. Minnich2ad85db2006-09-20 16:39:30 +00001078 comment "Integrated graphics with UMA has dynamic setup"
1079end
1080
Michael Xie06755e42008-09-22 13:07:20 +00001081define CONFIG_GFXUMA
Myles Watsonec0ee642009-10-19 16:21:30 +00001082 default 0
1083 export always
Michael Xie06755e42008-09-22 13:07:20 +00001084 comment "GFX UMA"
1085end
1086
Stefan Reinauer08670622009-06-30 15:17:49 +00001087define CONFIG_HAVE_MAINBOARD_RESOURCES
Stefan Reinauer045c3482008-12-13 20:51:34 +00001088 default 0
1089 export always
1090 comment "Enable if the mainboard/chipset requires extra entries in the memory map"
1091end
1092
Stefan Reinauer08670622009-06-30 15:17:49 +00001093define CONFIG_HAVE_LOW_TABLES
Stefan Reinauer3c7f46b2009-02-27 23:09:55 +00001094 default 1
1095 export always
1096 comment "Enable if ACPI, PIRQ, MP tables are supposed to live in the low megabyte"
1097end
1098
Myles Watsonb8e20272009-10-15 13:35:47 +00001099define CONFIG_WRITE_HIGH_TABLES
Stefan Reinauer3c7f46b2009-02-27 23:09:55 +00001100 default 0
1101 export always
1102 comment "Enable if ACPI, PIRQ, MP tables are supposed to live at top of memory"
1103end
1104
Juergen Beisert37f16692007-10-07 21:00:02 +00001105define CONFIG_SPLASH_GRAPHIC
1106 default 0
1107 export used
1108 comment "Paint a splash screen"
1109end
1110
Juergen Beisert4ac32172007-10-05 21:00:10 +00001111define CONFIG_GX1_VIDEO
1112 default 0
1113 export used
1114 comment "Build in GX1's graphic support"
1115end
Ronald G. Minnich2ad85db2006-09-20 16:39:30 +00001116
Juergen Beisert4ac32172007-10-05 21:00:10 +00001117define CONFIG_GX1_VIDEOMODE
1118 default none
1119 export used
1120 comment "Define video mode after reset"
1121# could be
1122# 0 for 640x480
1123# 1 for 800x600
1124# 2 for 1024x768
1125# 3 for 1280x960
1126# 4 for 1280x1024
1127end
arch import user (historical)98d0d302005-07-06 17:13:46 +00001128
Stefan Reinauer532fd2d2008-10-29 03:15:42 +00001129define CONFIG_PCIE_CONFIGSPACE_HOLE
1130 default 0
1131 export always
1132 comment "Leave a hole for PCIe config space in the device allocator"
1133end
1134
Patrick Georgi436f99b2009-11-27 16:55:13 +00001135define CONFIG_ID_SECTION_OFFSET
1136 default 0x10
1137 export always
1138 comment "Offset of the .id section. Only needs to change if something like a romstrap is in the way"
1139end