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