2 ## This file is part of the coreboot project.
4 ## Copyright (C) 2008 Uwe Hermann <uwe@hermann-uwe.de>
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2 of the License, or
9 ## (at your option) any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 ## CONFIG_XIP_ROM_SIZE must be a power of 2.
22 default CONFIG_XIP_ROM_SIZE = 64 * 1024
23 include /config/nofailovercalculation.lb
27 if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
28 if CONFIG_GENERATE_MP_TABLE object mptable.o end
29 if CONFIG_GENERATE_ACPI_TABLES
35 depends "$(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c ../romcc"
36 action "../romcc -E -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c -o $@"
38 makerule ./failover.inc
39 depends "$(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c ../romcc"
40 action "../romcc -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c -o $@"
43 depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
44 action "../romcc -E -mcpu=c3 -O -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
47 depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
48 action "../romcc -mcpu=c3 -O -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
50 mainboardinit cpu/x86/16bit/entry16.inc
51 mainboardinit cpu/x86/32bit/entry32.inc
52 ldscript /cpu/x86/16bit/entry16.lds
53 ldscript /cpu/x86/32bit/entry32.lds
54 if CONFIG_USE_FALLBACK_IMAGE
55 mainboardinit cpu/x86/16bit/reset16.inc
56 ldscript /cpu/x86/16bit/reset16.lds
58 mainboardinit cpu/x86/32bit/reset32.inc
59 ldscript /cpu/x86/32bit/reset32.lds
61 mainboardinit arch/i386/lib/cpu_reset.inc
62 mainboardinit arch/i386/lib/id.inc
63 ldscript /arch/i386/lib/id.lds
64 if CONFIG_USE_FALLBACK_IMAGE
65 ldscript /arch/i386/lib/failover.lds
66 mainboardinit ./failover.inc
68 mainboardinit cpu/x86/fpu/enable_fpu.inc
69 mainboardinit ./auto.inc
70 mainboardinit cpu/x86/mmx/disable_mmx.inc
74 chip northbridge/via/cn700 # Northbridge
75 device pci_domain 0 on # PCI domain
76 device pci 0.0 on end # AGP Bridge
77 device pci 0.1 on end # Error Reporting
78 device pci 0.2 on end # Host Bus Control
79 device pci 0.3 on end # Memory Controller
80 device pci 0.4 on end # Power Management
81 device pci 0.7 on end # V-Link Controller
82 device pci 1.0 on end # PCI Bridge
83 chip southbridge/via/vt8237r # Southbridge
84 # Enable both IDE channels.
85 register "ide0_enable" = "1"
86 register "ide1_enable" = "1"
87 # Both cables are 40pin.
88 register "ide0_80pin_cable" = "0"
89 register "ide1_80pin_cable" = "0"
90 device pci f.0 on end # SATA
91 device pci f.1 on end # IDE
92 register "fn_ctrl_lo" = "0x80"
93 register "fn_ctrl_hi" = "0x1d"
94 device pci 10.0 on end # UHCI
95 device pci 10.1 on end # UHCI
96 device pci 10.2 on end # UHCI
97 device pci 10.3 on end # UHCI
98 device pci 10.4 on end # EHCI
99 device pci 10.5 on end # UDCI
100 device pci 11.0 on # Southbridge LPC
101 chip superio/ite/it8716f # Super I/O
102 device pnp 2e.0 on # Floppy
107 device pnp 2e.1 on # COM1
111 device pnp 2e.2 off # COM2 (N/A on this board)
115 device pnp 2e.3 on # Parallel port
120 device pnp 2e.4 on # Environment controller
125 device pnp 2e.5 off # PS/2 keyboard (not used)
130 device pnp 2e.6 off # PS/2 mouse (not used)
133 device pnp 2e.7 on # GPIO
138 device pnp 2e.8 off # MIDI port (N/A)
142 device pnp 2e.9 off # Game port (N/A)
145 device pnp 2e.a on # Consumer IR
151 device pci 11.5 on end # AC'97 audio
152 # device pci 11.6 off end # AC'97 modem (N/A)
153 device pci 12.0 on end # Ethernet
156 device apic_cluster 0 on # APIC cluster
157 chip cpu/via/model_c7 # VIA C7
158 device apic 0 on end # APIC