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 default CONFIG_ROM_PAYLOAD = 1
10 ## Build the objects we have code for in this directory.
14 if CONFIG_HAVE_MP_TABLE object mptable.o end
15 if CONFIG_HAVE_PIRQ_TABLE object irq_tables.o end
20 depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
21 action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
27 depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
28 action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
29 action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
30 action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
35 ## Build our 16 bit and 32 bit coreboot entry code
37 if CONFIG_USE_FALLBACK_IMAGE
38 mainboardinit cpu/x86/16bit/entry16.inc
39 ldscript /cpu/x86/16bit/entry16.lds
42 mainboardinit cpu/x86/32bit/entry32.inc
45 ldscript /cpu/x86/32bit/entry32.lds
49 ldscript /cpu/amd/car/cache_as_ram.lds
53 ## Build our reset vector (This is where coreboot is entered)
55 if CONFIG_USE_FALLBACK_IMAGE
56 mainboardinit cpu/x86/16bit/reset16.inc
57 ldscript /cpu/x86/16bit/reset16.lds
59 mainboardinit cpu/x86/32bit/reset32.inc
60 ldscript /cpu/x86/32bit/reset32.lds
64 ## Include an id string (For safe flashing)
66 mainboardinit arch/i386/lib/id.inc
67 ldscript /arch/i386/lib/id.lds
72 mainboardinit cpu/amd/car/cache_as_ram.inc
75 ### This is the early phase of coreboot startup
76 ### Things are delicate and we test to see if we should
77 ### failover to another image.
79 if CONFIG_USE_FALLBACK_IMAGE
80 ldscript /arch/i386/lib/failover.lds
89 mainboardinit ./auto.inc
93 ## Include the secondary Configuration files
97 # sample config for tyan/s4880
98 chip northbridge/amd/amdk8/root_complex
99 device apic_cluster 0 on
100 chip cpu/amd/socket_940
105 device pci_domain 0 on
106 chip northbridge/amd/amdk8
107 device pci 18.0 on end # LDT0
108 device pci 18.0 on end # LDT1
109 device pci 18.0 on # northbridge
110 # devices on link 2, link 2 == LDT 2
111 chip southbridge/amd/amd8131
112 # the on/off keyword is mandatory
114 # chip drivers/lsi/53c1030
115 # device pci 4.0 on end
116 # device pci 4.1 on end
117 # register "fw_address" = "0xfff8c000"
119 chip drivers/pci/onboard
120 device pci 9.0 on end
121 device pci 9.1 on end
124 device pci 0.1 on end
125 device pci 1.0 on end
126 device pci 1.1 on end
128 chip southbridge/amd/amd8111
129 # this "device pci 0.0" is the parent the next one
132 device pci 0.0 on end
133 device pci 0.1 on end
134 device pci 0.2 off end
135 device pci 1.0 off end
136 chip drivers/pci/onboard
137 device pci 6.0 on end
138 register "rom_address" = "0xfff80000"
142 chip superio/winbond/w83627hf
143 device pnp 2e.0 on # Floppy
148 device pnp 2e.1 off # Parallel Port
152 device pnp 2e.2 on # Com1
156 device pnp 2e.3 off # Com2
160 device pnp 2e.5 on # Keyboard
166 device pnp 2e.6 off # CIR
169 device pnp 2e.7 off # GAME_MIDI_GIPO1
174 device pnp 2e.8 off end # GPIO2
175 device pnp 2e.9 off end # GPIO3
176 device pnp 2e.a off end # ACPI
177 device pnp 2e.b on # HW Monitor
183 device pci 1.1 on end
184 device pci 1.2 on end
185 device pci 1.3 on end
186 device pci 1.5 off end
187 device pci 1.6 off end
188 register "ide0_enable" = "1"
189 register "ide1_enable" = "1"
191 end # device pci 18.0
193 device pci 18.1 on end
194 device pci 18.2 on end
195 device pci 18.3 on end