Remove drivers/pci/onboard. The only purpose was for option ROMs, which are
[coreboot.git] / src / mainboard / newisys / khepri / 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 ##
6 ## Set all of the defaults for an x86 architecture
7 ##
8
9 arch i386 end
10
11 ##
12 ## Build the objects we have code for in this directory.
13 ##
14
15 driver mainboard.o
16 if CONFIG_GENERATE_MP_TABLE object mptable.o end
17 if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
18
19 if CONFIG_USE_INIT
20
21 makerule ./auto.o
22         depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
23         action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
24 end
25
26 else    
27                 
28 makerule ./auto.inc
29         depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
30         action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
31         action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
32         action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
33 end
34
35 end
36
37 ##
38 ## Build our 16 bit and 32 bit coreboot entry code
39 ##
40 if CONFIG_USE_FALLBACK_IMAGE
41         mainboardinit cpu/x86/16bit/entry16.inc
42         ldscript /cpu/x86/16bit/entry16.lds
43 end
44
45 mainboardinit cpu/x86/32bit/entry32.inc
46
47         if CONFIG_USE_INIT
48                 ldscript /cpu/x86/32bit/entry32.lds
49         end
50
51         if CONFIG_USE_INIT
52                 ldscript      /cpu/amd/car/cache_as_ram.lds
53         end
54
55 ##
56 ## Build our reset vector (This is where coreboot is entered)
57 ##
58 if CONFIG_USE_FALLBACK_IMAGE 
59         mainboardinit cpu/x86/16bit/reset16.inc 
60         ldscript /cpu/x86/16bit/reset16.lds 
61 else
62         mainboardinit cpu/x86/32bit/reset32.inc 
63         ldscript /cpu/x86/32bit/reset32.lds 
64 end
65
66 ##
67 ## Include an id string (For safe flashing)
68 ##
69 mainboardinit arch/i386/lib/id.inc
70 ldscript /arch/i386/lib/id.lds
71
72 ##
73 ## Setup Cache-As-Ram
74 ##
75 mainboardinit cpu/amd/car/cache_as_ram.inc
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 end
85
86 ###
87 ### O.k. We aren't just an intermediary anymore!
88 ###
89
90 ##
91 ## Setup RAM
92 ##
93 if CONFIG_USE_INIT
94 initobject auto.o
95 else
96 mainboardinit ./auto.inc
97 end
98
99 config chip.h
100
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                 chip cpu/amd/socket_940
107                         device apic 1 on end
108                 end
109         end
110
111         device pci_domain 0 on
112                 chip northbridge/amd/amdk8
113                         device pci 18.0 on end # LDT 0 
114                         device pci 18.0 on     # LDT 1
115                                 chip southbridge/amd/amd8131
116                                         device pci 0.0 on end
117                                         device pci 0.1 on end
118                                         device pci 1.0 on end
119                                         device pci 1.1 on end
120                                 end
121                                 chip southbridge/amd/amd8111
122                                         device pci 0.0 on
123                                                 device pci 0.0 on end
124                                                 device pci 0.1 on end
125                                                 device pci 0.2 on end
126                                                 device pci 1.0 on end
127                                         end
128                                         device pci 1.0 on
129                                                 chip superio/winbond/w83627hf
130                                                         device pnp 2e.0 on #  Floppy
131                                                                 io 0x60 = 0x3f0
132                                                                 irq 0x70 = 6
133                                                                 drq 0x74 = 2
134                                                         end
135                                                         device pnp 2e.1 off #  Parallel Port
136                                                                 io 0x60 = 0x378
137                                                                 irq 0x70 = 7
138                                                         end
139                                                         device pnp 2e.2 on #  Com1
140                                                                 io 0x60 = 0x3f8
141                                                                 irq 0x70 = 4
142                                                         end
143                                                         device pnp 2e.3 on #  Com2
144                                                                 io 0x60 = 0x2f8
145                                                                 irq 0x70 = 3
146                                                         end
147                                                         device pnp 2e.5 on #  Keyboard
148                                                                 io 0x60 = 0x60
149                                                                 io 0x62 = 0x64
150                                                                 irq 0x70 = 1
151                                                                 irq 0x72 = 12
152                                                         end
153                                                         device pnp 2e.6 off #  CIR
154                                                                 io 0x60 = 0x100
155                                                         end
156                                                         device pnp 2e.7 off #  GAME_MIDI_GIPO1
157                                                                 io 0x60 = 0x220
158                                                                 io 0x62 = 0x300
159                                                                 irq 0x70 = 9
160                                                         end                                             
161                                                         device pnp 2e.8 off end #  GPIO2
162                                                         device pnp 2e.9 off end #  GPIO3
163                                                         device pnp 2e.a off end #  ACPI
164                                                         device pnp 2e.b on #  HW Monitor
165                                                                 io 0x60 = 0x290
166                                                                 irq 0x70 = 5
167                                                         end
168                                                 end
169                                         end
170                                         device pci 1.1 on end
171                                         device pci 1.2 on end
172                                         device pci 1.3 on end 
173                                         device pci 1.5 on end
174                                         device pci 1.6 on end
175                                 end
176                         end # LDT1
177                         device pci 18.0 on end # LDT2
178                         device pci 18.1 on end
179                         device pci 18.2 on end
180                         device pci 18.3 on end
181                 end
182                 chip northbridge/amd/amdk8
183                         device pci 19.0 on end
184                         device pci 19.0 on end
185                         device pci 19.0 on end
186                         device pci 19.1 on end
187                         device pci 19.2 on end
188                         device pci 19.3 on end
189                 end
190         end 
191 end
192