blob: b67642cd6a83494fa7989a192f1e549b5e459e5e [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
67
Yinghai Lu6d74d762006-10-04 23:57:49 +000068uses SERIAL_CPU_INIT
69
Stefan Reinauer806e1462005-12-01 10:54:44 +000070uses ENABLE_APIC_EXT_ID
71uses APIC_ID_OFFSET
72uses LIFT_BSP_APIC_ID
73
Yinghai Lu9a791df2006-04-03 20:38:34 +000074uses HT_CHAIN_UNITID_BASE
75uses HT_CHAIN_END_UNITID_BASE
Yinghai Lud4b278c2006-10-04 20:46:15 +000076uses SB_HT_CHAIN_ON_BUS0
Yinghai Lu9a791df2006-04-03 20:38:34 +000077uses SB_HT_CHAIN_UNITID_OFFSET_ONLY
78
Yinghai Lu6d74d762006-10-04 23:57:49 +000079uses CONFIG_LB_MEM_TOPK
80
arch import user (historical)98d0d302005-07-06 17:13:46 +000081## ROM_SIZE is the size of boot ROM that this board will use.
82#512K bytes
Yinghai Lu6d74d762006-10-04 23:57:49 +000083default ROM_SIZE=524288
arch import user (historical)98d0d302005-07-06 17:13:46 +000084
85#1M bytes
Yinghai Lu6d74d762006-10-04 23:57:49 +000086#default ROM_SIZE=1048576
arch import user (historical)98d0d302005-07-06 17:13:46 +000087
88##
89## FALLBACK_SIZE is the amount of the ROM the complete fallback image will use
90##
Stefan Reinauer806e1462005-12-01 10:54:44 +000091#default FALLBACK_SIZE=131072
Yinghai Lu6d74d762006-10-04 23:57:49 +000092#default FALLBACK_SIZE=0x40000
arch import user (historical)98d0d302005-07-06 17:13:46 +000093
Yinghai Lu6d74d762006-10-04 23:57:49 +000094#FALLBACK: 256K-4K
95default FALLBACK_SIZE=0x3f000
96#FAILOVER: 4K
97default FAILOVER_SIZE=0x01000
98
99#more 1M for pgtbl
100default CONFIG_LB_MEM_TOPK=2048
arch import user (historical)98d0d302005-07-06 17:13:46 +0000101
102##
103## Build code for the fallback boot
104##
105default HAVE_FALLBACK_BOOT=1
Yinghai Lu6d74d762006-10-04 23:57:49 +0000106default HAVE_FAILOVER_BOOT=1
arch import user (historical)98d0d302005-07-06 17:13:46 +0000107
108##
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000109## Build code to reset the motherboard from coreboot
arch import user (historical)98d0d302005-07-06 17:13:46 +0000110##
111default HAVE_HARD_RESET=1
112
arch import user (historical)98d0d302005-07-06 17:13:46 +0000113##
114## Build code to export a programmable irq routing table
115##
116default HAVE_PIRQ_TABLE=1
117default IRQ_SLOT_COUNT=11
118
119##
120## Build code to export an x86 MP table
121## Useful for specifying IRQ routing values
122##
123default HAVE_MP_TABLE=1
124
125##
126## Build code to export a CMOS option table
127##
128default HAVE_OPTION_TABLE=1
129
130##
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000131## Move the default coreboot cmos range off of AMD RTC registers
arch import user (historical)98d0d302005-07-06 17:13:46 +0000132##
133default LB_CKS_RANGE_START=49
134default LB_CKS_RANGE_END=122
135default LB_CKS_LOC=123
136
137##
138## Build code for SMP support
139## Only worry about 2 micro processors
140##
141default CONFIG_SMP=1
arch import user (historical)ef03afa2005-07-06 17:15:30 +0000142default CONFIG_MAX_CPUS=4
143default CONFIG_MAX_PHYSICAL_CPUS=2
144default CONFIG_LOGICAL_CPUS=1
arch import user (historical)98d0d302005-07-06 17:13:46 +0000145
Yinghai Lu6d74d762006-10-04 23:57:49 +0000146default SERIAL_CPU_INIT=0
147
arch import user (historical)98d0d302005-07-06 17:13:46 +0000148#CHIP_NAME ?
149#default CONFIG_CHIP_NAME=1
150
arch import user (historical)ef03afa2005-07-06 17:15:30 +0000151#1G memory hole
Yinghai Lud4b278c2006-10-04 20:46:15 +0000152default HW_MEM_HOLE_SIZEK=0x100000
Stefan Reinauer806e1462005-12-01 10:54:44 +0000153
Yinghai Lu9a791df2006-04-03 20:38:34 +0000154##HT Unit ID offset, default is 1, the typical one
155default HT_CHAIN_UNITID_BASE=0x0
156
157##real SB Unit ID, default is 0x20, mean dont touch it at last
158#default HT_CHAIN_END_UNITID_BASE=0x0
159
160#make the SB HT chain on bus 0, default is not (0)
Yinghai Lud4b278c2006-10-04 20:46:15 +0000161default SB_HT_CHAIN_ON_BUS0=2
Yinghai Lu9a791df2006-04-03 20:38:34 +0000162
163##only offset for SB chain?, default is yes(1)
164default SB_HT_CHAIN_UNITID_OFFSET_ONLY=0
165
Yinghai Lu6d74d762006-10-04 23:57:49 +0000166#Opteron K8 1G HT Support
167default K8_HT_FREQ_1G_SUPPORT=1
168
Myles Watsona67c354c2008-09-18 15:30:42 +0000169#VGA Console
arch import user (historical)98d0d302005-07-06 17:13:46 +0000170default CONFIG_CONSOLE_VGA=1
171default CONFIG_PCI_ROM_RUN=1
172
173##
arch import user (historical)6ca76362005-07-06 17:17:25 +0000174## enable CACHE_AS_RAM specifics
175##
Ronald G. Minnichfb0a64b2005-11-23 21:01:08 +0000176default USE_DCACHE_RAM=1
arch import user (historical)6ca76362005-07-06 17:17:25 +0000177default DCACHE_RAM_BASE=0xcf000
178default DCACHE_RAM_SIZE=0x1000
Yinghai Lu9a791df2006-04-03 20:38:34 +0000179default CONFIG_USE_INIT=0
arch import user (historical)6ca76362005-07-06 17:17:25 +0000180
Yinghai Lu6d74d762006-10-04 23:57:49 +0000181default ENABLE_APIC_EXT_ID=0
Stefan Reinauer806e1462005-12-01 10:54:44 +0000182default APIC_ID_OFFSET=0x10
183default LIFT_BSP_APIC_ID=0
184
185
arch import user (historical)6ca76362005-07-06 17:17:25 +0000186##
arch import user (historical)98d0d302005-07-06 17:13:46 +0000187## Build code to setup a generic IOAPIC
188##
189default CONFIG_IOAPIC=1
190
191##
192## Clean up the motherboard id strings
193##
arch import user (historical)6ca76362005-07-06 17:17:25 +0000194default MAINBOARD_PART_NUMBER="s2895"
195default MAINBOARD_VENDOR="Tyan"
arch import user (historical)98d0d302005-07-06 17:13:46 +0000196default MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID=0x10f1
197default MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID=0x2895
198
199###
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000200### coreboot layout values
arch import user (historical)98d0d302005-07-06 17:13:46 +0000201###
202
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000203## ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
arch import user (historical)98d0d302005-07-06 17:13:46 +0000204default ROM_IMAGE_SIZE = 65536
205
206##
207## Use a small 8K stack
208##
209default STACK_SIZE=0x2000
210
211##
212## Use a small 16K heap
213##
214default HEAP_SIZE=0x4000
215
216##
217## Only use the option table in a normal image
218##
Yinghai Lu6d74d762006-10-04 23:57:49 +0000219default USE_OPTION_TABLE = (!USE_FALLBACK_IMAGE) && (!USE_FAILOVER_IMAGE )
arch import user (historical)98d0d302005-07-06 17:13:46 +0000220
221##
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000222## Coreboot C code runs at this location in RAM
arch import user (historical)98d0d302005-07-06 17:13:46 +0000223##
Yinghai Lu6d74d762006-10-04 23:57:49 +0000224default _RAMBASE=0x00100000
arch import user (historical)98d0d302005-07-06 17:13:46 +0000225
226##
227## Load the payload from the ROM
228##
Ed Swierkbe13dc72006-12-15 12:56:28 +0000229default CONFIG_ROM_PAYLOAD = 1
arch import user (historical)98d0d302005-07-06 17:13:46 +0000230
231###
232### Defaults of options that you may want to override in the target config file
233###
234
235##
236## The default compiler
237##
Uwe Hermannff54db42007-02-02 17:08:04 +0000238default CC="$(CROSS_COMPILE)gcc -m32"
239default HOSTCC="gcc"
arch import user (historical)98d0d302005-07-06 17:13:46 +0000240
241##
242## Disable the gdb stub by default
243##
244default CONFIG_GDB_STUB=0
245
246##
247## The Serial Console
248##
249
250# To Enable the Serial Console
251default CONFIG_CONSOLE_SERIAL8250=1
252
253## Select the serial console baud rate
254default TTYS0_BAUD=115200
255#default TTYS0_BAUD=57600
256#default TTYS0_BAUD=38400
257#default TTYS0_BAUD=19200
258#default TTYS0_BAUD=9600
259#default TTYS0_BAUD=4800
260#default TTYS0_BAUD=2400
261#default TTYS0_BAUD=1200
262
263# Select the serial console base port
264default TTYS0_BASE=0x3f8
265
266# Select the serial protocol
267# This defaults to 8 data bits, 1 stop bit, and no parity
268default TTYS0_LCS=0x3
269
270##
Stefan Reinauerf8ee1802008-01-18 15:08:58 +0000271### Select the coreboot loglevel
arch import user (historical)98d0d302005-07-06 17:13:46 +0000272##
273## EMERG 1 system is unusable
274## ALERT 2 action must be taken immediately
275## CRIT 3 critical conditions
276## ERR 4 error conditions
277## WARNING 5 warning conditions
278## NOTICE 6 normal but significant condition
279## INFO 7 informational
280## DEBUG 8 debug-level messages
281## SPEW 9 Way too many details
282
283## Request this level of debugging output
arch import user (historical)6ca76362005-07-06 17:17:25 +0000284default DEFAULT_CONSOLE_LOGLEVEL=8
arch import user (historical)98d0d302005-07-06 17:13:46 +0000285## At a maximum only compile in this level of debugging
286default MAXIMUM_CONSOLE_LOGLEVEL=8
287
288##
289## Select power on after power fail setting
290default MAINBOARD_POWER_ON_AFTER_POWER_FAIL="MAINBOARD_POWER_ON"
291
292### End Options.lb
293end