blob: 9949c679a5a5c935953302fe265322a74eb1e55f [file] [log] [blame]
arch import user (historical)98d0d302005-07-06 17:13:46 +00001uses HAVE_MP_TABLE
2uses HAVE_PIRQ_TABLE
3uses USE_FALLBACK_IMAGE
4uses HAVE_FALLBACK_BOOT
Yinghai Lu6d74d762006-10-04 23:57:49 +00005uses USE_FAILOVER_IMAGE
6uses HAVE_FAILOVER_BOOT
arch import user (historical)98d0d302005-07-06 17:13:46 +00007uses HAVE_HARD_RESET
arch import user (historical)98d0d302005-07-06 17:13:46 +00008uses IRQ_SLOT_COUNT
9uses HAVE_OPTION_TABLE
10uses CONFIG_MAX_CPUS
arch import user (historical)ef03afa2005-07-06 17:15:30 +000011uses CONFIG_MAX_PHYSICAL_CPUS
12uses CONFIG_LOGICAL_CPUS
arch import user (historical)98d0d302005-07-06 17:13:46 +000013uses CONFIG_IOAPIC
14uses CONFIG_SMP
15uses FALLBACK_SIZE
Yinghai Lu6d74d762006-10-04 23:57:49 +000016uses FAILOVER_SIZE
arch import user (historical)98d0d302005-07-06 17:13:46 +000017uses ROM_SIZE
18uses ROM_SECTION_SIZE
19uses ROM_IMAGE_SIZE
20uses ROM_SECTION_SIZE
21uses ROM_SECTION_OFFSET
Ed Swierkbe13dc72006-12-15 12:56:28 +000022uses CONFIG_ROM_PAYLOAD
23uses CONFIG_ROM_PAYLOAD_START
Ed Swierk1a7a5b42006-12-15 11:42:16 +000024uses CONFIG_COMPRESSED_PAYLOAD_LZMA
Myles Watson15674b72007-12-09 17:18:29 +000025uses CONFIG_PRECOMPRESSED_PAYLOAD
arch import user (historical)98d0d302005-07-06 17:13:46 +000026uses PAYLOAD_SIZE
27uses _ROMBASE
28uses XIP_ROM_SIZE
29uses XIP_ROM_BASE
30uses STACK_SIZE
31uses HEAP_SIZE
32uses USE_OPTION_TABLE
33uses LB_CKS_RANGE_START
34uses LB_CKS_RANGE_END
35uses LB_CKS_LOC
Myles Watson34b1d4e2009-03-10 20:56:54 +000036uses HAVE_ACPI_TABLES
37uses HAVE_MAINBOARD_RESOURCES
38uses HAVE_HIGH_TABLES
39uses HAVE_LOW_TABLES
40uses CONFIG_MULTIBOOT
41uses HAVE_SMI_HANDLER
arch import user (historical)98d0d302005-07-06 17:13:46 +000042uses MAINBOARD
43uses MAINBOARD_PART_NUMBER
44uses MAINBOARD_VENDOR
45uses MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
Myles Watsona67c354c2008-09-18 15:30:42 +000046uses MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
Stefan Reinauerf8ee1802008-01-18 15:08:58 +000047uses COREBOOT_EXTRA_VERSION
arch import user (historical)98d0d302005-07-06 17:13:46 +000048uses _RAMBASE
49uses CONFIG_GDB_STUB
50uses CROSS_COMPILE
51uses CC
52uses HOSTCC
53uses OBJCOPY
54uses TTYS0_BAUD
55uses TTYS0_BASE
56uses TTYS0_LCS
57uses DEFAULT_CONSOLE_LOGLEVEL
58uses MAXIMUM_CONSOLE_LOGLEVEL
59uses MAINBOARD_POWER_ON_AFTER_POWER_FAIL
60uses CONFIG_CONSOLE_SERIAL8250
61uses HAVE_INIT_TIMER
62uses CONFIG_GDB_STUB
63uses CONFIG_CHIP_NAME
64uses CONFIG_CONSOLE_VGA
Myles Watson34b1d4e2009-03-10 20:56:54 +000065uses CONFIG_VGA_ROM_RUN
arch import user (historical)98d0d302005-07-06 17:13:46 +000066uses CONFIG_PCI_ROM_RUN
Yinghai Lud4b278c2006-10-04 20:46:15 +000067uses HW_MEM_HOLE_SIZEK
Stefan Reinauer806e1462005-12-01 10:54:44 +000068uses K8_HT_FREQ_1G_SUPPORT
arch import user (historical)98d0d302005-07-06 17:13:46 +000069
arch import user (historical)6ca76362005-07-06 17:17:25 +000070uses USE_DCACHE_RAM
71uses DCACHE_RAM_BASE
72uses DCACHE_RAM_SIZE
73uses CONFIG_USE_INIT
Carl-Daniel Hailfinger93159bf2008-12-22 09:53:24 +000074uses CONFIG_USE_PRINTK_IN_CAR
arch import user (historical)6ca76362005-07-06 17:17:25 +000075
Yinghai Lu6d74d762006-10-04 23:57:49 +000076uses SERIAL_CPU_INIT
77
Stefan Reinauer806e1462005-12-01 10:54:44 +000078uses ENABLE_APIC_EXT_ID
79uses APIC_ID_OFFSET
80uses LIFT_BSP_APIC_ID
81
Yinghai Lu9a791df2006-04-03 20:38:34 +000082uses HT_CHAIN_UNITID_BASE
83uses HT_CHAIN_END_UNITID_BASE
Yinghai Lud4b278c2006-10-04 20:46:15 +000084uses SB_HT_CHAIN_ON_BUS0
Yinghai Lu9a791df2006-04-03 20:38:34 +000085uses SB_HT_CHAIN_UNITID_OFFSET_ONLY
86
Yinghai Lu6d74d762006-10-04 23:57:49 +000087uses CONFIG_LB_MEM_TOPK
88
arch import user (historical)98d0d302005-07-06 17:13:46 +000089## ROM_SIZE is the size of boot ROM that this board will use.
Myles Watson34b1d4e2009-03-10 20:56:54 +000090default ROM_SIZE=1024*1024
arch import user (historical)98d0d302005-07-06 17:13:46 +000091
92##
93## FALLBACK_SIZE is the amount of the ROM the complete fallback image will use
94##
Stefan Reinauer806e1462005-12-01 10:54:44 +000095#default FALLBACK_SIZE=131072
Yinghai Lu6d74d762006-10-04 23:57:49 +000096#default FALLBACK_SIZE=0x40000
arch import user (historical)98d0d302005-07-06 17:13:46 +000097
Yinghai Lu6d74d762006-10-04 23:57:49 +000098#FALLBACK: 256K-4K
99default FALLBACK_SIZE=0x3f000
100#FAILOVER: 4K
101default FAILOVER_SIZE=0x01000
102
103#more 1M for pgtbl
104default CONFIG_LB_MEM_TOPK=2048
arch import user (historical)98d0d302005-07-06 17:13:46 +0000105
106##
107## Build code for the fallback boot
108##
109default HAVE_FALLBACK_BOOT=1
Yinghai Lu6d74d762006-10-04 23:57:49 +0000110default HAVE_FAILOVER_BOOT=1
arch import user (historical)98d0d302005-07-06 17:13:46 +0000111
112##
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000113## Build code to reset the motherboard from coreboot
arch import user (historical)98d0d302005-07-06 17:13:46 +0000114##
115default HAVE_HARD_RESET=1
116
arch import user (historical)98d0d302005-07-06 17:13:46 +0000117##
Myles Watson34b1d4e2009-03-10 20:56:54 +0000118## Build SMI handler
119##
120default HAVE_SMI_HANDLER=0
121
122##
arch import user (historical)98d0d302005-07-06 17:13:46 +0000123## Build code to export a programmable irq routing table
124##
125default HAVE_PIRQ_TABLE=1
126default IRQ_SLOT_COUNT=11
127
128##
129## Build code to export an x86 MP table
130## Useful for specifying IRQ routing values
131##
132default HAVE_MP_TABLE=1
133
134##
Myles Watson34b1d4e2009-03-10 20:56:54 +0000135## Build code to provide ACPI support
136##
137default HAVE_ACPI_TABLES=1
138default HAVE_LOW_TABLES=1
139default HAVE_MAINBOARD_RESOURCES=1
140default HAVE_HIGH_TABLES=0
141default CONFIG_MULTIBOOT=0
142
143##
arch import user (historical)98d0d302005-07-06 17:13:46 +0000144## Build code to export a CMOS option table
145##
146default HAVE_OPTION_TABLE=1
147
148##
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000149## Move the default coreboot cmos range off of AMD RTC registers
arch import user (historical)98d0d302005-07-06 17:13:46 +0000150##
151default LB_CKS_RANGE_START=49
152default LB_CKS_RANGE_END=122
153default LB_CKS_LOC=123
154
Myles Watson34b1d4e2009-03-10 20:56:54 +0000155#VGA Console
156default CONFIG_CONSOLE_VGA=1
157default CONFIG_PCI_ROM_RUN=1
158default CONFIG_VGA_ROM_RUN=1
159
arch import user (historical)98d0d302005-07-06 17:13:46 +0000160##
161## Build code for SMP support
162## Only worry about 2 micro processors
163##
164default CONFIG_SMP=1
arch import user (historical)ef03afa2005-07-06 17:15:30 +0000165default CONFIG_MAX_CPUS=4
166default CONFIG_MAX_PHYSICAL_CPUS=2
167default CONFIG_LOGICAL_CPUS=1
arch import user (historical)98d0d302005-07-06 17:13:46 +0000168
Yinghai Lu6d74d762006-10-04 23:57:49 +0000169default SERIAL_CPU_INIT=0
170
arch import user (historical)98d0d302005-07-06 17:13:46 +0000171#CHIP_NAME ?
172#default CONFIG_CHIP_NAME=1
173
arch import user (historical)ef03afa2005-07-06 17:15:30 +0000174#1G memory hole
Yinghai Lud4b278c2006-10-04 20:46:15 +0000175default HW_MEM_HOLE_SIZEK=0x100000
Stefan Reinauer806e1462005-12-01 10:54:44 +0000176
Yinghai Lu9a791df2006-04-03 20:38:34 +0000177##HT Unit ID offset, default is 1, the typical one
178default HT_CHAIN_UNITID_BASE=0x0
179
180##real SB Unit ID, default is 0x20, mean dont touch it at last
181#default HT_CHAIN_END_UNITID_BASE=0x0
182
183#make the SB HT chain on bus 0, default is not (0)
Yinghai Lud4b278c2006-10-04 20:46:15 +0000184default SB_HT_CHAIN_ON_BUS0=2
Yinghai Lu9a791df2006-04-03 20:38:34 +0000185
186##only offset for SB chain?, default is yes(1)
187default SB_HT_CHAIN_UNITID_OFFSET_ONLY=0
188
Yinghai Lu6d74d762006-10-04 23:57:49 +0000189#Opteron K8 1G HT Support
190default K8_HT_FREQ_1G_SUPPORT=1
191
Myles Watsona67c354c2008-09-18 15:30:42 +0000192#VGA Console
arch import user (historical)98d0d302005-07-06 17:13:46 +0000193default CONFIG_CONSOLE_VGA=1
194default CONFIG_PCI_ROM_RUN=1
195
196##
arch import user (historical)6ca76362005-07-06 17:17:25 +0000197## enable CACHE_AS_RAM specifics
198##
Ronald G. Minnichfb0a64b2005-11-23 21:01:08 +0000199default USE_DCACHE_RAM=1
arch import user (historical)6ca76362005-07-06 17:17:25 +0000200default DCACHE_RAM_BASE=0xcf000
201default DCACHE_RAM_SIZE=0x1000
Yinghai Lu9a791df2006-04-03 20:38:34 +0000202default CONFIG_USE_INIT=0
arch import user (historical)6ca76362005-07-06 17:17:25 +0000203
Yinghai Lu6d74d762006-10-04 23:57:49 +0000204default ENABLE_APIC_EXT_ID=0
Stefan Reinauer806e1462005-12-01 10:54:44 +0000205default APIC_ID_OFFSET=0x10
206default LIFT_BSP_APIC_ID=0
207
208
arch import user (historical)6ca76362005-07-06 17:17:25 +0000209##
arch import user (historical)98d0d302005-07-06 17:13:46 +0000210## Build code to setup a generic IOAPIC
211##
212default CONFIG_IOAPIC=1
213
214##
215## Clean up the motherboard id strings
216##
arch import user (historical)6ca76362005-07-06 17:17:25 +0000217default MAINBOARD_PART_NUMBER="s2895"
218default MAINBOARD_VENDOR="Tyan"
arch import user (historical)98d0d302005-07-06 17:13:46 +0000219default MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID=0x10f1
220default MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID=0x2895
221
222###
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000223### coreboot layout values
arch import user (historical)98d0d302005-07-06 17:13:46 +0000224###
225
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000226## ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
arch import user (historical)98d0d302005-07-06 17:13:46 +0000227default ROM_IMAGE_SIZE = 65536
228
229##
230## Use a small 8K stack
231##
232default STACK_SIZE=0x2000
233
234##
235## Use a small 16K heap
236##
237default HEAP_SIZE=0x4000
238
239##
240## Only use the option table in a normal image
241##
Yinghai Lu6d74d762006-10-04 23:57:49 +0000242default USE_OPTION_TABLE = (!USE_FALLBACK_IMAGE) && (!USE_FAILOVER_IMAGE )
arch import user (historical)98d0d302005-07-06 17:13:46 +0000243
244##
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000245## Coreboot C code runs at this location in RAM
arch import user (historical)98d0d302005-07-06 17:13:46 +0000246##
Yinghai Lu6d74d762006-10-04 23:57:49 +0000247default _RAMBASE=0x00100000
arch import user (historical)98d0d302005-07-06 17:13:46 +0000248
249##
250## Load the payload from the ROM
251##
Ed Swierkbe13dc72006-12-15 12:56:28 +0000252default CONFIG_ROM_PAYLOAD = 1
arch import user (historical)98d0d302005-07-06 17:13:46 +0000253
254###
255### Defaults of options that you may want to override in the target config file
256###
257
258##
259## The default compiler
260##
Uwe Hermannff54db42007-02-02 17:08:04 +0000261default CC="$(CROSS_COMPILE)gcc -m32"
262default HOSTCC="gcc"
arch import user (historical)98d0d302005-07-06 17:13:46 +0000263
264##
265## Disable the gdb stub by default
266##
267default CONFIG_GDB_STUB=0
268
Carl-Daniel Hailfinger93159bf2008-12-22 09:53:24 +0000269default CONFIG_USE_PRINTK_IN_CAR=1
270
arch import user (historical)98d0d302005-07-06 17:13:46 +0000271##
272## The Serial Console
273##
274
275# To Enable the Serial Console
276default CONFIG_CONSOLE_SERIAL8250=1
277
278## Select the serial console baud rate
279default TTYS0_BAUD=115200
280#default TTYS0_BAUD=57600
281#default TTYS0_BAUD=38400
282#default TTYS0_BAUD=19200
283#default TTYS0_BAUD=9600
284#default TTYS0_BAUD=4800
285#default TTYS0_BAUD=2400
286#default TTYS0_BAUD=1200
287
288# Select the serial console base port
289default TTYS0_BASE=0x3f8
290
291# Select the serial protocol
292# This defaults to 8 data bits, 1 stop bit, and no parity
293default TTYS0_LCS=0x3
294
295##
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000296### Select the coreboot loglevel
arch import user (historical)98d0d302005-07-06 17:13:46 +0000297##
298## EMERG 1 system is unusable
299## ALERT 2 action must be taken immediately
300## CRIT 3 critical conditions
301## ERR 4 error conditions
302## WARNING 5 warning conditions
303## NOTICE 6 normal but significant condition
304## INFO 7 informational
305## DEBUG 8 debug-level messages
306## SPEW 9 Way too many details
307
308## Request this level of debugging output
arch import user (historical)6ca76362005-07-06 17:17:25 +0000309default DEFAULT_CONSOLE_LOGLEVEL=8
arch import user (historical)98d0d302005-07-06 17:13:46 +0000310## At a maximum only compile in this level of debugging
311default MAXIMUM_CONSOLE_LOGLEVEL=8
312
313##
314## Select power on after power fail setting
315default MAINBOARD_POWER_ON_AFTER_POWER_FAIL="MAINBOARD_POWER_ON"
316
317### End Options.lb
318end