2 ## Compute the location and size of where this firmware image
3 ## (linuxBIOS plus bootloader) will live in the boot rom chip.
6 default ROM_SECTION_SIZE = FALLBACK_SIZE
7 default ROM_SECTION_OFFSET = ( ROM_SIZE - FALLBACK_SIZE )
9 default ROM_SECTION_SIZE = ( ROM_SIZE - FALLBACK_SIZE )
10 default ROM_SECTION_OFFSET = 0
14 ## Compute the start location and size size of
15 ## The linuxBIOS bootloader.
17 default PAYLOAD_SIZE = ( ROM_SECTION_SIZE - ROM_IMAGE_SIZE )
18 default CONFIG_ROM_STREAM_START = (0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1)
21 ## Compute where this copy of linuxBIOS will start in the boot rom
23 default _ROMBASE = ( CONFIG_ROM_STREAM_START + PAYLOAD_SIZE )
26 ## Compute a range of ROM that can cached to speed up linuxBIOS,
29 ## XIP_ROM_SIZE must be a power of 2.
30 ## XIP_ROM_BASE must be a multiple of XIP_ROM_SIZE
32 default XIP_ROM_SIZE=65536
33 default XIP_ROM_BASE = ( _ROMBASE + ROM_IMAGE_SIZE - XIP_ROM_SIZE )
38 ## Build the objects we have code for in this directory.
45 if HAVE_MP_TABLE object mptable.o end
46 if HAVE_PIRQ_TABLE object irq_tables.o end
54 depends "$(MAINBOARD)/failover.c ./romcc"
55 action "./romcc -E -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/failover.c -o $@"
58 makerule ./failover.inc
59 depends "$(MAINBOARD)/failover.c ./romcc"
60 action "./romcc -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/failover.c -o $@"
64 depends "$(MAINBOARD)/auto.c option_table.h ./romcc"
65 action "./romcc -E -mcpu=k8 -O2 -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/auto.c -o $@"
68 depends "$(MAINBOARD)/auto.c option_table.h ./romcc"
69 action "./romcc -mcpu=k8 -O2 -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/auto.c -o $@"
73 ## Build our 16 bit and 32 bit linuxBIOS entry code
75 mainboardinit cpu/x86/16bit/entry16.inc
76 mainboardinit cpu/x86/32bit/entry32.inc
77 ldscript /cpu/x86/16bit/entry16.lds
78 ldscript /cpu/x86/32bit/entry32.lds
81 ## Build our reset vector (This is where linuxBIOS is entered)
84 mainboardinit cpu/x86/16bit/reset16.inc
85 ldscript /cpu/x86/16bit/reset16.lds
87 mainboardinit cpu/x86/32bit/reset32.inc
88 ldscript /cpu/x86/32bit/reset32.lds
91 ### Should this be in the northbridge code?
92 mainboardinit arch/i386/lib/cpu_reset.inc
95 ## Include an id string (For safe flashing)
97 mainboardinit arch/i386/lib/id.inc
98 ldscript /arch/i386/lib/id.lds
101 ### This is the early phase of linuxBIOS startup
102 ### Things are delicate and we test to see if we should
103 ### failover to another image.
105 if USE_FALLBACK_IMAGE
106 ldscript /arch/i386/lib/failover.lds
107 mainboardinit ./failover.inc
111 ### O.k. We aren't just an intermediary anymore!
117 mainboardinit cpu/x86/fpu/enable_fpu.inc
118 mainboardinit cpu/x86/mmx/enable_mmx.inc
119 mainboardinit cpu/x86/sse/enable_sse.inc
120 mainboardinit ./auto.inc
121 mainboardinit cpu/x86/sse/disable_sse.inc
122 mainboardinit cpu/x86/mmx/disable_mmx.inc
125 ## Include the secondary Configuration files
133 # sample config for tyan/s2885
134 chip northbridge/amd/amdk8/root_complex
135 device pci_domain 0 on
136 chip northbridge/amd/amdk8
137 device pci 18.0 on # LDT0
138 chip southbridge/amd/amd8151
139 # the on/off keyword is mandatory
140 device pci 0.0 on end
141 device pci 1.0 on end
144 device pci 18.0 on end # LDT1
145 device pci 18.0 on # northbridge
146 # devices on link 2, link 2 == LDT 2
147 chip southbridge/amd/amd8131
148 # the on/off keyword is mandatory
149 device pci 0.0 on end
150 device pci 0.1 on end
151 device pci 1.0 on end
152 device pci 1.1 on end
154 chip southbridge/amd/amd8111
155 # this "device pci 0.0" is the parent the next one
158 device pci 0.0 on end
159 device pci 0.1 on end
160 device pci 0.2 off end
161 device pci 1.0 off end
164 # chip drivers/generic/debug
165 # device pnp 2.0 on end
166 # device pnp 2.1 off end
167 # device pnp 2.2 off end
168 # device pnp 2.3 on end
170 chip superio/winbond/w83627hf
171 device pnp 2e.0 on # Floppy
176 device pnp 2e.1 off # Parallel Port
180 device pnp 2e.2 on # Com1
184 device pnp 2e.3 off # Com2
188 device pnp 2e.5 on # Keyboard
194 device pnp 2e.6 off # CIR
197 device pnp 2e.7 off # GAME_MIDI_GIPO1
202 device pnp 2e.8 off end # GPIO2
203 device pnp 2e.9 off end # GPIO3
204 device pnp 2e.a off end # ACPI
205 device pnp 2e.b on # HW Monitor
211 device pci 1.1 on end
212 device pci 1.2 on end
213 device pci 1.3 on end
214 device pci 1.5 on end
215 device pci 1.6 off end
216 register "ide0_enable" = "1"
217 register "ide1_enable" = "1"
219 end # device pci 18.0
221 device pci 18.1 on end
222 device pci 18.2 on end
224 # chip drivers/generic/debug
225 # device pnp 1.0 on end
226 # device pnp 1.1 off end
227 # device pnp 1.2 off end
228 # device pnp 1.3 on end
233 chip northbridge/amd/amdk8
234 device pci 19.0 on end
235 device pci 19.0 on end
236 device pci 19.0 on end
237 device pci 19.1 on end
238 device pci 19.2 on end
239 device pci 19.3 on end
242 device apic_cluster 0 on
243 chip cpu/amd/socket_940
246 chip cpu/amd/socket_940
251 chip drivers/generic/debug
252 device pnp 0.0 on end
253 device pnp 0.1 off end
254 device pnp 0.2 off end
255 device pnp 0.3 on end