7da0a6773a815178c710feb79b0c567d10a7d7df
[coreboot.git] / src / mainboard / tyan / s4882 / Config.lb
1 ## CONFIG_XIP_ROM_SIZE must be a power of 2.
2 default CONFIG_XIP_ROM_SIZE = 64 * 1024
3 include /config/nofailovercalculation.lb
4 default CONFIG_ROM_PAYLOAD = 1
5
6 arch i386 end 
7
8
9 ##
10 ## Build the objects we have code for in this directory.
11 ##
12
13 driver mainboard.o
14 if CONFIG_HAVE_MP_TABLE object mptable.o end
15 if CONFIG_HAVE_PIRQ_TABLE object irq_tables.o end
16
17         if CONFIG_USE_INIT
18
19                 makerule ./auto.o
20                         depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
21                         action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
22                 end
23
24         else
25
26                 makerule ./auto.inc
27                         depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
28                         action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
29                         action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
30                         action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
31                         end
32         end
33
34 ##
35 ## Build our 16 bit and 32 bit coreboot entry code
36 ##
37 if CONFIG_USE_FALLBACK_IMAGE
38         mainboardinit cpu/x86/16bit/entry16.inc
39         ldscript /cpu/x86/16bit/entry16.lds
40 end
41
42 mainboardinit cpu/x86/32bit/entry32.inc
43
44         if CONFIG_USE_INIT
45                 ldscript /cpu/x86/32bit/entry32.lds
46         end
47
48         if CONFIG_USE_INIT
49                 ldscript /cpu/amd/car/cache_as_ram.lds
50         end
51
52 ##
53 ## Build our reset vector (This is where coreboot is entered)
54 ##
55 if CONFIG_USE_FALLBACK_IMAGE 
56         mainboardinit cpu/x86/16bit/reset16.inc 
57         ldscript /cpu/x86/16bit/reset16.lds 
58 else
59         mainboardinit cpu/x86/32bit/reset32.inc 
60         ldscript /cpu/x86/32bit/reset32.lds 
61 end
62
63 ##
64 ## Include an id string (For safe flashing)
65 ##
66 mainboardinit arch/i386/lib/id.inc
67 ldscript /arch/i386/lib/id.lds
68
69         ##
70         ## Setup Cache-As-Ram
71         ##
72         mainboardinit cpu/amd/car/cache_as_ram.inc
73
74 ###
75 ### This is the early phase of coreboot startup 
76 ### Things are delicate and we test to see if we should
77 ### failover to another image.
78 ###
79 if CONFIG_USE_FALLBACK_IMAGE
80                 ldscript /arch/i386/lib/failover.lds
81 end
82
83 ##
84 ## Setup RAM
85 ##
86         if CONFIG_USE_INIT
87                 initobject auto.o
88         else
89                 mainboardinit ./auto.inc
90         end
91
92 ##
93 ## Include the secondary Configuration files 
94 ##
95 config chip.h
96
97 # sample config for tyan/s4882
98 chip northbridge/amd/amdk8/root_complex
99         device apic_cluster 0 on
100                 chip cpu/amd/socket_940
101                         device apic 0 on end
102                 end
103         end
104         device pci_domain 0 on
105                 chip northbridge/amd/amdk8
106                         device pci 18.0 on end # LDT0
107                         device pci 18.0 on #  northbridge 
108                                 #  devices on link 1, link 1 == LDT 1
109                                 chip southbridge/amd/amd8131
110                                         # the on/off keyword is mandatory
111                                         device pci 0.0 on 
112 #                                               chip drivers/lsi/53c1030
113 #                                                       device pci 4.0 on end
114 #                                                       device pci 4.1 on end
115 #                                                       register "fw_address" = "0xfff8c000"
116 #                                               end
117                                                 chip drivers/pci/onboard
118                                                         device pci 9.0 on end #Broadcom
119                                                         device pci 9.1 on end
120                                                 end 
121                                         end
122                                         device pci 0.1 on end
123                                         device pci 1.0 on end
124                                         device pci 1.1 on end
125                                 end
126                                 chip southbridge/amd/amd8111
127                                         # this "device pci 0.0" is the parent the next one
128                                         # PCI bridge
129                                         device pci 0.0 on
130                                                 device pci 0.0 on end
131                                                 device pci 0.1 on end
132                                                 device pci 0.2 off end
133                                                 device pci 1.0 off end
134                                                 #chip drivers/ati/ragexl
135                                                 chip drivers/pci/onboard
136                                                         device pci 6.0 on end
137                                                         register "rom_address" = "0xfff80000"
138                                                 end
139                                                 chip drivers/pci/onboard
140                                                         device pci 5.0 on end #SiI
141                                                 end
142                                         end
143                                         device pci 1.0 on
144                                                 chip superio/winbond/w83627hf
145                                                         device pnp 2e.0 on #  Floppy
146                                                                 io 0x60 = 0x3f0
147                                                                 irq 0x70 = 6
148                                                                 drq 0x74 = 2
149                                                         end
150                                                         device pnp 2e.1 off #  Parallel Port
151                                                                 io 0x60 = 0x378
152                                                                 irq 0x70 = 7
153                                                         end
154                                                         device pnp 2e.2 on #  Com1
155                                                                 io 0x60 = 0x3f8
156                                                                 irq 0x70 = 4
157                                                         end
158                                                         device pnp 2e.3 on #  Com2
159                                                                 io 0x60 = 0x2f8
160                                                                 irq 0x70 = 3
161                                                         end
162                                                         device pnp 2e.5 on #  Keyboard
163                                                                 io 0x60 = 0x60
164                                                                 io 0x62 = 0x64
165                                                                 irq 0x70 = 1
166                                                                 irq 0x72 = 12
167                                                         end
168                                                         device pnp 2e.6 off #  CIR
169                                                                 io 0x60 = 0x100
170                                                         end
171                                                         device pnp 2e.7 off #  GAME_MIDI_GIPO1
172                                                                 io 0x60 = 0x220
173                                                                 io 0x62 = 0x300
174                                                                 irq 0x70 = 9
175                                                         end  
176                                                         device pnp 2e.8 off end #  GPIO2
177                                                         device pnp 2e.9 off end #  GPIO3
178                                                         device pnp 2e.a off end #  ACPI
179                                                         device pnp 2e.b on #  HW Monitor
180                                                                 io 0x60 = 0x290
181                                                                 irq 0x70 = 5
182                                                         end
183                                                 end
184                                         end
185                                         device pci 1.1 on end
186                                         device pci 1.2 on end
187                                         device pci 1.3 on 
188 #                                                chip drivers/i2c/i2cmux # pca9556 smbus mux
189 #                                                        device i2c 18 on #0 pca9516 2, 1
190 #                                                               chip drivers/i2c/lm63 #cpu0 temp
191 #                                                                        device i2c 4c on end
192 #                                                                end 
193 #                                                       end
194 #                                                        device i2c 18 on #1 pca9516 1, 1
195 #                                                                chip drivers/generic/generic #dimm 1-0-0
196 #                                                                        device i2c 50 on end
197 #                                                                end
198 #                                                                chip drivers/generic/generic #dimm 1-0-1
199 #                                                                        device i2c 51 on end
200 #                                                                end
201 #                                                                chip drivers/generic/generic #dimm 1-1-0
202 #                                                                        device i2c 52 on end
203 #                                                                end
204 #                                                                chip drivers/generic/generic #dimm 1-1-1
205 #                                                                       device i2c 53 on end
206 #                                                               end
207 #                                                        end
208 #                                                        device i2c 18 on #2 pca9516 1, 2
209 #                                                                chip drivers/generic/generic #dimm 0-0-0
210 #                                                                        device i2c 50 on end
211 #                                                                end
212 #                                                                chip drivers/generic/generic #dimm 0-0-1
213 #                                                                        device i2c 51 on end
214 #                                                                end
215 #                                                                chip drivers/generic/generic #dimm 0-1-0
216 #                                                                        device i2c 52 on end
217 #                                                                end
218 #                                                                chip drivers/generic/generic #dimm 0-1-1
219 #                                                                       device i2c 53 on end
220 #                                                               end
221 #                                                        end
222 #                                                        device i2c 18 on #3 pca9516 1, 3
223 #                                                                chip drivers/generic/generic #dimm 3-0-0
224 #                                                                        device i2c 50 on end
225 #                                                                end
226 #                                                                chip drivers/generic/generic #dimm 3-0-1
227 #                                                                        device i2c 51 on end
228 #                                                                end
229 #                                                                chip drivers/generic/generic #dimm 3-1-0
230 #                                                                        device i2c 52 on end
231 #                                                                end
232 #                                                                chip drivers/generic/generic #dimm 3-1-1
233 #                                                                       device i2c 53 on end
234 #                                                               end
235 #                                                        end
236 #                                                        device i2c 18 on #4 pca9516 1, 4
237 #                                                                chip drivers/generic/generic #dimm 2-0-0
238 #                                                                        device i2c 50 on end
239 #                                                                end
240 #                                                                chip drivers/generic/generic #dimm 2-0-1
241 #                                                                        device i2c 51 on end
242 #                                                                end
243 #                                                                chip drivers/generic/generic #dimm 2-1-0
244 #                                                                        device i2c 52 on end
245 #                                                                end
246 #                                                                chip drivers/generic/generic #dimm 2-1-1
247 #                                                                       device i2c 53 on end
248 #                                                               end
249 #                                                        end
250 #                                                        device i2c 18 on #5 pca9516 2, 2
251 #                                                                chip drivers/i2c/lm63 #cpu1 temp
252 #                                                                       device i2c 4c on end
253 #                                                                end
254 #                                                        end
255 #                                                        device i2c 18 on #6 pca9516 2, 3
256 #                                                                chip drivers/i2c/lm63 #cpu2 temp
257 #                                                                        device i2c 4c on end
258 #                                                                end
259 #                                                        end
260 #                                                        device i2c 18 on #7 pca9516 2, 4
261 #                                                                chip drivers/i2c/lm63 #cpu3 temp
262 #                                                                        device i2c 4c on end
263 #                                                                end
264 #                                                        end
265 #                                                end # i2cmux
266 #                                                chip drivers/i2c/adm1027 # ADM1027 CPU1 vid and System FAN...
267 #                                                        device i2c 2e on end
268 #                                                end
269 #                                                chip drivers/generic/generic # Winbond HWM 0x54 CPU0 vid 
270 #                                                        device i2c 2a on end
271 #                                                end
272 #                                                chip drivers/generic/generic # Winbond HWM 0x92
273 #                                                        device i2c 49 on end
274 #                                                end
275 #                                                chip drivers/generic/generic # Winbond HWM 0x94
276 #                                                        device i2c 4a on end
277 #                                                end
278 #                                                chip drivers/generic/generic # ??
279 #                                                        device i2c 69 on end
280 #                                                end
281                                         end # acpi
282                                         device pci 1.5 off end
283                                         device pci 1.6 off end
284                                         register "ide0_enable" = "1"
285                                         register "ide1_enable" = "1"
286                                 end
287                         end #  device pci 18.0 
288                         
289                         device pci 18.0 on end
290                         
291                         device pci 18.1 on end
292                         device pci 18.2 on end
293                         device pci 18.3 on end
294                 end
295
296         end 
297 #        chip drivers/generic/debug
298 #                device pnp 0.0 off end # chip name
299 #                device pnp 0.1 off end # pci_regs_all
300 #                device pnp 0.2 off end # mem
301 #                device pnp 0.3 on end # cpuid
302 #                device pnp 0.4 off end # smbus_regs_all
303 #               device pnp 0.5 on end # dual core msr
304 #               device pnp 0.6 on end # cache size
305 #               device pnp 0.7 on end # tsc
306 #        end
307 end
308