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) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -o auto.o"
60 depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
61 action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall $(DEBUG_CFLAGS) -c -S -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
131 ## Include the secondary Configuration files
135 chip northbridge/amd/amdk8/root_complex
136 device pci_domain 0 on
137 chip northbridge/amd/amdk8
138 device pci 18.0 on # northbridge
139 # devices on link 0, link 0 == LDT 0
140 chip southbridge/amd/amd8131
141 # the on/off keyword is mandatory
142 device pci 0.0 on end
143 device pci 0.1 on end
144 device pci 1.0 on end
145 device pci 1.1 on end
147 chip southbridge/amd/amd8111
148 # this "device pci 0.0" is the parent the next one
151 device pci 0.0 on end
152 device pci 0.1 on end
153 device pci 0.2 on end
154 device pci 1.0 off end
157 chip superio/winbond/w83627thf
158 device pnp 2e.0 on end
159 device pnp 2e.1 on end
160 device pnp 2e.2 on end
161 device pnp 2e.3 on end
162 device pnp 2e.4 on end
163 device pnp 2e.5 on end
164 device pnp 2e.6 on end
165 device pnp 2e.7 on end
166 device pnp 2e.8 on end
167 device pnp 2e.9 on end
168 device pnp 2e.a on end
171 device pci 1.1 on end
172 device pci 1.2 on end
173 device pci 1.3 on end
174 device pci 1.5 off end
175 device pci 1.6 off end
178 device pci 18.0 on end # LDT1
179 device pci 18.0 on end # LDT2
180 device pci 18.1 on end
181 device pci 18.2 on end
182 device pci 18.3 on end
184 chip northbridge/amd/amdk8
185 device pci 19.0 on end
186 device pci 19.0 on end
187 device pci 19.0 on end
188 device pci 19.1 on end
189 device pci 19.2 on end
190 device pci 19.3 on end
193 device apic_cluster 0 on
194 chip cpu/amd/socket_940
197 chip cpu/amd/socket_940