drop duplicate compiler options that are already mentioned in CFLAGS.
[coreboot.git] / src / mainboard / tyan / s2850 / Config.lb
1 include /config/nofailovercalculation.lb
2
3 arch i386 end 
4
5 ##
6 ## Build the objects we have code for in this directory.
7 ##
8
9 driver mainboard.o
10
11 #dir /drivers/si/3114
12
13 if HAVE_MP_TABLE object mptable.o end
14 if HAVE_PIRQ_TABLE object irq_tables.o end
15
16 if CONFIG_USE_INIT
17
18 makerule ./auto.o
19         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
20         action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(MAINBOARD)/cache_as_ram_auto.c -o $@"
21 end
22
23 else    
24                 
25 makerule ./auto.inc
26         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
27         action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(MAINBOARD)/cache_as_ram_auto.c -o $@"
28         action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
29         action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
30 end
31
32 end
33 ##
34 ## Build our 16 bit and 32 bit coreboot entry code
35 ##
36 if USE_FALLBACK_IMAGE
37         mainboardinit cpu/x86/16bit/entry16.inc
38         ldscript /cpu/x86/16bit/entry16.lds
39 end
40
41 mainboardinit cpu/x86/32bit/entry32.inc
42
43         if CONFIG_USE_INIT
44                 ldscript /cpu/x86/32bit/entry32.lds
45         end
46
47         if CONFIG_USE_INIT
48                 ldscript      /cpu/amd/car/cache_as_ram.lds
49         end
50
51 ##
52 ## Build our reset vector (This is where coreboot is entered)
53 ##
54 if 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
62 ##
63 ## Include an id string (For safe flashing)
64 ##
65 mainboardinit arch/i386/lib/id.inc
66 ldscript /arch/i386/lib/id.lds
67
68 ##
69 ## Setup Cache-As-Ram
70 ##
71 mainboardinit cpu/amd/car/cache_as_ram.inc
72
73 ###
74 ### This is the early phase of coreboot startup 
75 ### Things are delicate and we test to see if we should
76 ### failover to another image.
77 ###
78 if USE_FALLBACK_IMAGE
79        ldscript /arch/i386/lib/failover.lds
80 end
81
82 ###
83 ### O.k. We aren't just an intermediary anymore!
84 ###
85
86 ##
87 ## Setup RAM
88 ##
89 if CONFIG_USE_INIT
90 initobject auto.o
91 else
92 mainboardinit ./auto.inc
93 end
94
95 ##
96 ## Include the secondary Configuration files 
97 ##
98 config chip.h
99
100 # sample config for tyan/s2850
101 chip northbridge/amd/amdk8/root_complex
102         device apic_cluster 0 on                        
103                 chip cpu/amd/socket_940                
104                         device apic 0 on end                    
105                 end                                     
106         end 
107         device pci_domain 0 on
108                 chip northbridge/amd/amdk8
109                         device pci 18.0 on # LDT0
110                                 #  devices on link 2, link 2 == LDT 2
111                                 chip southbridge/amd/amd8111
112                                         # this "device pci 0.0" is the parent the next one
113                                         # PCI bridge
114                                         device pci 0.0 on
115                                                 device pci 0.0 on end
116                                                 device pci 0.1 on end
117                                                 device pci 0.2 off end
118                                                 device pci 1.0 off end
119                                                 #chip drivers/ati/ragexl
120                                                 chip drivers/pci/onboard
121                                                         device pci b.0 on end
122                                                         register "rom_address" = "0xfff80000"
123                                                 end
124                                         end
125                                         device pci 1.0 on
126                                                 chip superio/winbond/w83627hf
127                                                         device pnp 2e.0 on #  Floppy
128                                                                 io 0x60 = 0x3f0
129                                                                 irq 0x70 = 6
130                                                                 drq 0x74 = 2
131                                                         end
132                                                         device pnp 2e.1 off #  Parallel Port
133                                                                 io 0x60 = 0x378
134                                                                 irq 0x70 = 7
135                                                         end
136                                                         device pnp 2e.2 on #  Com1
137                                                                 io 0x60 = 0x3f8
138                                                                 irq 0x70 = 4
139                                                         end
140                                                         device pnp 2e.3 off #  Com2
141                                                                 io 0x60 = 0x2f8
142                                                                 irq 0x70 = 3
143                                                         end
144                                                         device pnp 2e.5 on #  Keyboard
145                                                                 io 0x60 = 0x60
146                                                                 io 0x62 = 0x64
147                                                                 irq 0x70 = 1
148                                                                 irq 0x72 = 12
149                                                         end
150                                                        device pnp 2e.6 off #  CIR
151                                                                 io 0x60 = 0x100
152                                                         end
153                                                         device pnp 2e.7 off #  GAME_MIDI_GIPO1
154                                                                 io 0x60 = 0x220
155                                                                 io 0x62 = 0x300
156                                                                 irq 0x70 = 9
157                                                         end  
158                                                         device pnp 2e.8 off end #  GPIO2
159                                                         device pnp 2e.9 off end #  GPIO3
160                                                         device pnp 2e.a off end #  ACPI
161                                                         device pnp 2e.b on #  HW Monitor
162                                                                 io 0x60 = 0x290
163                                                                 irq 0x70 = 5
164                                                         end
165                                                 end
166                                         end
167                                         device pci 1.1 on end
168                                         device pci 1.2 on end
169                                         device pci 1.3 on 
170                                                 chip drivers/generic/generic #dimm 0-0-0
171                                                         device i2c 50 on end
172                                                 end
173                                                 chip drivers/generic/generic #dimm 0-0-1
174                                                         device i2c 51 on end
175                                                 end
176                                                 chip drivers/generic/generic #dimm 0-1-0
177                                                         device i2c 52 on end
178                                                 end
179                                                 chip drivers/generic/generic #dimm 0-1-1
180                                                         device i2c 53 on end
181                                                 end
182                                         end
183                                         device pci 1.5 on end
184                                         device pci 1.6 off end
185                                         register "ide0_enable" = "1"
186                                         register "ide1_enable" = "1"
187                                 end
188                         end #  device pci 18.0 
189                         device pci 18.0 on end
190                         device pci 18.0 on end
191                         
192                         device pci 18.1 on end
193                         device pci 18.2 on end
194                         device pci 18.3 on end
195                 end
196         end 
197 end
198