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