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