blob: 2f98066cd3fef457f433904adc0422960618a551 [file] [log] [blame]
Ed Swierkb8e53eb2008-10-13 23:18:56 +00001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2008 Arastra, Inc.
5##
6## This program is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License version 2 as
8## published by the Free Software Foundation.
9##
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty of
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13## GNU General Public License for more details.
14##
15## You should have received a copy of the GNU General Public License
16## along with this program; if not, write to the Free Software
17## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18##
19
Stefan Reinauer08670622009-06-30 15:17:49 +000020uses CONFIG_HAVE_MP_TABLE
Peter Stuge483b7bb2009-04-14 07:40:01 +000021uses CONFIG_CBFS
Stefan Reinauer08670622009-06-30 15:17:49 +000022uses CONFIG_HAVE_PIRQ_TABLE
23uses CONFIG_USE_FALLBACK_IMAGE
24uses CONFIG_HAVE_FALLBACK_BOOT
25uses CONFIG_HAVE_HARD_RESET
26uses CONFIG_IRQ_SLOT_COUNT
Ed Swierkb8e53eb2008-10-13 23:18:56 +000027uses CONFIG_LOGICAL_CPUS
28uses CONFIG_MAX_CPUS
29uses CONFIG_IOAPIC
30uses CONFIG_SMP
Stefan Reinauer08670622009-06-30 15:17:49 +000031uses CONFIG_FALLBACK_SIZE
32uses CONFIG_ROM_SIZE
33uses CONFIG_ROM_SECTION_SIZE
34uses CONFIG_ROM_IMAGE_SIZE
35uses CONFIG_ROM_SECTION_SIZE
36uses CONFIG_ROM_SECTION_OFFSET
Ed Swierkb8e53eb2008-10-13 23:18:56 +000037uses CONFIG_ROM_PAYLOAD
38uses CONFIG_ROM_PAYLOAD_START
39uses CONFIG_COMPRESSED_PAYLOAD_LZMA
Stefan Reinauer08670622009-06-30 15:17:49 +000040uses CONFIG_PAYLOAD_SIZE
41uses CONFIG_ROMBASE
42uses CONFIG_XIP_ROM_SIZE
43uses CONFIG_XIP_ROM_BASE
44uses CONFIG_STACK_SIZE
45uses CONFIG_HEAP_SIZE
46uses CONFIG_LB_CKS_RANGE_START
47uses CONFIG_LB_CKS_RANGE_END
48uses CONFIG_LB_CKS_LOC
49uses CONFIG_MAINBOARD
50uses CONFIG_MAINBOARD_PART_NUMBER
51uses CONFIG_MAINBOARD_VENDOR
52uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
53uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
Ed Swierkb8e53eb2008-10-13 23:18:56 +000054uses COREBOOT_EXTRA_VERSION
55uses CONFIG_UDELAY_TSC
56uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
Stefan Reinauer08670622009-06-30 15:17:49 +000057uses CONFIG_RAMBASE
Ed Swierkb8e53eb2008-10-13 23:18:56 +000058uses CONFIG_GDB_STUB
59uses CONFIG_CONSOLE_SERIAL8250
Stefan Reinauer08670622009-06-30 15:17:49 +000060uses CONFIG_TTYS0_BAUD
61uses CONFIG_TTYS0_BASE
62uses CONFIG_TTYS0_LCS
63uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
64uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
65uses CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL
Ed Swierkb8e53eb2008-10-13 23:18:56 +000066uses CC
Stefan Reinauer9dd27bc2009-06-30 17:13:58 +000067uses HOSTCC
Stefan Reinauer08670622009-06-30 15:17:49 +000068uses CONFIG_CROSS_COMPILE
69uses CONFIG_OBJCOPY
Ed Swierkb8e53eb2008-10-13 23:18:56 +000070
71
72###
73### Build options
74###
75
76##
Stefan Reinauer08670622009-06-30 15:17:49 +000077## CONFIG_ROM_SIZE is the size of boot ROM that this board will use.
Ed Swierkb8e53eb2008-10-13 23:18:56 +000078##
Stefan Reinauer08670622009-06-30 15:17:49 +000079default CONFIG_ROM_SIZE = 2 * 1024 * 1024
Ed Swierkb8e53eb2008-10-13 23:18:56 +000080
81##
82## Build code for the fallback boot
83##
Stefan Reinauer08670622009-06-30 15:17:49 +000084default CONFIG_HAVE_FALLBACK_BOOT=1
Ed Swierkb8e53eb2008-10-13 23:18:56 +000085
86##
87## Delay timer options
88## Use timer2
89##
90default CONFIG_UDELAY_TSC=1
91default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2=1
92
93##
94## Build code to reset the motherboard from coreboot
95##
Stefan Reinauer08670622009-06-30 15:17:49 +000096default CONFIG_HAVE_HARD_RESET=1
Ed Swierkb8e53eb2008-10-13 23:18:56 +000097
98##
99## Build code to export a programmable irq routing table
100##
Stefan Reinauer08670622009-06-30 15:17:49 +0000101default CONFIG_HAVE_PIRQ_TABLE=1
102default CONFIG_IRQ_SLOT_COUNT=1
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000103
104##
105## Build code to export an x86 MP table
106## Useful for specifying IRQ routing values
107##
Stefan Reinauer08670622009-06-30 15:17:49 +0000108default CONFIG_HAVE_MP_TABLE=1
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000109
110##
111## Build code for SMP support
112## Only worry about 2 micro processors
113##
114default CONFIG_SMP=1
115default CONFIG_MAX_CPUS=4
116default CONFIG_LOGICAL_CPUS=0
117
118##
119## Build code to setup a generic IOAPIC
120##
121default CONFIG_IOAPIC=1
122
123##
124## Clean up the motherboard id strings
125##
Stefan Reinauer08670622009-06-30 15:17:49 +0000126default CONFIG_MAINBOARD_PART_NUMBER="Truxton"
127default CONFIG_MAINBOARD_VENDOR= "Intel"
128default CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID=0x8086
129default CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID=0x2680
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000130
131###
132### Coreboot layout values
133###
134
Stefan Reinauer08670622009-06-30 15:17:49 +0000135## CONFIG_ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
136default CONFIG_ROM_IMAGE_SIZE = 65536
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000137
138##
139## Use a small 8K stack
140##
Stefan Reinauer08670622009-06-30 15:17:49 +0000141default CONFIG_STACK_SIZE=0x2000
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000142
143##
144## Use a small 32K heap
145##
Stefan Reinauer08670622009-06-30 15:17:49 +0000146default CONFIG_HEAP_SIZE=0x8000
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000147
148
149###
150### Compute the location and size of where this firmware image
151### (coreboot plus bootloader) will live in the boot rom chip.
152###
Patrick Georgib339e102009-08-11 17:35:02 +0000153default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000154
155##
156## coreboot C code runs at this location in RAM
157##
Stefan Reinauer08670622009-06-30 15:17:49 +0000158default CONFIG_RAMBASE=0x00004000
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000159
160##
161## Load the payload from the ROM
162##
163default CONFIG_ROM_PAYLOAD=1
164
165
166###
167### Defaults of options that you may want to override in the target config file
168###
169
170##
171## The default compiler
172##
Stefan Reinauer08670622009-06-30 15:17:49 +0000173default CC="$(CONFIG_CROSS_COMPILE)gcc -m32"
Stefan Reinauer9dd27bc2009-06-30 17:13:58 +0000174default HOSTCC="gcc"
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000175
176##
177## Disable the gdb stub by default
178##
179default CONFIG_GDB_STUB=0
180
181##
182## The Serial Console
183##
184
185# To Enable the Serial Console
186default CONFIG_CONSOLE_SERIAL8250=1
187
188## Select the serial console baud rate
Stefan Reinauer08670622009-06-30 15:17:49 +0000189default CONFIG_TTYS0_BAUD=115200
190#default CONFIG_TTYS0_BAUD=57600
191#default CONFIG_TTYS0_BAUD=38400
192#default CONFIG_TTYS0_BAUD=19200
193#default CONFIG_TTYS0_BAUD=9600
194#default CONFIG_TTYS0_BAUD=4800
195#default CONFIG_TTYS0_BAUD=2400
196#default CONFIG_TTYS0_BAUD=1200
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000197
198# Select the serial console base port
Stefan Reinauer08670622009-06-30 15:17:49 +0000199default CONFIG_TTYS0_BASE=0x3f8
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000200
201# Select the serial protocol
202# This defaults to 8 data bits, 1 stop bit, and no parity
Stefan Reinauer08670622009-06-30 15:17:49 +0000203default CONFIG_TTYS0_LCS=0x3
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000204
205##
206### Select the coreboot loglevel
207##
208## EMERG 1 system is unusable
209## ALERT 2 action must be taken immediately
210## CRIT 3 critical conditions
211## ERR 4 error conditions
212## WARNING 5 warning conditions
213## NOTICE 6 normal but significant condition
214## INFO 7 informational
Stefan Reinauer08670622009-06-30 15:17:49 +0000215## CONFIG_DEBUG 8 debug-level messages
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000216## SPEW 9 way too many details
217
218## Request this level of debugging output
Stefan Reinauer08670622009-06-30 15:17:49 +0000219default CONFIG_DEFAULT_CONSOLE_LOGLEVEL=5
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000220## At a maximum only compile in this level of debugging
Stefan Reinauer08670622009-06-30 15:17:49 +0000221default CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=5
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000222
223##
224## Select power on after power fail setting
Stefan Reinauer08670622009-06-30 15:17:49 +0000225default CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL="MAINBOARD_POWER_ON"
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000226
227### End Options.lb
Ronald G. Minnichd469cda2009-03-31 16:32:01 +0000228
229
230#
Peter Stuge483b7bb2009-04-14 07:40:01 +0000231# CBFS
Ronald G. Minnichd469cda2009-03-31 16:32:01 +0000232#
233#
Patrick Georgib339e102009-08-11 17:35:02 +0000234default CONFIG_CBFS=1
Ed Swierkb8e53eb2008-10-13 23:18:56 +0000235end