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