1 ## we don't use CONFIG_USE_DCACHE_RAM by default
2 default CONFIG_USE_DCACHE_RAM=0
4 ## Compute the location and size of where this firmware image
5 ## (coreboot plus bootloader) will live in the boot rom chip.
7 default CONFIG_ROM_SIZE = 256 * 1024
8 default CONFIG_ROM_SECTION_SIZE = CONFIG_ROM_IMAGE_SIZE
9 default CONFIG_ROM_SECTION_OFFSET = CONFIG_ROM_SIZE - CONFIG_ROM_SECTION_SIZE
12 ## Compute where this copy of coreboot will start in the boot rom
14 default CONFIG_ROMBASE = (0xffffffff - CONFIG_ROM_SIZE + CONFIG_ROM_SECTION_OFFSET + 1)
17 ## Compute a range of ROM that can cached to speed up coreboot,
20 ## CONFIG_XIP_ROM_SIZE must be a power of 2.
21 ## CONFIG_XIP_ROM_BASE must be a multiple of CONFIG_XIP_ROM_SIZE
23 default CONFIG_XIP_ROM_SIZE=32*1024
24 default CONFIG_XIP_ROM_BASE = ( CONFIG_ROMBASE + CONFIG_ROM_IMAGE_SIZE - CONFIG_XIP_ROM_SIZE )
27 ## Set all of the defaults for an x86 architecture
33 ## Build the objects we have code for in this directory.
37 if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
41 ## ALL dependencies for CONFIG_USE_DCACHE_RAM go here.
42 ## That way, later, we can simply yank them if we wish.
43 ## We include the old-fashioned entry code in the ! CONFIG_USE_DCACHE_RAM case.
44 ## we do not use failover yet in this case. This is a work in progress.
45 if CONFIG_USE_DCACHE_RAM
48 mainboardinit arch/i386/init/entry.S
49 mainboardinit arch/i386/init/car.S
50 ldscript /arch/i386/init/ldscript.ld
52 ## The main code for the rom section is called rom.c
59 depends "$(CONFIG_MAINBOARD)/failover.c ../romcc"
60 action "../romcc -E -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/failover.c -o $@"
63 makerule ./failover.inc
64 depends "$(CONFIG_MAINBOARD)/failover.c ../romcc"
65 action "../romcc -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/failover.c -o $@"
69 depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
70 action "../romcc -E -mcpu=i386 -O -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
73 depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
74 action "../romcc -mcpu=i386 -O -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
78 ## Build our 16 bit and 32 bit coreboot entry code
80 mainboardinit cpu/x86/16bit/entry16.inc
81 mainboardinit cpu/x86/32bit/entry32.inc
82 ldscript /cpu/x86/16bit/entry16.lds
83 ldscript /cpu/x86/32bit/entry32.lds
86 ## Build our reset vector (This is where coreboot is entered)
88 mainboardinit cpu/x86/16bit/reset16.inc
89 ldscript /cpu/x86/16bit/reset16.lds
91 ### Should this be in the northbridge code?
92 mainboardinit arch/i386/lib/cpu_reset.inc
97 mainboardinit cpu/x86/fpu_enable.inc
98 mainboardinit ./auto.inc
100 ## the id string will be in cbfs. We will expect flashrom to parse cbfs for the idstring in future.
102 ## Include an id string (For safe flashing)
104 mainboardinit arch/i386/lib/id.inc
105 ldscript /arch/i386/lib/id.lds
108 ## end of CONFIG_USE_DCACHE_RAM bits.
113 ## Include the secondary Configuration files
118 chip cpu/emulation/qemu-x86
119 device pci_domain 0 on
120 device pci 0.0 on end
122 chip southbridge/intel/i82371eb # southbridge
123 device pci 01.0 on end
124 device pci 01.1 on end
125 register "ide0_enable" = "1"
126 register "ide1_enable" = "1"
129 # register "com1" = "{1}"
130 # register "com1" = "{1, 0, 0x3f8, 4}"