this should get the VIA VT8454c in shape with Kconfig
[coreboot.git] / src / mainboard / broadcom / blast / Config.lb
1 ## CONFIG_XIP_ROM_SIZE must be a power of 2.
2 default CONFIG_XIP_ROM_SIZE = 64 * 1024
3 include /config/nofailovercalculation.lb
4
5 arch i386 end 
6
7 ##
8 ## Build the objects we have code for in this directory.
9 ##
10
11 driver mainboard.o
12
13 #dir /drivers/si/3114
14
15 if CONFIG_GENERATE_MP_TABLE object mptable.o end
16 if CONFIG_GENERATE_PIRQ_TABLE 
17         object get_bus_conf.o
18         object irq_tables.o 
19 end
20
21         if CONFIG_USE_INIT
22
23                 makerule ./cache_as_ram_auto.o
24                         depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
25                         action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
26                 end
27
28         else    
29                 
30                 makerule ./cache_as_ram_auto.inc
31                         depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
32                         action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
33                         action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
34                         action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
35                 end
36
37         end
38
39 ##
40 ## Build our 16 bit and 32 bit coreboot entry code
41 ##
42 mainboardinit cpu/x86/16bit/entry16.inc
43 mainboardinit cpu/x86/32bit/entry32.inc
44 ldscript /cpu/x86/16bit/entry16.lds
45         if CONFIG_USE_INIT
46                 ldscript /cpu/x86/32bit/entry32.lds
47         end
48
49         if CONFIG_USE_INIT
50                 ldscript      /cpu/amd/car/cache_as_ram.lds
51         end
52
53 ##
54 ## Build our reset vector (This is where coreboot is entered)
55 ##
56 if CONFIG_USE_FALLBACK_IMAGE 
57         mainboardinit cpu/x86/16bit/reset16.inc 
58         ldscript /cpu/x86/16bit/reset16.lds 
59 else
60         mainboardinit cpu/x86/32bit/reset32.inc 
61         ldscript /cpu/x86/32bit/reset32.lds 
62 end
63
64 ##
65 ## Include an id string (For safe flashing)
66 ##
67 mainboardinit arch/i386/lib/id.inc
68 ldscript /arch/i386/lib/id.lds
69
70         ##
71         ## Setup Cache-As-Ram
72         ##
73         mainboardinit cpu/amd/car/cache_as_ram.inc
74
75 ###
76 ### This is the early phase of coreboot startup 
77 ### Things are delicate and we test to see if we should
78 ### failover to another image.
79 ###
80 if CONFIG_USE_FALLBACK_IMAGE
81                ldscript /arch/i386/lib/failover.lds
82 end
83
84 ###
85 ### O.k. We aren't just an intermediary anymore!
86 ###
87
88 ##
89 ## Setup RAM
90 ##
91         if CONFIG_USE_INIT
92                 initobject cache_as_ram_auto.o
93         else
94                 mainboardinit ./cache_as_ram_auto.inc
95         end
96
97 ##
98 ## Include the secondary Configuration files 
99 ##
100 config chip.h
101
102 # sample config for broadcom/blast 
103 chip northbridge/amd/amdk8/root_complex
104         device apic_cluster 0 on
105                 chip cpu/amd/socket_940
106                         device apic 0 on end
107                 end
108         end
109         device pci_domain 0 on
110                 chip northbridge/amd/amdk8
111                         device pci 18.0 on #  northbridge 
112                               #  devices on link 0
113                                 chip southbridge/broadcom/bcm5780 # HT2000
114                                         device pci 0.0 on end   # PXB 1 0x0130
115                                         device pci 1.0 on       # PXB 2 0x0130
116                                                 device pci 4.0 on end # GB E 0x1668 vid = 0x14e4
117                                                 device pci 4.1 on end # GB E 0x1669 vid = 0x14e4
118                                         end
119                                         device pci 2.0 on end # PCI E 1  #0x0132
120                                         device pci 3.0 on end # PCI E 2
121                                         device pci 4.0 on end # PCI E 3
122                                         device pci 5.0 on end # PCI E 4
123                                 end
124                                 chip southbridge/broadcom/bcm5785 # HT1000
125                                         device pci 0.0 on  # HT PXB  0x0036
126                                                 device pci d.0 on end # PPBX 0x0104
127                                                 device pci e.0 on end # SATA 0x024a
128                                         end
129                                         device pci 1.0 on # Legacy  pci main  0x0205
130                                                 chip drivers/i2c/i2cmux2 # pca9554 smbus mux
131                                                         device i2c 71 on end #0 pca9554 0
132                                                         device i2c 71 on end #0 pca9554 1
133                                                         device i2c 71 on end #0 pca9554 2
134                                                         device i2c 71 on end #0 pca9554 3
135                                                         device i2c 71 on end #0 pca9554 4
136                                                         device i2c 71 on end #0 pca9554 5
137                                                         device i2c 71 on #0 pca9554 6
138                                                                 chip drivers/generic/generic #dimm 0-0-0
139                                                                         device i2c 50 on end
140                                                                 end
141                                                                 chip drivers/generic/generic #dimm 0-0-1
142                                                                         device i2c 51 on end
143                                                                 end
144                                                                 chip drivers/generic/generic #dimm 0-1-0
145                                                                         device i2c 52 on end
146                                                                 end
147                                                                 chip drivers/generic/generic #dimm 0-1-1
148                                                                         device i2c 53 on end
149                                                                 end
150                                                         end
151                                                         device i2c 71 on #1 pca9554 7
152                                                                 chip drivers/generic/generic #dimm 1-0-0
153                                                                         device i2c 50 on end
154                                                                 end
155                                                                 chip drivers/generic/generic #dimm 1-0-1
156                                                                         device i2c 51 on end
157                                                                 end
158                                                                 chip drivers/generic/generic #dimm 1-1-0
159                                                                         device i2c 52 on end
160                                                                 end
161                                                                 chip drivers/generic/generic #dimm 1-1-1
162                                                                         device i2c 53 on end
163                                                                 end
164                                                         end
165                                                 end
166
167                                         end
168                                         device pci 1.1 on end # IDE        0x0214
169                                         device pci 1.2 on     # LPC        0x0234
170                                                 chip superio/nsc/pc87417
171                                                         device  pnp 2e.0 off  # Floppy
172                                                                  io 0x60 = 0x3f0
173                                                                 irq 0x70 = 6
174                                                                 drq 0x74 = 2
175                                                         end
176                                                         device pnp 2e.1 off  # Parallel Port
177                                                                  io 0x60 = 0x378
178                                                                 irq 0x70 = 7
179                                                         end
180                                                         device pnp 2e.2 off # Com 2
181                                                                  io 0x60 = 0x2f8
182                                                                 irq 0x70 = 3
183                                                         end
184                                                         device pnp 2e.3 on  # Com 1
185                                                                  io 0x60 = 0x3f8
186                                                                 irq 0x70 = 4
187                                                         end
188                                                         device pnp 2e.4 off end # SWC
189                                                         device pnp 2e.5 off end # Mouse
190                                                         device pnp 2e.6 on  # Keyboard
191                                                                  io 0x60 = 0x60
192                                                                  io 0x62 = 0x64
193                                                                 irq 0x70 = 1
194                                                         end
195                                                         device pnp 2e.7 off end # GPIO
196                                                         device pnp 2e.f off end # XBUS
197                                                         device pnp 2e.10 on #RTC
198                                                                  io 0x60 = 0x70
199                                                                  io 0x62 = 0x72
200                                                         end 
201                                                 end
202                                         end
203                                         device pci 1.3 on end # WDTimer    0x0238
204                                         device pci 1.4 on end # XIOAPIC0   0x0235
205                                         device pci 1.5 on end # XIOAPIC1
206                                         device pci 1.6 on end # XIOAPIC2
207                                         device pci 2.0 on end # USB        0x0223
208                                         device pci 2.1 on end # USB
209                                         device pci 2.2 on end # USB
210                                         device pci 4.0 on end # it is in bcm5785_0 bus
211                                 end
212                         end #  device pci 18.0
213
214                         device pci 18.0 on end
215                         device pci 18.0 on end  
216                         device pci 18.1 on end
217                         device pci 18.2 on end
218                         device pci 18.3 on end
219                 end
220
221
222         end #pci_domain
223 #        chip drivers/generic/debug
224 #                device pnp 0.0 off end # chip name
225 #                device pnp 0.1 on end # pci_regs_all
226 #                device pnp 0.2 off end # mem
227 #                device pnp 0.3 off end # cpuid
228 #                device pnp 0.4 off end # smbus_regs_all
229 #                device pnp 0.5 off end # dual core msr
230 #                device pnp 0.6 off end # cache size
231 #                device pnp 0.7 off end # tsc
232 #       end
233
234 end
235