new targets
[coreboot.git] / targets / tyan / s2885 / Config.lb
1 # Sample config file for 
2 # the Tyan s2885 
3 # This will make a target directory of ./s2885
4
5 loadoptions
6
7 target s2885
8
9 uses AMD8111_DEV
10 uses ARCH
11 uses CONFIG_COMPRESS
12 uses CONFIG_IOAPIC
13 uses CONFIG_ROM_STREAM
14 uses CONFIG_ROM_STREAM_START
15 uses CONFIG_SMP
16 uses CONFIG_UDELAY_TSC
17 uses CPU_FIXUP
18 uses ENABLE_FIXED_AND_VARIABLE_MTRRS
19 uses FALLBACK_SIZE
20 uses FINAL_MAINBOARD_FIXUP
21 uses HAVE_FALLBACK_BOOT
22 uses HAVE_MP_TABLE
23 uses HAVE_PIRQ_TABLE
24 uses i586
25 uses i686
26 uses INTEL_PPRO_MTRR
27 uses HEAP_SIZE
28 uses IRQ_SLOT_COUNT
29 uses k7
30 uses k8
31 uses MAINBOARD
32 uses MAINBOARD_PART_NUMBER
33 uses MAINBOARD_VENDOR
34 uses MAX_CPUS
35 #uses MEMORY_HOLE
36 uses PAYLOAD_SIZE
37 uses _RAMBASE
38 uses _ROMBASE
39 uses ROM_IMAGE_SIZE
40 uses ROM_SECTION_OFFSET
41 uses ROM_SECTION_SIZE
42 uses ROM_SIZE
43 uses SIO_BASE
44 uses SIO_SYSTEM_CLK_INPUT
45 uses STACK_SIZE
46 uses USE_ELF_BOOT
47 uses USE_FALLBACK_IMAGE
48 uses USE_NORMAL_IMAGE
49 uses USE_OPTION_TABLE
50 uses HAVE_OPTION_TABLE
51 uses CONFIG_CHIP_CONFIGURE
52  
53 uses CONFIG_CONSOLE_SERIAL8250
54 uses TTYS0_BAUD
55 uses DEFAULT_CONSOLE_LOGLEVEL
56 uses MAXIMUM_CONSOLE_LOGLEVEL
57 uses DEBUG
58 uses CONFIG_MAX_CPUS
59 uses CONFIG_LOGICAL_CPUS
60 uses MAX_PHYSICAL_CPUS
61 uses LINUXBIOS_EXTRA_VERSION
62 uses XIP_ROM_SIZE
63 uses XIP_ROM_BASE
64
65 #uses CONFIG_VGABIOS
66 #uses CONFIG_REALMODE_IDT
67 #uses CONFIG_PCIBIOS
68 #uses VGABIOS_START
69 #uses SCSIFW_START
70
71 #
72 #uses CONFIG_LSI_SCSI_FW_FIXUP
73
74 option HAVE_OPTION_TABLE=1
75 option HAVE_MP_TABLE=1
76 option CPU_FIXUP=1
77 option CONFIG_UDELAY_TSC=0
78 option i686=1
79 option i586=1
80 option INTEL_PPRO_MTRR=1
81 option k7=1
82 option k8=1
83 option ROM_SIZE=524288
84
85 #option CONFIG_VGABIOS=1
86 #option CONFIG_REALMODE_IDT=1
87 #option CONFIG_PCIBIOS=1
88 #option VGABIOS_START=0xfff8c000
89 #option SCSIFW_START=0xfff80000
90
91
92 option HAVE_FALLBACK_BOOT=1
93   
94 # use the new chip configure code.
95
96 option CONFIG_CHIP_CONFIGURE=1
97 #option CONFIG_LSI_SCSI_FW_FIXUP=1
98
99
100 ### Customize our winbond superio chip for this motherboard
101 ###
102 option SIO_BASE=0x2e
103 option SIO_SYSTEM_CLK_INPUT=0
104 #
105 ###
106 ### Build code to export a programmable irq routing table
107 ###
108 option HAVE_PIRQ_TABLE=1
109 option IRQ_SLOT_COUNT=11
110 #
111 ###
112 ### Build code for SMP support
113 ### Only worry about 2 micro processors
114 ###
115 option CONFIG_SMP=1
116 option CONFIG_MAX_CPUS=2
117 option MAX_CPUS=2
118 option CONFIG_LOGICAL_CPUS=0
119 option MAX_PHYSICAL_CPUS=2
120 #
121 ###
122 ### Build code to setup a generic IOAPIC
123 ###
124 option CONFIG_IOAPIC=1
125 #
126 ###
127 ### MEMORY_HOLE instructs earlymtrr.inc to
128 ### enable caching from 0-640KB and to disable 
129 ### caching from 640KB-1MB using fixed MTRRs 
130 ###
131 ### Enabling this option breaks SMP because secondary
132 ### CPU identification depends on only variable MTRRs
133 ### being enabled.
134 ###
135 #option MEMORY_HOLE=0
136 #
137 ###
138 ### Enable both fixed and variable MTRRS
139 ### When we setup MTRRs in mtrr.c  
140 ###
141 ### We must setup the fixed mtrrs or we confuse SMP secondary
142 ### processor identification
143 ###
144 option ENABLE_FIXED_AND_VARIABLE_MTRRS=1
145 #
146 ###
147 ### Clean up the motherboard id strings
148 ###
149 option MAINBOARD_PART_NUMBER="S2885"
150 option MAINBOARD_VENDOR="Tyan"
151 #
152 ###
153 ### Call the final_mainboard_fixup function
154 ###
155 option FINAL_MAINBOARD_FIXUP=1
156
157 ###
158 ### Compute the location and size of where this firmware image
159 ### (linuxBIOS plus bootloader) will live in the boot rom chip.
160 ###
161 #option FALLBACK_SIZE=524288
162 option FALLBACK_SIZE=98304
163
164 ## ROM_IMAGE_SIZE is the amount of space to allow linuxBIOS to occupy.
165 option ROM_IMAGE_SIZE=65536
166  
167
168 ###
169 ### Compute where this copy of linuxBIOS will start in the boot rom
170 ###
171 #
172 ###
173
174 ## We do use compressed image
175 option CONFIG_COMPRESS=1
176
177 option USE_ELF_BOOT=1
178
179
180 option CONFIG_CONSOLE_SERIAL8250=1
181 option TTYS0_BAUD=115200
182
183 ##
184 ### Select the linuxBIOS loglevel
185 ##
186 ## EMERG      1   system is unusable
187 ## ALERT      2   action must be taken immediately
188 ## CRIT       3   critical conditions
189 ## ERR        4   error conditions
190 ## WARNING    5   warning conditions
191 ## NOTICE     6   normal but significant condition
192 ## INFO       7   informational
193 ## DEBUG      8   debug-level messages
194 ## SPEW       9   Way too many details
195
196 ## Request this level of debugging output
197 option DEFAULT_CONSOLE_LOGLEVEL=8
198 ## At a maximum only compile in this level of debugging
199 option MAXIMUM_CONSOLE_LOGLEVEL=9
200
201 option DEBUG=1
202
203 option AMD8111_DEV=0x5
204
205 #
206
207 ## LinuxBIOS C code runs at this location in RAM
208 option _RAMBASE=0x004000
209
210 ##
211 ## Use a 64K stack
212 ##
213 option STACK_SIZE=0x2000
214
215 ##
216 ## Use a 64K heap
217 ##
218 option HEAP_SIZE=0x2000
219
220 #
221 ###
222 ### Compute the start location and size size of
223 ### The linuxBIOS bootloader.
224 ###
225 option CONFIG_ROM_STREAM     = 1
226
227 #
228
229 romimage "normal"
230 #       48K for SCSI FW
231 #        option ROM_SIZE = 475136
232 #       48K for SCSI FW and 48K for ATI ROM
233 #       option ROM_SIZE = 425984  
234         option LINUXBIOS_EXTRA_VERSION="$(shell cat ../../VERSION)_Normal"
235         option ROM_SECTION_SIZE  = (ROM_SIZE - FALLBACK_SIZE)
236         option ROM_SECTION_OFFSET= 0
237
238         option PAYLOAD_SIZE            = (ROM_SECTION_SIZE - ROM_IMAGE_SIZE)
239         option CONFIG_ROM_STREAM_START = (0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1)
240         option _ROMBASE      = (CONFIG_ROM_STREAM_START + PAYLOAD_SIZE)
241
242         option XIP_ROM_SIZE = FALLBACK_SIZE
243         option XIP_ROM_BASE = (_ROMBASE + ROM_IMAGE_SIZE - XIP_ROM_SIZE)
244
245         mainboard tyan/s2885
246         payload ../../tg3--ide_disk.zelf 
247 end
248
249 romimage "fallback" 
250         option LINUXBIOS_EXTRA_VERSION="$(shell cat ../../VERSION)_Fallback"
251         option USE_FALLBACK_IMAGE=1
252         option ROM_SECTION_SIZE  = FALLBACK_SIZE
253         option ROM_SECTION_OFFSET= (ROM_SIZE - FALLBACK_SIZE)
254
255         option PAYLOAD_SIZE            = (ROM_SECTION_SIZE - ROM_IMAGE_SIZE)
256         option CONFIG_ROM_STREAM_START = (0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1)
257         option _ROMBASE      = (CONFIG_ROM_STREAM_START + PAYLOAD_SIZE)
258
259         option XIP_ROM_SIZE = FALLBACK_SIZE
260         option XIP_ROM_BASE = (_ROMBASE + ROM_IMAGE_SIZE - XIP_ROM_SIZE)
261
262         mainboard tyan/s2885
263         payload ../../tg3.zelf
264 end
265
266 buildrom ROM_SIZE "normal" "fallback"