1 ## CONFIG_XIP_ROM_SIZE must be a power of 2.
2 default CONFIG_XIP_ROM_SIZE = 128 * 1024
3 include /config/nofailovercalculation.lb
4 default CONFIG_XIP_ROM_BASE = 0xffffffff - CONFIG_XIP_ROM_SIZE + 1
7 ## Set all of the defaults for an x86 architecture
13 ## Build the objects we have code for in this directory.
17 if CONFIG_HAVE_PIRQ_TABLE object irq_tables.o end
21 if CONFIG_HAVE_ACPI_TABLES
31 depends "$(CONFIG_MAINBOARD)/failover.c ../romcc"
32 action "../romcc -E -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/failover.c -o $@"
35 makerule ./failover.inc
36 depends "$(CONFIG_MAINBOARD)/failover.c ../romcc"
37 action "../romcc -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/failover.c -o $@"
41 depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
42 action "../romcc -E -mcpu=c3 -O -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
45 depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
46 action "../romcc -mcpu=c3 -O -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
50 ## Build our 16 bit and 32 bit coreboot entry code
52 mainboardinit cpu/x86/16bit/entry16.inc
53 mainboardinit cpu/x86/32bit/entry32.inc
54 ldscript /cpu/x86/16bit/entry16.lds
55 ldscript /cpu/x86/32bit/entry32.lds
58 ## Build our reset vector (This is where coreboot is entered)
60 if CONFIG_USE_FALLBACK_IMAGE
61 mainboardinit cpu/x86/16bit/reset16.inc
62 ldscript /cpu/x86/16bit/reset16.lds
64 mainboardinit cpu/x86/32bit/reset32.inc
65 ldscript /cpu/x86/32bit/reset32.lds
68 ### Should this be in the northbridge code?
69 mainboardinit arch/i386/lib/cpu_reset.inc
72 ## Include an id string (For safe flashing)
74 mainboardinit arch/i386/lib/id.inc
75 ldscript /arch/i386/lib/id.lds
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.
82 if CONFIG_USE_FALLBACK_IMAGE
83 ldscript /arch/i386/lib/failover.lds
84 mainboardinit ./failover.inc
88 ### O.k. We aren't just an intermediary anymore!
94 mainboardinit cpu/x86/fpu/enable_fpu.inc
95 mainboardinit cpu/x86/mmx/enable_mmx.inc
96 mainboardinit ./auto.inc
97 mainboardinit cpu/x86/mmx/disable_mmx.inc
100 ## Include the secondary Configuration files
105 chip northbridge/via/vt8623
107 device apic_cluster 0 on
108 chip cpu/via/model_c3
113 device pci_domain 0 on
114 chip southbridge/via/vt8235
116 device pci 10.0 on end # USB 1.1
117 device pci 10.1 on end # USB 1.1
118 device pci 10.2 on end # USB 1.1
119 device pci 10.3 on end # USB 2
121 device pci 11.0 on # Southbridge
122 chip superio/via/vt1211
123 device pnp 2e.0 on # Floppy
128 device pnp 2e.1 on # Parallel Port
133 device pnp 2e.2 on # COM1
137 device pnp 2e.3 on # COM2
141 device pnp 2e.b on # HWM
148 device pci 11.1 on end # IDE
150 device pci 11.5 on end # AC97 Audio
151 device pci 11.6 off end # AC97 Modem
152 device pci 12.0 on end # Ethernet
154 # This is on the EPIA MII, not the M.
155 chip southbridge/ricoh/rl5c476
156 register "enable_cf" = "1"
157 device pci 0a.0 on end
158 device pci 0a.1 on end