Undo my ugly commit that added uses clauses in lots of places instead of one.
[coreboot.git] / src / mainboard / intel / truxton / Options.lb
1 ##
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
20 uses HAVE_MP_TABLE
21 uses CONFIG_CBFS
22 uses HAVE_PIRQ_TABLE
23 uses USE_FALLBACK_IMAGE
24 uses HAVE_FALLBACK_BOOT
25 uses HAVE_HARD_RESET
26 uses IRQ_SLOT_COUNT
27 uses CONFIG_LOGICAL_CPUS
28 uses CONFIG_MAX_CPUS
29 uses CONFIG_IOAPIC
30 uses CONFIG_SMP
31 uses FALLBACK_SIZE
32 uses ROM_SIZE
33 uses ROM_SECTION_SIZE
34 uses ROM_IMAGE_SIZE
35 uses ROM_SECTION_SIZE
36 uses ROM_SECTION_OFFSET
37 uses CONFIG_ROM_PAYLOAD
38 uses CONFIG_ROM_PAYLOAD_START
39 uses CONFIG_COMPRESSED_PAYLOAD_LZMA
40 uses PAYLOAD_SIZE
41 uses _ROMBASE
42 uses XIP_ROM_SIZE
43 uses XIP_ROM_BASE
44 uses STACK_SIZE
45 uses HEAP_SIZE
46 uses LB_CKS_RANGE_START
47 uses LB_CKS_RANGE_END
48 uses LB_CKS_LOC
49 uses MAINBOARD
50 uses MAINBOARD_PART_NUMBER
51 uses MAINBOARD_VENDOR
52 uses MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
53 uses MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
54 uses COREBOOT_EXTRA_VERSION
55 uses CONFIG_UDELAY_TSC
56 uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
57 uses _RAMBASE
58 uses CONFIG_GDB_STUB
59 uses CONFIG_CONSOLE_SERIAL8250
60 uses TTYS0_BAUD
61 uses TTYS0_BASE
62 uses TTYS0_LCS
63 uses DEFAULT_CONSOLE_LOGLEVEL
64 uses MAXIMUM_CONSOLE_LOGLEVEL
65 uses MAINBOARD_POWER_ON_AFTER_POWER_FAIL
66 uses CC
67 uses HOSTCC
68 uses CROSS_COMPILE
69 uses OBJCOPY
70
71
72 ###
73 ### Build options
74 ###
75
76 ##
77 ## ROM_SIZE is the size of boot ROM that this board will use.
78 ##
79 default ROM_SIZE = 2 * 1024 * 1024
80
81 ##
82 ## Build code for the fallback boot
83 ##
84 default HAVE_FALLBACK_BOOT=1
85
86 ##
87 ## Delay timer options
88 ## Use timer2
89 ##
90 default CONFIG_UDELAY_TSC=1
91 default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2=1
92
93 ##
94 ## Build code to reset the motherboard from coreboot
95 ##
96 default HAVE_HARD_RESET=1
97
98 ##
99 ## Build code to export a programmable irq routing table
100 ##
101 default HAVE_PIRQ_TABLE=1
102 default IRQ_SLOT_COUNT=1
103
104 ##
105 ## Build code to export an x86 MP table
106 ## Useful for specifying IRQ routing values
107 ##
108 default HAVE_MP_TABLE=1
109
110 ##
111 ## Build code for SMP support
112 ## Only worry about 2 micro processors
113 ##
114 default CONFIG_SMP=1
115 default CONFIG_MAX_CPUS=4
116 default CONFIG_LOGICAL_CPUS=0
117
118 ##
119 ## Build code to setup a generic IOAPIC
120 ##
121 default CONFIG_IOAPIC=1
122
123 ##
124 ## Clean up the motherboard id strings
125 ##
126 default MAINBOARD_PART_NUMBER="Truxton"
127 default MAINBOARD_VENDOR=     "Intel"
128 default MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID=0x8086
129 default MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID=0x2680
130
131 ###
132 ### Coreboot layout values
133 ###
134
135 ## ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
136 default ROM_IMAGE_SIZE = 65536
137
138 ##
139 ## Use a small 8K stack
140 ##
141 default STACK_SIZE=0x2000
142
143 ##
144 ## Use a small 32K heap
145 ##
146 default HEAP_SIZE=0x8000
147
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 ###
153 default FALLBACK_SIZE=131072
154
155 ##
156 ## coreboot C code runs at this location in RAM
157 ##
158 default _RAMBASE=0x00004000
159
160 ##
161 ## Load the payload from the ROM
162 ##
163 default 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 ##
173 default CC="$(CROSS_COMPILE)gcc -m32"
174 default HOSTCC="gcc"
175
176 ##
177 ## Disable the gdb stub by default
178 ##
179 default CONFIG_GDB_STUB=0
180
181 ##
182 ## The Serial Console
183 ##
184
185 # To Enable the Serial Console
186 default CONFIG_CONSOLE_SERIAL8250=1
187
188 ## Select the serial console baud rate
189 default TTYS0_BAUD=115200
190 #default TTYS0_BAUD=57600
191 #default TTYS0_BAUD=38400
192 #default TTYS0_BAUD=19200
193 #default TTYS0_BAUD=9600
194 #default TTYS0_BAUD=4800
195 #default TTYS0_BAUD=2400
196 #default TTYS0_BAUD=1200
197
198 # Select the serial console base port
199 default TTYS0_BASE=0x3f8
200
201 # Select the serial protocol
202 # This defaults to 8 data bits, 1 stop bit, and no parity
203 default TTYS0_LCS=0x3
204
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
215 ## DEBUG      8   debug-level messages
216 ## SPEW       9   way too many details
217
218 ## Request this level of debugging output
219 default  DEFAULT_CONSOLE_LOGLEVEL=5
220 ## At a maximum only compile in this level of debugging
221 default  MAXIMUM_CONSOLE_LOGLEVEL=5
222
223 ##
224 ## Select power on after power fail setting
225 default MAINBOARD_POWER_ON_AFTER_POWER_FAIL="MAINBOARD_POWER_ON"
226
227 ### End Options.lb
228
229
230 #
231 # CBFS
232 #
233 #
234 default CONFIG_CBFS=0
235 end