- To reduce confuse rename the parts of linuxbios bios that run from
[coreboot.git] / src / config / Options.lb
index 6170ea28a117e5e0d197e100c764fe58d4bb4459..eb6736f5deeb59d472898768cbb5669f0b0b315b 100644 (file)
@@ -61,30 +61,10 @@ define ARCH
        export always
        comment "Default architecture is i386, options are alpha and ppc"
 end
-define k7
-       default none
-       export always
-       comment "We're a k7"
-end
-define k8
-       default none
-       export always
-       comment "We're a k8"
-end
-define i586
-       default none
-       export always
-       comment "We're a 586"
-end
-define i686
-       default none
-       export always
-       comment "We're a 686"
-end
-define CPU_FIXUP
-       default none
+define HAVE_MOVNTI
+       default 0
        export always
-       comment "Do CPU fixups"
+       comment "This cpu supports the MOVNTI directive"
 end
 
 ###############################################
@@ -117,54 +97,64 @@ define OBJCOPY
        comment "Objcopy command"
 end
 define LINUXBIOS_VERSION
-       default "1.1.0"
+       default "1.1.7"
        export always
+       format "\"%s\""
        comment "LinuxBIOS version"
 end
 define LINUXBIOS_EXTRA_VERSION
         default ""
         export used
+       format "\"%s\""
         comment "LinuxBIOS extra version"
 end
 define LINUXBIOS_BUILD
        default "$(shell date)"
        export always
+       format "\"%s\""
        comment "Build date"
 end
 define LINUXBIOS_COMPILE_TIME
        default "$(shell date +%T)"
        export always
+       format "\"%s\""
        comment "Build time"
 end
 define LINUXBIOS_COMPILE_BY
        default "$(shell whoami)"
        export always
+       format "\"%s\""
        comment "Who build this image"
 end
 define LINUXBIOS_COMPILE_HOST
        default "$(shell hostname)"
        export always
+       format "\"%s\""
        comment "Build host"
 end
 
 define LINUXBIOS_COMPILE_DOMAIN
-       default ""
+       default "$(shell dnsdomainname)"
        export always
+       format "\"%s\""
        comment "Build domain name"
 end
 define LINUXBIOS_COMPILER
        default "$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1)"
        export always
+       format "\"%s\""
        comment "Build compiler"
 end
 define LINUXBIOS_LINKER
        default "$(shell  $(CC) -Wl,-v 2>&1 | grep version | tail -n 1)"
        export always
+       format "\"%s\""
        comment "Build linker"
 end
 define LINUXBIOS_ASSEMBLER
        default "$(shell  touch dummy.s ; $(CC) -c -Wa,-v dummy.s 2>&1; rm -f dummy.s dummy.o )"
        export always
+       format "\"%s\""
        comment "Build assembler"
 end
 define CONFIG_CHIP_CONFIGURE
@@ -172,27 +162,28 @@ define CONFIG_CHIP_CONFIGURE
        export used
        comment "Use new chip_configure method for configuring (non-pci) devices"
 end
+define CONFIG_USE_INIT
+       default 0
+       export used
+       comment "Use stage 1 initialization code"
+end
 
 ###############################################
 # ROM image options
 ###############################################
 
 define HAVE_FALLBACK_BOOT
+       format "%d"
        default 0
        export always
        comment "Set if fallback booting required"
 end
 define USE_FALLBACK_IMAGE
+       format "%d"
        default 0
        export used
        comment "Set to build a fallback image"
 end
-define USE_NORMAL_IMAGE
-       format "%d"
-       default {!USE_FALLBACK_IMAGE}
-       export used
-       comment "Set to build a normal image"
-end
 define FALLBACK_SIZE
        default 65536
        format "0x%x"
@@ -200,7 +191,7 @@ define FALLBACK_SIZE
        comment "Default fallback image size"
 end
 define ROM_SIZE
-       default 262144
+       default none
        format "0x%x"
        export used
        comment "Size of your ROM"
@@ -235,12 +226,24 @@ define _ROMBASE
        export always
        comment "Base address of LinuxBIOS in ROM"
 end
+define _ROMSTART
+       default none
+       format "0x%x"
+       export used
+       comment "Start address of LinuxBIOS in ROM"
+end
 define _RESET
        default {_ROMBASE}
        format "0x%x"
        export always
        comment "Hardware reset vector address"
 end
+define _EXCEPTION_VECTORS
+       default {_ROMBASE+0x100}
+       format "0x%x"
+       export always
+       comment "Address of exception vector table"
+end
 define STACK_SIZE
        default 0x2000
        format "0x%x"
@@ -250,7 +253,7 @@ end
 define HEAP_SIZE
        default 0x2000
        format "0x%x"
-       export used
+       export always
        comment "Default heap size"
 end
 define _RAMBASE
@@ -259,22 +262,40 @@ define _RAMBASE
        export always
        comment "Base address of LinuxBIOS in RAM"
 end
-define USE_CACHE_RAM
+define _RAMSTART
+       default none
+       format "0x%x"
+       export used
+       comment "Start address of LinuxBIOS in RAM"
+end
+define USE_DCACHE_RAM
        default 0
        export used
-       comment "Use cache as temporary RAM if possible"
+       comment "Use data cache as temporary RAM if possible"
 end
-define CACHE_RAM_BASE
-       default 0x00200000
+define DCACHE_RAM_BASE
+       default none
        format "0x%x"
-       export always
-       comment "Base address of cache when using it for temporary RAM"
+       export used
+       comment "Base address of data cache when using it for temporary RAM"
 end
-define CACHE_RAM_SIZE
-       default 0x00004000
+define DCACHE_RAM_SIZE
+       default none
        format "0x%x"
-       export always
-       comment "Size of cache when using it for temporary RAM"
+       export used
+       comment "Size of data cache when using it for temporary RAM"
+end
+define XIP_ROM_BASE
+       default 0
+       format "0x%x"
+       export used
+       comment "Start address of area to cache during LinuxBIOS execution directly from ROM"
+end
+define XIP_ROM_SIZE
+       default 0
+       format "0x%x"
+       export used
+       comment "Size of area to cache during LinuxBIOS execution directly from ROM"
 end
 define CONFIG_COMPRESS
        default 1
@@ -287,6 +308,12 @@ define CONFIG_UNCOMPRESSED
        export always
        comment "Set for uncompressed image"
 end
+define CONFIG_LB_MEM_TOPK
+       format "%d"
+       default 1024
+       export always
+       comment "Kilobytes of memory to initialized before executing code from RAM"
+end
 define HAVE_OPTION_TABLE
        default 0
        export always
@@ -299,12 +326,35 @@ define USE_OPTION_TABLE
        comment "Use option table"
 end
 
+###############################################
+# CMOS variable options
+###############################################
+define LB_CKS_RANGE_START
+       default 49
+       format "%d"
+       export always
+       comment "First CMOS byte to use for LinuxBIOS options"
+end
+define LB_CKS_RANGE_END
+       default 125
+       format "%d"
+       export always
+       comment "Last CMOS byte to use for LinuxBIOS options"
+end
+define LB_CKS_LOC
+       default 126
+       format "%d"
+       export always
+       comment "Pair of bytes to use for CMOS checksum"
+end
+
+
 ###############################################
 # Build targets
 ###############################################
 
 define CRT0
-       default "$(TOP)/src/arch/$(ARCH)/config/crt0.base"
+       default "$(TOP)/src/arch/$(ARCH)/init/crt0.S.lb"
        export always
        comment "Main initialization target"
 end
@@ -323,6 +373,11 @@ define CONFIG_CONSOLE_VGA
        export always
        comment "Log messages to VGA"
 end
+define CONFIG_CONSOLE_BTEXT
+        default 0
+        export always
+        comment "Log messages to btext fb console"
+end
 define CONFIG_CONSOLE_LOGBUF
        default 0
        export always
@@ -336,42 +391,52 @@ end
 define CONFIG_CONSOLE_SERIAL8250
        default 0
        export always
-       comment "Log messages to serial 8250 console"
+       comment "Log messages to 8250 uart based serial console"
 end
-define SERIAL_CONSOLE
-       default none
-       export used
-       comment "Log messages to serial console"
-end
-
 define DEFAULT_CONSOLE_LOGLEVEL
        default 7
        export always
        comment "Console will log at this level unless changed"
 end
-
 define MAXIMUM_CONSOLE_LOGLEVEL
        default 8
        export always
        comment "Error messages up to this level can be printed"
 end
-
+define CONFIG_SERIAL_POST
+       default 0
+       export always
+       comment "Enable SERIAL POST codes"
+end
 define NO_POST
        default none
-       export always
+       export used
        comment "Disable POST codes"
 end
+define TTYS0_BASE
+       default 0x3f8
+       format "0x%x"
+       export always
+       comment "Base address for 8250 uart for the serial console"
+end
 define TTYS0_BAUD
        default 115200
        export always
        comment "Default baud rate for serial console"
 end
-define NO_KEYBOARD
+define TTYS0_DIV
        default none
-       export never
-       comment "Set if we don't have a keyboard"
+       format "%d"
+       export used
+       comment "Allow UART divisor to be set explicitly"
 end
-
+define TTYS0_LCS
+       default 0x3
+       format "0x%x"
+       export always
+       comment "Default flow control settings for the 8250 serial console uart"
+end
+       
 ###############################################
 # Mainboard options
 ###############################################
@@ -384,24 +449,46 @@ end
 define MAINBOARD_PART_NUMBER
        default "Part_number_not_set"
        export always
+       format "\"%s\""
        comment "Part number of mainboard"
 end
 define MAINBOARD_VENDOR
        default "Vendor_not_set"
        export always
+       format "\"%s\""
        comment "Vendor of mainboard"
 end
-define FINAL_MAINBOARD_FIXUP
+define MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
+       default 0
+       export always
+       comment "PCI Vendor ID of mainboard manufacturer"
+end
+define MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
        default 0
+       format "0x%x"
+       export always
+       comment "PCI susbsystem device id assigned my mainboard manufacturer"
+end
+define MAINBOARD_POWER_ON_AFTER_POWER_FAIL
+       default none
        export used
-       comment "Do final mainboard fixups"
+       comment "Default power on after power fail setting"
 end
 define CONFIG_SYS_CLK_FREQ
        default none
        export used
        comment "System clock frequency in MHz"
 end
-
+define CONFIG_LEGACY_VGABIOS
+       default 0
+       export used
+       comment "Support for legacy VGA BIOS"
+end
+define VGABIOS_START
+       default 0
+       export used
+       comment "Base of Legacy VGA in Rom"
+end
 ###############################################
 # SMP options
 ###############################################
@@ -414,26 +501,16 @@ end
 define CONFIG_MAX_CPUS
         default 1
         export always
-        comment "Config CPU count for this machine"
-end
-define MAX_CPUS
-       default 1
-       export always
-       comment "CPU count for this machine"
+        comment "Maximum CPU count for this machine"
 end
 define CONFIG_LOGICAL_CPUS
-       default 1
-       export always
-       comment "Logical CPU count for this machine"
-end
-define MAX_PHYSICAL_CPUS
-       default 1
+       default 0
        export always
-       comment "Physical CPU count for this machine"
+       comment "Should multiple cpus per die be enabled?"
 end
 define HAVE_MP_TABLE
        default none
-       export always
+       export used
        comment "Define to build an MP table"
 end
 
@@ -441,11 +518,6 @@ end
 # Boot options
 ###############################################
 
-define USE_ELF_BOOT
-       default none
-       export always
-       comment "Use ELF boot loader"
-end
 define CONFIG_IDE_STREAM
        default 0
        export always
@@ -462,6 +534,37 @@ define CONFIG_ROM_STREAM_START
        export always
        comment "ROM stream start location"
 end
+define CONFIG_FS_STREAM
+       default 0
+       export always
+       comment "Boot from a filesystem"
+end
+define CONFIG_FS_EXT2
+       default 0
+       export always
+       comment "Enable ext2 filesystem support"
+end
+define CONFIG_FS_ISO9660
+       default 0
+       export always
+       comment "Enable ISO9660 filesystem support"
+end
+define CONFIG_FS_FAT
+       default 0
+       export always
+       comment "Enable FAT filesystem support"
+end
+define AUTOBOOT_DELAY
+       default 2
+       export always
+       comment "Delay (in seconds) before autobooting"
+end
+define AUTOBOOT_CMDLINE
+       default "hdc1:/vmlinuz root=/dev/hdc3 console=tty0 console=ttyS0,115200"
+       export always
+       format "\"%s\""
+       comment "Default command line when autobooting"
+end
 
 ###############################################
 # IRQ options
@@ -469,22 +572,22 @@ end
 
 define HAVE_PIRQ_TABLE
        default none
-       export always
+       export used
        comment "Define if we have a PIRQ table"
 end
 define IRQ_SLOT_COUNT
        default none
-       export always
+       export used
        comment "Number of IRQ slots"
 end
 define CONFIG_PCIBIOS_IRQ
        default none
-       export always
+       export used
        comment "PCIBIOS IRQ support"
 end
 define CONFIG_IOAPIC
        default none
-       export always
+       export used
        comment "IOAPIC support"
 end
 
@@ -492,6 +595,11 @@ end
 # IDE specific options
 ###############################################
 
+define CONFIG_IDE
+       default 0
+       export always
+       comment "Define to include IDE support"
+end
 define IDE_BOOT_DRIVE
        default 0
        export always
@@ -499,7 +607,7 @@ define IDE_BOOT_DRIVE
 end
 define IDE_SWAB
        default none
-       export always
+       export used
        comment "Swap bytes when reading from IDE device"
 end
 define IDE_OFFSET
@@ -509,104 +617,148 @@ define IDE_OFFSET
 end
 
 ###############################################
-# SMBUS options
+# Options for memory mapped I/O
 ###############################################
 
-define SMBUS_MEM_DEVICE_START
-       default (0xa << 3)
-       export always
-       comment "Start address of SMBUS device"
+define PCIC0_CFGADDR
+       default none
+       format "0x%x"
+       export used
+       comment "Address of PCI Configuration Address Register"
 end
-define SMBUS_MEM_DEVICE_END
-       default {SMBUS_MEM_DEVICE_START +1}
-       export always
-       comment "End address of SMBUS device"
+define PCIC0_CFGDATA
+       default none
+       format "0x%x"
+       export used
+       comment "Address of PCI Configuration Data Register"
 end
-define SMBUS_MEM_DEVICE_INC
-       default 1
-       export always
-       comment "Increment value SMBUS"
+define ISA_IO_BASE
+       default none
+       format "0x%x"
+       export used
+       comment "Base address of PCI/ISA I/O address range"
+end
+define ISA_MEM_BASE
+       default none
+       format "0x%x"
+       export used
+       comment "Base address of PCI/ISA memory address range"
+end
+define PNP_CFGADDR
+       default none
+       format "0x%x"
+       export used
+       comment "PNP Configuration Address Register offset"
+end
+define PNP_CFGDATA
+       default none
+       format "0x%x"
+       export used
+       comment "PNP Configuration Data Register offset"
+end
+define _IO_BASE
+       default none
+       format "0x%x"
+       export used
+       comment "Base address of memory mapped I/O operations"
 end
 
 ###############################################
-# SuperIO options
+# Options for embedded systems
 ###############################################
 
-define SIO_BASE
-       default none
-       export used
-       comment "Superio base address"
-end
-define SIO_SYSTEM_CLK_INPUT
+define EMBEDDED_RAM_SIZE
        default none
        export used
-       comment "Superio CLK input default"
+       comment "Embedded boards generally have fixed RAM size"
 end
 
 ###############################################
 # Misc options
 ###############################################
 
+define CONFIG_GDB_STUB
+       default 0
+       export used
+       comment "Compile in gdb stub support?"
+end
+
+define HAVE_INIT_TIMER
+       default 0
+       export always
+       comment "Have a init_timer function"
+end
 define HAVE_HARD_RESET
        default none
        export used
        comment "Have hard reset"
 end
+define HARD_RESET_BUS
+       default 1
+       export always
+       comment "Bus number of southbridge device doing reset"
+end
+define HARD_RESET_DEVICE
+       default 5
+       export always
+       comment "Device number of southbridge device doing reset"
+end
+define HARD_RESET_FUNCTION
+       default 0
+       export always
+       comment "Function number of southbridge device doing reset"
+end
 define MEMORY_HOLE
        default none
        export used
        comment "Set to deal with memory hole"
 end
-define ENABLE_FIXED_AND_VARIABLE_MTRRS
-       default none
-       export used
-       comment "Enable fixed and variable mtrrs"
-end
-define START_CPU_SEG
-       default 0xf0000
-       format "0x%x"
-       export always
-       comment "Start CPU segment"
-end
 define MAX_REBOOT_CNT
-       default 2
+       default 3
        export always
        comment "Set maximum reboots"
 end
-define DISABLE_WATCHDOG
-       default {MAXIMUM_CONSOLE_LOGLEVEL >= 8}
-       export used
-       comment "Disable watchdog if we're doing lots of output"
-end
 
 ###############################################
 # Misc device options
 ###############################################
 
 define CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
-       default none
+       default 0
        export used
-       comment ""
+       comment "Use timer2 to callibrate the x86 time stamp counter"
 end
 define INTEL_PPRO_MTRR
        default none
-       export always
-       comment ""
-end
-define AMD8111_DEV
-       default 0x3800
-       format "0x%x"
        export used
        comment ""
 end
 define CONFIG_UDELAY_TSC
        default 0
        export used
-       comment ""
+       comment "Implement udelay with the x86 time stamp counter"
+end
+define FAKE_SPDROM
+       default 0
+       export always
+       comment "Use this to fake spd rom values"
+end
+
+define HAVE_ACPI_TABLES
+       default 0
+       export always
+       comment "Define to build ACPI tables"
+end
+
+define AGP_APERTURE_SIZE
+       default none
+       export used
+       format "0x%x"
+       comment "AGP graphics virtual memory aperture size"
 end
 
 ###############################################
-# Board specifig options
+# Board specific options
 ###############################################
 
 ###############################################
@@ -637,3 +789,17 @@ define CONFIG_SANDPOINT_GYRUS
        export never
        comment "Configure Sandpoint with Gyrus PMC"
 end
+
+###############################################
+# Options for totalimpact/briq
+###############################################
+define CONFIG_BRIQ_750FX
+       default 0
+       export never
+       comment "Configure briQ with PowerPC 750FX"
+end
+define CONFIG_BRIQ_7400
+       default 0
+       export never
+       comment "Configure briQ with PowerPC G4"
+end