d72f419a1c4755bcd2fc02c2e621dd6cf04ce5ba
[coreboot.git] / src / mainboard / via / vt8454c / Options.lb
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2007-2009 coresystems GmbH
5 ##
6 ## This program is free software; you can redistribute it and/or
7 ## modify it under the terms of the GNU General Public License as
8 ## published by the Free Software Foundation; version 2 of
9 ## the License.
10 ##
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
15 ##
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
19 ## MA 02110-1301 USA
20 ##
21
22 uses CONFIG_HAVE_MP_TABLE
23 uses CONFIG_HAVE_PIRQ_TABLE
24 uses CONFIG_IRQ_SLOT_COUNT
25 uses CONFIG_HAVE_ACPI_TABLES
26 uses CONFIG_HAVE_OPTION_TABLE
27 uses CONFIG_USE_OPTION_TABLE
28 uses CONFIG_HAVE_LOW_TABLES
29
30 uses CONFIG_USE_FALLBACK_IMAGE
31 uses CONFIG_HAVE_FALLBACK_BOOT
32 uses CONFIG_HAVE_HARD_RESET
33 uses CONFIG_MAINBOARD
34 uses CONFIG_MAINBOARD_VENDOR
35 uses CONFIG_MAINBOARD_PART_NUMBER
36 uses COREBOOT_EXTRA_VERSION
37 uses CONFIG_ARCH
38 uses CONFIG_FALLBACK_SIZE
39 uses CONFIG_STACK_SIZE
40 uses CONFIG_HEAP_SIZE
41 uses CONFIG_ROM_SIZE
42 uses CONFIG_ROM_SECTION_SIZE
43 uses CONFIG_ROM_IMAGE_SIZE
44 uses CONFIG_ROM_SECTION_SIZE
45 uses CONFIG_ROM_SECTION_OFFSET
46
47 uses CONFIG_COMPRESS
48 uses CONFIG_ROM_PAYLOAD
49 uses CONFIG_ROM_PAYLOAD_START
50 uses CONFIG_COMPRESSED_PAYLOAD_NRV2B
51 uses CONFIG_COMPRESSED_PAYLOAD_LZMA
52 uses CONFIG_PAYLOAD_SIZE
53
54 uses CONFIG_ROMBASE
55 uses CONFIG_RAMBASE
56 uses CONFIG_XIP_ROM_SIZE
57 uses CONFIG_XIP_ROM_BASE
58
59 # compiler specifics
60 uses CONFIG_CROSS_COMPILE
61 uses CC
62 uses HOSTCC
63 uses CONFIG_OBJCOPY
64
65 # Console specifics
66 uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
67 uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
68 uses CONFIG_CONSOLE_SERIAL8250
69 uses CONFIG_TTYS0_BAUD
70 uses CONFIG_TTYS0_BASE
71 uses CONFIG_TTYS0_LCS
72
73 uses CONFIG_UDELAY_TSC
74 uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
75 uses CONFIG_PCI_ROM_RUN
76 uses CONFIG_CONSOLE_VGA
77 uses CONFIG_MAX_PCI_BUSES 
78 uses CONFIG_SMP
79 uses CONFIG_IOAPIC
80
81 uses CONFIG_GDB_STUB
82
83 uses CONFIG_USE_DCACHE_RAM
84 uses CONFIG_DCACHE_RAM_BASE
85 uses CONFIG_DCACHE_RAM_SIZE
86 uses CONFIG_USE_PRINTK_IN_CAR
87
88 ## CONFIG_ROM_SIZE is the size of boot ROM that this board will use.
89 default CONFIG_ROM_SIZE  = 256*1024
90
91 default CONFIG_USE_DCACHE_RAM=1
92 default CONFIG_DCACHE_RAM_BASE=0xffef0000
93 #default CONFIG_DCACHE_RAM_BASE=0xffbf0000
94 #default CONFIG_DCACHE_RAM_BASE=0xfec00000
95 default CONFIG_DCACHE_RAM_SIZE=0x8000
96 default CONFIG_USE_PRINTK_IN_CAR=1
97
98 ###
99 ### Leave this to 0; VGA is handled by seperate code.
100 ###
101 default CONFIG_PCI_ROM_RUN=0
102 default CONFIG_CONSOLE_VGA=0
103
104 ##
105 ## Build code for the fallback boot
106 ##
107 default CONFIG_HAVE_FALLBACK_BOOT=1
108
109 ##
110 ## Use TSC for udelay.
111 ##
112 default CONFIG_UDELAY_TSC=1
113 default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2=1
114
115 ##
116 ## Build code to reset the motherboard from linuxBIOS
117 ##
118 default CONFIG_HAVE_HARD_RESET=1
119
120 ##
121 ## Build code to export a programmable irq routing table
122 ##
123 default CONFIG_HAVE_PIRQ_TABLE=1
124 default CONFIG_IRQ_SLOT_COUNT=15
125
126 ##
127 ## Build code to export an x86 MP table
128 ## Useful for specifying IRQ routing values
129 ##
130 default CONFIG_HAVE_MP_TABLE=1
131
132 ##
133 ## Build code to load acpi tables
134 ##
135 default CONFIG_HAVE_ACPI_TABLES=1
136
137 ##
138 ## Build code to export a CMOS option table
139 ##
140 default CONFIG_HAVE_OPTION_TABLE=1
141
142 ##
143 ## Build code to fill in tables both in low and high memory
144 ##
145 default CONFIG_HAVE_LOW_TABLES=1
146
147
148 ##
149 ## Build code to setup a generic IOAPIC
150 ##
151 default CONFIG_SMP=1
152 default CONFIG_IOAPIC=1
153
154 ###
155 ### LinuxBIOS layout values
156 ###
157
158 ## CONFIG_ROM_IMAGE_SIZE is the amount of space to allow linuxBIOS to occupy.
159 default CONFIG_ROM_IMAGE_SIZE = 65536
160 default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
161
162 ##
163 ## Use a small 8K stack
164 ##
165 default CONFIG_STACK_SIZE=0x2000
166
167 ##
168 ## Use a small 16K heap
169 ##
170 default CONFIG_HEAP_SIZE=0x4000
171
172 ##
173 ## Only use the option table in a normal image
174 ##
175 #default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE
176 default CONFIG_USE_OPTION_TABLE = 0
177
178 default CONFIG_RAMBASE = 0x00004000
179
180 default CONFIG_ROM_PAYLOAD     = 1
181
182 ##
183 ## The default compiler
184 ##
185 default CONFIG_CROSS_COMPILE=""
186 default CC="$(CONFIG_CROSS_COMPILE)gcc -m32"
187 default HOSTCC="gcc"
188
189 ##
190 ## Set this to the max PCI bus number you 
191 ## would ever use for PCI config IO.
192 ## Setting this number very high will make 
193 ## pci_locate_device take a long time when
194 ## it can't find a device.
195 ##
196 default CONFIG_MAX_PCI_BUSES = 0x80
197
198 ##
199 ## Disable the gdb stub by default
200 ## 
201 default CONFIG_GDB_STUB=0
202
203 ##
204 ## The Serial Console
205 ##
206
207 # To Enable the Serial Console
208 default CONFIG_CONSOLE_SERIAL8250=1
209
210 ## Select the serial console baud rate
211 default CONFIG_TTYS0_BAUD=115200
212 #default CONFIG_TTYS0_BAUD=57600
213 #default CONFIG_TTYS0_BAUD=38400
214 #default CONFIG_TTYS0_BAUD=19200
215 #default CONFIG_TTYS0_BAUD=9600
216 #default CONFIG_TTYS0_BAUD=4800
217 #default CONFIG_TTYS0_BAUD=2400
218 #default CONFIG_TTYS0_BAUD=1200
219
220 # Select the serial console base port
221 default CONFIG_TTYS0_BASE=0x3f8
222
223 # Select the serial protocol
224 # This defaults to 8 data bits, 1 stop bit, and no parity
225 default CONFIG_TTYS0_LCS=0x3
226
227 ##
228 ## Select the coreboot loglevel
229 ##
230 ## EMERG      1   system is unusable               
231 ## ALERT      2   action must be taken immediately 
232 ## CRIT       3   critical conditions              
233 ## ERR        4   error conditions                 
234 ## WARNING    5   warning conditions               
235 ## NOTICE     6   normal but significant condition 
236 ## INFO       7   informational                    
237 ## CONFIG_DEBUG      8   debug-level messages             
238 ## SPEW       9   Way too many details             
239
240 ## Request this level of debugging output
241 default  CONFIG_DEFAULT_CONSOLE_LOGLEVEL=5
242 ## At a maximum only compile in this level of debugging
243 default  CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=5
244 end
245