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