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.
12 if CONFIG_HAVE_MP_TABLE object mptable.o end
13 if CONFIG_HAVE_PIRQ_TABLE object irq_tables.o end
14 if CONFIG_HAVE_ACPI_TABLES object acpi_tables.o end
21 depends "$(CONFIG_MAINBOARD)/failover.c ../romcc"
22 action "../romcc -E -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/failover.c -o $@"
25 makerule ./failover.inc
26 depends "$(CONFIG_MAINBOARD)/failover.c ../romcc"
27 action "../romcc -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/failover.c -o $@"
31 depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
32 action "../romcc -E -mcpu=p4 -O2 -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
35 depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
36 action "../romcc -mcpu=p4 -O2 -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
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
45 ldscript /cpu/x86/32bit/entry32.lds
48 ## Build our reset vector (This is where coreboot is entered)
50 if CONFIG_HAVE_FALLBACK_BOOT
51 if CONFIG_USE_FALLBACK_IMAGE
52 mainboardinit cpu/x86/16bit/reset16.inc
53 ldscript /cpu/x86/16bit/reset16.lds
55 mainboardinit cpu/x86/32bit/reset32.inc
56 ldscript /cpu/x86/32bit/reset32.lds
59 mainboardinit cpu/x86/16bit/reset16.inc
60 ldscript /cpu/x86/16bit/reset16.lds
63 ### Should this be in the northbridge code?
64 mainboardinit arch/i386/lib/cpu_reset.inc
67 ## Include an id string (For safe flashing)
69 mainboardinit arch/i386/lib/id.inc
70 ldscript /arch/i386/lib/id.lds
73 ### This is the early phase of coreboot startup
74 ### Things are delicate and we test to see if we should
75 ### failover to another image.
77 if CONFIG_USE_FALLBACK_IMAGE
78 ldscript /arch/i386/lib/failover.lds
79 mainboardinit ./failover.inc
83 ### O.k. We aren't just an intermediary anymore!
89 mainboardinit cpu/x86/fpu/enable_fpu.inc
90 mainboardinit cpu/x86/mmx/enable_mmx.inc
91 mainboardinit cpu/x86/sse/enable_sse.inc
92 mainboardinit ./auto.inc
93 mainboardinit cpu/x86/sse/disable_sse.inc
94 mainboardinit cpu/x86/mmx/disable_mmx.inc
97 ## Include the secondary Configuration files
103 # based on sample config for tyan/s2735
104 chip northbridge/intel/e7501
105 device pci_domain 0 on
106 device pci 0.0 on end # Chipset host controller
107 device pci 0.1 on end # Host RASUM controller
108 device pci 2.0 on # Hub interface B
109 chip southbridge/intel/i82870 # P64H2
110 device pci 1c.0 on end # IOAPIC - bus B
111 device pci 1d.0 on end # Hub to PCI-B bridge
112 device pci 1e.0 on end # IOAPIC - bus A
113 device pci 1f.0 on end # Hub to PCI-A bridge
116 device pci 3.0 off end # Hub interface C (82808AA connector - disable for now)
117 device pci 4.0 on # Hub interface D
118 chip southbridge/intel/i82870 # P64H2
119 device pci 1c.0 on end # IOAPIC - bus B
120 device pci 1d.0 on end # Hub to PCI-B bridge
121 device pci 1e.0 on end # IOAPIC - bus A
122 device pci 1f.0 on end # Hub to PCI-A bridge
125 device pci 6.0 on end # E7501 Power management registers? (undocumented)
126 chip southbridge/intel/i82801ca
127 device pci 1d.0 off end # USB (might not work, Southbridge code needs looking at)
128 device pci 1d.1 off end # USB (not populated)
129 device pci 1d.2 off end # USB (not populated)
130 device pci 1e.0 on # Hub to PCI bridge
131 chip drivers/pci/onboard # VGA ROM
132 device pci 0.0 on end
135 device pci 1f.0 on # LPC bridge
136 chip superio/smsc/lpc47b272
137 device pnp 2e.0 off # Floppy
142 device pnp 2e.3 off # Parallel Port
146 device pnp 2e.4 on # Com1
150 device pnp 2e.5 off # Com2
154 device pnp 2e.7 on # Keyboard
157 irq 0x70 = 1 # Keyboard interrupt
158 irq 0x72 = 12 # Mouse interrupt
160 device pnp 2e.a off end # ACPI
163 device pci 1f.1 on end # IDE
164 device pci 1f.3 on end # SMBus
165 device pci 1f.5 off end # AC97 Audio
166 device pci 1f.6 off end # AC97 Modem
169 device apic_cluster 0 on
170 chip cpu/intel/socket_mPGA604
173 chip cpu/intel/socket_mPGA604