1 ## CONFIG_XIP_ROM_SIZE must be a power of 2.
2 default CONFIG_XIP_ROM_SIZE = 64 * 1024
3 include /config/nofailovercalculation.lb
8 ## Build the objects we have code for in this directory.
15 if CONFIG_GENERATE_MP_TABLE object mptable.o end
16 if CONFIG_GENERATE_PIRQ_TABLE
23 makerule ./cache_as_ram_auto.o
24 depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
25 action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
30 makerule ./cache_as_ram_auto.inc
31 depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
32 action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
33 action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
34 action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
40 ## Build our 16 bit and 32 bit coreboot entry code
42 mainboardinit cpu/x86/16bit/entry16.inc
43 mainboardinit cpu/x86/32bit/entry32.inc
44 ldscript /cpu/x86/16bit/entry16.lds
46 ldscript /cpu/x86/32bit/entry32.lds
50 ldscript /cpu/amd/car/cache_as_ram.lds
54 ## Build our reset vector (This is where coreboot is entered)
56 if CONFIG_USE_FALLBACK_IMAGE
57 mainboardinit cpu/x86/16bit/reset16.inc
58 ldscript /cpu/x86/16bit/reset16.lds
60 mainboardinit cpu/x86/32bit/reset32.inc
61 ldscript /cpu/x86/32bit/reset32.lds
65 ## Include an id string (For safe flashing)
67 mainboardinit arch/i386/lib/id.inc
68 ldscript /arch/i386/lib/id.lds
73 mainboardinit cpu/amd/car/cache_as_ram.inc
76 ### This is the early phase of coreboot startup
77 ### Things are delicate and we test to see if we should
78 ### failover to another image.
80 if CONFIG_USE_FALLBACK_IMAGE
81 ldscript /arch/i386/lib/failover.lds
85 ### O.k. We aren't just an intermediary anymore!
92 initobject cache_as_ram_auto.o
94 mainboardinit ./cache_as_ram_auto.inc
98 ## Include the secondary Configuration files
102 # sample config for broadcom/blast
103 chip northbridge/amd/amdk8/root_complex
104 device apic_cluster 0 on
105 chip cpu/amd/socket_940
109 device pci_domain 0 on
110 chip northbridge/amd/amdk8
111 device pci 18.0 on # northbridge
113 chip southbridge/broadcom/bcm5780 # HT2000
114 device pci 0.0 on end # PXB 1 0x0130
115 device pci 1.0 on # PXB 2 0x0130
116 device pci 4.0 on end # GB E 0x1668 vid = 0x14e4
117 device pci 4.1 on end # GB E 0x1669 vid = 0x14e4
119 device pci 2.0 on end # PCI E 1 #0x0132
120 device pci 3.0 on end # PCI E 2
121 device pci 4.0 on end # PCI E 3
122 device pci 5.0 on end # PCI E 4
124 chip southbridge/broadcom/bcm5785 # HT1000
125 device pci 0.0 on # HT PXB 0x0036
126 device pci d.0 on end # PPBX 0x0104
127 device pci e.0 on end # SATA 0x024a
129 device pci 1.0 on # Legacy pci main 0x0205
130 chip drivers/i2c/i2cmux2 # pca9554 smbus mux
131 device i2c 71 on end #0 pca9554 0
132 device i2c 71 on end #0 pca9554 1
133 device i2c 71 on end #0 pca9554 2
134 device i2c 71 on end #0 pca9554 3
135 device i2c 71 on end #0 pca9554 4
136 device i2c 71 on end #0 pca9554 5
137 device i2c 71 on #0 pca9554 6
138 chip drivers/generic/generic #dimm 0-0-0
141 chip drivers/generic/generic #dimm 0-0-1
144 chip drivers/generic/generic #dimm 0-1-0
147 chip drivers/generic/generic #dimm 0-1-1
151 device i2c 71 on #1 pca9554 7
152 chip drivers/generic/generic #dimm 1-0-0
155 chip drivers/generic/generic #dimm 1-0-1
158 chip drivers/generic/generic #dimm 1-1-0
161 chip drivers/generic/generic #dimm 1-1-1
168 device pci 1.1 on end # IDE 0x0214
169 device pci 1.2 on # LPC 0x0234
170 chip superio/nsc/pc87417
171 device pnp 2e.0 off # Floppy
176 device pnp 2e.1 off # Parallel Port
180 device pnp 2e.2 off # Com 2
184 device pnp 2e.3 on # Com 1
188 device pnp 2e.4 off end # SWC
189 device pnp 2e.5 off end # Mouse
190 device pnp 2e.6 on # Keyboard
195 device pnp 2e.7 off end # GPIO
196 device pnp 2e.f off end # XBUS
197 device pnp 2e.10 on #RTC
203 device pci 1.3 on end # WDTimer 0x0238
204 device pci 1.4 on end # XIOAPIC0 0x0235
205 device pci 1.5 on end # XIOAPIC1
206 device pci 1.6 on end # XIOAPIC2
207 device pci 2.0 on end # USB 0x0223
208 device pci 2.1 on end # USB
209 device pci 2.2 on end # USB
210 device pci 4.0 on end # it is in bcm5785_0 bus
212 end # device pci 18.0
214 device pci 18.0 on end
215 device pci 18.0 on end
216 device pci 18.1 on end
217 device pci 18.2 on end
218 device pci 18.3 on end
223 # chip drivers/generic/debug
224 # device pnp 0.0 off end # chip name
225 # device pnp 0.1 on end # pci_regs_all
226 # device pnp 0.2 off end # mem
227 # device pnp 0.3 off end # cpuid
228 # device pnp 0.4 off end # smbus_regs_all
229 # device pnp 0.5 off end # dual core msr
230 # device pnp 0.6 off end # cache size
231 # device pnp 0.7 off end # tsc