2 ## This file is part of the coreboot project.
4 ## Copyright (C) 2007-2008 coresystems GmbH
6 ## This program is free software; you can redistribute it and/or
7 ## modify it under the terms of the GNU General Public License as
8 ## published by the Free Software Foundation; version 2 of the License.
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software
17 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 ## This mainboard requires DCACHE_AS_RAM enabled. It won't work without.
25 ## Only use the option table in a normal image
27 default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE
30 ## Image size calculation
33 include /config/nofailovercalculation.lb
36 ## Set all of the defaults for an x86 architecture
42 ## Build the objects we have code for in this directory.
47 if CONFIG_GENERATE_MP_TABLE object mptable.o end
48 if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
49 if CONFIG_HAVE_SMI_HANDLER smmobject mainboard_smi.o end
51 if CONFIG_GENERATE_ACPI_TABLES
55 depends "$(CONFIG_MAINBOARD)/dsdt.asl"
56 action "$(CONFIG_CROSS_COMPILE)cpp -D__ACPI__ -P $(CPPFLAGS) -I$(CONFIG_MAINBOARD) $(CONFIG_MAINBOARD)/dsdt.asl -o $(CURDIR)/dsdt.asl"
57 action "iasl -p dsdt -tc $(CURDIR)/dsdt.asl"
58 action "mv $(CURDIR)/dsdt.hex dsdt.c"
68 depends "$(CONFIG_MAINBOARD)/auto.c option_table.h"
69 action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(CONFIG_MAINBOARD)/auto.c -o $@"
75 depends "$(CONFIG_MAINBOARD)/auto.c option_table.h"
76 action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/auto.c -o $@"
77 action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
78 action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
84 ## Build our 16 bit and 32 bit coreboot entry code
86 mainboardinit cpu/x86/16bit/entry16.inc
87 mainboardinit cpu/x86/32bit/entry32.inc
88 ldscript /cpu/x86/16bit/entry16.lds
90 ldscript /cpu/x86/32bit/entry32.lds
91 ldscript /cpu/x86/car/cache_as_ram.lds
95 ## Build our reset vector (This is where coreboot is entered)
97 if CONFIG_USE_FALLBACK_IMAGE
98 mainboardinit cpu/x86/16bit/reset16.inc
99 ldscript /cpu/x86/16bit/reset16.lds
101 mainboardinit cpu/x86/32bit/reset32.inc
102 ldscript /cpu/x86/32bit/reset32.lds
107 ## Include an id string (For safe flashing)
109 mainboardinit arch/i386/lib/id.inc
110 ldscript /arch/i386/lib/id.lds
113 ## Setup Cache-As-Ram
115 mainboardinit cpu/intel/model_106cx/cache_as_ram.inc
118 ### This is the early phase of coreboot startup
119 ### Things are delicate and we test to see if we should
120 ### failover to another image.
122 if CONFIG_USE_FALLBACK_IMAGE
123 ldscript /arch/i386/lib/failover.lds
127 ### O.k. We aren't just an intermediary anymore!
133 mainboardinit ./auto.inc
137 ## Include the secondary Configuration files
142 chip northbridge/intel/i945
144 device apic_cluster 0 on
145 chip cpu/intel/socket_441
150 device pci_domain 0 on
151 device pci 00.0 on end # host bridge
152 device pci 01.0 off end # i945 PCIe root port
153 chip drivers/pci/onboard
154 device pci 02.0 on end # vga controller
155 # register "rom_address" = "0xfffc0000" # 256 KB image
156 # register "rom_address" = "0xfff80000" # 512 KB image
157 # register "rom_address" = "0xfff00000" # 1 MB image
159 device pci 02.1 on end # display controller
161 chip southbridge/intel/i82801gx
162 register "pirqa_routing" = "0x05"
163 register "pirqb_routing" = "0x07"
164 register "pirqc_routing" = "0x05"
165 register "pirqd_routing" = "0x07"
166 register "pirqe_routing" = "0x80"
167 register "pirqf_routing" = "0x80"
168 register "pirqg_routing" = "0x80"
169 register "pirqh_routing" = "0x06"
172 # 0 No effect (default)
173 # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set)
174 # 2 SCI (if corresponding GPIO_EN bit is also set)
175 register "gpi13_routing" = "1"
176 register "gpe0_en" = "0x20000601"
178 register "ide_legacy_combined" = "0x1"
179 register "ide_enable_primary" = "0x1"
180 register "ide_enable_secondary" = "0x0"
181 register "sata_ahci" = "0x0"
183 device pci 1b.0 on end # High Definition Audio
184 device pci 1c.0 on end # PCIe
185 device pci 1c.1 on end # PCIe
186 device pci 1c.2 on end # PCIe
187 #device pci 1c.3 off end # PCIe port 4
188 #device pci 1c.4 off end # PCIe port 5
189 #device pci 1c.5 off end # PCIe port 6
190 device pci 1d.0 on end # USB UHCI
191 device pci 1d.1 on end # USB UHCI
192 device pci 1d.2 on end # USB UHCI
193 device pci 1d.3 on end # USB UHCI
194 device pci 1d.7 on end # USB2 EHCI
195 device pci 1e.0 on end # PCI bridge
196 #device pci 1e.2 off end # AC'97 Audio
197 #device pci 1e.3 off end # AC'97 Modem
198 device pci 1f.0 on # LPC bridge
199 chip superio/smsc/lpc47m15x
200 device pnp 2e.0 off # Floppy
202 device pnp 2e.3 off # Parport
211 irq 0xf1 = 4 # set IRMODE 0 # XXX not an irq
213 device pnp 2e.7 on # Keyboard+Mouse
218 irq 0xf0 = 0x82 # HW accel A20.
220 device pnp 2e.8 on # GAME
223 device pnp 2e.a on # PME
225 device pnp 2e.b on # MPU
229 #device pci 1f.1 off end # IDE
230 device pci 1f.2 on end # SATA
231 device pci 1f.3 on end # SMBus
232 #device pci 1f.4 off end # Realtek ID Codec