Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 1 | ## |
Stefan Reinauer | 7e61e45 | 2008-01-18 10:35:56 +0000 | [diff] [blame] | 2 | ## This file is part of the coreboot project. |
Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 3 | ## |
| 4 | ## Copyright (C) 2007 AMD |
| 5 | ## Written by Yinghai Lu <yinghailu@amd.com> for AMD. |
| 6 | ## |
| 7 | ## This program is free software; you can redistribute it and/or modify |
| 8 | ## it under the terms of the GNU General Public License as published by |
| 9 | ## the Free Software Foundation; either version 2 of the License, or |
| 10 | ## (at your option) any later version. |
| 11 | ## |
| 12 | ## This program is distributed in the hope that it will be useful, |
| 13 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | ## GNU General Public License for more details. |
| 16 | ## |
| 17 | ## You should have received a copy of the GNU General Public License |
| 18 | ## along with this program; if not, write to the Free Software |
| 19 | ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | ## |
| 21 | |
| 22 | uses HAVE_MP_TABLE |
| 23 | uses HAVE_PIRQ_TABLE |
| 24 | uses HAVE_ACPI_TABLES |
| 25 | uses ACPI_SSDTX_NUM |
| 26 | uses USE_FALLBACK_IMAGE |
| 27 | uses USE_FAILOVER_IMAGE |
| 28 | uses HAVE_FALLBACK_BOOT |
| 29 | uses HAVE_FAILOVER_BOOT |
| 30 | uses HAVE_HARD_RESET |
| 31 | uses IRQ_SLOT_COUNT |
| 32 | uses HAVE_OPTION_TABLE |
| 33 | uses CONFIG_MAX_CPUS |
| 34 | uses CONFIG_MAX_PHYSICAL_CPUS |
| 35 | uses CONFIG_LOGICAL_CPUS |
| 36 | uses CONFIG_IOAPIC |
| 37 | uses CONFIG_SMP |
| 38 | uses FALLBACK_SIZE |
| 39 | uses FAILOVER_SIZE |
| 40 | uses ROM_SIZE |
| 41 | uses ROM_SECTION_SIZE |
| 42 | uses ROM_IMAGE_SIZE |
| 43 | uses ROM_SECTION_SIZE |
| 44 | uses ROM_SECTION_OFFSET |
Stefan Reinauer | e6fdf97 | 2007-02-27 14:11:18 +0000 | [diff] [blame] | 45 | uses CONFIG_ROM_PAYLOAD |
| 46 | uses CONFIG_ROM_PAYLOAD_START |
| 47 | uses CONFIG_COMPRESSED_PAYLOAD_NRV2B |
| 48 | uses CONFIG_COMPRESSED_PAYLOAD_LZMA |
| 49 | uses CONFIG_PRECOMPRESSED_PAYLOAD |
Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 50 | uses PAYLOAD_SIZE |
| 51 | uses _ROMBASE |
| 52 | uses XIP_ROM_SIZE |
| 53 | uses XIP_ROM_BASE |
| 54 | uses STACK_SIZE |
| 55 | uses HEAP_SIZE |
| 56 | uses USE_OPTION_TABLE |
| 57 | uses LB_CKS_RANGE_START |
| 58 | uses LB_CKS_RANGE_END |
| 59 | uses LB_CKS_LOC |
| 60 | uses MAINBOARD_PART_NUMBER |
| 61 | uses MAINBOARD_VENDOR |
| 62 | uses MAINBOARD |
| 63 | uses MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID |
| 64 | uses MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 65 | uses COREBOOT_EXTRA_VERSION |
Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 66 | uses _RAMBASE |
| 67 | uses TTYS0_BAUD |
| 68 | uses TTYS0_BASE |
| 69 | uses TTYS0_LCS |
| 70 | uses DEFAULT_CONSOLE_LOGLEVEL |
| 71 | uses MAXIMUM_CONSOLE_LOGLEVEL |
| 72 | uses MAINBOARD_POWER_ON_AFTER_POWER_FAIL |
| 73 | uses CONFIG_CONSOLE_SERIAL8250 |
| 74 | uses HAVE_INIT_TIMER |
| 75 | uses CONFIG_GDB_STUB |
| 76 | uses CONFIG_GDB_STUB |
| 77 | uses CROSS_COMPILE |
| 78 | uses CC |
| 79 | uses HOSTCC |
| 80 | uses OBJCOPY |
| 81 | uses CONFIG_CHIP_NAME |
| 82 | uses CONFIG_CONSOLE_VGA |
| 83 | uses CONFIG_USBDEBUG_DIRECT |
| 84 | uses CONFIG_PCI_ROM_RUN |
| 85 | uses HW_MEM_HOLE_SIZEK |
| 86 | uses HW_MEM_HOLE_SIZE_AUTO_INC |
| 87 | uses K8_HT_FREQ_1G_SUPPORT |
| 88 | |
| 89 | uses HT_CHAIN_UNITID_BASE |
| 90 | uses HT_CHAIN_END_UNITID_BASE |
| 91 | uses SB_HT_CHAIN_ON_BUS0 |
| 92 | uses SB_HT_CHAIN_UNITID_OFFSET_ONLY |
| 93 | |
| 94 | uses USE_DCACHE_RAM |
| 95 | uses DCACHE_RAM_BASE |
| 96 | uses DCACHE_RAM_SIZE |
| 97 | uses DCACHE_RAM_GLOBAL_VAR_SIZE |
| 98 | uses CONFIG_USE_INIT |
| 99 | |
| 100 | uses SERIAL_CPU_INIT |
| 101 | |
| 102 | uses ENABLE_APIC_EXT_ID |
| 103 | uses APIC_ID_OFFSET |
| 104 | uses LIFT_BSP_APIC_ID |
| 105 | |
| 106 | uses CONFIG_PCI_64BIT_PREF_MEM |
| 107 | |
| 108 | uses CONFIG_LB_MEM_TOPK |
| 109 | |
| 110 | uses CONFIG_AP_CODE_IN_CAR |
| 111 | |
| 112 | uses MEM_TRAIN_SEQ |
| 113 | |
| 114 | uses WAIT_BEFORE_CPUS_INIT |
| 115 | |
| 116 | uses CONFIG_USE_PRINTK_IN_CAR |
| 117 | |
Ronald Hoogenboom | 56cf01f | 2008-02-25 19:36:20 +0000 | [diff] [blame^] | 118 | uses HAVE_FANCTL |
Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 119 | ### |
| 120 | ### Build options |
| 121 | ### |
| 122 | |
| 123 | ## |
| 124 | ## ROM_SIZE is the size of boot ROM that this board will use. |
| 125 | ## |
| 126 | default ROM_SIZE=524288 |
| 127 | #default ROM_SIZE=0x100000 |
| 128 | |
| 129 | ## |
| 130 | ## FALLBACK_SIZE is the amount of the ROM the complete fallback image will use |
| 131 | ## |
| 132 | #default FALLBACK_SIZE=131072 |
| 133 | #default FALLBACK_SIZE=0x40000 |
| 134 | |
| 135 | #FALLBACK: 256K-4K |
| 136 | default FALLBACK_SIZE=0x3f000 |
| 137 | #FAILOVER: 4K |
| 138 | default FAILOVER_SIZE=0x01000 |
| 139 | |
| 140 | #more 1M for pgtbl |
| 141 | default CONFIG_LB_MEM_TOPK=2048 |
| 142 | |
| 143 | ## |
Ronald Hoogenboom | 56cf01f | 2008-02-25 19:36:20 +0000 | [diff] [blame^] | 144 | ## Set-up automatic fan control |
| 145 | ## |
| 146 | default HAVE_FANCTL=1 |
| 147 | |
| 148 | ## |
Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 149 | ## Build code for the fallback boot |
| 150 | ## |
| 151 | default HAVE_FALLBACK_BOOT=1 |
| 152 | default HAVE_FAILOVER_BOOT=1 |
| 153 | |
| 154 | ## |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 155 | ## Build code to reset the motherboard from coreboot |
Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 156 | ## |
| 157 | default HAVE_HARD_RESET=1 |
| 158 | |
| 159 | ## |
| 160 | ## Build code to export a programmable irq routing table |
| 161 | ## |
| 162 | default HAVE_PIRQ_TABLE=1 |
| 163 | default IRQ_SLOT_COUNT=11 |
| 164 | |
| 165 | ## |
| 166 | ## Build code to export an x86 MP table |
| 167 | ## Useful for specifying IRQ routing values |
| 168 | ## |
| 169 | default HAVE_MP_TABLE=1 |
| 170 | |
| 171 | ## ACPI tables will be included |
| 172 | default HAVE_ACPI_TABLES=0 |
| 173 | |
| 174 | ## |
| 175 | ## Build code to export a CMOS option table |
| 176 | ## |
| 177 | default HAVE_OPTION_TABLE=1 |
| 178 | |
| 179 | ## |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 180 | ## Move the default coreboot cmos range off of AMD RTC registers |
Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 181 | ## |
| 182 | default LB_CKS_RANGE_START=49 |
| 183 | default LB_CKS_RANGE_END=122 |
| 184 | default LB_CKS_LOC=123 |
| 185 | |
| 186 | ## |
| 187 | ## Build code for SMP support |
| 188 | ## Only worry about 2 micro processors |
| 189 | ## |
| 190 | default CONFIG_SMP=1 |
| 191 | default CONFIG_MAX_CPUS=2 |
| 192 | default CONFIG_MAX_PHYSICAL_CPUS=1 |
| 193 | default CONFIG_LOGICAL_CPUS=1 |
| 194 | |
| 195 | #default SERIAL_CPU_INIT=0 |
| 196 | |
| 197 | default ENABLE_APIC_EXT_ID=0 |
| 198 | default APIC_ID_OFFSET=0x10 |
| 199 | default LIFT_BSP_APIC_ID=1 |
| 200 | |
| 201 | #CHIP_NAME ? |
| 202 | default CONFIG_CHIP_NAME=1 |
| 203 | |
| 204 | #memory hole size, 0 mean disable, others will enable the hole, at that case if it is small than mmio_basek, it will use mmio_basek instead. |
| 205 | #2G |
| 206 | #default HW_MEM_HOLE_SIZEK=0x200000 |
| 207 | #1G |
| 208 | default HW_MEM_HOLE_SIZEK=0x100000 |
| 209 | #512M |
| 210 | #default HW_MEM_HOLE_SIZEK=0x80000 |
| 211 | |
| 212 | #make auto increase hole size to avoid hole_startk equal to basek so as to make some kernel happy |
| 213 | #default HW_MEM_HOLE_SIZE_AUTO_INC=1 |
| 214 | |
| 215 | #Opteron K8 1G HT Support |
| 216 | default K8_HT_FREQ_1G_SUPPORT=1 |
| 217 | |
| 218 | #VGA Console |
| 219 | default CONFIG_CONSOLE_VGA=1 |
| 220 | default CONFIG_PCI_ROM_RUN=1 |
| 221 | |
Ed Swierk | ad9a2c6 | 2007-04-06 20:01:44 +0000 | [diff] [blame] | 222 | #default CONFIG_USBDEBUG_DIRECT=1 |
Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 223 | |
| 224 | #HT Unit ID offset, default is 1, the typical one, 0 mean only one HT device |
| 225 | default HT_CHAIN_UNITID_BASE=0 |
| 226 | |
| 227 | #real SB Unit ID, default is 0x20, mean dont touch it at last |
| 228 | #default HT_CHAIN_END_UNITID_BASE=0x6 |
| 229 | |
| 230 | #make the SB HT chain on bus 0, default is not (0) |
| 231 | default SB_HT_CHAIN_ON_BUS0=2 |
| 232 | |
| 233 | #only offset for SB chain?, default is yes(1) |
| 234 | default SB_HT_CHAIN_UNITID_OFFSET_ONLY=0 |
| 235 | |
| 236 | #allow capable device use that above 4G |
| 237 | #default CONFIG_PCI_64BIT_PREF_MEM=1 |
| 238 | |
| 239 | ## |
| 240 | ## enable CACHE_AS_RAM specifics |
| 241 | ## |
| 242 | default USE_DCACHE_RAM=1 |
| 243 | default DCACHE_RAM_BASE=0xc8000 |
| 244 | default DCACHE_RAM_SIZE=0x08000 |
| 245 | default DCACHE_RAM_GLOBAL_VAR_SIZE=0x01000 |
| 246 | default CONFIG_USE_INIT=0 |
| 247 | |
| 248 | default CONFIG_AP_CODE_IN_CAR=0 |
| 249 | default MEM_TRAIN_SEQ=2 |
| 250 | default WAIT_BEFORE_CPUS_INIT=0 |
| 251 | |
| 252 | ## |
| 253 | ## Build code to setup a generic IOAPIC |
| 254 | ## |
| 255 | default CONFIG_IOAPIC=1 |
| 256 | |
| 257 | ## |
| 258 | ## Clean up the motherboard id strings |
| 259 | ## |
| 260 | default MAINBOARD_PART_NUMBER="m57sli" |
| 261 | default MAINBOARD_VENDOR="GIGABYTE" |
| 262 | default MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID=0x1022 |
| 263 | default MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID=0x2b80 |
| 264 | |
| 265 | ### |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 266 | ### coreboot layout values |
Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 267 | ### |
| 268 | |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 269 | ## ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy. |
Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 270 | default ROM_IMAGE_SIZE = 65536 |
| 271 | |
| 272 | ## |
| 273 | ## Use a small 8K stack |
| 274 | ## |
| 275 | default STACK_SIZE=0x2000 |
| 276 | |
| 277 | ## |
| 278 | ## Use a small 32K heap |
| 279 | ## |
| 280 | default HEAP_SIZE=0x8000 |
| 281 | |
| 282 | ## |
| 283 | ## Only use the option table in a normal image |
| 284 | ## |
| 285 | default USE_OPTION_TABLE = (!USE_FALLBACK_IMAGE) && (!USE_FAILOVER_IMAGE ) |
| 286 | |
| 287 | ## |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 288 | ## Coreboot C code runs at this location in RAM |
Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 289 | ## |
| 290 | default _RAMBASE=0x00100000 |
| 291 | |
| 292 | ## |
| 293 | ## Load the payload from the ROM |
| 294 | ## |
Stefan Reinauer | e6fdf97 | 2007-02-27 14:11:18 +0000 | [diff] [blame] | 295 | default CONFIG_ROM_PAYLOAD = 1 |
Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 296 | |
Stefan Reinauer | e6fdf97 | 2007-02-27 14:11:18 +0000 | [diff] [blame] | 297 | #default CONFIG_COMPRESSED_PAYLOAD_NRV2B = 1 |
Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 298 | |
| 299 | ### |
| 300 | ### Defaults of options that you may want to override in the target config file |
| 301 | ### |
| 302 | |
| 303 | ## |
| 304 | ## The default compiler |
| 305 | ## |
| 306 | default CC="$(CROSS_COMPILE)gcc -m32" |
| 307 | default HOSTCC="gcc" |
| 308 | |
| 309 | ## |
| 310 | ## Disable the gdb stub by default |
| 311 | ## |
| 312 | default CONFIG_GDB_STUB=0 |
| 313 | |
| 314 | ## |
| 315 | ## The Serial Console |
| 316 | ## |
| 317 | default CONFIG_USE_PRINTK_IN_CAR=1 |
| 318 | |
| 319 | # To Enable the Serial Console |
| 320 | default CONFIG_CONSOLE_SERIAL8250=1 |
| 321 | |
| 322 | ## Select the serial console baud rate |
| 323 | default TTYS0_BAUD=115200 |
| 324 | #default TTYS0_BAUD=57600 |
| 325 | #default TTYS0_BAUD=38400 |
| 326 | #default TTYS0_BAUD=19200 |
| 327 | #default TTYS0_BAUD=9600 |
| 328 | #default TTYS0_BAUD=4800 |
| 329 | #default TTYS0_BAUD=2400 |
| 330 | #default TTYS0_BAUD=1200 |
| 331 | |
| 332 | # Select the serial console base port |
| 333 | default TTYS0_BASE=0x3f8 |
| 334 | |
| 335 | # Select the serial protocol |
| 336 | # This defaults to 8 data bits, 1 stop bit, and no parity |
| 337 | default TTYS0_LCS=0x3 |
| 338 | |
| 339 | ## |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 340 | ### Select the coreboot loglevel |
Yinghai Lu | f55b58d | 2007-02-17 14:28:11 +0000 | [diff] [blame] | 341 | ## |
| 342 | ## EMERG 1 system is unusable |
| 343 | ## ALERT 2 action must be taken immediately |
| 344 | ## CRIT 3 critical conditions |
| 345 | ## ERR 4 error conditions |
| 346 | ## WARNING 5 warning conditions |
| 347 | ## NOTICE 6 normal but significant condition |
| 348 | ## INFO 7 informational |
| 349 | ## DEBUG 8 debug-level messages |
| 350 | ## SPEW 9 Way too many details |
| 351 | |
| 352 | ## Request this level of debugging output |
| 353 | default DEFAULT_CONSOLE_LOGLEVEL=8 |
| 354 | ## At a maximum only compile in this level of debugging |
| 355 | default MAXIMUM_CONSOLE_LOGLEVEL=8 |
| 356 | |
| 357 | ## |
| 358 | ## Select power on after power fail setting |
| 359 | default MAINBOARD_POWER_ON_AFTER_POWER_FAIL="MAINBOARD_POWER_ON" |
| 360 | |
| 361 | ### End Options.lb |
| 362 | end |