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