Reduce size of the romstage on various boards that fail to build on QA.
[coreboot.git] / src / mainboard / via / epia-m / Config.lb
1 ## CONFIG_XIP_ROM_SIZE must be a power of 2.
2 default CONFIG_XIP_ROM_SIZE = 128 * 1024
3 include /config/nofailovercalculation.lb
4 default CONFIG_XIP_ROM_BASE = 0xffffffff - CONFIG_XIP_ROM_SIZE + 1
5
6 ##
7 ## Set all of the defaults for an x86 architecture
8 ##
9
10 arch i386 end
11
12 ##
13 ## Build the objects we have code for in this directory.
14 ##
15
16 driver mainboard.o
17 if CONFIG_HAVE_PIRQ_TABLE object irq_tables.o end
18 #object reset.o
19 object vgabios.o
20
21 if CONFIG_HAVE_ACPI_TABLES
22         object fadt.o
23         object dsdt.o
24         object acpi_tables.o
25 end
26
27 ##
28 ## Romcc output
29 ##
30 makerule ./failover.E
31         depends "$(CONFIG_MAINBOARD)/failover.c ../romcc" 
32         action "../romcc -E -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/failover.c -o $@"
33 end
34
35 makerule ./failover.inc
36         depends "$(CONFIG_MAINBOARD)/failover.c ../romcc"
37         action "../romcc    -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/failover.c -o $@"
38 end
39
40 makerule ./auto.E 
41         depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc" 
42         action  "../romcc -E -mcpu=c3 -O -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
43 end
44 makerule ./auto.inc 
45         depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
46         action  "../romcc    -mcpu=c3 -O -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
47 end
48
49 ##
50 ## Build our 16 bit and 32 bit coreboot entry code
51 ##
52 mainboardinit cpu/x86/16bit/entry16.inc
53 mainboardinit cpu/x86/32bit/entry32.inc
54 ldscript /cpu/x86/16bit/entry16.lds
55 ldscript /cpu/x86/32bit/entry32.lds
56
57 ##
58 ## Build our reset vector (This is where coreboot is entered)
59 ##
60 if CONFIG_USE_FALLBACK_IMAGE 
61         mainboardinit cpu/x86/16bit/reset16.inc 
62         ldscript /cpu/x86/16bit/reset16.lds 
63 else
64         mainboardinit cpu/x86/32bit/reset32.inc 
65         ldscript /cpu/x86/32bit/reset32.lds 
66 end
67
68 ### Should this be in the northbridge code?
69 mainboardinit arch/i386/lib/cpu_reset.inc
70
71 ##
72 ## Include an id string (For safe flashing)
73 ##
74 mainboardinit arch/i386/lib/id.inc
75 ldscript /arch/i386/lib/id.lds
76
77 ###
78 ### This is the early phase of coreboot startup 
79 ### Things are delicate and we test to see if we should
80 ### failover to another image.
81 ###
82 if CONFIG_USE_FALLBACK_IMAGE
83         ldscript /arch/i386/lib/failover.lds 
84         mainboardinit ./failover.inc
85 end
86
87 ###
88 ### O.k. We aren't just an intermediary anymore!
89 ###
90
91 ##
92 ## Setup RAM
93 ##
94 mainboardinit cpu/x86/fpu/enable_fpu.inc
95 mainboardinit cpu/x86/mmx/enable_mmx.inc
96 mainboardinit ./auto.inc
97 mainboardinit cpu/x86/mmx/disable_mmx.inc
98
99 ##
100 ## Include the secondary Configuration files 
101 ##
102 dir /pc80
103 config chip.h
104
105 chip northbridge/via/vt8623
106
107         device apic_cluster 0 on
108                 chip cpu/via/model_c3
109                         device apic 0 on  end 
110                 end
111         end
112
113         device pci_domain 0 on
114                 chip southbridge/via/vt8235
115
116                         device pci 10.0 on end # USB 1.1
117                         device pci 10.1 on end # USB 1.1
118                         device pci 10.2 on end # USB 1.1
119                         device pci 10.3 on end # USB 2
120
121                         device pci 11.0 on      # Southbridge
122                                 chip superio/via/vt1211
123                                         device pnp 2e.0 on      # Floppy
124                                                 io 0x60 = 0x3f0
125                                                 irq 0x70 = 6
126                                                 drq 0x74 = 2
127                                         end
128                                         device pnp 2e.1 on      # Parallel Port
129                                                 io 0x60 = 0x378
130                                                 irq 0x70 = 7
131                                                 drq 0x74 = 3
132                                         end
133                                         device pnp 2e.2 on      # COM1
134                                                 io 0x60 = 0x3f8
135                                                 irq 0x70 = 4
136                                         end
137                                         device pnp 2e.3 on      # COM2
138                                                 io 0x60 = 0x2f8
139                                                 irq 0x70 = 3
140                                         end
141                                         device pnp 2e.b on      # HWM
142                                                 io 0x60 = 0xec00
143                                         end
144
145                                 end
146                         end
147                         
148                         device pci 11.1 on  end # IDE
149                         # 2-4 non existant?
150                         device pci 11.5 on  end # AC97 Audio
151                         device pci 11.6 off end # AC97 Modem
152                         device pci 12.0 on end  # Ethernet
153                 end
154 #               This is on the EPIA MII, not the M.
155                 chip southbridge/ricoh/rl5c476
156                         register "enable_cf" = "1"
157                         device pci 0a.0 on end
158                         device pci 0a.1 on end  
159                 end
160         end
161 end