blob: 55bef9597c9e290d72de95e862c357ff7238eb5c [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
36uses MAINBOARD
37uses MAINBOARD_PART_NUMBER
38uses MAINBOARD_VENDOR
39uses MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
Myles Watsona67c354c2008-09-18 15:30:42 +000040uses MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
Stefan Reinauerf8ee1802008-01-18 15:08:58 +000041uses COREBOOT_EXTRA_VERSION
arch import user (historical)98d0d302005-07-06 17:13:46 +000042uses _RAMBASE
43uses CONFIG_GDB_STUB
44uses CROSS_COMPILE
45uses CC
46uses HOSTCC
47uses OBJCOPY
48uses TTYS0_BAUD
49uses TTYS0_BASE
50uses TTYS0_LCS
51uses DEFAULT_CONSOLE_LOGLEVEL
52uses MAXIMUM_CONSOLE_LOGLEVEL
53uses MAINBOARD_POWER_ON_AFTER_POWER_FAIL
54uses CONFIG_CONSOLE_SERIAL8250
55uses HAVE_INIT_TIMER
56uses CONFIG_GDB_STUB
57uses CONFIG_CHIP_NAME
58uses CONFIG_CONSOLE_VGA
59uses CONFIG_PCI_ROM_RUN
Yinghai Lud4b278c2006-10-04 20:46:15 +000060uses HW_MEM_HOLE_SIZEK
Stefan Reinauer806e1462005-12-01 10:54:44 +000061uses K8_HT_FREQ_1G_SUPPORT
arch import user (historical)98d0d302005-07-06 17:13:46 +000062
arch import user (historical)6ca76362005-07-06 17:17:25 +000063uses USE_DCACHE_RAM
64uses DCACHE_RAM_BASE
65uses DCACHE_RAM_SIZE
66uses CONFIG_USE_INIT
Carl-Daniel Hailfinger93159bf2008-12-22 09:53:24 +000067uses CONFIG_USE_PRINTK_IN_CAR
arch import user (historical)6ca76362005-07-06 17:17:25 +000068
Yinghai Lu6d74d762006-10-04 23:57:49 +000069uses SERIAL_CPU_INIT
70
Stefan Reinauer806e1462005-12-01 10:54:44 +000071uses ENABLE_APIC_EXT_ID
72uses APIC_ID_OFFSET
73uses LIFT_BSP_APIC_ID
74
Yinghai Lu9a791df2006-04-03 20:38:34 +000075uses HT_CHAIN_UNITID_BASE
76uses HT_CHAIN_END_UNITID_BASE
Yinghai Lud4b278c2006-10-04 20:46:15 +000077uses SB_HT_CHAIN_ON_BUS0
Yinghai Lu9a791df2006-04-03 20:38:34 +000078uses SB_HT_CHAIN_UNITID_OFFSET_ONLY
79
Yinghai Lu6d74d762006-10-04 23:57:49 +000080uses CONFIG_LB_MEM_TOPK
81
arch import user (historical)98d0d302005-07-06 17:13:46 +000082## ROM_SIZE is the size of boot ROM that this board will use.
83#512K bytes
Yinghai Lu6d74d762006-10-04 23:57:49 +000084default ROM_SIZE=524288
arch import user (historical)98d0d302005-07-06 17:13:46 +000085
86#1M bytes
Yinghai Lu6d74d762006-10-04 23:57:49 +000087#default ROM_SIZE=1048576
arch import user (historical)98d0d302005-07-06 17:13:46 +000088
89##
90## FALLBACK_SIZE is the amount of the ROM the complete fallback image will use
91##
Stefan Reinauer806e1462005-12-01 10:54:44 +000092#default FALLBACK_SIZE=131072
Yinghai Lu6d74d762006-10-04 23:57:49 +000093#default FALLBACK_SIZE=0x40000
arch import user (historical)98d0d302005-07-06 17:13:46 +000094
Yinghai Lu6d74d762006-10-04 23:57:49 +000095#FALLBACK: 256K-4K
96default FALLBACK_SIZE=0x3f000
97#FAILOVER: 4K
98default FAILOVER_SIZE=0x01000
99
100#more 1M for pgtbl
101default CONFIG_LB_MEM_TOPK=2048
arch import user (historical)98d0d302005-07-06 17:13:46 +0000102
103##
104## Build code for the fallback boot
105##
106default HAVE_FALLBACK_BOOT=1
Yinghai Lu6d74d762006-10-04 23:57:49 +0000107default HAVE_FAILOVER_BOOT=1
arch import user (historical)98d0d302005-07-06 17:13:46 +0000108
109##
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000110## Build code to reset the motherboard from coreboot
arch import user (historical)98d0d302005-07-06 17:13:46 +0000111##
112default HAVE_HARD_RESET=1
113
arch import user (historical)98d0d302005-07-06 17:13:46 +0000114##
115## Build code to export a programmable irq routing table
116##
117default HAVE_PIRQ_TABLE=1
118default IRQ_SLOT_COUNT=11
119
120##
121## Build code to export an x86 MP table
122## Useful for specifying IRQ routing values
123##
124default HAVE_MP_TABLE=1
125
126##
127## Build code to export a CMOS option table
128##
129default HAVE_OPTION_TABLE=1
130
131##
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000132## Move the default coreboot cmos range off of AMD RTC registers
arch import user (historical)98d0d302005-07-06 17:13:46 +0000133##
134default LB_CKS_RANGE_START=49
135default LB_CKS_RANGE_END=122
136default LB_CKS_LOC=123
137
138##
139## Build code for SMP support
140## Only worry about 2 micro processors
141##
142default CONFIG_SMP=1
arch import user (historical)ef03afa2005-07-06 17:15:30 +0000143default CONFIG_MAX_CPUS=4
144default CONFIG_MAX_PHYSICAL_CPUS=2
145default CONFIG_LOGICAL_CPUS=1
arch import user (historical)98d0d302005-07-06 17:13:46 +0000146
Yinghai Lu6d74d762006-10-04 23:57:49 +0000147default SERIAL_CPU_INIT=0
148
arch import user (historical)98d0d302005-07-06 17:13:46 +0000149#CHIP_NAME ?
150#default CONFIG_CHIP_NAME=1
151
arch import user (historical)ef03afa2005-07-06 17:15:30 +0000152#1G memory hole
Yinghai Lud4b278c2006-10-04 20:46:15 +0000153default HW_MEM_HOLE_SIZEK=0x100000
Stefan Reinauer806e1462005-12-01 10:54:44 +0000154
Yinghai Lu9a791df2006-04-03 20:38:34 +0000155##HT Unit ID offset, default is 1, the typical one
156default HT_CHAIN_UNITID_BASE=0x0
157
158##real SB Unit ID, default is 0x20, mean dont touch it at last
159#default HT_CHAIN_END_UNITID_BASE=0x0
160
161#make the SB HT chain on bus 0, default is not (0)
Yinghai Lud4b278c2006-10-04 20:46:15 +0000162default SB_HT_CHAIN_ON_BUS0=2
Yinghai Lu9a791df2006-04-03 20:38:34 +0000163
164##only offset for SB chain?, default is yes(1)
165default SB_HT_CHAIN_UNITID_OFFSET_ONLY=0
166
Yinghai Lu6d74d762006-10-04 23:57:49 +0000167#Opteron K8 1G HT Support
168default K8_HT_FREQ_1G_SUPPORT=1
169
Myles Watsona67c354c2008-09-18 15:30:42 +0000170#VGA Console
arch import user (historical)98d0d302005-07-06 17:13:46 +0000171default CONFIG_CONSOLE_VGA=1
172default CONFIG_PCI_ROM_RUN=1
173
174##
arch import user (historical)6ca76362005-07-06 17:17:25 +0000175## enable CACHE_AS_RAM specifics
176##
Ronald G. Minnichfb0a64b2005-11-23 21:01:08 +0000177default USE_DCACHE_RAM=1
arch import user (historical)6ca76362005-07-06 17:17:25 +0000178default DCACHE_RAM_BASE=0xcf000
179default DCACHE_RAM_SIZE=0x1000
Yinghai Lu9a791df2006-04-03 20:38:34 +0000180default CONFIG_USE_INIT=0
arch import user (historical)6ca76362005-07-06 17:17:25 +0000181
Yinghai Lu6d74d762006-10-04 23:57:49 +0000182default ENABLE_APIC_EXT_ID=0
Stefan Reinauer806e1462005-12-01 10:54:44 +0000183default APIC_ID_OFFSET=0x10
184default LIFT_BSP_APIC_ID=0
185
186
arch import user (historical)6ca76362005-07-06 17:17:25 +0000187##
arch import user (historical)98d0d302005-07-06 17:13:46 +0000188## Build code to setup a generic IOAPIC
189##
190default CONFIG_IOAPIC=1
191
192##
193## Clean up the motherboard id strings
194##
arch import user (historical)6ca76362005-07-06 17:17:25 +0000195default MAINBOARD_PART_NUMBER="s2895"
196default MAINBOARD_VENDOR="Tyan"
arch import user (historical)98d0d302005-07-06 17:13:46 +0000197default MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID=0x10f1
198default MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID=0x2895
199
200###
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000201### coreboot layout values
arch import user (historical)98d0d302005-07-06 17:13:46 +0000202###
203
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000204## ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
arch import user (historical)98d0d302005-07-06 17:13:46 +0000205default ROM_IMAGE_SIZE = 65536
206
207##
208## Use a small 8K stack
209##
210default STACK_SIZE=0x2000
211
212##
213## Use a small 16K heap
214##
215default HEAP_SIZE=0x4000
216
217##
218## Only use the option table in a normal image
219##
Yinghai Lu6d74d762006-10-04 23:57:49 +0000220default USE_OPTION_TABLE = (!USE_FALLBACK_IMAGE) && (!USE_FAILOVER_IMAGE )
arch import user (historical)98d0d302005-07-06 17:13:46 +0000221
222##
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000223## Coreboot C code runs at this location in RAM
arch import user (historical)98d0d302005-07-06 17:13:46 +0000224##
Yinghai Lu6d74d762006-10-04 23:57:49 +0000225default _RAMBASE=0x00100000
arch import user (historical)98d0d302005-07-06 17:13:46 +0000226
227##
228## Load the payload from the ROM
229##
Ed Swierkbe13dc72006-12-15 12:56:28 +0000230default CONFIG_ROM_PAYLOAD = 1
arch import user (historical)98d0d302005-07-06 17:13:46 +0000231
232###
233### Defaults of options that you may want to override in the target config file
234###
235
236##
237## The default compiler
238##
Uwe Hermannff54db42007-02-02 17:08:04 +0000239default CC="$(CROSS_COMPILE)gcc -m32"
240default HOSTCC="gcc"
arch import user (historical)98d0d302005-07-06 17:13:46 +0000241
242##
243## Disable the gdb stub by default
244##
245default CONFIG_GDB_STUB=0
246
Carl-Daniel Hailfinger93159bf2008-12-22 09:53:24 +0000247default CONFIG_USE_PRINTK_IN_CAR=1
248
arch import user (historical)98d0d302005-07-06 17:13:46 +0000249##
250## The Serial Console
251##
252
253# To Enable the Serial Console
254default CONFIG_CONSOLE_SERIAL8250=1
255
256## Select the serial console baud rate
257default TTYS0_BAUD=115200
258#default TTYS0_BAUD=57600
259#default TTYS0_BAUD=38400
260#default TTYS0_BAUD=19200
261#default TTYS0_BAUD=9600
262#default TTYS0_BAUD=4800
263#default TTYS0_BAUD=2400
264#default TTYS0_BAUD=1200
265
266# Select the serial console base port
267default TTYS0_BASE=0x3f8
268
269# Select the serial protocol
270# This defaults to 8 data bits, 1 stop bit, and no parity
271default TTYS0_LCS=0x3
272
273##
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000274### Select the coreboot loglevel
arch import user (historical)98d0d302005-07-06 17:13:46 +0000275##
276## EMERG 1 system is unusable
277## ALERT 2 action must be taken immediately
278## CRIT 3 critical conditions
279## ERR 4 error conditions
280## WARNING 5 warning conditions
281## NOTICE 6 normal but significant condition
282## INFO 7 informational
283## DEBUG 8 debug-level messages
284## SPEW 9 Way too many details
285
286## Request this level of debugging output
arch import user (historical)6ca76362005-07-06 17:17:25 +0000287default DEFAULT_CONSOLE_LOGLEVEL=8
arch import user (historical)98d0d302005-07-06 17:13:46 +0000288## At a maximum only compile in this level of debugging
289default MAXIMUM_CONSOLE_LOGLEVEL=8
290
291##
292## Select power on after power fail setting
293default MAINBOARD_POWER_ON_AFTER_POWER_FAIL="MAINBOARD_POWER_ON"
294
295### End Options.lb
296end