6a746c6dcf4627dd28ca91dcc89682308db5be99
[coreboot.git] / src / mainboard / asus / a8v-e_se / Options.lb
1 ##
2 ## This file is part of the LinuxBIOS project.
3 ##
4 ## Copyright (C) 2007 Rudolf Marek <r.marek@assembler.cz>
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 v2 as published by
8 ## 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 HAVE_PIRQ_TABLE
22 uses USE_FALLBACK_IMAGE
23 uses HAVE_FALLBACK_BOOT
24 uses HAVE_HARD_RESET
25 uses IRQ_SLOT_COUNT
26 uses HAVE_OPTION_TABLE
27 uses CONFIG_MAX_CPUS
28 uses CONFIG_MAX_PHYSICAL_CPUS
29 uses CONFIG_LOGICAL_CPUS
30 uses CONFIG_IOAPIC
31 uses CONFIG_SMP
32 uses FALLBACK_SIZE
33 uses ROM_SIZE
34 uses ROM_SECTION_SIZE
35 uses ROM_IMAGE_SIZE
36 uses ROM_SECTION_SIZE
37 uses ROM_SECTION_OFFSET
38 uses CONFIG_ROM_PAYLOAD
39 uses CONFIG_ROM_PAYLOAD_START
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 USE_OPTION_TABLE
47 ##uses CONFIG_LB_MEM_TOPK
48
49 uses HAVE_ACPI_TABLES
50
51 uses LB_CKS_RANGE_START
52 uses LB_CKS_RANGE_END
53 uses LB_CKS_LOC
54 uses MAINBOARD
55 uses MAINBOARD_PART_NUMBER
56 uses MAINBOARD_VENDOR
57 uses MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
58 uses MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
59 uses LINUXBIOS_EXTRA_VERSION
60 uses _RAMBASE
61 uses CONFIG_GDB_STUB
62 uses CROSS_COMPILE
63 uses CC
64 uses HOSTCC
65 uses OBJCOPY
66 uses TTYS0_BAUD
67 uses TTYS0_BASE
68 uses TTYS0_LCS
69 uses DEFAULT_CONSOLE_LOGLEVEL
70 uses MAXIMUM_CONSOLE_LOGLEVEL
71 uses MAINBOARD_POWER_ON_AFTER_POWER_FAIL
72 uses CONFIG_CONSOLE_SERIAL8250
73 uses HAVE_INIT_TIMER
74 uses CONFIG_GDB_STUB
75 uses CONFIG_CHIP_NAME
76 uses CONFIG_CONSOLE_VGA
77 uses CONFIG_PCI_ROM_RUN
78 #bx_b001- uses K8_HW_MEM_HOLE_SIZEK
79 uses K8_HT_FREQ_1G_SUPPORT
80
81 uses USE_DCACHE_RAM
82 uses DCACHE_RAM_BASE
83 uses DCACHE_RAM_SIZE
84 uses DCACHE_RAM_GLOBAL_VAR_SIZE
85 uses CONFIG_USE_INIT
86
87 uses ENABLE_APIC_EXT_ID
88 uses APIC_ID_OFFSET
89 uses LIFT_BSP_APIC_ID
90
91 uses HT_CHAIN_UNITID_BASE
92 uses HT_CHAIN_END_UNITID_BASE
93 #bx_b001- uses K8_SB_HT_CHAIN_ON_BUS0
94 uses SB_HT_CHAIN_UNITID_OFFSET_ONLY
95 #bx_b005+
96 uses SB_HT_CHAIN_ON_BUS0
97
98 uses CONFIG_COMPRESSED_PAYLOAD_NRV2B
99 uses CONFIG_COMPRESSED_PAYLOAD_LZMA
100
101 ## ROM_SIZE is the size of boot ROM that this board will use.
102 #512K bytes
103 default ROM_SIZE=512 * 1024
104
105 #1M bytes
106 #bx- default ROM_SIZE=1024 * 1024
107
108 ##
109 ## FALLBACK_SIZE is the amount of the ROM the complete fallback image will use
110 ##
111 #256K
112 default FALLBACK_SIZE=256 * 1024
113
114 ###
115 ### Build options
116 ###
117
118 ##
119 ## Build code for the fallback boot
120 ##
121 default HAVE_FALLBACK_BOOT=1
122
123 ##
124 ## Build code to reset the motherboard from linuxBIOS
125 ##
126 default HAVE_HARD_RESET=0
127
128 ##
129 ## Build code to export a programmable irq routing table
130 ##
131 default HAVE_PIRQ_TABLE=0
132 default IRQ_SLOT_COUNT=11
133
134 ##
135 ## Build code to export an x86 MP table
136 ## Useful for specifying IRQ routing values
137 ##
138 default HAVE_MP_TABLE=1
139
140 ##
141 ## Build code to export a CMOS option table
142 ##
143 default HAVE_OPTION_TABLE=0
144
145 ##
146 ## Move the default LinuxBIOS cmos range off of AMD RTC registers
147 ##
148 default LB_CKS_RANGE_START=49
149 default LB_CKS_RANGE_END=122
150 default LB_CKS_LOC=123
151
152 ##
153 ## Build code for SMP support
154 ## Only worry about 2 micro processors
155 ##
156 default CONFIG_SMP=1
157 default CONFIG_MAX_CPUS=2
158 default CONFIG_MAX_PHYSICAL_CPUS=1
159 default CONFIG_LOGICAL_CPUS=1
160
161 #acpi
162 default HAVE_ACPI_TABLES=1
163
164 #CHIP_NAME ?
165 #default CONFIG_CHIP_NAME=1
166
167 #1G memory hole
168 #bx_b001- default K8_HW_MEM_HOLE_SIZEK=0x100000
169
170 #Opteron K8 1G HT Support
171 default K8_HT_FREQ_1G_SUPPORT=1
172
173 ##HT Unit ID offset, default is 1, the typical one
174 default HT_CHAIN_UNITID_BASE=0x0
175
176 ##real SB Unit ID, default is 0x20, mean dont touch it at last
177 #default HT_CHAIN_END_UNITID_BASE=0x0
178
179 #make the SB HT chain on bus 0, default is not (0)
180 #bx_b001- default K8_SB_HT_CHAIN_ON_BUS0=2
181
182 ##bx_b005+ make the SB HT chain on bus 0
183 default SB_HT_CHAIN_ON_BUS0=1
184
185 ##only offset for SB chain?, default is yes(1)
186 default SB_HT_CHAIN_UNITID_OFFSET_ONLY=0
187
188 #VGA
189 default CONFIG_CONSOLE_VGA=1
190 default CONFIG_PCI_ROM_RUN=1
191
192 ##
193 ## enable CACHE_AS_RAM specifics
194 ##
195 default USE_DCACHE_RAM=1
196 default DCACHE_RAM_BASE=0xcc000
197 default DCACHE_RAM_SIZE=0x4000
198 default DCACHE_RAM_GLOBAL_VAR_SIZE=0x01000
199 default CONFIG_USE_INIT=0
200
201 default ENABLE_APIC_EXT_ID=0
202 default APIC_ID_OFFSET=0x10
203 default LIFT_BSP_APIC_ID=0
204
205
206 ##
207 ## Build code to setup a generic IOAPIC
208 ##
209 default CONFIG_IOAPIC=1
210
211 ##
212 ## Clean up the motherboard id strings
213 ##
214 default MAINBOARD_PART_NUMBER="A8V-E SE"
215 default MAINBOARD_VENDOR="ASUS"
216 default MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID=0x1043
217 #default MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID=0x1234
218
219 ###
220 ### LinuxBIOS layout values
221 ###
222
223 ## ROM_IMAGE_SIZE is the amount of space to allow linuxBIOS to occupy.
224 default ROM_IMAGE_SIZE = 64 * 1024
225
226 ##
227 ## Use a small 8K stack
228 ##
229 default STACK_SIZE= 8 * 1024
230
231 ##
232 ## Use a small 256K heap
233 ##
234 default HEAP_SIZE=256 * 1024
235
236 #more 1M for pgtbl
237 ##default CONFIG_LB_MEM_TOPK=2048
238
239 ##
240 ## Only use the option table in a normal image
241 ##
242 ##default USE_OPTION_TABLE = !USE_FALLBACK_IMAGE
243
244 ##
245 ## LinuxBIOS C code runs at this location in RAM
246 ##
247 default _RAMBASE=0x00004000
248
249 ##
250 ## Load the payload from the ROM
251 ##
252 default CONFIG_ROM_PAYLOAD = 1
253
254 ###
255 ### Defaults of options that you may want to override in the target config file
256 ###
257
258 ##
259 ## The default compiler
260 ##
261 default CC="$(CROSS_COMPILE)gcc -m32"
262 default HOSTCC="gcc"
263
264 ##
265 ## Disable the gdb stub by default
266 ##
267 default CONFIG_GDB_STUB=0
268
269 ##
270 ## The Serial Console
271 ##
272
273 # To Enable the Serial Console
274 default CONFIG_CONSOLE_SERIAL8250=1
275
276 ## Select the serial console baud rate
277 default TTYS0_BAUD=115200
278 #default TTYS0_BAUD=57600
279 #default TTYS0_BAUD=38400
280 #default TTYS0_BAUD=19200
281 #default TTYS0_BAUD=9600
282 #default TTYS0_BAUD=4800
283 #default TTYS0_BAUD=2400
284 #default TTYS0_BAUD=1200
285
286 # Select the serial console base port
287 default TTYS0_BASE=0x3f8
288
289 # Select the serial protocol
290 # This defaults to 8 data bits, 1 stop bit, and no parity
291 default TTYS0_LCS=0x3
292
293 ##
294 ### Select the linuxBIOS loglevel
295 ##
296 ## EMERG      1   system is unusable
297 ## ALERT      2   action must be taken immediately
298 ## CRIT       3   critical conditions
299 ## ERR        4   error conditions
300 ## WARNING    5   warning conditions
301 ## NOTICE     6   normal but significant condition
302 ## INFO       7   informational
303 ## DEBUG      8   debug-level messages
304 ## SPEW       9   Way too many details
305
306 ## Request this level of debugging output
307 default  DEFAULT_CONSOLE_LOGLEVEL=8
308 ## At a maximum only compile in this level of debugging
309 default  MAXIMUM_CONSOLE_LOGLEVEL=8
310
311 ##
312 ## Select power on after power fail setting
313 default MAINBOARD_POWER_ON_AFTER_POWER_FAIL="MAINBOARD_POWER_ON"
314
315 ### End Options.lb
316 end