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