Drop enable_mmx.inc. It reads (only) "Enabling mmx registers is a noop"
[coreboot.git] / src / mainboard / via / pc2500e / Config.lb
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2008 Uwe Hermann <uwe@hermann-uwe.de>
5 ##
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.
10 ##
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.
15 ##
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
19 ##
20
21 ## CONFIG_XIP_ROM_SIZE must be a power of 2.
22 default CONFIG_XIP_ROM_SIZE = 64 * 1024
23 include /config/nofailovercalculation.lb
24
25 arch i386 end
26 driver mainboard.o
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
30         object fadt.o
31         object dsdt.o
32         object acpi_tables.o
33 end
34 makerule ./failover.E
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 $@"
37 end
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 $@"
41 end
42 makerule ./auto.E
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 $@"
45 end
46 makerule ./auto.inc
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 $@"
49 end
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
57 else
58         mainboardinit cpu/x86/32bit/reset32.inc
59         ldscript /cpu/x86/32bit/reset32.lds
60 end
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
67 end
68 mainboardinit cpu/x86/fpu/enable_fpu.inc
69 mainboardinit ./auto.inc
70 mainboardinit cpu/x86/mmx/disable_mmx.inc
71 dir /pc80
72 config chip.h
73
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
103             io 0x60 = 0x3f0
104             irq 0x70 = 6
105             drq 0x74 = 2
106           end
107           device pnp 2e.1 on                    # COM1
108             io 0x60 = 0x3f8
109             irq 0x70 = 4
110           end
111           device pnp 2e.2 off                   # COM2 (N/A on this board)
112             io 0x60 = 0x2f8
113             irq 0x70 = 3
114           end
115           device pnp 2e.3 on                    # Parallel port
116             io 0x60 = 0x378
117             irq 0x70 = 7
118             drq 0x74 = 3
119           end
120           device pnp 2e.4 on                    # Environment controller
121             io 0x60 = 0x290
122             io 0x62 = 0x0000
123             irq 0x70 = 9
124           end
125           device pnp 2e.5 off                   # PS/2 keyboard (not used)
126             io 0x60 = 0x60
127             io 0x62 = 0x64
128             irq 0x70 = 1
129           end
130           device pnp 2e.6 off                   # PS/2 mouse (not used)
131             irq 0x70 = 12
132           end
133           device pnp 2e.7 on                    # GPIO
134             io 0x60 = 0x0000
135             io 0x62 = 0x0800
136             io 0x64 = 0x0000
137           end
138           device pnp 2e.8 off                   # MIDI port (N/A)
139             io 0x60 = 0x300
140             irq 0x70 = 10
141           end
142           device pnp 2e.9 off                   # Game port (N/A)
143             io 0x60 = 0x201
144           end
145           device pnp 2e.a on                    # Consumer IR
146             io 0x60 = 0x310
147             irq 0x70 = 11
148           end
149         end
150       end
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
154     end
155   end
156   device apic_cluster 0 on                      # APIC cluster
157     chip cpu/via/model_c7                       # VIA C7
158       device apic 0 on end                      # APIC
159     end
160   end
161 end