3 uses USE_FALLBACK_IMAGE
4 uses HAVE_FALLBACK_BOOT
16 uses ROM_SECTION_OFFSET
17 uses CONFIG_ROM_STREAM
18 uses CONFIG_ROM_STREAM_START
27 ## ROM_SIZE is the size of boot ROM that this board will use.
28 default ROM_SIZE=262144
35 ## Build code for the fallback boot
37 default HAVE_FALLBACK_BOOT=1
40 ## Build code to reset the motherboard from linuxBIOS
42 default HAVE_HARD_RESET=1
45 ## Build code to export a programmable irq routing table
47 default HAVE_PIRQ_TABLE=1
48 default IRQ_SLOT_COUNT=7
51 ## Build code to export an x86 MP table
52 ## Useful for specifying IRQ routing values
54 default HAVE_MP_TABLE=1
57 ## Build code to export a CMOS option table
59 default HAVE_OPTION_TABLE=1
62 ## AMD Solo is a 1cpu board
65 default CONFIG_MAX_CPUS=1
68 ## Build code to setup a generic IOAPIC
70 default CONFIG_IOAPIC=1
73 ## Clean up the motherboard id strings
75 #default MAINBOARD_PART_NUMBER="SOLO7"
76 #default MAINBOARD_VENDOR="AMD"
79 ### LinuxBIOS layout values
82 ## ROM_IMAGE_SIZE is the amount of space to allow linuxBIOS to occupy.
83 default ROM_IMAGE_SIZE = 65536
86 ## Use a small 8K stack
88 default STACK_SIZE=0x2000
91 ## Use a small 16K heap
93 default HEAP_SIZE=0x4000
96 ## Only use the option table in a normal image
98 default USE_OPTION_TABLE = !USE_FALLBACK_IMAGE
101 ## Compute the location and size of where this firmware image
102 ## (linuxBIOS plus bootloader) will live in the boot rom chip.
104 if USE_FALLBACK_IMAGE
105 default ROM_SECTION_SIZE = FALLBACK_SIZE
106 default ROM_SECTION_OFFSET = ( ROM_SIZE - FALLBACK_SIZE )
108 default ROM_SECTION_SIZE = ( ROM_SIZE - FALLBACK_SIZE )
109 default ROM_SECTION_OFFSET = 0
113 ## Compute the start location and size size of
114 ## The linuxBIOS bootloader.
116 default PAYLOAD_SIZE = ( ROM_SECTION_SIZE - ROM_IMAGE_SIZE )
117 default CONFIG_ROM_STREAM_START = (0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1)
118 default CONFIG_ROM_STREAM = 1
121 ## Compute where this copy of linuxBIOS will start in the boot rom
123 default _ROMBASE = ( CONFIG_ROM_STREAM_START + PAYLOAD_SIZE )
126 ## Compute a range of ROM that can cached to speed up linuxBIOS,
129 ## XIP_ROM_SIZE must be a power of 2.
130 ## XIP_ROM_BASE must be a multiple of XIP_ROM_SIZE
132 default XIP_ROM_SIZE=65536
133 default XIP_ROM_BASE = ( _ROMBASE + ROM_IMAGE_SIZE - XIP_ROM_SIZE )
136 ## Set all of the defaults for an x86 architecture
143 ## Build the objects we have code for in this directory.
147 if HAVE_MP_TABLE object mptable.o end
148 if HAVE_PIRQ_TABLE object irq_tables.o end
154 makerule ./failover.E
155 depends "$(MAINBOARD)/failover.c"
156 action "$(CPP) -I$(TOP)/src $(ROMCCPPFLAGS) $(CPPFLAGS) $(MAINBOARD)/failover.c > ./failover.E"
159 makerule ./failover.inc
160 depends "./failover.E ./romcc"
161 action "./romcc -O -o failover.inc --label-prefix=failover ./failover.E"
165 depends "$(MAINBOARD)/auto.c"
166 action "$(CPP) -I$(TOP)/src $(ROMCCPPFLAGS) $(CPPFLAGS) $(MAINBOARD)/auto.c > ./auto.E"
169 depends "./auto.E ./romcc"
170 action "./romcc -mcpu=k8 -O ./auto.E > auto.inc"
174 ## Build our 16 bit and 32 bit linuxBIOS entry code
176 mainboardinit cpu/i386/entry16.inc
177 mainboardinit cpu/i386/entry32.inc
178 ldscript /cpu/i386/entry16.lds
179 ldscript /cpu/i386/entry32.lds
182 ## Build our reset vector (This is where linuxBIOS is entered)
184 if USE_FALLBACK_IMAGE
185 mainboardinit cpu/i386/reset16.inc
186 ldscript /cpu/i386/reset16.lds
188 mainboardinit cpu/i386/reset32.inc
189 ldscript /cpu/i386/reset32.lds
192 ### Should this be in the northbridge code?
193 mainboardinit arch/i386/lib/cpu_reset.inc
196 ## Include an id string (For safe flashing)
198 mainboardinit arch/i386/lib/id.inc
199 ldscript /arch/i386/lib/id.lds
204 mainboardinit cpu/k8/earlymtrr.inc
207 ### This is the early phase of linuxBIOS startup
208 ### Things are delicate and we test to see if we should
209 ### failover to another image.
211 if USE_FALLBACK_IMAGE
212 ldscript /arch/i386/lib/failover.lds
213 mainboardinit ./failover.inc
217 ### O.k. We aren't just an intermediary anymore!
223 mainboardinit cpu/k8/enable_mmx_sse.inc
224 mainboardinit ./auto.inc
225 mainboardinit cpu/k8/disable_mmx_sse.inc
228 ## Include the secondary Configuration files
233 northbridge amd/amdk8 "mc0"
240 southbridge amd/amd8151 "amd8151" link 0
244 southbridge amd/amd8111 "amd8111" link 0
256 superio NSC/pc87360 link 1
268 register "com1" = "{1, 0, 0x3f8, 4}"
269 register "lpt" = "{1}"
278 ## Include the old serial code for those few places that still need it.
280 mainboardinit pc80/serial.inc
281 mainboardinit arch/i386/lib/console.inc