drop COREBOOT_V2 and COREBOOT_V4 define. We're not sharing code with v3
[coreboot.git] / src / config / Options.lb
1 #######################################################
2 #
3 # Main options file for coreboot
4 #
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
59 define CONFIG_ARCH_X86
60         default 1
61         export always
62         comment "X86 is the default"
63 end
64 define CONFIG_ARCH
65         default "i386"
66         export always
67         comment "Default architecture is i386, options are alpha and ppc"
68 end
69 define CONFIG_HAVE_MOVNTI
70         default 0
71         export always
72         comment "This cpu supports the MOVNTI directive"
73 end
74
75 ###############################################
76 # Build options
77 ###############################################
78
79 define CONFIG_CROSS_COMPILE
80         default ""
81         export always
82         comment "Cross compiler prefix"
83 end
84 define CC
85         default "$(CONFIG_CROSS_COMPILE)gcc"
86         export always
87         comment "Target C Compiler"
88 end
89 define HOSTCC
90         default "gcc"
91         export always
92         comment "Host C Compiler"
93 end
94 define CONFIG_CPU_OPT
95         default none
96         export used
97         comment "Additional per-cpu CFLAGS"
98 end
99 define CONFIG_OBJCOPY
100         default "$(CONFIG_CROSS_COMPILE)objcopy --gap-fill 0xff"
101         export always
102         comment "Objcopy command"
103 end
104
105 # Try to determine svn revision first.
106 # If that fails, try last svn revision in git log.
107 define COREBOOT_VERSION
108         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)"
109         export always
110         format "\"%s\""
111         comment "coreboot version"
112 end
113 define COREBOOT_EXTRA_VERSION
114         default ""
115         export used
116         format "\"%s\""
117         comment "coreboot extra version"
118 end
119 define COREBOOT_BUILD
120         default "$(shell date)"
121         export always
122         format "\"%s\""
123         comment "Build date"
124 end
125 define COREBOOT_COMPILE_TIME
126         default "$(shell date +%T)"
127         export always
128         format "\"%s\""
129         comment "Build time"
130 end
131 define COREBOOT_COMPILE_BY
132         default "$(shell whoami)"
133         export always
134         format "\"%s\""
135         comment "Who build this image"
136 end
137 define COREBOOT_COMPILE_HOST
138         default "$(shell hostname)"
139         export always
140         format "\"%s\""
141         comment "Build host"
142 end
143
144 define COREBOOT_COMPILE_DOMAIN
145         default "$(shell dnsdomainname)"
146         export always
147         format "\"%s\""
148         comment "Build domain name"
149 end
150 define COREBOOT_COMPILER
151         default "$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -1)"
152         export always
153         format "\"%s\""
154         comment "Build compiler"
155 end
156 define COREBOOT_LINKER
157         default "$(shell  $(CC) -Wl,--version 2>&1 | grep \" ld\")"
158         export always
159         format "\"%s\""
160         comment "Build linker"
161 end
162 define COREBOOT_ASSEMBLER
163         default "$(shell  touch dummy.s ; $(CC) -c -Wa,-v dummy.s 2>&1; rm -f dummy.s dummy.o )"
164         export always
165         format "\"%s\""
166         comment "Build assembler"
167 end
168 define CONFIG_CHIP_CONFIGURE
169         default 0
170         export used
171         comment "Use new chip_configure method for configuring (non-pci) devices"
172 end
173 define CONFIG_USE_INIT
174         default 0
175         export always
176         comment "Use stage 1 initialization code"
177 end
178
179 ###############################################
180 # ROM image options
181 ###############################################
182
183 define CONFIG_HAVE_FALLBACK_BOOT
184         format "%d"
185         default 0
186         export always
187         comment "Set if fallback booting required"
188 end
189 define CONFIG_HAVE_FAILOVER_BOOT
190         format "%d"
191         default 0
192         export always
193         comment "Set if failover booting required"
194 end
195 define CONFIG_USE_FALLBACK_IMAGE
196         format "%d"
197         default 0
198         export used
199         comment "Set to build a fallback image"
200 end
201 define CONFIG_USE_FAILOVER_IMAGE
202         format "%d"
203         default 0
204         export used
205         comment "Set to build a failover image"
206 end
207 define CONFIG_FALLBACK_SIZE
208         default 65536
209         format "0x%x"
210         export used
211         comment "Default fallback image size"
212 end
213 define CONFIG_FAILOVER_SIZE
214         default 0
215         format "0x%x"
216         export used
217         comment "Default failover image size"
218 end
219 define CONFIG_ROM_SIZE
220         default none
221         format "0x%x"
222         export used
223         comment "Size of your ROM"
224 end
225 define CONFIG_ROM_IMAGE_SIZE
226         default 65535
227         format "0x%x"
228         export always
229         comment "Default image size"
230 end
231 define CONFIG_ROM_SECTION_SIZE
232         default {CONFIG_FALLBACK_SIZE}
233         format "0x%x"
234         export used
235         comment "Default rom section size"
236 end
237 define CONFIG_ROM_SECTION_OFFSET
238         default {CONFIG_ROM_SIZE - CONFIG_FALLBACK_SIZE}
239         format "0x%x"
240         export used
241         comment "Default rom section offset"
242 end
243 define CONFIG_ROMBASE
244         default {0xffffffff - CONFIG_ROM_SIZE + 1}
245         format "0x%x"
246         export always
247         comment "Base address of coreboot in ROM"
248 end
249 define CONFIG_ROMSTART
250         default none
251         format "0x%x"
252         export used
253         comment "Start address of coreboot in ROM"
254 end
255 define CONFIG_RESET
256         default {CONFIG_ROMBASE}
257         format "0x%x"
258         export always
259         comment "Hardware reset vector address"
260 end
261 define CONFIG_STACK_SIZE
262         default 0x2000
263         format "0x%x"
264         export always
265         comment "Default stack size"
266 end
267 define CONFIG_HEAP_SIZE
268         default 0x2000
269         format "0x%x"
270         export always
271         comment "Default heap size"
272 end
273 define CONFIG_RAMBASE
274         default none
275         format "0x%x"
276         export always
277         comment "Base address of coreboot in RAM"
278 end
279 define CONFIG_RAMSTART
280         default none
281         format "0x%x"
282         export used
283         comment "Start address of coreboot in RAM"
284 end
285 define CONFIG_USE_DCACHE_RAM
286         default 0
287         export always
288         comment "Use data cache as temporary RAM if possible"
289 end
290 define CONFIG_DCACHE_RAM_BASE
291         default 0xc0000
292         format "0x%x"
293         export always
294         comment "Base address of data cache when using it for temporary RAM"
295 end
296 define CONFIG_DCACHE_RAM_SIZE
297         default 0x1000
298         format "0x%x"
299         export always
300         comment "Size of data cache when using it for temporary RAM"
301 end
302 define CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE
303         default 0
304         format "0x%x"
305         export always
306         comment "Size of region that for global variable of cache as ram stage"
307 end
308 define CONFIG_AP_CODE_IN_CAR
309         default 0
310         export always
311         comment "will copy coreboot_apc to AP cache ane execute in AP"
312 end
313 define CONFIG_MEM_TRAIN_SEQ
314         default 0
315         export always
316         comment "0: three for in bsp, 1: on every core0, 2: one for on bsp"
317 end
318 define CONFIG_WAIT_BEFORE_CPUS_INIT
319         default 0
320         export always
321         comment "execute cpus_ready_for_init if it is set to 1"
322 end
323 define CONFIG_XIP_ROM_BASE
324         default 0
325         format "0x%x"
326         export used
327         comment "Start address of area to cache during coreboot execution directly from ROM"
328 end
329 define CONFIG_XIP_ROM_SIZE
330         default 0
331         format "0x%x"
332         export used
333         comment "Size of area to cache during coreboot execution directly from ROM"
334 end
335 define CONFIG_COMPRESS
336         default 1
337         export always
338         comment "Set for compressed image"
339 end
340 define CONFIG_UNCOMPRESSED
341         format "%d"
342         default {!CONFIG_COMPRESS}
343         export always
344         comment "Set for uncompressed image"
345 end
346 define CONFIG_RAMTOP
347         format "%d"
348         default 2048*1024
349         export always
350         comment "Highest RAM that coreboot_ram will use"
351 end
352 define CONFIG_HAVE_OPTION_TABLE
353         default 0
354         export always
355         comment "Export CMOS option table"
356 end
357 define CONFIG_USE_OPTION_TABLE
358         format "%d"
359         default {CONFIG_HAVE_OPTION_TABLE && !CONFIG_USE_FALLBACK_IMAGE}
360         export always
361         comment "Use option table"
362 end
363
364 ###############################################
365 # CMOS variable options
366 ###############################################
367 define CONFIG_LB_CKS_RANGE_START
368         default 49
369         format "%d"
370         export always
371         comment "First CMOS byte to use for coreboot options"
372 end
373 define CONFIG_LB_CKS_RANGE_END
374         default 125
375         format "%d"
376         export always
377         comment "Last CMOS byte to use for coreboot options"
378 end
379 define CONFIG_LB_CKS_LOC
380         default 126
381         format "%d"
382         export always
383         comment "Pair of bytes to use for CMOS checksum"
384 end
385
386
387 ###############################################
388 # Build targets
389 ###############################################
390
391 define CONFIG_CRT0
392         default "$(TOP)/src/arch/$(CONFIG_ARCH)/init/crt0.S.lb"
393         export always
394         comment "Main initialization target"
395 end
396
397 ###############################################
398 # Debugging/Logging options
399 ###############################################
400
401 define CONFIG_DEBUG
402         default 0
403         export always
404         comment "Enable x86emu debugging code"
405 end
406 define CONFIG_VGA_BRIDGE_SETUP
407         default 1
408         export always
409         comment "Set bridge bits to enable legacy VGA ranges"
410 end
411 define CONFIG_CONSOLE_VGA
412         default 0
413         export always
414         comment "Log messages to any VGA-compatible device (may require *_ROM_RUN to bring up)"
415 end
416 define CONFIG_CONSOLE_VGA_MULTI
417         default 0
418         export always
419         comment "Multi VGA console"
420 end
421 define CONFIG_CONSOLE_VGA_ONBOARD_AT_FIRST
422         default 0
423         export always
424         comment "Use onboard VGA instead of add on VGA card"
425 end
426 define CONFIG_CONSOLE_BTEXT
427         default 0
428         export always
429         comment "Log messages to btext fb console"
430 end
431 define CONFIG_CONSOLE_LOGBUF
432         default 0
433         export always
434         comment "Log messages to buffer"
435 end
436 define CONFIG_CONSOLE_SROM
437         default 0
438         export always
439         comment "Log messages to SROM console"
440 end
441 define CONFIG_CONSOLE_SERIAL8250
442         default 0
443         export always
444         comment "Log messages to 8250 uart based serial console"
445 end
446 define CONFIG_USBDEBUG_DIRECT
447         default 0
448         export always
449         comment "Log messages to ehci debug port console"
450 end
451 define CONFIG_DEFAULT_CONSOLE_LOGLEVEL
452         default 7
453         export always
454         comment "Console will log at this level unless changed"
455 end
456 define CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
457         default 8
458         export always
459         comment "Error messages up to this level can be printed"
460 end
461 define CONFIG_SERIAL_POST
462         default 0
463         export always
464         comment "Enable SERIAL POST codes"
465 end
466 define CONFIG_NO_POST
467         default none
468         export used
469         comment "Disable POST codes"
470 end
471 define CONFIG_TTYS0_BASE
472         default 0x3f8
473         format "0x%x"
474         export always
475         comment "Base address for 8250 uart for the serial console"
476 end
477 define CONFIG_TTYS0_BAUD
478         default 115200
479         export always
480         comment "Default baud rate for serial console"
481 end
482 define CONFIG_TTYS0_DIV
483         default none
484         format "%d"
485         export used
486         comment "Allow UART divisor to be set explicitly"
487 end
488 define CONFIG_TTYS0_LCS
489         default 0x3
490         format "0x%x"
491         export always
492         comment "Default flow control settings for the 8250 serial console uart"
493 end
494
495 define CONFIG_USE_PRINTK_IN_CAR
496         default 0
497         export always
498         comment "use printk instead of print in CAR stage code"
499 end
500 define CONFIG_ASSEMBLER_DEBUG
501         default 0
502         export always
503         comment "Create disassembly files for debugging"
504 end
505
506 ###############################################
507 # Mainboard options
508 ###############################################
509
510 define CONFIG_MAINBOARD
511         default "Mainboard_not_set"
512         export always
513         comment "Mainboard name"
514 end
515 define CONFIG_MAINBOARD_PART_NUMBER
516         default "Part_number_not_set"
517         export always
518         format "\"%s\""
519         comment "Part number of mainboard"
520 end
521 define CONFIG_MAINBOARD_VENDOR
522         default "Vendor_not_set"
523         export always
524         format "\"%s\""
525         comment "Vendor of mainboard"
526 end
527 define CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
528         default 0
529         export always
530         comment "PCI Vendor ID of mainboard manufacturer"
531 end
532 define CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
533         default 0
534         format "0x%x"
535         export always
536         comment "PCI susbsystem device id assigned my mainboard manufacturer"
537 end
538 define CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL
539         default none
540         export used
541         comment "Default power on after power fail setting"
542 end
543 define CONFIG_SYS_CLK_FREQ
544         default none
545         export used
546         comment "System clock frequency in MHz"
547 end
548 define CONFIG_EPIA_VT8237R_INIT
549         default none
550         export used
551         comment "Enable EPIA Specific Initialisation of VT8237R SB" 
552 end
553 ###############################################
554 # SMP options
555 ###############################################
556
557 define CONFIG_SMP
558         default 0
559         export always
560         comment "Define if we support SMP"
561 end
562 define CONFIG_MAX_CPUS
563         default 1
564         export always
565         comment "Maximum CPU count for this machine"
566 end
567 define CONFIG_MAX_PHYSICAL_CPUS
568         default 1
569         export always
570         comment "Maximum physical CPU count for this machine"
571 end
572 define CONFIG_LOGICAL_CPUS
573         default 0
574         export always
575         comment "Should multiple cpus per die be enabled?"
576 end
577 define CONFIG_AP_IN_SIPI_WAIT
578         default 0
579         export always
580         comment "Should application processors go to SIPI wait state after initialization? (Required for Intel Core Duo)"
581 end
582 define CONFIG_GENERATE_MP_TABLE
583         default none
584         export used
585         comment "Define to build an MP table"
586 end
587 define CONFIG_SERIAL_CPU_INIT
588         default 1
589         export always
590         comment "Serialize CPU init"
591 end
592 define CONFIG_APIC_ID_OFFSET
593         default 0
594         export always
595         comment "We need to share this value between cache_as_ram_auto.c and northbridge.c"
596 end
597 define CONFIG_ENABLE_APIC_EXT_ID
598         default 0
599         export always
600         comment "Enable APIC ext id mode 8 bit"
601 end
602 define CONFIG_LIFT_BSP_APIC_ID
603         default 0
604         export always
605         comment "decide if we lift bsp apic id while ap apic id"
606 end
607 ###############################################
608 # Boot options
609 ###############################################
610
611 define CONFIG_MULTIBOOT
612         default 1
613         export always
614         comment "Use Multiboot (rather than ELF boot notes) to boot the payload"
615 end
616 define CONFIG_ROM_PAYLOAD
617         default 0
618         export always
619         comment "Boot image is located in ROM" 
620 end
621 define CONFIG_COMPRESSED_PAYLOAD_NRV2B
622         default 0
623         export always
624         comment "NRV2B compressed boot image is located in ROM" 
625 end
626 define CONFIG_COMPRESSED_PAYLOAD_LZMA
627         default 0
628         export always
629         comment "LZMA compressed boot image is located in ROM" 
630 end
631 define CONFIG_PRECOMPRESSED_PAYLOAD
632         default 0
633         export always
634         comment "boot image is already compressed" 
635 end
636
637 define CONFIG_USE_WATCHDOG_ON_BOOT
638         default 0
639         export always
640         comment "Use the watchdog on booting"
641 end
642
643 ###############################################
644 # Plugin Device support options
645 ###############################################
646
647 define CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT
648         default 1
649         export always
650         comment "Enable support for plugin Hypertransport busses"
651 end
652 define CONFIG_AGP_PLUGIN_SUPPORT
653         default 1
654         export always
655         comment "Enable support for plugin AGP busses"
656 end
657 define CONFIG_CARDBUS_PLUGIN_SUPPORT
658         default 1
659         export always
660         comment "Enable support cardbus plugin cards"
661 end
662 define CONFIG_PCIX_PLUGIN_SUPPORT
663         default 1
664         export always
665         comment "Enable support for plugin PCI-X busses"
666 end
667 define CONFIG_PCIEXP_PLUGIN_SUPPORT
668         default 1
669         export always
670         comment "Enable support for plugin PCI-E busses"
671 end
672
673 ###############################################
674 # IRQ options
675 ###############################################
676
677 define CONFIG_GENERATE_PIRQ_TABLE
678         default none
679         export used
680         comment "Define if we have a PIRQ table"
681 end
682 define CONFIG_PIRQ_ROUTE
683         default 0
684         export always
685         comment "Define if we have a PIRQ table and want routing IRQs"
686 end
687 define CONFIG_IRQ_SLOT_COUNT
688         default none
689         export used
690         comment "Number of IRQ slots"
691 end
692 define CONFIG_PCIBIOS_IRQ
693         default none
694         export used
695         comment "PCIBIOS IRQ support"
696 end
697 define CONFIG_IOAPIC
698         default 0
699         export always
700         comment "IOAPIC support"
701 end
702
703 ###############################################
704 # Options for memory mapped I/O
705 ###############################################
706
707 define CONFIG_PCI_IO_CFG_EXT
708         default 0
709         export always
710         comment "allow 4K register space via io CFG port"
711 end
712
713 define CONFIG_PCIC0_CFGADDR
714         default none
715         format "0x%x"
716         export used
717         comment "Address of PCI Configuration Address Register"
718 end
719 define CONFIG_PCIC0_CFGDATA
720         default none
721         format "0x%x"
722         export used
723         comment "Address of PCI Configuration Data Register"
724 end
725 define CONFIG_ISA_IO_BASE
726         default none
727         format "0x%x"
728         export used
729         comment "Base address of PCI/ISA I/O address range"
730 end
731 define CONFIG_ISA_MEM_BASE
732         default none
733         format "0x%x"
734         export used
735         comment "Base address of PCI/ISA memory address range"
736 end
737 define CONFIG_PNP_CFGADDR
738         default none
739         format "0x%x"
740         export used
741         comment "PNP Configuration Address Register offset"
742 end
743 define CONFIG_PNP_CFGDATA
744         default none
745         format "0x%x"
746         export used
747         comment "PNP Configuration Data Register offset"
748 end
749 define CONFIG_IO_BASE
750         default none
751         format "0x%x"
752         export used
753         comment "Base address of memory mapped I/O operations"
754 end
755
756 ###############################################
757 # Options for embedded systems
758 ###############################################
759
760 define CONFIG_EMBEDDED_RAM_SIZE
761         default none
762         export used
763         comment "Embedded boards generally have fixed RAM size"
764 end
765
766 ###############################################
767 # Misc options
768 ###############################################
769
770 define CONFIG_GDB_STUB
771         default 0
772         export used
773         comment "Compile in gdb stub support?"
774 end
775
776 define CONFIG_HAVE_INIT_TIMER
777         default 0
778         export always
779         comment "Have a init_timer function"
780 end
781 define CONFIG_HAVE_HARD_RESET
782         default none
783         export used
784         comment "Have hard reset"
785 end
786 define CONFIG_HAVE_SMI_HANDLER
787         default 0
788         export always
789         comment "Set, if the board needs an SMI handler"
790 end
791 define CONFIG_MEMORY_HOLE
792         default none
793         export used
794         comment "Set to deal with memory hole"
795 end
796 define CONFIG_MAX_REBOOT_CNT
797         default 3
798         export always
799         comment "Set maximum reboots"
800 end
801
802 ###############################################
803 # Misc device options
804 ###############################################
805
806 define CONFIG_SUPERIO_ITE_IT8716F_OVERRIDE_FANCTL
807         default 0
808         export used
809         comment "Include board specific FAN control initialization"
810 end
811 define CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
812         default 0
813         export used
814         comment "Use timer2 to callibrate the x86 time stamp counter"
815 end
816 define CONFIG_INTEL_PPRO_MTRR
817         default none
818         export used
819         comment ""
820 end
821 define CONFIG_UDELAY_TSC
822         default 0
823         export used
824         comment "Implement udelay with the x86 time stamp counter"
825 end
826 define CONFIG_UDELAY_IO
827         default 0
828         export used
829         comment "Implement udelay with x86 io registers"
830 end
831 define CONFIG_UDELAY_LAPIC
832         default 0
833         export used
834         comment "Implement udelay with the x86 Local APIC"
835 end
836
837 define CONFIG_GENERATE_ACPI_TABLES
838         default 0
839         export always
840         comment "Define to build ACPI tables"
841 end
842
843 define CONFIG_HAVE_ACPI_RESUME
844         default 0
845         export always
846         comment "Define to build ACPI with resume support"
847 end
848
849 define CONFIG_ACPI_SSDTX_NUM
850         default 0
851         export always
852         comment "extra ssdt num for PCI Device"
853 end
854
855 define CONFIG_AGP_APERTURE_SIZE
856         default none
857         export used
858         format "0x%x"
859         comment "AGP graphics virtual memory aperture size"
860 end
861
862 define CONFIG_HT_CHAIN_UNITID_BASE
863         default 1
864         export always
865         comment "this will be first hypertransport device's unitid base, if sb ht chain only has one ht device, it could be 0"
866 end
867
868 define CONFIG_HT_CHAIN_END_UNITID_BASE
869         default 0x20
870         export always
871         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"
872 end
873
874 define CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY
875         default 1
876         export always
877         comment "this will decided if only offset SB hypertransport chain"
878 end
879
880 define CONFIG_SB_HT_CHAIN_ON_BUS0
881         default 0 
882         export always
883         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"
884 end
885
886 define CONFIG_PCI_BUS_SEGN_BITS
887         default 0
888         export always
889         comment "It could be 0, 1, 2, 3 and 4 only"
890 end
891
892 define CONFIG_MMCONF_SUPPORT
893         default 0
894         export always
895         comment "enable mmconfig for pci conf"
896 end
897
898 define CONFIG_MMCONF_SUPPORT_DEFAULT
899         default 0
900         export always
901         comment "enable mmconfig for pci conf"
902 end
903
904 define CONFIG_MMCONF_BASE_ADDRESS
905         default none
906         format "0x%x"
907         export used
908         comment "enable mmconfig base address"
909 end
910
911 define CONFIG_HW_MEM_HOLE_SIZEK
912         default 0
913         export always
914         comment "Opteron E0 later memory hole size in K, 0 mean disable"
915 end
916
917 define CONFIG_HW_MEM_HOLE_SIZE_AUTO_INC
918         default 0
919         export always
920         comment "Opteron E0 later memory hole size auto increase to avoid hole startk equal to basek"
921 end
922
923 define CONFIG_VAR_MTRR_HOLE
924         default 1
925         export always
926         comment "using hole in MTRR instead of increasing method"
927 end
928
929 define CONFIG_K8_HT_FREQ_1G_SUPPORT
930         default 0 
931         export always
932         comment "Optern E0 later could support 1G HT, but still depends MB design"
933 end
934
935 define CONFIG_K8_REV_F_SUPPORT
936         default 0
937         export always
938         comment "Opteron Rev F (DDR2) support"
939 end
940
941 define CONFIG_CBB
942         default 0
943         export always
944         comment "Opteron cpu bus num base"
945 end
946
947 define CONFIG_CDB
948         default 0x18
949         export always
950         comment "Opteron cpu device num base"
951 end
952
953 define CONFIG_HT3_SUPPORT
954         default 0
955         export always
956         comment "Hypertransport 3 support, include ac HT and unganged sublink feature"
957 end
958
959 define CONFIG_EXT_RT_TBL_SUPPORT
960         default 0
961         export always
962         comment "support AMD family 10 extended routing table via F0x158, normally is enabled when node nums is greater than 8"
963 end
964
965 define CONFIG_EXT_CONF_SUPPORT
966         default 0
967         export always
968         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"
969 end
970
971 define CONFIG_DIMM_SUPPORT
972         default 0x0108
973         format "0x%x"
974         export always
975         comment "DIMM support: bit 0 - sdram, bit 1: ddr1, bit 2: ddr2, bit 3: ddr3, bit 4: fbdimm, bit 8: reg"
976 end
977
978 define CONFIG_CPU_SOCKET_TYPE
979         default 0x10
980         export always
981         comment "cpu socket type, 0x10 mean Socket F, 0x11 mean socket M2, 0x20, Soxket G, and 0x21 mean socket M3"
982 end
983
984 define CONFIG_CPU_ADDR_BITS
985         default 36
986         export always
987         comment "CPU hardware address lines num, for AMD K8 could be 40, and AMD family 10 could be 48"
988 end
989
990 define CONFIG_VGA
991         default 0
992         export always
993         comment "Include VGA initialisation code"
994 end
995
996 define CONFIG_VGA_ROM_RUN
997         default 0
998         export always
999         comment "Init x86 ROMs on VGA-class PCI devices"
1000 end
1001
1002 define CONFIG_PCI_ROM_RUN
1003         default 0
1004         export always
1005         comment "Init x86 ROMs on all PCI devices"
1006 end
1007
1008 define CONFIG_PCI_OPTION_ROM_RUN_YABEL
1009         default 0
1010         export used
1011         comment "Use Yabel instead of old bios emulator"
1012 end
1013
1014 define CONFIG_YABEL_DEBUG_FLAGS
1015         default 0
1016         export used
1017         comment "YABEL debug flags, for possible values, see util/x86emu/yabel/debug.h"
1018 end
1019
1020 define CONFIG_YABEL_PCI_ACCESS_OTHER_DEVICES
1021         default 0
1022         export used
1023         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."
1024
1025 end
1026
1027 define CONFIG_PCI_OPTION_ROM_RUN_REALMODE
1028         default 0
1029         export used
1030         comment "Use Yabel instead of old bios emulator"
1031 end
1032
1033 define CONFIG_PCI_64BIT_PREF_MEM
1034         default 0
1035         export always
1036         comment "allow PCI device get 4G above Region as pref mem"
1037 end
1038
1039 define CONFIG_AMDMCT
1040         default 0
1041         export always
1042         comment "use AMD MCT to init RAM instead of native code"
1043 end
1044
1045 define CONFIG_AMD_UCODE_PATCH_FILE
1046         default none
1047         export used
1048         format "\"%s\""
1049         comment "name of the microcode patch file"      
1050 end
1051
1052 define CONFIG_K8_MEM_BANK_B_ONLY
1053         default 0
1054         export always
1055         comment "use AMD K8's memory bank B only to make a 64bit memory system and memory bank A is free, such as Filbert."
1056 end
1057
1058 define CONFIG_VIDEO_MB
1059         default 0
1060         export always
1061         comment "Integrated graphics with UMA has dynamic setup"
1062 end
1063
1064 define CONFIG_GFXUMA
1065         default 0
1066         export always
1067         comment "GFX UMA"
1068 end
1069
1070 define CONFIG_HAVE_MAINBOARD_RESOURCES
1071         default 0
1072         export always
1073         comment "Enable if the mainboard/chipset requires extra entries in the memory map"
1074 end
1075
1076 define CONFIG_HAVE_LOW_TABLES
1077         default 1
1078         export always
1079         comment "Enable if ACPI, PIRQ, MP tables are supposed to live in the low megabyte"
1080 end
1081
1082 define CONFIG_WRITE_HIGH_TABLES
1083         default 0
1084         export always
1085         comment "Enable if ACPI, PIRQ, MP tables are supposed to live at top of memory"
1086 end
1087
1088 define CONFIG_SPLASH_GRAPHIC
1089         default 0
1090         export used
1091         comment "Paint a splash screen"
1092 end
1093
1094 define CONFIG_GX1_VIDEO
1095         default 0
1096         export used
1097         comment "Build in GX1's graphic support"
1098 end
1099
1100 define CONFIG_GX1_VIDEOMODE
1101         default none
1102         export used
1103         comment "Define video mode after reset"
1104 # could be
1105 # 0 for 640x480
1106 # 1 for 800x600
1107 # 2 for 1024x768
1108 # 3 for 1280x960
1109 # 4 for 1280x1024
1110 end
1111
1112 define CONFIG_PCIE_CONFIGSPACE_HOLE
1113         default 0
1114         export always
1115         comment "Leave a hole for PCIe config space in the device allocator"
1116 end
1117
1118 define CONFIG_ID_SECTION_OFFSET
1119         default 0x10
1120         export always
1121         comment "Offset of the .id section. Only needs to change if something like a romstrap is in the way"
1122 end