Fix technexion tim5690 build failure - REALMODE option required for x86.c mainboard...
[coreboot.git] / src / mainboard / technexion / tim5690 / 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 CONFIG_GENERATE_MP_TABLE
23 uses CONFIG_GENERATE_PIRQ_TABLE
24 uses CONFIG_GENERATE_ACPI_TABLES
25 uses CONFIG_HAVE_ACPI_RESUME
26 uses CONFIG_USE_FALLBACK_IMAGE
27 uses CONFIG_HAVE_FALLBACK_BOOT
28 uses CONFIG_HAVE_HARD_RESET
29 uses CONFIG_IRQ_SLOT_COUNT
30 uses CONFIG_HAVE_OPTION_TABLE
31 uses CONFIG_MAX_CPUS
32 uses CONFIG_MAX_PHYSICAL_CPUS
33 uses CONFIG_LOGICAL_CPUS
34 uses CONFIG_IOAPIC
35 uses CONFIG_SMP
36 uses CONFIG_FALLBACK_SIZE
37 uses CONFIG_ROM_SIZE
38 uses CONFIG_ROM_SECTION_SIZE
39 uses CONFIG_ROM_IMAGE_SIZE
40 uses CONFIG_ROM_SECTION_SIZE
41 uses CONFIG_ROM_SECTION_OFFSET
42 uses CONFIG_ROM_PAYLOAD
43 uses CONFIG_COMPRESSED_PAYLOAD_LZMA
44 uses CONFIG_ROMBASE
45 uses CONFIG_XIP_ROM_SIZE
46 uses CONFIG_XIP_ROM_BASE
47 uses CONFIG_STACK_SIZE
48 uses CONFIG_HEAP_SIZE
49 uses CONFIG_USE_OPTION_TABLE
50 uses CONFIG_LB_CKS_RANGE_START
51 uses CONFIG_LB_CKS_RANGE_END
52 uses CONFIG_LB_CKS_LOC
53 uses CONFIG_MAINBOARD_PART_NUMBER
54 uses CONFIG_MAINBOARD_VENDOR
55 uses CONFIG_MAINBOARD
56 uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
57 uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
58 uses COREBOOT_EXTRA_VERSION
59 uses CONFIG_RAMBASE
60 uses CONFIG_TTYS0_BAUD
61 uses CONFIG_TTYS0_BASE
62 uses CONFIG_TTYS0_LCS
63 uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
64 uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
65 uses CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL
66 uses CONFIG_CONSOLE_SERIAL8250
67 uses CONFIG_HAVE_INIT_TIMER
68 uses CONFIG_GDB_STUB
69 uses CONFIG_GDB_STUB
70 uses CONFIG_CROSS_COMPILE
71 uses CC
72 uses HOSTCC
73 uses CONFIG_OBJCOPY
74 uses CONFIG_CONSOLE_VGA
75 uses CONFIG_PCI_ROM_RUN
76 uses CONFIG_PCI_OPTION_ROM_RUN_REALMODE
77 uses CONFIG_HW_MEM_HOLE_SIZEK
78 uses CONFIG_HT_CHAIN_UNITID_BASE
79 uses CONFIG_HT_CHAIN_END_UNITID_BASE
80 uses CONFIG_SB_HT_CHAIN_ON_BUS0
81
82 uses CONFIG_USE_DCACHE_RAM
83 uses CONFIG_DCACHE_RAM_BASE
84 uses CONFIG_DCACHE_RAM_SIZE
85 uses CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE
86 uses CONFIG_USE_INIT
87
88 uses CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY
89 uses CONFIG_USE_PRINTK_IN_CAR
90
91 uses CONFIG_VIDEO_MB
92 uses CONFIG_GFXUMA
93 uses CONFIG_HAVE_MAINBOARD_RESOURCES
94 uses CONFIG_VGA_ROM_RUN
95
96 ###
97 ### Build options
98 ###
99
100 ##
101 ## CONFIG_ROM_SIZE is the size of boot ROM that this board will use.
102 ##
103 default CONFIG_ROM_SIZE=524288
104
105 ##
106 ## CONFIG_FALLBACK_SIZE is the amount of the ROM the complete fallback image will use
107 ##
108 default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
109
110 ##
111 ## Build code for the fallback boot
112 ##
113 default CONFIG_HAVE_FALLBACK_BOOT=1
114
115 ##
116 ## Build code to reset the motherboard from coreboot
117 ##
118 default CONFIG_HAVE_HARD_RESET=1
119
120 ##
121 ## Build code to export a programmable irq routing table
122 ##
123 default CONFIG_GENERATE_PIRQ_TABLE=1
124 default CONFIG_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 CONFIG_GENERATE_MP_TABLE=1
131
132 ## ACPI tables will be included
133 default CONFIG_GENERATE_ACPI_TABLES=1
134
135 ##
136 ## Build code to export a CMOS option table
137 ##
138 default CONFIG_HAVE_OPTION_TABLE=0
139
140 ##
141 ## Move the default coreboot cmos range off of AMD RTC registers
142 ##
143 default CONFIG_LB_CKS_RANGE_START=49
144 default CONFIG_LB_CKS_RANGE_END=122
145 default CONFIG_LB_CKS_LOC=123
146
147 ##
148 ## Build code for SMP support
149 ## Only worry about 2 micro processors
150 ##
151 default CONFIG_SMP=1
152 default CONFIG_MAX_CPUS=2
153
154 default CONFIG_MAX_PHYSICAL_CPUS=1
155 default CONFIG_LOGICAL_CPUS=1
156
157 #1G memory hole
158 default CONFIG_HW_MEM_HOLE_SIZEK=0x100000
159
160 #VGA Console
161 default CONFIG_CONSOLE_VGA=1
162 default CONFIG_PCI_ROM_RUN=1
163 default CONFIG_PCI_OPTION_ROM_RUN_REALMODE=1
164 default CONFIG_VGA_ROM_RUN=1
165
166 # BTDC: Only one HT device on Herring.
167 #HT Unit ID offset
168 #default CONFIG_HT_CHAIN_UNITID_BASE=0x6
169 default CONFIG_HT_CHAIN_UNITID_BASE=0x0
170
171
172 #real SB Unit ID
173 default CONFIG_HT_CHAIN_END_UNITID_BASE=0x1
174
175 #make the SB HT chain on bus 0
176 default CONFIG_SB_HT_CHAIN_ON_BUS0=1
177
178 ##
179 ## enable CACHE_AS_RAM specifics
180 ##
181 default CONFIG_USE_DCACHE_RAM=1
182 default CONFIG_DCACHE_RAM_BASE=0xc8000
183 default CONFIG_DCACHE_RAM_SIZE=0x8000
184 default CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE=0x01000
185 default CONFIG_USE_INIT=0
186
187 ##
188 ## Build code to setup a generic IOAPIC
189 ##
190 default CONFIG_IOAPIC=1
191
192 ##
193 ## Clean up the motherboard id strings
194 ##
195 default CONFIG_MAINBOARD_PART_NUMBER="tim5690"
196 default CONFIG_MAINBOARD_VENDOR="technexion"
197 default CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID=0x1022
198 default CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID=0x3050
199
200
201 ###
202 ### coreboot layout values
203 ###
204
205 ## CONFIG_ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
206 default CONFIG_ROM_IMAGE_SIZE = 65536
207
208 ##
209 ## Use a small 8K stack
210 ##
211 default CONFIG_STACK_SIZE=0x2000
212
213 ##
214 ## Use a small 16K heap
215 ##
216 default CONFIG_HEAP_SIZE=0x4000
217
218 ##
219 ## Only use the option table in a normal image
220 ##
221 #default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE
222 default CONFIG_USE_OPTION_TABLE = 0
223
224 ##
225 ## coreboot C code runs at this location in RAM
226 ##
227 default CONFIG_RAMBASE=0x00004000
228
229 ##
230 ## Load the payload from the ROM
231 ##
232 default CONFIG_ROM_PAYLOAD = 1
233
234 ###
235 ### Defaults of options that you may want to override in the target config file
236 ###
237
238 ##
239 ## The default compiler
240 ##
241 default CC="$(CONFIG_CROSS_COMPILE)gcc -m32"
242 default HOSTCC="gcc"
243
244 ##
245 ## Disable the gdb stub by default
246 ##
247 default CONFIG_GDB_STUB=0
248
249
250 default CONFIG_USE_PRINTK_IN_CAR=1
251
252 ##
253 ## The Serial Console
254 ##
255
256 # To Enable the Serial Console
257 default CONFIG_CONSOLE_SERIAL8250=1
258
259 ## Select the serial console baud rate
260 default CONFIG_TTYS0_BAUD=115200
261 #default CONFIG_TTYS0_BAUD=57600
262 #default CONFIG_TTYS0_BAUD=38400
263 #default CONFIG_TTYS0_BAUD=19200
264 #default CONFIG_TTYS0_BAUD=9600
265 #default CONFIG_TTYS0_BAUD=4800
266 #default CONFIG_TTYS0_BAUD=2400
267 #default CONFIG_TTYS0_BAUD=1200
268
269 # Select the serial console base port
270 default CONFIG_TTYS0_BASE=0x3f8
271
272 # Select the serial protocol
273 # This defaults to 8 data bits, 1 stop bit, and no parity
274 default CONFIG_TTYS0_LCS=0x3
275
276 ##
277 ### Select the coreboot loglevel
278 ##
279 ## EMERG      1   system is unusable
280 ## ALERT      2   action must be taken immediately
281 ## CRIT       3   critical conditions
282 ## ERR        4   error conditions
283 ## WARNING    5   warning conditions
284 ## NOTICE     6   normal but significant condition
285 ## INFO       7   informational
286 ## CONFIG_DEBUG      8   debug-level messages
287 ## SPEW       9   Way too many details
288
289 ## Request this level of debugging output
290 default  CONFIG_DEFAULT_CONSOLE_LOGLEVEL=8
291 ## At a maximum only compile in this level of debugging
292 default  CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=8
293
294 ##
295 ## Select power on after power fail setting
296 default CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL="MAINBOARD_POWER_ON"
297
298 default CONFIG_VIDEO_MB=1
299 default CONFIG_GFXUMA=1
300 default CONFIG_HAVE_MAINBOARD_RESOURCES=1
301
302 ### End Options.lb
303 end