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
10 ## Build the objects we have code for in this directory.
14 if CONFIG_HAVE_MP_TABLE object mptable.o end
15 if CONFIG_HAVE_PIRQ_TABLE object irq_tables.o end
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 $@"
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 $@"
35 ## Build our 16 bit and 32 bit coreboot entry code
37 if CONFIG_USE_FALLBACK_IMAGE
38 mainboardinit cpu/x86/16bit/entry16.inc
39 ldscript /cpu/x86/16bit/entry16.lds
42 mainboardinit cpu/x86/32bit/entry32.inc
45 ldscript /cpu/x86/32bit/entry32.lds
49 ldscript /cpu/amd/car/cache_as_ram.lds
53 ## Build our reset vector (This is where coreboot is entered)
55 if CONFIG_USE_FALLBACK_IMAGE
56 mainboardinit cpu/x86/16bit/reset16.inc
57 ldscript /cpu/x86/16bit/reset16.lds
59 mainboardinit cpu/x86/32bit/reset32.inc
60 ldscript /cpu/x86/32bit/reset32.lds
64 ## Include an id string (For safe flashing)
66 mainboardinit arch/i386/lib/id.inc
67 ldscript /arch/i386/lib/id.lds
72 mainboardinit cpu/amd/car/cache_as_ram.inc
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.
79 if CONFIG_USE_FALLBACK_IMAGE
80 ldscript /arch/i386/lib/failover.lds
89 mainboardinit ./auto.inc
93 ## Include the secondary Configuration files
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
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
112 # chip drivers/lsi/53c1030
113 # device pci 4.0 on end
114 # device pci 4.1 on end
115 # register "fw_address" = "0xfff8c000"
117 chip drivers/pci/onboard
118 device pci 9.0 on end #Broadcom
119 device pci 9.1 on end
122 device pci 0.1 on end
123 device pci 1.0 on end
124 device pci 1.1 on end
126 chip southbridge/amd/amd8111
127 # this "device pci 0.0" is the parent the next one
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"
139 chip drivers/pci/onboard
140 device pci 5.0 on end #SiI
144 chip superio/winbond/w83627hf
145 device pnp 2e.0 on # Floppy
150 device pnp 2e.1 off # Parallel Port
154 device pnp 2e.2 on # Com1
158 device pnp 2e.3 on # Com2
162 device pnp 2e.5 on # Keyboard
168 device pnp 2e.6 off # CIR
171 device pnp 2e.7 off # GAME_MIDI_GIPO1
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
185 device pci 1.1 on end
186 device pci 1.2 on end
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
194 # device i2c 18 on #1 pca9516 1, 1
195 # chip drivers/generic/generic #dimm 1-0-0
196 # device i2c 50 on end
198 # chip drivers/generic/generic #dimm 1-0-1
199 # device i2c 51 on end
201 # chip drivers/generic/generic #dimm 1-1-0
202 # device i2c 52 on end
204 # chip drivers/generic/generic #dimm 1-1-1
205 # device i2c 53 on 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
212 # chip drivers/generic/generic #dimm 0-0-1
213 # device i2c 51 on end
215 # chip drivers/generic/generic #dimm 0-1-0
216 # device i2c 52 on end
218 # chip drivers/generic/generic #dimm 0-1-1
219 # device i2c 53 on 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
226 # chip drivers/generic/generic #dimm 3-0-1
227 # device i2c 51 on end
229 # chip drivers/generic/generic #dimm 3-1-0
230 # device i2c 52 on end
232 # chip drivers/generic/generic #dimm 3-1-1
233 # device i2c 53 on 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
240 # chip drivers/generic/generic #dimm 2-0-1
241 # device i2c 51 on end
243 # chip drivers/generic/generic #dimm 2-1-0
244 # device i2c 52 on end
246 # chip drivers/generic/generic #dimm 2-1-1
247 # device i2c 53 on end
250 # device i2c 18 on #5 pca9516 2, 2
251 # chip drivers/i2c/lm63 #cpu1 temp
252 # device i2c 4c on end
255 # device i2c 18 on #6 pca9516 2, 3
256 # chip drivers/i2c/lm63 #cpu2 temp
257 # device i2c 4c on end
260 # device i2c 18 on #7 pca9516 2, 4
261 # chip drivers/i2c/lm63 #cpu3 temp
262 # device i2c 4c on end
266 # chip drivers/i2c/adm1027 # ADM1027 CPU1 vid and System FAN...
267 # device i2c 2e on end
269 # chip drivers/generic/generic # Winbond HWM 0x54 CPU0 vid
270 # device i2c 2a on end
272 # chip drivers/generic/generic # Winbond HWM 0x92
273 # device i2c 49 on end
275 # chip drivers/generic/generic # Winbond HWM 0x94
276 # device i2c 4a on end
278 # chip drivers/generic/generic # ??
279 # device i2c 69 on end
282 device pci 1.5 off end
283 device pci 1.6 off end
284 register "ide0_enable" = "1"
285 register "ide1_enable" = "1"
287 end # device pci 18.0
289 device pci 18.0 on end
291 device pci 18.1 on end
292 device pci 18.2 on end
293 device pci 18.3 on 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