2 ## Compute the location and size of where this firmware image
3 ## (coreboot 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 coreboot bootloader.
17 default PAYLOAD_SIZE = ( ROM_SECTION_SIZE - ROM_IMAGE_SIZE )
18 default CONFIG_ROM_PAYLOAD_START = (0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1)
21 ## Compute where this copy of coreboot will start in the boot rom
23 default _ROMBASE = ( CONFIG_ROM_PAYLOAD_START + PAYLOAD_SIZE )
26 ## Compute a range of ROM that can cached to speed up coreboot,
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 )
36 ## Set all of the defaults for an x86 architecture
42 ## Build the objects we have code for in this directory.
46 if HAVE_MP_TABLE object mptable.o end
47 if HAVE_PIRQ_TABLE object irq_tables.o end
53 depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
54 action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -nostdinc -nostdlib -fno-builtin -Wall -Os -c $(MAINBOARD)/cache_as_ram_auto.c -o $@"
60 depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
61 action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -nostdinc -nostdlib -fno-builtin -Wall -Os -c -S $(MAINBOARD)/cache_as_ram_auto.c -o $@"
62 action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
63 action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
69 ## Build our 16 bit and 32 bit coreboot entry code
72 mainboardinit cpu/x86/16bit/entry16.inc
73 ldscript /cpu/x86/16bit/entry16.lds
76 mainboardinit cpu/x86/32bit/entry32.inc
79 ldscript /cpu/x86/32bit/entry32.lds
83 ldscript /cpu/amd/car/cache_as_ram.lds
87 ## Build our reset vector (This is where coreboot is entered)
90 mainboardinit cpu/x86/16bit/reset16.inc
91 ldscript /cpu/x86/16bit/reset16.lds
93 mainboardinit cpu/x86/32bit/reset32.inc
94 ldscript /cpu/x86/32bit/reset32.lds
98 ## Include an id string (For safe flashing)
100 mainboardinit arch/i386/lib/id.inc
101 ldscript /arch/i386/lib/id.lds
104 ## Setup Cache-As-Ram
106 mainboardinit cpu/amd/car/cache_as_ram.inc
109 ### This is the early phase of coreboot startup
110 ### Things are delicate and we test to see if we should
111 ### failover to another image.
113 if USE_FALLBACK_IMAGE
114 ldscript /arch/i386/lib/failover.lds
118 ### O.k. We aren't just an intermediary anymore!
127 mainboardinit ./auto.inc
132 # FIXME: ROM for onboard VGA
134 chip northbridge/amd/amdk8/root_complex
135 device apic_cluster 0 on
136 chip cpu/amd/socket_940
139 chip cpu/amd/socket_940
144 device pci_domain 0 on
145 chip northbridge/amd/amdk8
146 device pci 18.0 on end # LDT 0
147 device pci 18.0 on # LDT 1
148 chip southbridge/amd/amd8131
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
156 device pci 0.0 on end
157 device pci 0.1 on end
158 device pci 0.2 on end
159 device pci 1.0 on end
162 chip superio/winbond/w83627hf
163 device pnp 2e.0 on # Floppy
168 device pnp 2e.1 off # Parallel Port
172 device pnp 2e.2 on # Com1
176 device pnp 2e.3 on # Com2
180 device pnp 2e.5 on # Keyboard
186 device pnp 2e.6 off # CIR
189 device pnp 2e.7 off # GAME_MIDI_GIPO1
194 device pnp 2e.8 off end # GPIO2
195 device pnp 2e.9 off end # GPIO3
196 device pnp 2e.a off end # ACPI
197 device pnp 2e.b on # HW Monitor
203 device pci 1.1 on end
204 device pci 1.2 on end
205 device pci 1.3 on end
206 device pci 1.5 on end
207 device pci 1.6 on end
210 device pci 18.0 on end # LDT2
211 device pci 18.1 on end
212 device pci 18.2 on end
213 device pci 18.3 on end
215 chip northbridge/amd/amdk8
216 device pci 19.0 on end
217 device pci 19.0 on end
218 device pci 19.0 on end
219 device pci 19.1 on end
220 device pci 19.2 on end
221 device pci 19.3 on end