newconfig is no more.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5089 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
		@@ -1,73 +0,0 @@
 | 
			
		||||
uses CONFIG_SMP
 | 
			
		||||
uses CONFIG_PRECOMPRESSED_PAYLOAD
 | 
			
		||||
uses CONFIG_USE_INIT
 | 
			
		||||
uses CONFIG_HAVE_FAILOVER_BOOT
 | 
			
		||||
uses CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
uses CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
 | 
			
		||||
init init/crt0.S.lb
 | 
			
		||||
 | 
			
		||||
if CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
else
 | 
			
		||||
	initobject /src/lib/cbfs.o
 | 
			
		||||
	initobject /src/lib/lzma.o
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if CONFIG_HAVE_FAILOVER_BOOT
 | 
			
		||||
	if CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
		ldscript init/ldscript_failover.lb
 | 
			
		||||
	else
 | 
			
		||||
			ldscript init/ldscript_cbfs.lb
 | 
			
		||||
	end
 | 
			
		||||
else
 | 
			
		||||
	if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
		ldscript init/ldscript_fallback_cbfs.lb
 | 
			
		||||
	else
 | 
			
		||||
		ldscript init/ldscript_cbfs.lb
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makerule all
 | 
			
		||||
	depends	"coreboot.rom"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makerule floppy 
 | 
			
		||||
	depends	"all" 
 | 
			
		||||
	action	"mcopy -o coreboot.rom a:"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makerule nrv2b 
 | 
			
		||||
	depends	"$(TOP)/util/nrv2b/nrv2b.c"
 | 
			
		||||
	action	"$(HOSTCC) -O2 -DENCODE -DDECODE -DMAIN -DVERBOSE -DNDEBUG -DBITSIZE=32 -DENDIAN=0 $< -o $@"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
	makedefine COREBOOT_APC:=
 | 
			
		||||
	makedefine COREBOOT_RAM_ROM:=
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makerule crt0.S
 | 
			
		||||
	depends "$(CONFIG_CRT0)"
 | 
			
		||||
	action  "cp $< $@"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
addaction clean "rm -f romimage payload.*"
 | 
			
		||||
 | 
			
		||||
if CONFIG_USE_INIT
 | 
			
		||||
	makerule init.o
 | 
			
		||||
        	depends "$(INIT-OBJECTS)"
 | 
			
		||||
	        action  "$(LD) -melf_i386 -r -o init.pre.o $(INIT-OBJECTS)"
 | 
			
		||||
	        action  "$(CONFIG_OBJCOPY) --rename-section .text=.init.text --rename-section .data=.init.data --rename-section .rodata=.init.rodata --rename-section .rodata.str1.1=.init.rodata.str1.1 init.pre.o init.o"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
        makerule coreboot   
 | 
			
		||||
		depends	"crt0.o init.o $(COREBOOT_APC) $(COREBOOT_RAM_ROM) ldscript.ld"
 | 
			
		||||
		action	"$(CC) -nostdlib -nostartfiles -static -o $@ -T ldscript.ld crt0.o init.o"
 | 
			
		||||
		action	"$(CONFIG_CROSS_COMPILE)nm -n coreboot | sort > coreboot.map"
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
dir lib
 | 
			
		||||
dir boot
 | 
			
		||||
dir smp
 | 
			
		||||
@@ -1,22 +0,0 @@
 | 
			
		||||
uses CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_ACPI_TABLES
 | 
			
		||||
uses CONFIG_MULTIBOOT
 | 
			
		||||
uses CONFIG_HAVE_ACPI_RESUME
 | 
			
		||||
 | 
			
		||||
object boot.o
 | 
			
		||||
object coreboot_table.o
 | 
			
		||||
if CONFIG_MULTIBOOT
 | 
			
		||||
object multiboot.o
 | 
			
		||||
end
 | 
			
		||||
object tables.o
 | 
			
		||||
if CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
object pirq_routing.o 
 | 
			
		||||
end
 | 
			
		||||
if CONFIG_GENERATE_ACPI_TABLES
 | 
			
		||||
object acpi.o
 | 
			
		||||
object acpigen.o
 | 
			
		||||
if CONFIG_HAVE_ACPI_RESUME
 | 
			
		||||
object wakeup.S
 | 
			
		||||
end
 | 
			
		||||
end
 | 
			
		||||
object gdt.o
 | 
			
		||||
@@ -1,18 +0,0 @@
 | 
			
		||||
uses CONFIG_USE_INIT
 | 
			
		||||
uses CONFIG_USE_PRINTK_IN_CAR
 | 
			
		||||
uses CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
 | 
			
		||||
object c_start.S
 | 
			
		||||
object cpu.c
 | 
			
		||||
object pci_ops_conf1.c
 | 
			
		||||
object pci_ops_conf2.c
 | 
			
		||||
object pci_ops_mmconf.c
 | 
			
		||||
object pci_ops_auto.c
 | 
			
		||||
object exception.c
 | 
			
		||||
 | 
			
		||||
initobject printk_init.o
 | 
			
		||||
 | 
			
		||||
if CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
else
 | 
			
		||||
	initobject cbfs_and_run.o
 | 
			
		||||
end
 | 
			
		||||
@@ -1,10 +0,0 @@
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_IOAPIC
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
  object mpspec.o 
 | 
			
		||||
end
 | 
			
		||||
if CONFIG_IOAPIC
 | 
			
		||||
  object ioapic.o
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
@@ -1,2 +0,0 @@
 | 
			
		||||
object hardwaremain.o
 | 
			
		||||
object selfboot.o
 | 
			
		||||
@@ -1,214 +0,0 @@
 | 
			
		||||
## This is Architecture independant part of the makefile
 | 
			
		||||
 | 
			
		||||
uses CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_AP_CODE_IN_CAR
 | 
			
		||||
uses CONFIG_ASSEMBLER_DEBUG
 | 
			
		||||
 | 
			
		||||
makedefine CPP:= $(CC) -x assembler-with-cpp -DASSEMBLY -E
 | 
			
		||||
makedefine LIBGCC_FILE_NAME := $(shell $(CC) -print-libgcc-file-name)
 | 
			
		||||
makedefine GCC ?= $(CC)
 | 
			
		||||
makedefine GCC_INC_DIR := $(shell LC_ALL=C $(GCC) -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp")
 | 
			
		||||
 | 
			
		||||
makedefine CPPFLAGS := -I$(TOP)/src/include -I$(TOP)/src/arch/$(CONFIG_ARCH)/include -I$(GCC_INC_DIR) $(CPUFLAGS)
 | 
			
		||||
makedefine CFLAGS = $(CONFIG_CPU_OPT) $(DISTRO_CFLAGS) $(CPPFLAGS) -Os -nostdinc -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wno-trigraphs -Werror-implicit-function-declaration -Wstrict-aliasing -Wshadow -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer -pipe
 | 
			
		||||
 | 
			
		||||
if CONFIG_ASSEMBLER_DEBUG
 | 
			
		||||
makedefine DEBUG_CFLAGS := -g -dA -fverbose-asm
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makedefine HOSTCFLAGS:= -Os -Wall -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wno-trigraphs -Werror-implicit-function-declaration -Wstrict-aliasing -Wshadow
 | 
			
		||||
 | 
			
		||||
makerule ldscript.ld   
 | 
			
		||||
	depends	"ldoptions $(LDSUBSCRIPTS-1)" 
 | 
			
		||||
	action  "echo 'INCLUDE ldoptions' > $@; for file in $(LDSUBSCRIPTS-1) ; do echo /\* $$file \*/ >> $@; cat $$file >> $@ ; done"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
#makerule cpuflags   
 | 
			
		||||
#	depends	"Makefile.settings" 
 | 
			
		||||
#	action	"perl -e 'print \"CPUFLAGS :=\n\"; foreach $$var (split(\" \", $$ENV{VARIABLES})) { if (exists($$ENV{$$var})) { print \"CPUFLAGS += -D$$var\" . (length($$ENV{$$var})?\"=\x27$$ENV{$$var}\x27\":\"\") .\"\n\"} else { print \"CPUFLAGS += -U$$var\n\"} }' > $@"
 | 
			
		||||
#end
 | 
			
		||||
 | 
			
		||||
#makerule ldoptions   
 | 
			
		||||
#	depends	"Makefile.settings" 
 | 
			
		||||
#	action	"perl -e 'foreach $$var (split(\" \", $$ENV{VARIABLES})) { if ($$ENV{$$var} =~ m/^(0x[0-9a-fA-F]+|0[0-7]+|[0-9]+)$$/) { print \"$$var = $$ENV{$$var};\n\"; }}' > $@"
 | 
			
		||||
#end
 | 
			
		||||
 | 
			
		||||
makerule coreboot.rom
 | 
			
		||||
	depends	"coreboot" 
 | 
			
		||||
	action	"$(CONFIG_OBJCOPY) -O binary coreboot coreboot.rom"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makerule coreboot.a
 | 
			
		||||
        depends "$(OBJECTS)"
 | 
			
		||||
        action  "rm -f coreboot.a"
 | 
			
		||||
        action  "$(CONFIG_CROSS_COMPILE)ar cr coreboot.a $(OBJECTS)"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
makerule coreboot_ram.o
 | 
			
		||||
	depends	"src/arch/$(CONFIG_ARCH)/lib/c_start.o $(DRIVER) coreboot.a $(LIBGCC_FILE_NAME)" 
 | 
			
		||||
	action	"$(CC) $(DISTRO_LFLAGS) -nostdlib -r -o $@ src/arch/$(CONFIG_ARCH)/lib/c_start.o $(DRIVER) -Wl,--wrap,__divdi3 -Wl,--wrap,__udivdi3 -Wl,--wrap,__moddi3 -Wl,--wrap,__umoddi3 -Wl,-\( coreboot.a $(LIBGCC_FILE_NAME) -Wl,-\)"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makerule coreboot_ram
 | 
			
		||||
	depends	"coreboot_ram.o $(TOP)/src/config/coreboot_ram.ld ldoptions" 
 | 
			
		||||
	action	"$(CC) $(DISTRO_LFLAGS) -nostdlib -nostartfiles -static -o $@ -T $(TOP)/src/config/coreboot_ram.ld coreboot_ram.o"
 | 
			
		||||
	action 	"$(CONFIG_CROSS_COMPILE)nm -n coreboot_ram | sort > coreboot_ram.map"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## By default compress the part of coreboot that runs from RAM
 | 
			
		||||
##
 | 
			
		||||
makedefine COREBOOT_RAM-$(CONFIG_COMPRESS):=coreboot_ram.nrv2b
 | 
			
		||||
makedefine COREBOOT_RAM-$(CONFIG_UNCOMPRESSED):=coreboot_ram.bin
 | 
			
		||||
 | 
			
		||||
makerule coreboot_ram.bin 
 | 
			
		||||
	depends	"coreboot_ram" 
 | 
			
		||||
	action	"$(CONFIG_OBJCOPY) -O binary $< $@"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makerule coreboot_ram.nrv2b 
 | 
			
		||||
	depends	"coreboot_ram.bin nrv2b" 
 | 
			
		||||
	action	"./nrv2b e $< $@"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makerule coreboot_ram.rom
 | 
			
		||||
	depends	"$(COREBOOT_RAM-1)" 
 | 
			
		||||
	action	"cp $(COREBOOT_RAM-1) coreboot_ram.rom"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makedefine COREBOOT_APC:=
 | 
			
		||||
 | 
			
		||||
if CONFIG_AP_CODE_IN_CAR
 | 
			
		||||
	#for ap code in cache
 | 
			
		||||
 | 
			
		||||
	makerule coreboot_apc.a
 | 
			
		||||
		depends "apc_auto.o"
 | 
			
		||||
		action  "rm -f coreboot_apc.a"
 | 
			
		||||
		action  "$(CONFIG_CROSS_COMPILE)ar cr coreboot_apc.a apc_auto.o"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	makerule coreboot_apc.o
 | 
			
		||||
		depends "src/arch/$(CONFIG_ARCH)/lib/c_start.o coreboot_apc.a"
 | 
			
		||||
        	action  "$(CC) $(DISTRO_LFLAGS) -nostdlib -r -o $@ $^"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	makerule coreboot_apc
 | 
			
		||||
		depends "coreboot_apc.o $(TOP)/src/config/coreboot_apc.ld ldoptions"
 | 
			
		||||
		action  "$(CC) $(DISTRO_LFLAGS) -nostdlib -nostartfiles -static -o $@ -T $(TOP)/src/config/coreboot_apc.ld coreboot_apc.o"
 | 
			
		||||
		action  "$(CONFIG_CROSS_COMPILE)nm -n coreboot_apc | sort > coreboot_apc.map"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	##
 | 
			
		||||
	## By default compress the part of coreboot that runs from cache as ram
 | 
			
		||||
	##
 | 
			
		||||
	makedefine COREBOOT_APC-$(CONFIG_COMPRESS):=coreboot_apc.nrv2b
 | 
			
		||||
	makedefine COREBOOT_APC-$(CONFIG_UNCOMPRESSED):=coreboot_apc.bin
 | 
			
		||||
 | 
			
		||||
	makerule coreboot_apc.bin
 | 
			
		||||
		depends "coreboot_apc"
 | 
			
		||||
		action  "$(CONFIG_OBJCOPY) -O binary $< $@"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	makerule coreboot_apc.nrv2b
 | 
			
		||||
        depends "coreboot_apc.bin nrv2b"
 | 
			
		||||
        action  "./nrv2b e $< $@"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	makerule coreboot_apc.rom
 | 
			
		||||
		depends "$(COREBOOT_APC-1)"
 | 
			
		||||
		action  "cp $(COREBOOT_APC-1) coreboot_apc.rom"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	makedefine COREBOOT_APC:=coreboot_apc.rom
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makedefine COREBOOT_RAM_ROM:=coreboot_ram.rom
 | 
			
		||||
 | 
			
		||||
makerule coreboot   
 | 
			
		||||
	depends	"crt0.o $(INIT-OBJECTS) $(COREBOOT_APC) $(COREBOOT_RAM_ROM) ldscript.ld"
 | 
			
		||||
	action	"$(CC) $(DISTRO_LFLAGS) -nostdlib -nostartfiles -static -o $@ -T ldscript.ld crt0.o $(INIT-OBJECTS)"
 | 
			
		||||
	action	"$(CONFIG_CROSS_COMPILE)nm -n coreboot | sort > coreboot.map"
 | 
			
		||||
	action 	"$(CONFIG_CROSS_COMPILE)objdump -dS coreboot > coreboot.disasm"	
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
# Force crt0.s (which has build time version code in it to rebuild every time)
 | 
			
		||||
makedefine .PHONY : crt0.s
 | 
			
		||||
makerule crt0.s   
 | 
			
		||||
	depends	"crt0.S $(CRT0_INCLUDES)" 
 | 
			
		||||
	action	"$(CPP) $(CPPFLAGS) -I. -I$(TOP)/src  $< > $@.new && mv $@.new $@"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
# generate an assembly listing via -a switch.
 | 
			
		||||
makerule crt0.o  
 | 
			
		||||
	depends	"crt0.s" 
 | 
			
		||||
	action	"$(CC) -Wa,-acdlns -c $(CONFIG_CPU_OPT) -o $@ $< >crt0.disasm"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makerule etags   
 | 
			
		||||
	depends	"$(SOURCES)" 
 | 
			
		||||
	action	"etags $(SOURCES)"
 | 
			
		||||
end
 | 
			
		||||
makerule tags   
 | 
			
		||||
	depends	"$(SOURCES)" 
 | 
			
		||||
	action	"ctags $(SOURCES)"
 | 
			
		||||
end
 | 
			
		||||
makerule corebootDoc.config
 | 
			
		||||
	depends	"$(TOP)/src/config/corebootDoc.config" 
 | 
			
		||||
	action "cat $(TOP)/src/config/corebootDoc.config > corebootDoc.config"
 | 
			
		||||
        action "echo 'INPUT=$(SOURCES)' >> corebootDoc.config"
 | 
			
		||||
end
 | 
			
		||||
makerule documentation   
 | 
			
		||||
	depends	"corebootDoc.config"
 | 
			
		||||
	action	"doxygen corebootDoc.config"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
# Yes, the rule doesn't seem to make sense, but multiple images could try to
 | 
			
		||||
# create a romcc binary at the same time, clobbering each other.
 | 
			
		||||
# Our makefile architecture won't allow us to easily have the romcc target
 | 
			
		||||
# in the main makefile, so keep it here and move the race condition winner
 | 
			
		||||
# in place. That way, romcc may get compiled twice, but the binary will always
 | 
			
		||||
# be in a correct and valid state if it exists because the move is atomic.
 | 
			
		||||
makerule ../romcc   
 | 
			
		||||
	depends	"$(TOP)/util/romcc/romcc.c" 
 | 
			
		||||
	action	"$(HOSTCC) -g $(HOSTCFLAGS) $< -o romcc.tmpfile"
 | 
			
		||||
	action	"mv romcc.tmpfile $@"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makerule build_opt_tbl   
 | 
			
		||||
	depends	"$(TOP)/util/options/build_opt_tbl.c $(TOP)/src/include/pc80/mc146818rtc.h $(TOP)/src/include/boot/coreboot_tables.h Makefile.settings Makefile"
 | 
			
		||||
	action	"$(HOSTCC) $(HOSTCFLAGS) $(CPUFLAGS) $< -o $@" 
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makerule option_table.h option_table.c
 | 
			
		||||
	depends	"build_opt_tbl $(CONFIG_MAINBOARD)/cmos.layout" 
 | 
			
		||||
	action	"./build_opt_tbl --config $(CONFIG_MAINBOARD)/cmos.layout --header option_table.h --option option_table.c"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
object ./option_table.o 
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makerule clean 
 | 
			
		||||
	action  "rm -f $(OBJECTS)"
 | 
			
		||||
	action  "rm -f $(DRIVER)"
 | 
			
		||||
	action	"rm -f coreboot.* *~"
 | 
			
		||||
	action	"rm -f coreboot"
 | 
			
		||||
	action	"rm -f ldscript.ld"
 | 
			
		||||
	action	"rm -f a.out *.s *.l *.o *.E *.inc"
 | 
			
		||||
	action	"rm -f TAGS tags romcc*"
 | 
			
		||||
	action	"rm -f docipl chips.c *chip.c coreboot_apc* coreboot_ram* coreboot_pay*"
 | 
			
		||||
	action	"rm -f build_opt_tbl* nrv2b* option_table.c option_table.h crt0.S crt0.disasm"
 | 
			
		||||
	action	"rm -f smm smm.elf smm.map smm_bin.c"
 | 
			
		||||
	action	"rm -f dsdt.aml dsdt.c"
 | 
			
		||||
	action	"rm -f payload"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
# do standard config files that the user need not specify
 | 
			
		||||
# for now, this is just 'lib', but it may be more later. 
 | 
			
		||||
dir /lib
 | 
			
		||||
dir /console
 | 
			
		||||
dir /devices
 | 
			
		||||
dir /pc80
 | 
			
		||||
dir /boot
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -1,31 +0,0 @@
 | 
			
		||||
uses CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
uses CONFIG_USBDEBUG_DIRECT
 | 
			
		||||
uses CONFIG_CONSOLE_VGA
 | 
			
		||||
uses CONFIG_CONSOLE_BTEXT
 | 
			
		||||
uses CONFIG_CONSOLE_LOGBUF
 | 
			
		||||
uses CONFIG_USE_INIT
 | 
			
		||||
uses CONFIG_USE_PRINTK_IN_CAR
 | 
			
		||||
 | 
			
		||||
object printk.o
 | 
			
		||||
if CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
	driver uart8250_console.o
 | 
			
		||||
end
 | 
			
		||||
if CONFIG_USBDEBUG_DIRECT
 | 
			
		||||
	driver usbdebug_direct_console.o
 | 
			
		||||
end
 | 
			
		||||
if CONFIG_CONSOLE_VGA
 | 
			
		||||
	driver vga_console.o
 | 
			
		||||
end
 | 
			
		||||
if CONFIG_CONSOLE_BTEXT
 | 
			
		||||
	driver btext_console.o
 | 
			
		||||
	driver font-8x16.o
 | 
			
		||||
end
 | 
			
		||||
if CONFIG_CONSOLE_LOGBUF
 | 
			
		||||
	driver logbuf_console.o
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
object console.o
 | 
			
		||||
object vtxprintf.o
 | 
			
		||||
object vsprintf.o
 | 
			
		||||
 | 
			
		||||
initobject vtxprintf.o
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
object amd_sibling.o
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
object microcode.o
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
#
 | 
			
		||||
# This file is part of the coreboot project.
 | 
			
		||||
#
 | 
			
		||||
# Copyright (C) 2007 Advanced Micro Devices, Inc.
 | 
			
		||||
#
 | 
			
		||||
# This program is free software; you can redistribute it and/or modify
 | 
			
		||||
# it under the terms of the GNU General Public License as published by
 | 
			
		||||
# the Free Software Foundation; version 2 of the License.
 | 
			
		||||
#
 | 
			
		||||
# This program is distributed in the hope that it will be useful,
 | 
			
		||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
# GNU General Public License for more details.
 | 
			
		||||
#
 | 
			
		||||
# You should have received a copy of the GNU General Public License
 | 
			
		||||
# along with this program; if not, write to the Free Software
 | 
			
		||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
uses CONFIG_HAVE_INIT_TIMER
 | 
			
		||||
uses CONFIG_HAVE_MOVNTI
 | 
			
		||||
uses CONFIG_CPU_ADDR_BITS
 | 
			
		||||
 | 
			
		||||
default CONFIG_HAVE_INIT_TIMER=1
 | 
			
		||||
default CONFIG_HAVE_MOVNTI=1
 | 
			
		||||
default CONFIG_CPU_ADDR_BITS=48
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/pae
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/amd/mtrr
 | 
			
		||||
dir /cpu/amd/quadcore
 | 
			
		||||
dir /cpu/amd/microcode
 | 
			
		||||
driver model_10xxx_init.o
 | 
			
		||||
object update_microcode.o
 | 
			
		||||
object apic_timer.o
 | 
			
		||||
object processor_name.o
 | 
			
		||||
@@ -1,20 +0,0 @@
 | 
			
		||||
uses CONFIG_HAVE_INIT_TIMER
 | 
			
		||||
uses CONFIG_HAVE_MOVNTI
 | 
			
		||||
uses CONFIG_CPU_ADDR_BITS
 | 
			
		||||
 | 
			
		||||
default CONFIG_HAVE_INIT_TIMER=1
 | 
			
		||||
default CONFIG_HAVE_MOVNTI=1
 | 
			
		||||
default CONFIG_CPU_ADDR_BITS=40
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/pae
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/amd/mtrr
 | 
			
		||||
dir /cpu/amd/dualcore
 | 
			
		||||
dir /cpu/amd/microcode
 | 
			
		||||
driver model_fxx_init.o
 | 
			
		||||
object apic_timer.o
 | 
			
		||||
object model_fxx_update_microcode.o
 | 
			
		||||
object processor_name.o
 | 
			
		||||
object powernow_acpi.o
 | 
			
		||||
@@ -1,5 +0,0 @@
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
driver model_gx1_init.o
 | 
			
		||||
@@ -1,7 +0,0 @@
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
driver model_gx2_init.o
 | 
			
		||||
object cpubug.o
 | 
			
		||||
object vsmsetup.o
 | 
			
		||||
@@ -1,7 +0,0 @@
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
driver model_lx_init.o
 | 
			
		||||
object cpubug.o
 | 
			
		||||
object vsmsetup.o
 | 
			
		||||
@@ -1,2 +0,0 @@
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
object amd_mtrr.o
 | 
			
		||||
@@ -1,20 +0,0 @@
 | 
			
		||||
#
 | 
			
		||||
# This file is part of the coreboot project.
 | 
			
		||||
#
 | 
			
		||||
# Copyright (C) 2007 Advanced Micro Devices, Inc.
 | 
			
		||||
#
 | 
			
		||||
# This program is free software; you can redistribute it and/or modify
 | 
			
		||||
# it under the terms of the GNU General Public License as published by
 | 
			
		||||
# the Free Software Foundation; version 2 of the License.
 | 
			
		||||
#
 | 
			
		||||
# This program is distributed in the hope that it will be useful,
 | 
			
		||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
# GNU General Public License for more details.
 | 
			
		||||
#
 | 
			
		||||
# You should have received a copy of the GNU General Public License
 | 
			
		||||
# along with this program; if not, write to the Free Software
 | 
			
		||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
object amd_sibling.o
 | 
			
		||||
@@ -1,3 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object sc520.o
 | 
			
		||||
 | 
			
		||||
@@ -1,4 +0,0 @@
 | 
			
		||||
 | 
			
		||||
config chip.h
 | 
			
		||||
object socket_754.o
 | 
			
		||||
dir /cpu/amd/model_fxx
 | 
			
		||||
@@ -1,5 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
object socket_939.o
 | 
			
		||||
 | 
			
		||||
dir /cpu/amd/model_fxx
 | 
			
		||||
@@ -1,5 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
object socket_940.o
 | 
			
		||||
 | 
			
		||||
dir /cpu/amd/model_fxx
 | 
			
		||||
@@ -1,16 +0,0 @@
 | 
			
		||||
uses CONFIG_K8_REV_F_SUPPORT
 | 
			
		||||
uses CONFIG_K8_HT_FREQ_1G_SUPPORT
 | 
			
		||||
uses CONFIG_DIMM_SUPPORT
 | 
			
		||||
uses CONFIG_CPU_SOCKET_TYPE
 | 
			
		||||
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
default CONFIG_K8_REV_F_SUPPORT=1
 | 
			
		||||
#Opteron K8 1G HT Support
 | 
			
		||||
default CONFIG_K8_HT_FREQ_1G_SUPPORT=1
 | 
			
		||||
default CONFIG_DIMM_SUPPORT=0x0004  #DDR2 unbuffered
 | 
			
		||||
default CONFIG_CPU_SOCKET_TYPE=0x11
 | 
			
		||||
 | 
			
		||||
object socket_AM2.o
 | 
			
		||||
 | 
			
		||||
dir /cpu/amd/model_fxx
 | 
			
		||||
@@ -1,51 +0,0 @@
 | 
			
		||||
#
 | 
			
		||||
# This file is part of the coreboot project.
 | 
			
		||||
#
 | 
			
		||||
# Copyright (C) 2007 Advanced Micro Devices, Inc.
 | 
			
		||||
#
 | 
			
		||||
# This program is free software; you can redistribute it and/or modify
 | 
			
		||||
# it under the terms of the GNU General Public License as published by
 | 
			
		||||
# the Free Software Foundation; version 2 of the License.
 | 
			
		||||
#
 | 
			
		||||
# This program is distributed in the hope that it will be useful,
 | 
			
		||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
 | 
			
		||||
# GNU General Public License for more details.
 | 
			
		||||
#
 | 
			
		||||
# You should have received a copy of the GNU General Public License
 | 
			
		||||
# along with this program; if not, write to the Free Software
 | 
			
		||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
uses CONFIG_PCI_IO_CFG_EXT
 | 
			
		||||
uses CONFIG_MMCONF_SUPPORT
 | 
			
		||||
uses CONFIG_HT3_SUPPORT
 | 
			
		||||
uses CONFIG_EXT_RT_TBL_SUPPORT
 | 
			
		||||
uses CONFIG_EXT_CONF_SUPPORT
 | 
			
		||||
uses CONFIG_DIMM_SUPPORT
 | 
			
		||||
uses CONFIG_CPU_SOCKET_TYPE
 | 
			
		||||
uses CONFIG_CBB
 | 
			
		||||
uses CONFIG_CDB
 | 
			
		||||
uses CONFIG_PCI_BUS_SEGN_BITS
 | 
			
		||||
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
default CONFIG_PCI_IO_CFG_EXT=1
 | 
			
		||||
 | 
			
		||||
default CONFIG_HT3_SUPPORT=1
 | 
			
		||||
default CONFIG_EXT_RT_TBL_SUPPORT=0
 | 
			
		||||
default CONFIG_EXT_CONF_SUPPORT=0
 | 
			
		||||
default CONFIG_DIMM_SUPPORT=0x0104  #DDR2 and REG
 | 
			
		||||
default CONFIG_CPU_SOCKET_TYPE=0x11
 | 
			
		||||
 | 
			
		||||
if CONFIG_EXT_RT_TBL_SUPPORT
 | 
			
		||||
	default CONFIG_CBB=0xff
 | 
			
		||||
	default CONFIG_CDB=0
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
#default CONFIG_MMCONF_SUPPORT=1
 | 
			
		||||
#default CONFIG_MMCONF_SUPPORT_DEFAULT=1
 | 
			
		||||
 | 
			
		||||
object socket_AM2r2.o
 | 
			
		||||
 | 
			
		||||
dir /cpu/amd/model_10xxx
 | 
			
		||||
@@ -1,16 +0,0 @@
 | 
			
		||||
uses CONFIG_K8_REV_F_SUPPORT
 | 
			
		||||
uses CONFIG_K8_HT_FREQ_1G_SUPPORT
 | 
			
		||||
uses CONFIG_DIMM_SUPPORT
 | 
			
		||||
uses CONFIG_CPU_SOCKET_TYPE
 | 
			
		||||
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
default CONFIG_K8_REV_F_SUPPORT=1
 | 
			
		||||
#Opteron K8 1G HT Support
 | 
			
		||||
default CONFIG_K8_HT_FREQ_1G_SUPPORT=1
 | 
			
		||||
default CONFIG_DIMM_SUPPORT=0x0104  #DDR2 and REG
 | 
			
		||||
default CONFIG_CPU_SOCKET_TYPE=0x10
 | 
			
		||||
 | 
			
		||||
object socket_F.o
 | 
			
		||||
 | 
			
		||||
dir /cpu/amd/model_fxx
 | 
			
		||||
@@ -1,51 +0,0 @@
 | 
			
		||||
#
 | 
			
		||||
# This file is part of the coreboot project.
 | 
			
		||||
#
 | 
			
		||||
# Copyright (C) 2007 Advanced Micro Devices, Inc.
 | 
			
		||||
#
 | 
			
		||||
# This program is free software; you can redistribute it and/or modify
 | 
			
		||||
# it under the terms of the GNU General Public License as published by
 | 
			
		||||
# the Free Software Foundation; version 2 of the License.
 | 
			
		||||
#
 | 
			
		||||
# This program is distributed in the hope that it will be useful,
 | 
			
		||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
 | 
			
		||||
# GNU General Public License for more details.
 | 
			
		||||
#
 | 
			
		||||
# You should have received a copy of the GNU General Public License
 | 
			
		||||
# along with this program; if not, write to the Free Software
 | 
			
		||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
uses CONFIG_PCI_IO_CFG_EXT
 | 
			
		||||
uses CONFIG_MMCONF_SUPPORT
 | 
			
		||||
uses CONFIG_HT3_SUPPORT
 | 
			
		||||
uses CONFIG_EXT_RT_TBL_SUPPORT
 | 
			
		||||
uses CONFIG_EXT_CONF_SUPPORT
 | 
			
		||||
uses CONFIG_DIMM_SUPPORT
 | 
			
		||||
uses CONFIG_CPU_SOCKET_TYPE
 | 
			
		||||
uses CONFIG_CBB
 | 
			
		||||
uses CONFIG_CDB
 | 
			
		||||
uses CONFIG_PCI_BUS_SEGN_BITS
 | 
			
		||||
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
default CONFIG_PCI_IO_CFG_EXT=1
 | 
			
		||||
 | 
			
		||||
default CONFIG_HT3_SUPPORT=1
 | 
			
		||||
default CONFIG_EXT_RT_TBL_SUPPORT=0
 | 
			
		||||
default CONFIG_EXT_CONF_SUPPORT=0
 | 
			
		||||
default CONFIG_DIMM_SUPPORT=0x0104  #DDR2 and REG
 | 
			
		||||
default CONFIG_CPU_SOCKET_TYPE=0x10
 | 
			
		||||
 | 
			
		||||
if CONFIG_EXT_RT_TBL_SUPPORT
 | 
			
		||||
	default CONFIG_CBB=0xff
 | 
			
		||||
	default CONFIG_CDB=0
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
#default CONFIG_MMCONF_SUPPORT=1
 | 
			
		||||
#default CONFIG_MMCONF_SUPPORT_DEFAULT=1
 | 
			
		||||
 | 
			
		||||
object socket_F_1207.o
 | 
			
		||||
 | 
			
		||||
dir /cpu/amd/model_10xxx
 | 
			
		||||
@@ -1,16 +0,0 @@
 | 
			
		||||
uses CONFIG_K8_REV_F_SUPPORT
 | 
			
		||||
uses CONFIG_K8_HT_FREQ_1G_SUPPORT
 | 
			
		||||
uses CONFIG_DIMM_SUPPORT
 | 
			
		||||
uses CONFIG_CPU_SOCKET_TYPE
 | 
			
		||||
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
default CONFIG_K8_REV_F_SUPPORT=1
 | 
			
		||||
#Opteron K8 1G HT Support
 | 
			
		||||
default CONFIG_K8_HT_FREQ_1G_SUPPORT=1
 | 
			
		||||
default CONFIG_DIMM_SUPPORT=0x0204  #DDR2 and REG, S1G1
 | 
			
		||||
default CONFIG_CPU_SOCKET_TYPE=0x12
 | 
			
		||||
 | 
			
		||||
object socket_S1G1.o
 | 
			
		||||
 | 
			
		||||
dir /cpu/amd/model_fxx
 | 
			
		||||
@@ -1,2 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object northbridge.o
 | 
			
		||||
@@ -1,3 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object bga956.o
 | 
			
		||||
dir /cpu/intel/model_1067x
 | 
			
		||||
@@ -1,28 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2008 Arastra, Inc.
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License version 2 as
 | 
			
		||||
## published by the Free Software Foundation.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
config chip.h
 | 
			
		||||
object ep80579.o
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
driver ep80579_init.o
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
object intel_sibling.o
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
object microcode.o
 | 
			
		||||
@@ -1,11 +0,0 @@
 | 
			
		||||
uses CONFIG_HAVE_MOVNTI
 | 
			
		||||
default CONFIG_HAVE_MOVNTI=1
 | 
			
		||||
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
dir /cpu/intel/hyperthreading
 | 
			
		||||
driver model_1067x_init.o
 | 
			
		||||
@@ -1,31 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2009 coresystems GmbH
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; version 2 of the License.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
uses CONFIG_HAVE_MOVNTI
 | 
			
		||||
default CONFIG_HAVE_MOVNTI=1
 | 
			
		||||
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
dir /cpu/intel/hyperthreading
 | 
			
		||||
dir /cpu/intel/speedstep
 | 
			
		||||
driver model_106cx_init.o
 | 
			
		||||
@@ -1,7 +0,0 @@
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
driver model_69x_init.o
 | 
			
		||||
@@ -1,7 +0,0 @@
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
driver model_6dx_init.o
 | 
			
		||||
@@ -1,12 +0,0 @@
 | 
			
		||||
uses CONFIG_HAVE_MOVNTI
 | 
			
		||||
default CONFIG_HAVE_MOVNTI=1
 | 
			
		||||
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
dir /cpu/intel/hyperthreading
 | 
			
		||||
dir /cpu/intel/speedstep
 | 
			
		||||
driver model_6ex_init.o
 | 
			
		||||
@@ -1,11 +0,0 @@
 | 
			
		||||
uses CONFIG_HAVE_MOVNTI
 | 
			
		||||
default CONFIG_HAVE_MOVNTI=1
 | 
			
		||||
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
dir /cpu/intel/hyperthreading
 | 
			
		||||
driver model_6fx_init.o
 | 
			
		||||
@@ -1,7 +0,0 @@
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
driver model_6xx_init.o
 | 
			
		||||
@@ -1,9 +0,0 @@
 | 
			
		||||
uses CONFIG_HAVE_MOVNTI
 | 
			
		||||
default CONFIG_HAVE_MOVNTI=1
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
driver model_f0x_init.o
 | 
			
		||||
@@ -1,9 +0,0 @@
 | 
			
		||||
uses CONFIG_HAVE_MOVNTI
 | 
			
		||||
default CONFIG_HAVE_MOVNTI=1
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
driver model_f1x_init.o
 | 
			
		||||
@@ -1,10 +0,0 @@
 | 
			
		||||
uses CONFIG_HAVE_MOVNTI
 | 
			
		||||
default CONFIG_HAVE_MOVNTI=1
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
dir /cpu/intel/hyperthreading
 | 
			
		||||
driver model_f2x_init.o
 | 
			
		||||
@@ -1,10 +0,0 @@
 | 
			
		||||
uses CONFIG_HAVE_MOVNTI
 | 
			
		||||
default CONFIG_HAVE_MOVNTI=1
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
dir /cpu/intel/hyperthreading
 | 
			
		||||
driver model_f3x_init.o
 | 
			
		||||
@@ -1,10 +0,0 @@
 | 
			
		||||
uses CONFIG_HAVE_MOVNTI
 | 
			
		||||
default CONFIG_HAVE_MOVNTI=1
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
dir /cpu/intel/hyperthreading
 | 
			
		||||
driver model_f4x_init.o
 | 
			
		||||
@@ -1,3 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object slot_2.o
 | 
			
		||||
dir /cpu/intel/model_6xx
 | 
			
		||||
@@ -1,22 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2009 coresystems GmbH
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; version 2 of the License.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
config chip.h
 | 
			
		||||
object socket_441.o
 | 
			
		||||
dir /cpu/intel/model_106cx
 | 
			
		||||
@@ -1,3 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object socket_PGA370.o
 | 
			
		||||
dir /cpu/intel/model_6xx
 | 
			
		||||
@@ -1,6 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object socket_mFCPGA478.o
 | 
			
		||||
dir /cpu/intel/model_69x
 | 
			
		||||
dir /cpu/intel/model_6dx
 | 
			
		||||
dir /cpu/intel/model_6ex
 | 
			
		||||
dir /cpu/intel/model_6fx
 | 
			
		||||
@@ -1,4 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object socket_mPGA478.o
 | 
			
		||||
dir /cpu/intel/model_69x
 | 
			
		||||
dir /cpu/intel/model_6dx
 | 
			
		||||
@@ -1,4 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object socket_mPGA479M.o
 | 
			
		||||
dir /cpu/intel/model_69x
 | 
			
		||||
dir /cpu/intel/model_6dx
 | 
			
		||||
@@ -1,6 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object socket_mPGA603_400Mhz.o
 | 
			
		||||
dir /cpu/intel/model_f0x
 | 
			
		||||
dir /cpu/intel/model_f1x
 | 
			
		||||
dir /cpu/intel/model_f2x
 | 
			
		||||
 | 
			
		||||
@@ -1,5 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object socket_mPGA604.o
 | 
			
		||||
dir /cpu/intel/model_f2x
 | 
			
		||||
dir /cpu/intel/model_f3x
 | 
			
		||||
dir /cpu/intel/model_f4x
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
object acpi.o
 | 
			
		||||
@@ -1,28 +0,0 @@
 | 
			
		||||
#
 | 
			
		||||
# This file is part of the coreboot project.
 | 
			
		||||
# 
 | 
			
		||||
# (C) 2007-2008 coresystems GmbH
 | 
			
		||||
#
 | 
			
		||||
# This program is free software; you can redistribute it and/or
 | 
			
		||||
# modify it under the terms of the GNU General Public License as
 | 
			
		||||
# published by the Free Software Foundation; either version 2 of
 | 
			
		||||
# the License, or (at your option) any later version.
 | 
			
		||||
#
 | 
			
		||||
# This program is distributed in the hope that it will be useful,
 | 
			
		||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
# GNU General Public License for more details.
 | 
			
		||||
#
 | 
			
		||||
# You should have received a copy of the GNU General Public License
 | 
			
		||||
# along with this program; if not, write to the Free Software
 | 
			
		||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
 | 
			
		||||
# MA 02110-1301 USA
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
driver model_c3_init.o
 | 
			
		||||
@@ -1,28 +0,0 @@
 | 
			
		||||
#
 | 
			
		||||
# This file is part of the coreboot project.
 | 
			
		||||
# 
 | 
			
		||||
# (C) 2007-2008 coresystems GmbH
 | 
			
		||||
#
 | 
			
		||||
# This program is free software; you can redistribute it and/or
 | 
			
		||||
# modify it under the terms of the GNU General Public License as
 | 
			
		||||
# published by the Free Software Foundation; version 2 of
 | 
			
		||||
# the License.
 | 
			
		||||
#
 | 
			
		||||
# This program is distributed in the hope that it will be useful,
 | 
			
		||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
# GNU General Public License for more details.
 | 
			
		||||
#
 | 
			
		||||
# You should have received a copy of the GNU General Public License
 | 
			
		||||
# along with this program; if not, write to the Free Software
 | 
			
		||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
 | 
			
		||||
# MA 02110-1301 USA
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
dir /cpu/x86/tsc
 | 
			
		||||
dir /cpu/x86/mtrr
 | 
			
		||||
dir /cpu/x86/lapic
 | 
			
		||||
dir /cpu/x86/cache
 | 
			
		||||
dir /cpu/x86/smm
 | 
			
		||||
dir /cpu/intel/microcode
 | 
			
		||||
driver model_c7_init.o
 | 
			
		||||
							
								
								
									
										1
									
								
								src/cpu/x86/cache/Config.lb
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								src/cpu/x86/cache/Config.lb
									
									
									
									
										vendored
									
									
								
							@@ -1 +0,0 @@
 | 
			
		||||
object cache.o
 | 
			
		||||
@@ -1,11 +0,0 @@
 | 
			
		||||
uses CONFIG_UDELAY_LAPIC
 | 
			
		||||
 | 
			
		||||
object lapic.o
 | 
			
		||||
object lapic_cpu_init.o
 | 
			
		||||
object secondary.S
 | 
			
		||||
 | 
			
		||||
if CONFIG_UDELAY_LAPIC
 | 
			
		||||
	default CONFIG_HAVE_INIT_TIMER=1
 | 
			
		||||
	object apic_timer.o
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
object mtrr.o
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
object pgtbl.o
 | 
			
		||||
@@ -1,48 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2008 coresystems GmbH
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; either version 2 of the License, or
 | 
			
		||||
## (at your option) any later version.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
uses CONFIG_HAVE_SMI_HANDLER
 | 
			
		||||
 | 
			
		||||
if CONFIG_HAVE_SMI_HANDLER
 | 
			
		||||
	object smmrelocate.S
 | 
			
		||||
 | 
			
		||||
	smmobject smmhandler.S
 | 
			
		||||
	smmobject smihandler.o
 | 
			
		||||
	smmobject smiutil.o
 | 
			
		||||
 | 
			
		||||
	makerule smm.o
 | 
			
		||||
		depends	"$(SMM-OBJECTS) src/console/printk.o src/console/vtxprintf.o $(LIBGCC_FILE_NAME)" 
 | 
			
		||||
		action	"$(CC) $(DISTRO_LFLAGS) -nostdlib -r -o $@ $^"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	makerule smm
 | 
			
		||||
		depends	"smm.o $(TOP)/src/cpu/x86/smm/smm.ld ldoptions" 
 | 
			
		||||
		action	"$(CC) $(DISTRO_LFLAGS) -nostdlib -nostartfiles -static -o smm.elf -T $(TOP)/src/cpu/x86/smm/smm.ld smm.o"
 | 
			
		||||
		action 	"$(CONFIG_CROSS_COMPILE)nm -n smm.elf | sort > smm.map"
 | 
			
		||||
		action  "$(CONFIG_OBJCOPY) -O binary smm.elf smm"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	makerule smm_bin.c
 | 
			
		||||
		depends "smm"
 | 
			
		||||
		action "(echo 'unsigned char smm[] = {'; od -vtx1 smm | sed -e 's,^[0-9]* *,,' -e 's:[0-9a-f][0-9a-f] :0x&,:g' -e 's:[0-9a-f][0-9a-f]$$:0x&,:'; echo '}; unsigned int smm_len = '; wc -c smm |awk '{print $$1;}' ; echo ';')  > smm_bin.c"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	object ./smm_bin.o
 | 
			
		||||
end
 | 
			
		||||
@@ -1,9 +0,0 @@
 | 
			
		||||
uses CONFIG_UDELAY_TSC
 | 
			
		||||
uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
 | 
			
		||||
uses CONFIG_HAVE_INIT_TIMER
 | 
			
		||||
 | 
			
		||||
default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2=0
 | 
			
		||||
if CONFIG_UDELAY_TSC 
 | 
			
		||||
	default CONFIG_HAVE_INIT_TIMER=1
 | 
			
		||||
	object delay_tsc.o  
 | 
			
		||||
end
 | 
			
		||||
@@ -1,25 +0,0 @@
 | 
			
		||||
uses CONFIG_PCI_ROM_RUN
 | 
			
		||||
uses CONFIG_VGA_ROM_RUN
 | 
			
		||||
 | 
			
		||||
object device.o
 | 
			
		||||
object root_device.o
 | 
			
		||||
object device_util.o
 | 
			
		||||
object pci_device.o
 | 
			
		||||
object hypertransport.o
 | 
			
		||||
object pcix_device.o
 | 
			
		||||
object pciexp_device.o
 | 
			
		||||
object agp_device.o
 | 
			
		||||
object cardbus_device.o
 | 
			
		||||
object pnp_device.o
 | 
			
		||||
object pci_ops.o
 | 
			
		||||
object smbus_ops.o
 | 
			
		||||
 | 
			
		||||
if CONFIG_PCI_ROM_RUN
 | 
			
		||||
	object pci_rom.o
 | 
			
		||||
	dir ../../util/x86emu
 | 
			
		||||
else
 | 
			
		||||
if CONFIG_VGA_ROM_RUN
 | 
			
		||||
	object pci_rom.o
 | 
			
		||||
	dir ../../util/x86emu
 | 
			
		||||
end
 | 
			
		||||
end
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
driver xlinit.o
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
driver init.o
 | 
			
		||||
@@ -1,2 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object debug_dev.o
 | 
			
		||||
@@ -1,2 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object adm1026.o
 | 
			
		||||
@@ -1,2 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object adm1027.o
 | 
			
		||||
@@ -1,2 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object i2cmux.o
 | 
			
		||||
@@ -1,2 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object i2cmux2.o
 | 
			
		||||
@@ -1,2 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
object lm63.o
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
driver si_sata.o
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
driver blade3d.o
 | 
			
		||||
@@ -1,33 +0,0 @@
 | 
			
		||||
uses CONFIG_USE_INIT
 | 
			
		||||
uses CONFIG_USBDEBUG_DIRECT
 | 
			
		||||
 | 
			
		||||
object clog2.o
 | 
			
		||||
object uart8250.o
 | 
			
		||||
 | 
			
		||||
if CONFIG_USBDEBUG_DIRECT
 | 
			
		||||
	object usbdebug_direct.o
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
object memset.o
 | 
			
		||||
object memcpy.o
 | 
			
		||||
object memcmp.o
 | 
			
		||||
object memmove.o
 | 
			
		||||
object malloc.o
 | 
			
		||||
object delay.o
 | 
			
		||||
object fallback_boot.o
 | 
			
		||||
object compute_ip_checksum.o
 | 
			
		||||
object version.o
 | 
			
		||||
object gcc.o
 | 
			
		||||
object cbfs.o
 | 
			
		||||
object lzma.o
 | 
			
		||||
object cbmem.o
 | 
			
		||||
 | 
			
		||||
# Force version.o to recompile every time
 | 
			
		||||
makedefine .PHONY : version.o
 | 
			
		||||
 | 
			
		||||
initobject uart8250.o
 | 
			
		||||
initobject memset.o
 | 
			
		||||
initobject memcpy.o
 | 
			
		||||
initobject memcmp.o
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -1,132 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; either version 2 of the License, or
 | 
			
		||||
## (at your option) any later version.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
## CONFIG_XIP_ROM_SIZE must be a power of 2.
 | 
			
		||||
default CONFIG_XIP_ROM_SIZE = 128 * 1024
 | 
			
		||||
include /config/nofailovercalculation.lb
 | 
			
		||||
default CONFIG_XIP_ROM_BASE = 0xffffffff - CONFIG_XIP_ROM_SIZE + 1
 | 
			
		||||
 | 
			
		||||
arch i386 end
 | 
			
		||||
driver mainboard.o
 | 
			
		||||
if CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
	object irq_tables.o
 | 
			
		||||
end
 | 
			
		||||
makerule ./failover.E
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c ../romcc"
 | 
			
		||||
	action "../romcc -E -O2 -mcpu=p2 --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
makerule ./failover.inc
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c ../romcc"
 | 
			
		||||
	action "../romcc -O2 -mcpu=p2 --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
makerule ./auto.E
 | 
			
		||||
	# depends	"$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
 | 
			
		||||
	depends	"$(CONFIG_MAINBOARD)/auto.c ../romcc"
 | 
			
		||||
	action	"../romcc -E -O2 -mcpu=p2 -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
makerule ./auto.inc
 | 
			
		||||
	# depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/auto.c ../romcc"
 | 
			
		||||
	action	"../romcc -O2 -mcpu=p2 -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
mainboardinit cpu/x86/32bit/entry32.inc
 | 
			
		||||
ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
ldscript /cpu/x86/32bit/entry32.lds
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds
 | 
			
		||||
else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds
 | 
			
		||||
end
 | 
			
		||||
mainboardinit arch/i386/lib/cpu_reset.inc
 | 
			
		||||
mainboardinit arch/i386/lib/id.inc
 | 
			
		||||
ldscript /arch/i386/lib/id.lds
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	ldscript /arch/i386/lib/failover.lds
 | 
			
		||||
	mainboardinit ./failover.inc
 | 
			
		||||
end
 | 
			
		||||
mainboardinit cpu/x86/fpu_enable.inc
 | 
			
		||||
mainboardinit ./auto.inc
 | 
			
		||||
mainboardinit cpu/x86/mmx_disable.inc
 | 
			
		||||
 | 
			
		||||
dir /pc80
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
chip northbridge/intel/i440bx		# Northbridge
 | 
			
		||||
  device apic_cluster 0 on		# APIC cluster
 | 
			
		||||
    chip cpu/intel/slot_2		# CPU (FIXME: It's slot 1, actually)
 | 
			
		||||
      device apic 0 on end		# APIC
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
  device pci_domain 0 on		# PCI domain
 | 
			
		||||
    device pci 0.0 on end		# Host bridge
 | 
			
		||||
    device pci 1.0 on end		# PCI/AGP bridge
 | 
			
		||||
    chip southbridge/intel/i82371eb	# Southbridge
 | 
			
		||||
      device pci 7.0 on			# ISA bridge
 | 
			
		||||
        chip superio/winbond/w83977tf	# Super I/O (FIXME: It's W83977EF!)
 | 
			
		||||
          device pnp 3f0.0 on		# Floppy
 | 
			
		||||
            io 0x60 = 0x3f0
 | 
			
		||||
            irq 0x70 = 6
 | 
			
		||||
            drq 0x74 = 2
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.1 on		# Parallel port
 | 
			
		||||
            io 0x60 = 0x378
 | 
			
		||||
            irq 0x70 = 7
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.2 on		# COM1
 | 
			
		||||
            io 0x60 = 0x3f8
 | 
			
		||||
            irq 0x70 = 4
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.3 on		# COM2 / IR
 | 
			
		||||
            io 0x60 = 0x2f8
 | 
			
		||||
            irq 0x70 = 3
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.5 on		# PS/2 keyboard
 | 
			
		||||
            io 0x60 = 0x60
 | 
			
		||||
            io 0x62 = 0x64
 | 
			
		||||
            irq 0x70 = 1		# PS/2 keyboard interrupt
 | 
			
		||||
            irq 0x72 = 12		# PS/2 mouse interrupt
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.6 on		# Consumer IR
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.7 on		# GPIO 1
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.8 on		# GPIO 2
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.a on		# ACPI
 | 
			
		||||
          end
 | 
			
		||||
        end
 | 
			
		||||
      end
 | 
			
		||||
      device pci 7.1 on	end		# IDE
 | 
			
		||||
      device pci 7.2 on	end		# USB
 | 
			
		||||
      device pci 7.3 on end		# ACPI
 | 
			
		||||
      register "ide0_enable" = "1"
 | 
			
		||||
      register "ide1_enable" = "1"
 | 
			
		||||
      register "ide_legacy_enable" = "1"
 | 
			
		||||
      # Enable UDMA/33 for higher speed if your IDE device(s) support it.
 | 
			
		||||
      register "ide0_drive0_udma33_enable" = "0"
 | 
			
		||||
      register "ide0_drive1_udma33_enable" = "0"
 | 
			
		||||
      register "ide1_drive0_udma33_enable" = "0"
 | 
			
		||||
      register "ide1_drive1_udma33_enable" = "0"
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
@@ -1,97 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; either version 2 of the License, or
 | 
			
		||||
## (at your option) any later version.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
uses CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
uses CONFIG_HAVE_FALLBACK_BOOT
 | 
			
		||||
uses CONFIG_HAVE_HARD_RESET
 | 
			
		||||
uses CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_USE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_ROM_PAYLOAD
 | 
			
		||||
uses CONFIG_IRQ_SLOT_COUNT
 | 
			
		||||
uses CONFIG_MAINBOARD
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses COREBOOT_EXTRA_VERSION
 | 
			
		||||
uses CONFIG_ARCH
 | 
			
		||||
uses CONFIG_FALLBACK_SIZE
 | 
			
		||||
uses CONFIG_STACK_SIZE
 | 
			
		||||
uses CONFIG_HEAP_SIZE
 | 
			
		||||
uses CONFIG_ROM_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_OFFSET
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
 | 
			
		||||
uses CONFIG_ROMBASE
 | 
			
		||||
uses CONFIG_RAMBASE
 | 
			
		||||
uses CONFIG_XIP_ROM_SIZE
 | 
			
		||||
uses CONFIG_XIP_ROM_BASE
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_CROSS_COMPILE
 | 
			
		||||
uses CC
 | 
			
		||||
uses HOSTCC
 | 
			
		||||
uses CONFIG_OBJCOPY
 | 
			
		||||
uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
uses CONFIG_TTYS0_BAUD
 | 
			
		||||
uses CONFIG_TTYS0_BASE
 | 
			
		||||
uses CONFIG_TTYS0_LCS
 | 
			
		||||
uses CONFIG_UDELAY_TSC
 | 
			
		||||
uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses CONFIG_CONSOLE_VGA
 | 
			
		||||
uses CONFIG_PCI_ROM_RUN
 | 
			
		||||
 | 
			
		||||
default CONFIG_ROM_SIZE = 256 * 1024
 | 
			
		||||
default CONFIG_HAVE_FALLBACK_BOOT = 1
 | 
			
		||||
default CONFIG_GENERATE_MP_TABLE = 0
 | 
			
		||||
default CONFIG_HAVE_HARD_RESET = 0
 | 
			
		||||
default CONFIG_UDELAY_TSC = 1
 | 
			
		||||
default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2 = 1
 | 
			
		||||
default CONFIG_GENERATE_PIRQ_TABLE = 1
 | 
			
		||||
default CONFIG_IRQ_SLOT_COUNT = 7		# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_MAINBOARD_VENDOR = "N/A"	# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_MAINBOARD_PART_NUMBER = "N/A"	# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_ROM_IMAGE_SIZE = 36 * 1024
 | 
			
		||||
default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
default CONFIG_STACK_SIZE = 8 * 1024
 | 
			
		||||
default CONFIG_HEAP_SIZE = 16 * 1024
 | 
			
		||||
default CONFIG_HAVE_OPTION_TABLE = 0
 | 
			
		||||
#default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
default CONFIG_USE_OPTION_TABLE = 0
 | 
			
		||||
default CONFIG_RAMBASE = 0x00004000
 | 
			
		||||
default CONFIG_ROM_PAYLOAD = 1
 | 
			
		||||
default CONFIG_CROSS_COMPILE = ""
 | 
			
		||||
default CC = "$(CONFIG_CROSS_COMPILE)gcc -m32"
 | 
			
		||||
default HOSTCC = "gcc"
 | 
			
		||||
default CONFIG_CONSOLE_SERIAL8250 = 1
 | 
			
		||||
default CONFIG_TTYS0_BAUD = 115200
 | 
			
		||||
default CONFIG_TTYS0_BASE = 0x3f8
 | 
			
		||||
default CONFIG_TTYS0_LCS = 0x3			# 8n1
 | 
			
		||||
default CONFIG_DEFAULT_CONSOLE_LOGLEVEL = 9
 | 
			
		||||
default CONFIG_MAXIMUM_CONSOLE_LOGLEVEL = 9
 | 
			
		||||
default CONFIG_CONSOLE_VGA = 1
 | 
			
		||||
default CONFIG_PCI_ROM_RUN = 1
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
@@ -1,142 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2008 Uwe Hermann <uwe@hermann-uwe.de>
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; either version 2 of the License, or
 | 
			
		||||
## (at your option) any later version.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
## CONFIG_XIP_ROM_SIZE must be a power of 2.
 | 
			
		||||
default CONFIG_XIP_ROM_SIZE = 128 * 1024
 | 
			
		||||
include /config/nofailovercalculation.lb
 | 
			
		||||
default CONFIG_XIP_ROM_BASE = 0xffffffff - CONFIG_XIP_ROM_SIZE + 1
 | 
			
		||||
 | 
			
		||||
arch i386 end
 | 
			
		||||
driver mainboard.o
 | 
			
		||||
if CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
	object irq_tables.o
 | 
			
		||||
end
 | 
			
		||||
makerule ./failover.E
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c ../romcc"
 | 
			
		||||
	action "../romcc -E -O2 -mcpu=p2 --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
makerule ./failover.inc
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c ../romcc"
 | 
			
		||||
	action "../romcc -O2 -mcpu=p2 --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
makerule ./auto.E
 | 
			
		||||
	# depends	"$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
 | 
			
		||||
	depends	"$(CONFIG_MAINBOARD)/auto.c ../romcc"
 | 
			
		||||
	action	"../romcc -E -O2 -mcpu=p2 -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
makerule ./auto.inc
 | 
			
		||||
	# depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/auto.c ../romcc"
 | 
			
		||||
	action	"../romcc -O2 -mcpu=p2 -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
mainboardinit cpu/x86/32bit/entry32.inc
 | 
			
		||||
ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
ldscript /cpu/x86/32bit/entry32.lds
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds
 | 
			
		||||
else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds
 | 
			
		||||
end
 | 
			
		||||
mainboardinit arch/i386/lib/cpu_reset.inc
 | 
			
		||||
mainboardinit arch/i386/lib/id.inc
 | 
			
		||||
ldscript /arch/i386/lib/id.lds
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	ldscript /arch/i386/lib/failover.lds
 | 
			
		||||
	mainboardinit ./failover.inc
 | 
			
		||||
end
 | 
			
		||||
mainboardinit cpu/x86/fpu_enable.inc
 | 
			
		||||
mainboardinit ./auto.inc
 | 
			
		||||
mainboardinit cpu/x86/mmx_disable.inc
 | 
			
		||||
 | 
			
		||||
dir /pc80
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
chip northbridge/intel/i440bx		# Northbridge
 | 
			
		||||
  device apic_cluster 0 on		# APIC cluster
 | 
			
		||||
    chip cpu/intel/slot_2		# CPU (FIXME: It's slot 1, actually)
 | 
			
		||||
      device apic 0 on end		# APIC
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
  device pci_domain 0 on		# PCI domain
 | 
			
		||||
    device pci 0.0 on end		# Host bridge
 | 
			
		||||
    device pci 1.0 on end		# PCI/AGP bridge
 | 
			
		||||
    chip southbridge/intel/i82371eb	# Southbridge
 | 
			
		||||
      device pci 7.0 on			# ISA bridge
 | 
			
		||||
        chip superio/winbond/w83627hf	# Super I/O
 | 
			
		||||
          device pnp 3f0.0 on		# Floppy
 | 
			
		||||
            io 0x60 = 0x3f0
 | 
			
		||||
            irq 0x70 = 6
 | 
			
		||||
            drq 0x74 = 2
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.1 on		# Parallel port
 | 
			
		||||
            io 0x60 = 0x378
 | 
			
		||||
            irq 0x70 = 7
 | 
			
		||||
            drq 0x74 = 3
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.2 on		# COM1
 | 
			
		||||
            io 0x60 = 0x3f8
 | 
			
		||||
            irq 0x70 = 4
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.3 on		# COM2 / IR
 | 
			
		||||
            io 0x60 = 0x2f8
 | 
			
		||||
            irq 0x70 = 3
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.5 on		# PS/2 keyboard
 | 
			
		||||
            io 0x60 = 0x60
 | 
			
		||||
            io 0x62 = 0x64
 | 
			
		||||
            irq 0x70 = 1		# PS/2 keyboard interrupt
 | 
			
		||||
            irq 0x72 = 12		# PS/2 mouse interrupt
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.6 on		# Consumer IR
 | 
			
		||||
            io 0x60 = 0x00
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.7 on		# Game port / MIDI / GPIO 1
 | 
			
		||||
            io 0x60 = 0x201
 | 
			
		||||
            io 0x62 = 0x330
 | 
			
		||||
            irq 0x70 = 9
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.8 off		# GPIO 2 / WDT
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.9 off		# GPIO 3
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.a off		# ACPI
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.b off		# HWM (TODO)
 | 
			
		||||
          end
 | 
			
		||||
        end
 | 
			
		||||
      end
 | 
			
		||||
      device pci 7.1 on	end		# IDE
 | 
			
		||||
      device pci 7.2 on	end		# USB
 | 
			
		||||
      device pci 7.3 on end		# ACPI
 | 
			
		||||
      device pci c.0 on end		# Onboard audio (ES1371)
 | 
			
		||||
      register "ide0_enable" = "1"
 | 
			
		||||
      register "ide1_enable" = "1"
 | 
			
		||||
      register "ide_legacy_enable" = "1"
 | 
			
		||||
      # Enable UDMA/33 for higher speed if your IDE device(s) support it.
 | 
			
		||||
      register "ide0_drive0_udma33_enable" = "0"
 | 
			
		||||
      register "ide0_drive1_udma33_enable" = "0"
 | 
			
		||||
      register "ide1_drive0_udma33_enable" = "0"
 | 
			
		||||
      register "ide1_drive1_udma33_enable" = "0"
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
@@ -1,97 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2008 Uwe Hermann <uwe@hermann-uwe.de>
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; either version 2 of the License, or
 | 
			
		||||
## (at your option) any later version.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
uses CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
uses CONFIG_HAVE_FALLBACK_BOOT
 | 
			
		||||
uses CONFIG_HAVE_HARD_RESET
 | 
			
		||||
uses CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_USE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_ROM_PAYLOAD
 | 
			
		||||
uses CONFIG_IRQ_SLOT_COUNT
 | 
			
		||||
uses CONFIG_MAINBOARD
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses COREBOOT_EXTRA_VERSION
 | 
			
		||||
uses CONFIG_ARCH
 | 
			
		||||
uses CONFIG_FALLBACK_SIZE
 | 
			
		||||
uses CONFIG_STACK_SIZE
 | 
			
		||||
uses CONFIG_HEAP_SIZE
 | 
			
		||||
uses CONFIG_ROM_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_OFFSET
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
 | 
			
		||||
uses CONFIG_ROMBASE
 | 
			
		||||
uses CONFIG_RAMBASE
 | 
			
		||||
uses CONFIG_XIP_ROM_SIZE
 | 
			
		||||
uses CONFIG_XIP_ROM_BASE
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_CROSS_COMPILE
 | 
			
		||||
uses CC
 | 
			
		||||
uses HOSTCC
 | 
			
		||||
uses CONFIG_OBJCOPY
 | 
			
		||||
uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
uses CONFIG_TTYS0_BAUD
 | 
			
		||||
uses CONFIG_TTYS0_BASE
 | 
			
		||||
uses CONFIG_TTYS0_LCS
 | 
			
		||||
uses CONFIG_UDELAY_TSC
 | 
			
		||||
uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses CONFIG_CONSOLE_VGA
 | 
			
		||||
uses CONFIG_PCI_ROM_RUN
 | 
			
		||||
 | 
			
		||||
default CONFIG_ROM_SIZE = 256 * 1024
 | 
			
		||||
default CONFIG_HAVE_FALLBACK_BOOT = 1
 | 
			
		||||
default CONFIG_GENERATE_MP_TABLE = 0
 | 
			
		||||
default CONFIG_HAVE_HARD_RESET = 0
 | 
			
		||||
default CONFIG_UDELAY_TSC = 1
 | 
			
		||||
default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2 = 1
 | 
			
		||||
default CONFIG_GENERATE_PIRQ_TABLE = 1
 | 
			
		||||
default CONFIG_IRQ_SLOT_COUNT = 7		# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_MAINBOARD_VENDOR = "N/A"	# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_MAINBOARD_PART_NUMBER = "N/A"	# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_ROM_IMAGE_SIZE = 36 * 1024
 | 
			
		||||
default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
default CONFIG_STACK_SIZE = 8 * 1024
 | 
			
		||||
default CONFIG_HEAP_SIZE = 16 * 1024
 | 
			
		||||
default CONFIG_HAVE_OPTION_TABLE = 0
 | 
			
		||||
#default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
default CONFIG_USE_OPTION_TABLE = 0
 | 
			
		||||
default CONFIG_RAMBASE = 0x00004000
 | 
			
		||||
default CONFIG_ROM_PAYLOAD = 1
 | 
			
		||||
default CONFIG_CROSS_COMPILE = ""
 | 
			
		||||
default CC = "$(CONFIG_CROSS_COMPILE)gcc -m32"
 | 
			
		||||
default HOSTCC = "gcc"
 | 
			
		||||
default CONFIG_CONSOLE_SERIAL8250 = 1
 | 
			
		||||
default CONFIG_TTYS0_BAUD = 115200
 | 
			
		||||
default CONFIG_TTYS0_BASE = 0x3f8
 | 
			
		||||
default CONFIG_TTYS0_LCS = 0x3			# 8n1
 | 
			
		||||
default CONFIG_DEFAULT_CONSOLE_LOGLEVEL = 9
 | 
			
		||||
default CONFIG_MAXIMUM_CONSOLE_LOGLEVEL = 9
 | 
			
		||||
default CONFIG_CONSOLE_VGA = 1
 | 
			
		||||
default CONFIG_PCI_ROM_RUN = 1
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
@@ -1,132 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; either version 2 of the License, or
 | 
			
		||||
## (at your option) any later version.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
## CONFIG_XIP_ROM_SIZE must be a power of 2.
 | 
			
		||||
default CONFIG_XIP_ROM_SIZE = 128 * 1024
 | 
			
		||||
include /config/nofailovercalculation.lb
 | 
			
		||||
default CONFIG_XIP_ROM_BASE = 0xffffffff - CONFIG_XIP_ROM_SIZE + 1
 | 
			
		||||
 | 
			
		||||
arch i386 end
 | 
			
		||||
driver mainboard.o
 | 
			
		||||
if CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
	object irq_tables.o
 | 
			
		||||
end
 | 
			
		||||
makerule ./failover.E
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c ../romcc"
 | 
			
		||||
	action "../romcc -E -O2 -mcpu=p2 --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
makerule ./failover.inc
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c ../romcc"
 | 
			
		||||
	action "../romcc -O2 -mcpu=p2 --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
makerule ./auto.E
 | 
			
		||||
	# depends	"$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
 | 
			
		||||
	depends	"$(CONFIG_MAINBOARD)/auto.c ../romcc"
 | 
			
		||||
	action	"../romcc -E -O2 -mcpu=p2 -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
makerule ./auto.inc
 | 
			
		||||
	# depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/auto.c ../romcc"
 | 
			
		||||
	action	"../romcc -O2 -mcpu=p2 -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
mainboardinit cpu/x86/32bit/entry32.inc
 | 
			
		||||
ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
ldscript /cpu/x86/32bit/entry32.lds
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds
 | 
			
		||||
else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds
 | 
			
		||||
end
 | 
			
		||||
mainboardinit arch/i386/lib/cpu_reset.inc
 | 
			
		||||
mainboardinit arch/i386/lib/id.inc
 | 
			
		||||
ldscript /arch/i386/lib/id.lds
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	ldscript /arch/i386/lib/failover.lds
 | 
			
		||||
	mainboardinit ./failover.inc
 | 
			
		||||
end
 | 
			
		||||
mainboardinit cpu/x86/fpu_enable.inc
 | 
			
		||||
mainboardinit ./auto.inc
 | 
			
		||||
mainboardinit cpu/x86/mmx_disable.inc
 | 
			
		||||
 | 
			
		||||
dir /pc80
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
chip northbridge/intel/i440bx		# Northbridge
 | 
			
		||||
  device apic_cluster 0 on		# APIC cluster
 | 
			
		||||
    chip cpu/intel/slot_2		# CPU (FIXME: It's slot 1, actually)
 | 
			
		||||
      device apic 0 on end		# APIC
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
  device pci_domain 0 on		# PCI domain
 | 
			
		||||
    device pci 0.0 on end		# Host bridge
 | 
			
		||||
    device pci 1.0 on end		# PCI/AGP bridge
 | 
			
		||||
    chip southbridge/intel/i82371eb	# Southbridge
 | 
			
		||||
      device pci 7.0 on			# ISA bridge
 | 
			
		||||
        chip superio/winbond/w83977tf	# Super I/O (FIXME: It's W83977EF!)
 | 
			
		||||
          device pnp 3f0.0 on		# Floppy
 | 
			
		||||
            io 0x60 = 0x3f0
 | 
			
		||||
            irq 0x70 = 6
 | 
			
		||||
            drq 0x74 = 2
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.1 on		# Parallel port
 | 
			
		||||
            io 0x60 = 0x378
 | 
			
		||||
            irq 0x70 = 7
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.2 on		# COM1
 | 
			
		||||
            io 0x60 = 0x3f8
 | 
			
		||||
            irq 0x70 = 4
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.3 on		# COM2 / IR
 | 
			
		||||
            io 0x60 = 0x2f8
 | 
			
		||||
            irq 0x70 = 3
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.5 on		# PS/2 keyboard
 | 
			
		||||
            io 0x60 = 0x60
 | 
			
		||||
            io 0x62 = 0x64
 | 
			
		||||
            irq 0x70 = 1		# PS/2 keyboard interrupt
 | 
			
		||||
            irq 0x72 = 12		# PS/2 mouse interrupt
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.6 on		# Consumer IR
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.7 on		# GPIO 1
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.8 on		# GPIO 2
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.a on		# ACPI
 | 
			
		||||
          end
 | 
			
		||||
        end
 | 
			
		||||
      end
 | 
			
		||||
      device pci 7.1 on	end		# IDE, UDMA/33 (part of 82371EB)
 | 
			
		||||
      device pci 7.2 on	end		# USB
 | 
			
		||||
      device pci 7.3 on end		# ACPI
 | 
			
		||||
      device pci 13.0 on end		# IDE, UDMA/66 (HPT366 controller)
 | 
			
		||||
      register "ide0_enable" = "1"
 | 
			
		||||
      register "ide1_enable" = "1"
 | 
			
		||||
      register "ide_legacy_enable" = "1"
 | 
			
		||||
      register "ide0_drive0_udma33_enable" = "1"
 | 
			
		||||
      register "ide0_drive1_udma33_enable" = "1"
 | 
			
		||||
      register "ide1_drive0_udma33_enable" = "1"
 | 
			
		||||
      register "ide1_drive1_udma33_enable" = "1"
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
@@ -1,98 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; either version 2 of the License, or
 | 
			
		||||
## (at your option) any later version.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
uses CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
uses CONFIG_HAVE_FALLBACK_BOOT
 | 
			
		||||
uses CONFIG_HAVE_HARD_RESET
 | 
			
		||||
uses CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_USE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_ROM_PAYLOAD
 | 
			
		||||
uses CONFIG_IRQ_SLOT_COUNT
 | 
			
		||||
uses CONFIG_MAINBOARD
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses COREBOOT_EXTRA_VERSION
 | 
			
		||||
uses CONFIG_ARCH
 | 
			
		||||
uses CONFIG_FALLBACK_SIZE
 | 
			
		||||
uses CONFIG_STACK_SIZE
 | 
			
		||||
uses CONFIG_HEAP_SIZE
 | 
			
		||||
uses CONFIG_ROM_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_OFFSET
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
 | 
			
		||||
uses CONFIG_PRECOMPRESSED_PAYLOAD
 | 
			
		||||
uses CONFIG_ROMBASE
 | 
			
		||||
uses CONFIG_RAMBASE
 | 
			
		||||
uses CONFIG_XIP_ROM_SIZE
 | 
			
		||||
uses CONFIG_XIP_ROM_BASE
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_CROSS_COMPILE
 | 
			
		||||
uses CC
 | 
			
		||||
uses HOSTCC
 | 
			
		||||
uses CONFIG_OBJCOPY
 | 
			
		||||
uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
uses CONFIG_TTYS0_BAUD
 | 
			
		||||
uses CONFIG_TTYS0_BASE
 | 
			
		||||
uses CONFIG_TTYS0_LCS
 | 
			
		||||
uses CONFIG_UDELAY_TSC
 | 
			
		||||
uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses CONFIG_CONSOLE_VGA
 | 
			
		||||
uses CONFIG_PCI_ROM_RUN
 | 
			
		||||
 | 
			
		||||
default CONFIG_ROM_SIZE = 256 * 1024		# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_HAVE_FALLBACK_BOOT = 1
 | 
			
		||||
default CONFIG_GENERATE_MP_TABLE = 0
 | 
			
		||||
default CONFIG_HAVE_HARD_RESET = 0
 | 
			
		||||
default CONFIG_UDELAY_TSC = 1
 | 
			
		||||
default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2 = 1
 | 
			
		||||
default CONFIG_GENERATE_PIRQ_TABLE = 1
 | 
			
		||||
default CONFIG_IRQ_SLOT_COUNT = 9		# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_MAINBOARD_VENDOR = "N/A"	# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_MAINBOARD_PART_NUMBER = "N/A"	# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_ROM_IMAGE_SIZE = 36 * 1024
 | 
			
		||||
default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
default CONFIG_STACK_SIZE = 8 * 1024
 | 
			
		||||
default CONFIG_HEAP_SIZE = 16 * 1024
 | 
			
		||||
default CONFIG_HAVE_OPTION_TABLE = 0
 | 
			
		||||
#default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
default CONFIG_USE_OPTION_TABLE = 0
 | 
			
		||||
default CONFIG_RAMBASE = 0x00004000
 | 
			
		||||
default CONFIG_ROM_PAYLOAD = 1
 | 
			
		||||
default CONFIG_CROSS_COMPILE = ""
 | 
			
		||||
default CC = "$(CONFIG_CROSS_COMPILE)gcc -m32"
 | 
			
		||||
default HOSTCC = "gcc"
 | 
			
		||||
default CONFIG_CONSOLE_SERIAL8250 = 1
 | 
			
		||||
default CONFIG_TTYS0_BAUD = 115200
 | 
			
		||||
default CONFIG_TTYS0_BASE = 0x3f8
 | 
			
		||||
default CONFIG_TTYS0_LCS = 0x3			# 8n1
 | 
			
		||||
default CONFIG_DEFAULT_CONSOLE_LOGLEVEL = 9	# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_MAXIMUM_CONSOLE_LOGLEVEL = 9	# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_CONSOLE_VGA = 1		# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_PCI_ROM_RUN = 1		# Override this in targets/*/Config.lb.
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
@@ -1,129 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; either version 2 of the License, or
 | 
			
		||||
## (at your option) any later version.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
## CONFIG_XIP_ROM_SIZE must be a power of 2.
 | 
			
		||||
default CONFIG_XIP_ROM_SIZE = 64 * 1024
 | 
			
		||||
include /config/nofailovercalculation.lb
 | 
			
		||||
 | 
			
		||||
arch i386 end
 | 
			
		||||
driver mainboard.o
 | 
			
		||||
if CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
	object irq_tables.o
 | 
			
		||||
end
 | 
			
		||||
makerule ./failover.E
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c ../romcc"
 | 
			
		||||
	action "../romcc -E -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
makerule ./failover.inc
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c ../romcc"
 | 
			
		||||
	action "../romcc -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
makerule ./auto.E
 | 
			
		||||
	# depends	"$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
 | 
			
		||||
	depends	"$(CONFIG_MAINBOARD)/auto.c ../romcc"
 | 
			
		||||
	action	"../romcc -E -O -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
makerule ./auto.inc
 | 
			
		||||
	# depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/auto.c ../romcc"
 | 
			
		||||
	action	"../romcc -O -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
mainboardinit cpu/x86/32bit/entry32.inc
 | 
			
		||||
ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
ldscript /cpu/x86/32bit/entry32.lds
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds
 | 
			
		||||
else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds
 | 
			
		||||
end
 | 
			
		||||
mainboardinit arch/i386/lib/cpu_reset.inc
 | 
			
		||||
mainboardinit arch/i386/lib/id.inc
 | 
			
		||||
ldscript /arch/i386/lib/id.lds
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	ldscript /arch/i386/lib/failover.lds
 | 
			
		||||
	mainboardinit ./failover.inc
 | 
			
		||||
end
 | 
			
		||||
mainboardinit cpu/x86/fpu_enable.inc
 | 
			
		||||
mainboardinit cpu/amd/model_gx1/cpu_setup.inc
 | 
			
		||||
mainboardinit cpu/amd/model_gx1/gx_setup.inc
 | 
			
		||||
mainboardinit ./auto.inc
 | 
			
		||||
 | 
			
		||||
dir /pc80
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
chip northbridge/amd/gx1		# Northbridge
 | 
			
		||||
  device pci_domain 0 on		# PCI domain
 | 
			
		||||
    device pci 0.0 on end		# Host bridge
 | 
			
		||||
    chip southbridge/amd/cs5530		# Southbridge
 | 
			
		||||
      device pci 12.0 on		# ISA bridge
 | 
			
		||||
        chip superio/winbond/w83977f	# SUper I/O
 | 
			
		||||
          device pnp 3f0.0 on		# Floppy
 | 
			
		||||
            io 0x60 = 0x3f0
 | 
			
		||||
            irq 0x70 = 6
 | 
			
		||||
            drq 0x74 = 2
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.1 on		# Parallel port
 | 
			
		||||
            io 0x60 = 0x378
 | 
			
		||||
            irq 0x70 = 7
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.2 on		# COM1
 | 
			
		||||
            io 0x60 = 0x3f8
 | 
			
		||||
            irq 0x70 = 4
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.3 on		# COM2
 | 
			
		||||
            io 0x60 = 0x2f8
 | 
			
		||||
            irq 0x70 = 3
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.4 on		# RTC / On-Now control
 | 
			
		||||
            io 0x60 = 0x70
 | 
			
		||||
            irq 0x70 = 8
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.5 on		# PS/2 keyboard / mouse
 | 
			
		||||
            io 0x60 = 0x60
 | 
			
		||||
            io 0x62 = 0x64
 | 
			
		||||
            irq 0x70 = 1		# PS/2 keyboard interrupt
 | 
			
		||||
            irq 0x72 = 12		# PS/2 mouse interrupt
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.6 on		# IR
 | 
			
		||||
            # TODO?
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.7 on		# GPIO 1
 | 
			
		||||
            # TODO?
 | 
			
		||||
          end
 | 
			
		||||
          device pnp 3f0.8 on		# GPIO 2
 | 
			
		||||
            # TODO?
 | 
			
		||||
          end
 | 
			
		||||
        end
 | 
			
		||||
      end
 | 
			
		||||
      device pci 12.1 on end		# SMI
 | 
			
		||||
      device pci 12.2 on end		# IDE
 | 
			
		||||
      device pci 12.3 on end		# Audio (onboard)
 | 
			
		||||
      device pci 12.4 on end		# VGA
 | 
			
		||||
      device pci 13.0 on end		# USB
 | 
			
		||||
      register "ide0_enable" = "1"
 | 
			
		||||
      register "ide1_enable" = "1"
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
  chip cpu/amd/model_gx1		# CPU
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
@@ -1,103 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; either version 2 of the License, or
 | 
			
		||||
## (at your option) any later version.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
uses CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
uses CONFIG_HAVE_FALLBACK_BOOT
 | 
			
		||||
uses CONFIG_HAVE_HARD_RESET
 | 
			
		||||
uses CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_USE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_ROM_PAYLOAD
 | 
			
		||||
uses CONFIG_IRQ_SLOT_COUNT
 | 
			
		||||
uses CONFIG_MAINBOARD
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses COREBOOT_EXTRA_VERSION
 | 
			
		||||
uses CONFIG_ARCH
 | 
			
		||||
uses CONFIG_FALLBACK_SIZE
 | 
			
		||||
uses CONFIG_STACK_SIZE
 | 
			
		||||
uses CONFIG_HEAP_SIZE
 | 
			
		||||
uses CONFIG_ROM_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_OFFSET
 | 
			
		||||
uses CONFIG_ROMBASE
 | 
			
		||||
uses CONFIG_RAMBASE
 | 
			
		||||
uses CONFIG_XIP_ROM_SIZE
 | 
			
		||||
uses CONFIG_XIP_ROM_BASE
 | 
			
		||||
uses CONFIG_CROSS_COMPILE
 | 
			
		||||
uses CC
 | 
			
		||||
uses HOSTCC
 | 
			
		||||
uses CONFIG_OBJCOPY
 | 
			
		||||
uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
uses CONFIG_TTYS0_BAUD
 | 
			
		||||
uses CONFIG_TTYS0_BASE
 | 
			
		||||
uses CONFIG_TTYS0_LCS
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
 | 
			
		||||
uses CONFIG_UDELAY_TSC
 | 
			
		||||
uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
 | 
			
		||||
uses CONFIG_VIDEO_MB
 | 
			
		||||
uses CONFIG_SPLASH_GRAPHIC
 | 
			
		||||
uses CONFIG_GX1_VIDEO
 | 
			
		||||
uses CONFIG_GX1_VIDEOMODE
 | 
			
		||||
uses CONFIG_PIRQ_ROUTE
 | 
			
		||||
 | 
			
		||||
## Enable VGA with a splash screen (only 640x480 to run on most monitors).
 | 
			
		||||
## We want to support up to 1024x768@16 so we need 2MiB video memory.
 | 
			
		||||
## Note: Higher resolutions might need faster SDRAM speed.
 | 
			
		||||
default CONFIG_GX1_VIDEO = 1
 | 
			
		||||
default CONFIG_GX1_VIDEOMODE = 0
 | 
			
		||||
default CONFIG_SPLASH_GRAPHIC = 1
 | 
			
		||||
default CONFIG_VIDEO_MB = 2
 | 
			
		||||
 | 
			
		||||
default CONFIG_ROM_SIZE = 256 * 1024
 | 
			
		||||
default CONFIG_GENERATE_PIRQ_TABLE = 1
 | 
			
		||||
default CONFIG_IRQ_SLOT_COUNT = 2		# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_PIRQ_ROUTE = 1
 | 
			
		||||
default CONFIG_HAVE_FALLBACK_BOOT = 1
 | 
			
		||||
default CONFIG_GENERATE_MP_TABLE = 0
 | 
			
		||||
default CONFIG_HAVE_HARD_RESET = 0
 | 
			
		||||
default CONFIG_UDELAY_TSC = 1
 | 
			
		||||
default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2 = 1
 | 
			
		||||
default CONFIG_HAVE_OPTION_TABLE = 0
 | 
			
		||||
default CONFIG_MAINBOARD_VENDOR = "N/A"	# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_MAINBOARD_PART_NUMBER = "N/A"	# Override this in targets/*/Config.lb.
 | 
			
		||||
default CONFIG_ROM_IMAGE_SIZE = 64 * 1024
 | 
			
		||||
default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
default CONFIG_STACK_SIZE = 8 * 1024
 | 
			
		||||
default CONFIG_HEAP_SIZE = 16 * 1024
 | 
			
		||||
default CONFIG_USE_OPTION_TABLE = 0
 | 
			
		||||
default CONFIG_RAMBASE = 0x00004000
 | 
			
		||||
default CONFIG_ROM_PAYLOAD = 1
 | 
			
		||||
default CONFIG_CROSS_COMPILE = ""
 | 
			
		||||
default CC = "$(CONFIG_CROSS_COMPILE)gcc "
 | 
			
		||||
default HOSTCC = "gcc"
 | 
			
		||||
default CONFIG_CONSOLE_SERIAL8250 = 1
 | 
			
		||||
default CONFIG_TTYS0_BAUD = 115200
 | 
			
		||||
default CONFIG_TTYS0_BASE = 0x3f8
 | 
			
		||||
default CONFIG_TTYS0_LCS = 0x3		# 8n1
 | 
			
		||||
default CONFIG_DEFAULT_CONSOLE_LOGLEVEL = 9
 | 
			
		||||
default CONFIG_MAXIMUM_CONSOLE_LOGLEVEL = 9
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
@@ -1,152 +0,0 @@
 | 
			
		||||
## CONFIG_XIP_ROM_SIZE must be a power of 2.
 | 
			
		||||
default CONFIG_XIP_ROM_SIZE = 64 * 1024
 | 
			
		||||
include /config/nofailovercalculation.lb
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Set all of the defaults for an x86 architecture
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
arch i386 end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build the objects we have code for in this directory.
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
driver mainboard.o
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
	object irq_tables.o
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
	#compile cache_as_ram.c to auto.inc
 | 
			
		||||
	makerule ./cache_as_ram_auto.inc
 | 
			
		||||
			depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
 | 
			
		||||
			action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
 | 
			
		||||
			action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
 | 
			
		||||
			action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our 16 bit and 32 bit coreboot entry code
 | 
			
		||||
##
 | 
			
		||||
mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
mainboardinit cpu/x86/32bit/entry32.inc
 | 
			
		||||
ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
ldscript /cpu/x86/32bit/entry32.lds
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our reset vector (This is where coreboot is entered)
 | 
			
		||||
##
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds
 | 
			
		||||
else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
### Should this be in the northbridge code?
 | 
			
		||||
#not in serengeti_cheetah mainboardinit arch/i386/lib/cpu_reset.inc
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include an id string (For safe flashing)
 | 
			
		||||
##
 | 
			
		||||
mainboardinit arch/i386/lib/id.inc
 | 
			
		||||
ldscript /arch/i386/lib/id.lds
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### This is the early phase of coreboot startup
 | 
			
		||||
### Things are delicate and we test to see if we should
 | 
			
		||||
### failover to another image.
 | 
			
		||||
###
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	ldscript /arch/i386/lib/failover.lds
 | 
			
		||||
#	mainboardinit ./failover.inc
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### O.k. We aren't just an intermediary anymore!
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Setup RAM
 | 
			
		||||
##
 | 
			
		||||
mainboardinit cpu/x86/fpu_enable.inc
 | 
			
		||||
 | 
			
		||||
	mainboardinit cpu/amd/model_lx/cache_as_ram.inc
 | 
			
		||||
	mainboardinit ./cache_as_ram_auto.inc
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include the secondary Configuration files
 | 
			
		||||
##
 | 
			
		||||
dir /pc80
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
chip northbridge/amd/lx
 | 
			
		||||
	device pci_domain 0 on
 | 
			
		||||
		device pci 1.0 on end				# Northbridge
 | 
			
		||||
		device pci 1.1 on end				# Graphics
 | 
			
		||||
		chip southbridge/amd/cs5536
 | 
			
		||||
			# IRQ 12 and 1 unmasked,  Keyboard and Mouse IRQs. OK
 | 
			
		||||
			# SIRQ Mode = Active(Quiet) mode. Save power....
 | 
			
		||||
			# Invert mask = IRQ 12 and 1 are active high. Keyboard and Mouse, UARTs, etc IRQs. OK
 | 
			
		||||
			register "lpc_serirq_enable" = "0x0000105a"
 | 
			
		||||
			register "lpc_serirq_polarity" = "0x0000EFA5"
 | 
			
		||||
			register "lpc_serirq_mode" = "1"
 | 
			
		||||
			register "enable_gpio_int_route" = "0x0D0C0700"
 | 
			
		||||
			register "enable_ide_nand_flash" = "0"	# 0:ide mode, 1:flash
 | 
			
		||||
			register "enable_USBP4_device" = "1"	# 0: host, 1:device
 | 
			
		||||
			register "enable_USBP4_overcurrent" = "0" #0:off, xxxx:overcurrent setting CS5536 Data Book (pages 380-381)
 | 
			
		||||
			register "com1_enable" = "0"
 | 
			
		||||
			register "com1_address" = "0x3F8"
 | 
			
		||||
			register "com1_irq" = "4"
 | 
			
		||||
			register "com2_enable" = "0"
 | 
			
		||||
			register "com2_address" = "0x2F8"
 | 
			
		||||
			register "com2_irq" = "3"
 | 
			
		||||
			register "unwanted_vpci[0]" = "0"	# End of list has a zero
 | 
			
		||||
			device pci d.0 on end			# Ethernet
 | 
			
		||||
			device pci e.0 on end			# Slot1
 | 
			
		||||
			device pci f.0 on			# ISA Bridge
 | 
			
		||||
				chip superio/winbond/w83627hf
 | 
			
		||||
					device pnp 2e.0 off	# Floppy
 | 
			
		||||
						io 0x60 = 0x3f0
 | 
			
		||||
						irq 0x70 = 6
 | 
			
		||||
						drq 0x74 = 2
 | 
			
		||||
					end
 | 
			
		||||
					device pnp 2e.1 off	# Parallel port
 | 
			
		||||
						io 0x60 = 0x378
 | 
			
		||||
						irq 0x70 = 7
 | 
			
		||||
					end
 | 
			
		||||
					device pnp 2e.2 on	# Com1
 | 
			
		||||
						io 0x60 = 0x3f8
 | 
			
		||||
						irq 0x70 = 4
 | 
			
		||||
					end
 | 
			
		||||
					device pnp 2e.3 off end	# Com2
 | 
			
		||||
					device pnp 2e.5 on	# Keyboard
 | 
			
		||||
						io 0x60 = 0x60
 | 
			
		||||
						io 0x62 = 0x64
 | 
			
		||||
						irq 0x70 = 1
 | 
			
		||||
						irq 0x72 = 12
 | 
			
		||||
					end
 | 
			
		||||
					device pnp 2e.6 off end	# CIR
 | 
			
		||||
					device pnp 2e.7 off end	# GAME_MIDI_GIPO1
 | 
			
		||||
					device pnp 2e.8 off end	# GPIO2
 | 
			
		||||
					device pnp 2e.9 off end	# GPIO3
 | 
			
		||||
					device pnp 2e.a off end	# ACPI
 | 
			
		||||
					device pnp 2e.b off end	# HW Monitor
 | 
			
		||||
				end
 | 
			
		||||
			end
 | 
			
		||||
			device pci f.2 on end			# IDE Controller
 | 
			
		||||
			device pci f.3 on end			# Audio
 | 
			
		||||
			device pci f.4 on end			# OHCI
 | 
			
		||||
			device pci f.5 on end			# EHCI
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
	# APIC cluster is late CPU init.
 | 
			
		||||
	device apic_cluster 0 on
 | 
			
		||||
		chip cpu/amd/model_lx
 | 
			
		||||
			device apic 0 on end
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
@@ -1,180 +0,0 @@
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
uses CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
uses CONFIG_HAVE_FALLBACK_BOOT
 | 
			
		||||
uses CONFIG_HAVE_HARD_RESET
 | 
			
		||||
uses CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_USE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_ROM_PAYLOAD
 | 
			
		||||
uses CONFIG_IRQ_SLOT_COUNT
 | 
			
		||||
uses CONFIG_MAINBOARD
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses COREBOOT_EXTRA_VERSION
 | 
			
		||||
uses CONFIG_ARCH
 | 
			
		||||
uses CONFIG_FALLBACK_SIZE
 | 
			
		||||
uses CONFIG_STACK_SIZE
 | 
			
		||||
uses CONFIG_HEAP_SIZE
 | 
			
		||||
uses CONFIG_ROM_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_OFFSET
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_NRV2B
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
 | 
			
		||||
uses CONFIG_PRECOMPRESSED_PAYLOAD
 | 
			
		||||
uses CONFIG_ROMBASE
 | 
			
		||||
uses CONFIG_RAMBASE
 | 
			
		||||
uses CONFIG_XIP_ROM_SIZE
 | 
			
		||||
uses CONFIG_XIP_ROM_BASE
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_CROSS_COMPILE
 | 
			
		||||
uses CC
 | 
			
		||||
uses HOSTCC
 | 
			
		||||
uses CONFIG_OBJCOPY
 | 
			
		||||
uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
uses CONFIG_TTYS0_BAUD
 | 
			
		||||
uses CONFIG_TTYS0_BASE
 | 
			
		||||
uses CONFIG_TTYS0_LCS
 | 
			
		||||
uses CONFIG_UDELAY_TSC
 | 
			
		||||
uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
 | 
			
		||||
uses CONFIG_CONSOLE_VGA
 | 
			
		||||
uses CONFIG_PCI_ROM_RUN
 | 
			
		||||
uses CONFIG_VIDEO_MB
 | 
			
		||||
uses CONFIG_USE_DCACHE_RAM
 | 
			
		||||
uses CONFIG_DCACHE_RAM_BASE
 | 
			
		||||
uses CONFIG_DCACHE_RAM_SIZE
 | 
			
		||||
uses CONFIG_USE_PRINTK_IN_CAR
 | 
			
		||||
uses CONFIG_PIRQ_ROUTE
 | 
			
		||||
 | 
			
		||||
## CONFIG_ROM_SIZE is the size of boot ROM that this board will use.
 | 
			
		||||
default CONFIG_ROM_SIZE  = 256*1024
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### Build options
 | 
			
		||||
###
 | 
			
		||||
default CONFIG_CONSOLE_VGA=0
 | 
			
		||||
default CONFIG_VIDEO_MB=8
 | 
			
		||||
default CONFIG_PCI_ROM_RUN=0
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code for the fallback boot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_FALLBACK_BOOT=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## no MP table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_MP_TABLE=0
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to reset the motherboard from coreboot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_HARD_RESET=0
 | 
			
		||||
 | 
			
		||||
## Delay timer options
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_UDELAY_TSC=1
 | 
			
		||||
default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a programmable irq routing table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_PIRQ_TABLE=1
 | 
			
		||||
default CONFIG_IRQ_SLOT_COUNT=4
 | 
			
		||||
default CONFIG_PIRQ_ROUTE=1
 | 
			
		||||
#object irq_tables.o
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a CMOS option table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_OPTION_TABLE=0
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### coreboot layout values
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
## CONFIG_ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
 | 
			
		||||
default CONFIG_ROM_IMAGE_SIZE = 32768
 | 
			
		||||
default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## enable CACHE_AS_RAM specifics
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_USE_DCACHE_RAM=1
 | 
			
		||||
default CONFIG_DCACHE_RAM_BASE=0xc8000
 | 
			
		||||
default CONFIG_DCACHE_RAM_SIZE=0x08000
 | 
			
		||||
default CONFIG_USE_PRINTK_IN_CAR=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 8K stack
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_STACK_SIZE=0x2000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 16K heap
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HEAP_SIZE=0x4000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Only use the option table in a normal image
 | 
			
		||||
##
 | 
			
		||||
#default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
default CONFIG_USE_OPTION_TABLE = 0
 | 
			
		||||
 | 
			
		||||
default CONFIG_RAMBASE = 0x00004000
 | 
			
		||||
 | 
			
		||||
default CONFIG_ROM_PAYLOAD = 1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The default compiler
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_CROSS_COMPILE=""
 | 
			
		||||
default CC="$(CONFIG_CROSS_COMPILE)gcc -m32"
 | 
			
		||||
default HOSTCC="gcc"
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The Serial Console
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
# To Enable the Serial Console
 | 
			
		||||
default CONFIG_CONSOLE_SERIAL8250=1
 | 
			
		||||
 | 
			
		||||
## Select the serial console baud rate
 | 
			
		||||
default CONFIG_TTYS0_BAUD=115200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=57600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=38400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=19200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=9600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=4800
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=2400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=1200
 | 
			
		||||
 | 
			
		||||
# Select the serial console base port
 | 
			
		||||
default CONFIG_TTYS0_BASE=0x3f8
 | 
			
		||||
 | 
			
		||||
# Select the serial protocol
 | 
			
		||||
# This defaults to 8 data bits, 1 stop bit, and no parity
 | 
			
		||||
default CONFIG_TTYS0_LCS=0x3
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
### Select the coreboot loglevel
 | 
			
		||||
##
 | 
			
		||||
## EMERG      1   system is unusable
 | 
			
		||||
## ALERT      2   action must be taken immediately
 | 
			
		||||
## CRIT       3   critical conditions
 | 
			
		||||
## ERR        4   error conditions
 | 
			
		||||
## WARNING    5   warning conditions
 | 
			
		||||
## NOTICE     6   normal but significant condition
 | 
			
		||||
## INFO       7   informational
 | 
			
		||||
## CONFIG_DEBUG      8   debug-level messages
 | 
			
		||||
## SPEW       9   Way too many details
 | 
			
		||||
 | 
			
		||||
## Request this level of debugging output
 | 
			
		||||
default  CONFIG_DEFAULT_CONSOLE_LOGLEVEL=8
 | 
			
		||||
## At a maximum only compile in this level of debugging
 | 
			
		||||
default  CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=8
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
@@ -1,258 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2008 Advanced Micro Devices, Inc.
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; version 2 of the License.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
##
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
## CONFIG_XIP_ROM_SIZE must be a power of 2.
 | 
			
		||||
default CONFIG_XIP_ROM_SIZE = 64 * 1024
 | 
			
		||||
include /config/nofailovercalculation.lb
 | 
			
		||||
 | 
			
		||||
arch i386 end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build the objects we have code for in this directory.
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
driver mainboard.o
 | 
			
		||||
 | 
			
		||||
#dir /drivers/si/3114
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_MP_TABLE object mptable.o end
 | 
			
		||||
if CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
	object get_bus_conf.o
 | 
			
		||||
	object irq_tables.o
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_ACPI_TABLES
 | 
			
		||||
	object acpi_tables.o
 | 
			
		||||
	object fadt.o
 | 
			
		||||
	makerule dsdt.c
 | 
			
		||||
		depends "$(CONFIG_MAINBOARD)/acpi/*.asl"
 | 
			
		||||
		action  "iasl -p $(CURDIR)/dsdt -tc $(CONFIG_MAINBOARD)/acpi/dsdt.asl"
 | 
			
		||||
		action  "mv dsdt.hex dsdt.c"
 | 
			
		||||
	end
 | 
			
		||||
	object ./dsdt.o
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
	if CONFIG_USE_INIT
 | 
			
		||||
 | 
			
		||||
		makerule ./cache_as_ram_auto.o
 | 
			
		||||
			depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
 | 
			
		||||
			action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
	else
 | 
			
		||||
 | 
			
		||||
		makerule ./cache_as_ram_auto.inc
 | 
			
		||||
			depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
 | 
			
		||||
			action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
 | 
			
		||||
			action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
 | 
			
		||||
			action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our 16 bit and 32 bit coreboot entry code
 | 
			
		||||
##
 | 
			
		||||
mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
mainboardinit cpu/x86/32bit/entry32.inc
 | 
			
		||||
ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
	if CONFIG_USE_INIT
 | 
			
		||||
		ldscript /cpu/x86/32bit/entry32.lds
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	if CONFIG_USE_INIT
 | 
			
		||||
		ldscript      /cpu/amd/car/cache_as_ram.lds
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our reset vector (This is where coreboot is entered)
 | 
			
		||||
##
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds
 | 
			
		||||
else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include an id string (For safe flashing)
 | 
			
		||||
##
 | 
			
		||||
mainboardinit arch/i386/lib/id.inc
 | 
			
		||||
ldscript /arch/i386/lib/id.lds
 | 
			
		||||
 | 
			
		||||
	##
 | 
			
		||||
	## Setup Cache-As-Ram
 | 
			
		||||
	##
 | 
			
		||||
	mainboardinit cpu/amd/car/cache_as_ram.inc
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### This is the early phase of coreboot startup
 | 
			
		||||
### Things are delicate and we test to see if we should
 | 
			
		||||
### failover to another image.
 | 
			
		||||
###
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
		ldscript /arch/i386/lib/failover.lds
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### O.k. We aren't just an intermediary anymore!
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Setup RAM
 | 
			
		||||
##
 | 
			
		||||
	if CONFIG_USE_INIT
 | 
			
		||||
		initobject cache_as_ram_auto.o
 | 
			
		||||
	else
 | 
			
		||||
		mainboardinit ./cache_as_ram_auto.inc
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include the secondary Configuration files
 | 
			
		||||
##
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
#The variables belong to mainboard are defined here.
 | 
			
		||||
 | 
			
		||||
#Define gpp_configuration,	A=0, B=1, C=2, D=3, E=4(default)
 | 
			
		||||
#Define port_enable, (bit map): GFX(2,3), GPP(4,5,6,7)
 | 
			
		||||
#Define gfx_dev2_dev3, 0: a link will never be established on Dev2 or Dev3,
 | 
			
		||||
#			1: the system allows a PCIE link to be established on Dev2 or Dev3.
 | 
			
		||||
#Define gfx_dual_slot, 0: single slot, 1: dual slot
 | 
			
		||||
#Define gfx_lane_reversal, 0: disable lane reversal, 1: enable
 | 
			
		||||
#Define gfx_tmds, 0: didn't support TMDS, 1: support
 | 
			
		||||
#Define gfx_compliance, 0: didn't support compliance, 1: support
 | 
			
		||||
#Define gfx_reconfiguration, 0: short reconfiguration, 1(default): long reconfiguration
 | 
			
		||||
#Define gfx_link_width, 0: x16, 1: x1, 2: x2, 3: x4, 4: x8, 5: x12 (not supported), 6: x16
 | 
			
		||||
chip northbridge/amd/amdk8/root_complex
 | 
			
		||||
	device apic_cluster 0 on
 | 
			
		||||
		chip cpu/amd/socket_S1G1
 | 
			
		||||
		device apic 0 on end
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
	device pci_domain 0 on
 | 
			
		||||
		chip northbridge/amd/amdk8
 | 
			
		||||
			device pci 18.0 on #  southbridge
 | 
			
		||||
				chip southbridge/amd/rs690
 | 
			
		||||
					device pci 0.0 on end # HT  	0x7910
 | 
			
		||||
					device pci 1.0 on  # Internal Graphics P2P bridge 0x7912
 | 
			
		||||
						device pci 5.0 on end	# Internal Graphics 0x791F
 | 
			
		||||
					end
 | 
			
		||||
					device pci 2.0 on end # PCIE P2P bridge (external graphics) 0x7913
 | 
			
		||||
					device pci 3.0 off end # PCIE P2P bridge	0x791b
 | 
			
		||||
					device pci 4.0 on end # PCIE P2P bridge 0x7914
 | 
			
		||||
					device pci 5.0 on end # PCIE P2P bridge 0x7915
 | 
			
		||||
					device pci 6.0 on end # PCIE P2P bridge 0x7916
 | 
			
		||||
					device pci 7.0 on end # PCIE P2P bridge 0x7917
 | 
			
		||||
					device pci 8.0 off end # NB/SB Link P2P bridge
 | 
			
		||||
					register "gpp_configuration" = "4"
 | 
			
		||||
					register "port_enable" = "0xfc"
 | 
			
		||||
					register "gfx_dev2_dev3" = "1"
 | 
			
		||||
					register "gfx_dual_slot" = "0"
 | 
			
		||||
					register "gfx_lane_reversal" = "0"
 | 
			
		||||
					register "gfx_tmds" = "0"
 | 
			
		||||
					register "gfx_compliance" = "0"
 | 
			
		||||
					register "gfx_reconfiguration" = "1"
 | 
			
		||||
					register "gfx_link_width" = "0"
 | 
			
		||||
				end
 | 
			
		||||
				chip southbridge/amd/sb600 # it is under NB/SB Link, but on the same pri bus
 | 
			
		||||
					device pci 12.0 on end # SATA  0x4380
 | 
			
		||||
					device pci 13.0 on end # USB   0x4387
 | 
			
		||||
					device pci 13.1 on end # USB   0x4388
 | 
			
		||||
					device pci 13.2 on end # USB   0x4389
 | 
			
		||||
					device pci 13.3 on end # USB   0x438a
 | 
			
		||||
					device pci 13.4 on end # USB   0x438b
 | 
			
		||||
					device pci 13.5 on end # USB 2 0x4386
 | 
			
		||||
	 				device pci 14.0 on # SM        0x4385
 | 
			
		||||
						chip drivers/generic/generic #dimm 0-0-0
 | 
			
		||||
							device i2c 50 on end
 | 
			
		||||
						end
 | 
			
		||||
						chip drivers/generic/generic #dimm 0-0-1
 | 
			
		||||
							device i2c 51 on end
 | 
			
		||||
						end
 | 
			
		||||
						chip drivers/generic/generic #dimm 0-1-0
 | 
			
		||||
							device i2c 52 on end
 | 
			
		||||
						end
 | 
			
		||||
						chip drivers/generic/generic #dimm 0-1-1
 | 
			
		||||
							device i2c 53 on end
 | 
			
		||||
						end
 | 
			
		||||
					end # SM
 | 
			
		||||
					device pci 14.1 on end # IDE    0x438c
 | 
			
		||||
					device pci 14.2 on end # HDA    0x4383
 | 
			
		||||
					device pci 14.3 on # LPC	0x438d
 | 
			
		||||
						chip superio/ite/it8712f
 | 
			
		||||
							device pnp 2e.0 off #  Floppy
 | 
			
		||||
								io 0x60 = 0x3f0
 | 
			
		||||
								irq 0x70 = 6
 | 
			
		||||
								drq 0x74 = 2
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.1 on #  Com1
 | 
			
		||||
								io 0x60 = 0x3f8
 | 
			
		||||
								irq 0x70 = 4
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.2 off #  Com2
 | 
			
		||||
								io 0x60 = 0x2f8
 | 
			
		||||
								irq 0x70 = 3
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.3 off #  Parallel Port
 | 
			
		||||
								io 0x60 = 0x378
 | 
			
		||||
								irq 0x70 = 7
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.4 off end #  EC
 | 
			
		||||
							device pnp 2e.5 on #  Keyboard
 | 
			
		||||
								io 0x60 = 0x60
 | 
			
		||||
								io 0x62 = 0x64
 | 
			
		||||
								irq 0x70 = 1
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.6 on #  Mouse
 | 
			
		||||
								irq 0x70 = 12
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.7 off #  GPIO, must be closed for unresolved reason.
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.8 off #  MIDI
 | 
			
		||||
								io 0x60 = 0x300
 | 
			
		||||
								irq 0x70 = 9
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.9 off #  GAME
 | 
			
		||||
								io 0x60 = 0x220
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.a off end #  CIR
 | 
			
		||||
						end	#superio/ite/it8712f
 | 
			
		||||
					end		#LPC
 | 
			
		||||
					device pci 14.4 on end # PCI 0x4384
 | 
			
		||||
					device pci 14.5 on end # ACI 0x4382
 | 
			
		||||
					device pci 14.6 on end # MCI 0x438e
 | 
			
		||||
					register "ide0_enable" = "1"
 | 
			
		||||
					register "sata0_enable" = "1"
 | 
			
		||||
					register "hda_viddid" = "0x10ec0882"
 | 
			
		||||
				end	#southbridge/amd/sb600
 | 
			
		||||
			end #  device pci 18.0
 | 
			
		||||
 | 
			
		||||
			device pci 18.0 on end
 | 
			
		||||
			device pci 18.0 on end
 | 
			
		||||
			device pci 18.1 on end
 | 
			
		||||
			device pci 18.2 on end
 | 
			
		||||
			device pci 18.3 on end
 | 
			
		||||
		end		#northbridge/amd/amdk8
 | 
			
		||||
	end #pci_domain
 | 
			
		||||
end		#northbridge/amd/amdk8/root_complex
 | 
			
		||||
 | 
			
		||||
@@ -1,301 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2008 Advanced Micro Devices, Inc.
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; version 2 of the License.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
##
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_ACPI_TABLES
 | 
			
		||||
uses CONFIG_HAVE_ACPI_RESUME
 | 
			
		||||
uses CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
uses CONFIG_HAVE_FALLBACK_BOOT
 | 
			
		||||
uses CONFIG_HAVE_HARD_RESET
 | 
			
		||||
uses CONFIG_IRQ_SLOT_COUNT
 | 
			
		||||
uses CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_MAX_CPUS
 | 
			
		||||
uses CONFIG_MAX_PHYSICAL_CPUS
 | 
			
		||||
uses CONFIG_LOGICAL_CPUS
 | 
			
		||||
uses CONFIG_IOAPIC
 | 
			
		||||
uses CONFIG_SMP
 | 
			
		||||
uses CONFIG_FALLBACK_SIZE
 | 
			
		||||
uses CONFIG_ROM_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_OFFSET
 | 
			
		||||
uses CONFIG_ROM_PAYLOAD
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
 | 
			
		||||
uses CONFIG_ROMBASE
 | 
			
		||||
uses CONFIG_XIP_ROM_SIZE
 | 
			
		||||
uses CONFIG_XIP_ROM_BASE
 | 
			
		||||
uses CONFIG_STACK_SIZE
 | 
			
		||||
uses CONFIG_HEAP_SIZE
 | 
			
		||||
uses CONFIG_USE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_LB_CKS_RANGE_START
 | 
			
		||||
uses CONFIG_LB_CKS_RANGE_END
 | 
			
		||||
uses CONFIG_LB_CKS_LOC
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD
 | 
			
		||||
uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
 | 
			
		||||
uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
 | 
			
		||||
uses COREBOOT_EXTRA_VERSION
 | 
			
		||||
uses CONFIG_RAMBASE
 | 
			
		||||
uses CONFIG_TTYS0_BAUD
 | 
			
		||||
uses CONFIG_TTYS0_BASE
 | 
			
		||||
uses CONFIG_TTYS0_LCS
 | 
			
		||||
uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL
 | 
			
		||||
uses CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
uses CONFIG_HAVE_INIT_TIMER
 | 
			
		||||
uses CONFIG_GDB_STUB
 | 
			
		||||
uses CONFIG_GDB_STUB
 | 
			
		||||
uses CONFIG_CROSS_COMPILE
 | 
			
		||||
uses CC
 | 
			
		||||
uses HOSTCC
 | 
			
		||||
uses CONFIG_OBJCOPY
 | 
			
		||||
uses CONFIG_CONSOLE_VGA
 | 
			
		||||
uses CONFIG_PCI_ROM_RUN
 | 
			
		||||
uses CONFIG_VGA_ROM_RUN
 | 
			
		||||
uses CONFIG_HW_MEM_HOLE_SIZEK
 | 
			
		||||
uses CONFIG_HT_CHAIN_UNITID_BASE
 | 
			
		||||
uses CONFIG_HT_CHAIN_END_UNITID_BASE
 | 
			
		||||
uses CONFIG_SB_HT_CHAIN_ON_BUS0
 | 
			
		||||
 | 
			
		||||
uses CONFIG_USE_DCACHE_RAM
 | 
			
		||||
uses CONFIG_DCACHE_RAM_BASE
 | 
			
		||||
uses CONFIG_DCACHE_RAM_SIZE
 | 
			
		||||
uses CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE
 | 
			
		||||
uses CONFIG_USE_INIT
 | 
			
		||||
 | 
			
		||||
uses CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY
 | 
			
		||||
uses CONFIG_USE_PRINTK_IN_CAR
 | 
			
		||||
 | 
			
		||||
uses CONFIG_VIDEO_MB
 | 
			
		||||
uses CONFIG_GFXUMA
 | 
			
		||||
uses CONFIG_HAVE_MAINBOARD_RESOURCES
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### Build options
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## CONFIG_ROM_SIZE is the size of boot ROM that this board will use.
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_ROM_SIZE=524288
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## CONFIG_FALLBACK_SIZE is the amount of the ROM the complete fallback image will use
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code for the fallback boot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_FALLBACK_BOOT=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to reset the motherboard from coreboot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_HARD_RESET=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a programmable irq routing table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_PIRQ_TABLE=1
 | 
			
		||||
default CONFIG_IRQ_SLOT_COUNT=11
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export an x86 MP table
 | 
			
		||||
## Useful for specifying IRQ routing values
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_MP_TABLE=1
 | 
			
		||||
 | 
			
		||||
## ACPI tables will be included
 | 
			
		||||
default CONFIG_GENERATE_ACPI_TABLES=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a CMOS option table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_OPTION_TABLE=0
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Move the default coreboot cmos range off of AMD RTC registers
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_LB_CKS_RANGE_START=49
 | 
			
		||||
default CONFIG_LB_CKS_RANGE_END=122
 | 
			
		||||
default CONFIG_LB_CKS_LOC=123
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code for SMP support
 | 
			
		||||
## Only worry about 2 micro processors
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_SMP=1
 | 
			
		||||
default CONFIG_MAX_CPUS=2
 | 
			
		||||
 | 
			
		||||
default CONFIG_MAX_PHYSICAL_CPUS=1
 | 
			
		||||
default CONFIG_LOGICAL_CPUS=1
 | 
			
		||||
 | 
			
		||||
#1G memory hole
 | 
			
		||||
default CONFIG_HW_MEM_HOLE_SIZEK=0x100000
 | 
			
		||||
 | 
			
		||||
#VGA Console
 | 
			
		||||
default CONFIG_CONSOLE_VGA=1
 | 
			
		||||
default CONFIG_PCI_ROM_RUN=1
 | 
			
		||||
default CONFIG_VGA_ROM_RUN=1
 | 
			
		||||
 | 
			
		||||
# BTDC: Only one HT device on Herring.
 | 
			
		||||
#HT Unit ID offset
 | 
			
		||||
#default CONFIG_HT_CHAIN_UNITID_BASE=0x6
 | 
			
		||||
default CONFIG_HT_CHAIN_UNITID_BASE=0x0
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#real SB Unit ID
 | 
			
		||||
default CONFIG_HT_CHAIN_END_UNITID_BASE=0x1
 | 
			
		||||
 | 
			
		||||
#make the SB HT chain on bus 0
 | 
			
		||||
default CONFIG_SB_HT_CHAIN_ON_BUS0=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## enable CACHE_AS_RAM specifics
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_USE_DCACHE_RAM=1
 | 
			
		||||
default CONFIG_DCACHE_RAM_BASE=0xc8000
 | 
			
		||||
default CONFIG_DCACHE_RAM_SIZE=0x8000
 | 
			
		||||
default CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE=0x01000
 | 
			
		||||
default CONFIG_USE_INIT=0
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to setup a generic IOAPIC
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_IOAPIC=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Clean up the motherboard id strings
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_MAINBOARD_PART_NUMBER="dbm690t"
 | 
			
		||||
default CONFIG_MAINBOARD_VENDOR="amd"
 | 
			
		||||
default CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID=0x1022
 | 
			
		||||
default CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID=0x3050
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### coreboot layout values
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
## CONFIG_ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
 | 
			
		||||
default CONFIG_ROM_IMAGE_SIZE = 65536
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 8K stack
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_STACK_SIZE=0x2000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 16K heap
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HEAP_SIZE=0x4000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Only use the option table in a normal image
 | 
			
		||||
##
 | 
			
		||||
#default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
default CONFIG_USE_OPTION_TABLE = 0
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## coreboot C code runs at this location in RAM
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_RAMBASE=0x00004000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Load the payload from the ROM
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_ROM_PAYLOAD = 1
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### Defaults of options that you may want to override in the target config file
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The default compiler
 | 
			
		||||
##
 | 
			
		||||
default CC="$(CONFIG_CROSS_COMPILE)gcc -m32"
 | 
			
		||||
default HOSTCC="gcc"
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Disable the gdb stub by default
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GDB_STUB=0
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
default CONFIG_USE_PRINTK_IN_CAR=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The Serial Console
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
# To Enable the Serial Console
 | 
			
		||||
default CONFIG_CONSOLE_SERIAL8250=1
 | 
			
		||||
 | 
			
		||||
## Select the serial console baud rate
 | 
			
		||||
default CONFIG_TTYS0_BAUD=115200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=57600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=38400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=19200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=9600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=4800
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=2400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=1200
 | 
			
		||||
 | 
			
		||||
# Select the serial console base port
 | 
			
		||||
default CONFIG_TTYS0_BASE=0x3f8
 | 
			
		||||
 | 
			
		||||
# Select the serial protocol
 | 
			
		||||
# This defaults to 8 data bits, 1 stop bit, and no parity
 | 
			
		||||
default CONFIG_TTYS0_LCS=0x3
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
### Select the coreboot loglevel
 | 
			
		||||
##
 | 
			
		||||
## EMERG      1   system is unusable
 | 
			
		||||
## ALERT      2   action must be taken immediately
 | 
			
		||||
## CRIT       3   critical conditions
 | 
			
		||||
## ERR        4   error conditions
 | 
			
		||||
## WARNING    5   warning conditions
 | 
			
		||||
## NOTICE     6   normal but significant condition
 | 
			
		||||
## INFO       7   informational
 | 
			
		||||
## CONFIG_DEBUG      8   debug-level messages
 | 
			
		||||
## SPEW       9   Way too many details
 | 
			
		||||
 | 
			
		||||
## Request this level of debugging output
 | 
			
		||||
default  CONFIG_DEFAULT_CONSOLE_LOGLEVEL=8
 | 
			
		||||
## At a maximum only compile in this level of debugging
 | 
			
		||||
default  CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=8
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Select power on after power fail setting
 | 
			
		||||
default CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL="MAINBOARD_POWER_ON"
 | 
			
		||||
 | 
			
		||||
default CONFIG_VIDEO_MB=1
 | 
			
		||||
default CONFIG_GFXUMA=1
 | 
			
		||||
default CONFIG_HAVE_MAINBOARD_RESOURCES=1
 | 
			
		||||
 | 
			
		||||
### End Options.lb
 | 
			
		||||
end
 | 
			
		||||
@@ -1,125 +0,0 @@
 | 
			
		||||
## CONFIG_XIP_ROM_SIZE must be a power of 2.
 | 
			
		||||
default CONFIG_XIP_ROM_SIZE = 64 * 1024
 | 
			
		||||
include /config/nofailovercalculation.lb
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Set all of the defaults for an x86 architecture
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
arch i386 end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build the objects we have code for in this directory.
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
driver mainboard.o
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
	object irq_tables.o
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
	#compile cache_as_ram.c to auto.inc
 | 
			
		||||
	makerule ./cache_as_ram_auto.inc
 | 
			
		||||
			depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
 | 
			
		||||
			action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
 | 
			
		||||
			action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
 | 
			
		||||
			action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our 16 bit and 32 bit coreboot entry code
 | 
			
		||||
##
 | 
			
		||||
mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
mainboardinit cpu/x86/32bit/entry32.inc
 | 
			
		||||
ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
ldscript /cpu/x86/32bit/entry32.lds
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our reset vector (This is where coreboot is entered)
 | 
			
		||||
##
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds
 | 
			
		||||
else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
### Should this be in the northbridge code?
 | 
			
		||||
#not in serengeti_cheetah mainboardinit arch/i386/lib/cpu_reset.inc
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include an id string (For safe flashing)
 | 
			
		||||
##
 | 
			
		||||
mainboardinit arch/i386/lib/id.inc
 | 
			
		||||
ldscript /arch/i386/lib/id.lds
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### This is the early phase of coreboot startup
 | 
			
		||||
### Things are delicate and we test to see if we should
 | 
			
		||||
### failover to another image.
 | 
			
		||||
###
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	ldscript /arch/i386/lib/failover.lds
 | 
			
		||||
#	mainboardinit ./failover.inc
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### O.k. We aren't just an intermediary anymore!
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Setup RAM
 | 
			
		||||
##
 | 
			
		||||
mainboardinit cpu/x86/fpu_enable.inc
 | 
			
		||||
 | 
			
		||||
	mainboardinit cpu/amd/model_lx/cache_as_ram.inc
 | 
			
		||||
	mainboardinit ./cache_as_ram_auto.inc
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include the secondary Configuration files
 | 
			
		||||
##
 | 
			
		||||
dir /pc80
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
chip northbridge/amd/lx
 | 
			
		||||
	device pci_domain 0 on
 | 
			
		||||
		device pci 1.0 on end	# Northbridge
 | 
			
		||||
		device pci 1.1 on end	# Graphics
 | 
			
		||||
		chip southbridge/amd/cs5536
 | 
			
		||||
			# IRQ 12 and 1 unmasked,  Keyboard and Mouse IRQs. OK
 | 
			
		||||
			# SIRQ Mode = Active(Quiet) mode. Save power....
 | 
			
		||||
			# Invert mask = IRQ 12 and 1 are active high. Keyboard and Mouse IRQs. OK
 | 
			
		||||
			register "lpc_serirq_enable" = "0x00001002"
 | 
			
		||||
			register "lpc_serirq_polarity" = "0x0000EFFD"
 | 
			
		||||
			register "lpc_serirq_mode" = "1"
 | 
			
		||||
			register "enable_gpio_int_route" = "0x0D0C0700"
 | 
			
		||||
			register "enable_ide_nand_flash" = "0" # 0:ide mode, 1:flash
 | 
			
		||||
			register "enable_USBP4_device" = "0"	#0: host, 1:device
 | 
			
		||||
			register "enable_USBP4_overcurrent" = "0" #0:off, xxxx:overcurrent setting CS5536 Data Book (pages 380-381)
 | 
			
		||||
			register "com1_enable" = "1"
 | 
			
		||||
			register "com1_address" = "0x3F8"
 | 
			
		||||
			register "com1_irq" = "4"
 | 
			
		||||
			register "com2_enable" = "0"
 | 
			
		||||
			register "com2_address" = "0x2F8"
 | 
			
		||||
			register "com2_irq" = "3"
 | 
			
		||||
			register "unwanted_vpci[0]" = "0"	# End of list has a zero
 | 
			
		||||
			device pci b.0 on end	# Slot 3
 | 
			
		||||
			device pci c.0 on end	# Slot 4
 | 
			
		||||
			device pci d.0 on end	# Slot 1
 | 
			
		||||
			device pci e.0 on end	# Slot 2
 | 
			
		||||
			device pci f.0 on end	# ISA Bridge
 | 
			
		||||
			device pci f.2 on end	# IDE Controller
 | 
			
		||||
			device pci f.3 on end	# Audio
 | 
			
		||||
			device pci f.4 on end	# OHCI
 | 
			
		||||
			device pci f.5 on end	# EHCI
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
	# APIC cluster is late CPU init.
 | 
			
		||||
	device apic_cluster 0 on
 | 
			
		||||
		chip cpu/amd/model_lx
 | 
			
		||||
			device apic 0 on end
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
@@ -1,180 +0,0 @@
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
uses CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
uses CONFIG_HAVE_FALLBACK_BOOT
 | 
			
		||||
uses CONFIG_HAVE_HARD_RESET
 | 
			
		||||
uses CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_USE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_ROM_PAYLOAD
 | 
			
		||||
uses CONFIG_IRQ_SLOT_COUNT
 | 
			
		||||
uses CONFIG_MAINBOARD
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses COREBOOT_EXTRA_VERSION
 | 
			
		||||
uses CONFIG_ARCH
 | 
			
		||||
uses CONFIG_FALLBACK_SIZE
 | 
			
		||||
uses CONFIG_STACK_SIZE
 | 
			
		||||
uses CONFIG_HEAP_SIZE
 | 
			
		||||
uses CONFIG_ROM_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_OFFSET
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_NRV2B
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
 | 
			
		||||
uses CONFIG_PRECOMPRESSED_PAYLOAD
 | 
			
		||||
uses CONFIG_ROMBASE
 | 
			
		||||
uses CONFIG_RAMBASE
 | 
			
		||||
uses CONFIG_XIP_ROM_SIZE
 | 
			
		||||
uses CONFIG_XIP_ROM_BASE
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_CROSS_COMPILE
 | 
			
		||||
uses CC
 | 
			
		||||
uses HOSTCC
 | 
			
		||||
uses CONFIG_OBJCOPY
 | 
			
		||||
uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
uses CONFIG_TTYS0_BAUD
 | 
			
		||||
uses CONFIG_TTYS0_BASE
 | 
			
		||||
uses CONFIG_TTYS0_LCS
 | 
			
		||||
uses CONFIG_UDELAY_TSC
 | 
			
		||||
uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
 | 
			
		||||
uses CONFIG_CONSOLE_VGA
 | 
			
		||||
uses CONFIG_PCI_ROM_RUN
 | 
			
		||||
uses CONFIG_VIDEO_MB
 | 
			
		||||
uses CONFIG_USE_DCACHE_RAM
 | 
			
		||||
uses CONFIG_DCACHE_RAM_BASE
 | 
			
		||||
uses CONFIG_DCACHE_RAM_SIZE
 | 
			
		||||
uses CONFIG_USE_PRINTK_IN_CAR
 | 
			
		||||
uses CONFIG_PIRQ_ROUTE
 | 
			
		||||
 | 
			
		||||
## CONFIG_ROM_SIZE is the size of boot ROM that this board will use.
 | 
			
		||||
default CONFIG_ROM_SIZE  = 256*1024
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### Build options
 | 
			
		||||
###
 | 
			
		||||
default CONFIG_CONSOLE_VGA=0
 | 
			
		||||
default CONFIG_VIDEO_MB=8
 | 
			
		||||
default CONFIG_PCI_ROM_RUN=0
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code for the fallback boot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_FALLBACK_BOOT=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## no MP table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_MP_TABLE=0
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to reset the motherboard from coreboot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_HARD_RESET=0
 | 
			
		||||
 | 
			
		||||
## Delay timer options
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_UDELAY_TSC=1
 | 
			
		||||
default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a programmable irq routing table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_PIRQ_TABLE=1
 | 
			
		||||
default CONFIG_IRQ_SLOT_COUNT=6
 | 
			
		||||
default CONFIG_PIRQ_ROUTE=1
 | 
			
		||||
#object irq_tables.o
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a CMOS option table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_OPTION_TABLE=0
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### coreboot layout values
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
## CONFIG_ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
 | 
			
		||||
default CONFIG_ROM_IMAGE_SIZE = 65536
 | 
			
		||||
default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## enable CACHE_AS_RAM specifics
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_USE_DCACHE_RAM=1
 | 
			
		||||
default CONFIG_DCACHE_RAM_BASE=0xc8000
 | 
			
		||||
default CONFIG_DCACHE_RAM_SIZE=0x08000
 | 
			
		||||
default CONFIG_USE_PRINTK_IN_CAR=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 8K stack
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_STACK_SIZE=0x2000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 16K heap
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HEAP_SIZE=0x4000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Only use the option table in a normal image
 | 
			
		||||
##
 | 
			
		||||
#default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
default CONFIG_USE_OPTION_TABLE = 0
 | 
			
		||||
 | 
			
		||||
default CONFIG_RAMBASE = 0x00004000
 | 
			
		||||
 | 
			
		||||
default CONFIG_ROM_PAYLOAD     = 1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The default compiler
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_CROSS_COMPILE=""
 | 
			
		||||
default CC="$(CONFIG_CROSS_COMPILE)gcc -m32"
 | 
			
		||||
default HOSTCC="gcc"
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The Serial Console
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
# To Enable the Serial Console
 | 
			
		||||
default CONFIG_CONSOLE_SERIAL8250=1
 | 
			
		||||
 | 
			
		||||
## Select the serial console baud rate
 | 
			
		||||
default CONFIG_TTYS0_BAUD=115200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=57600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=38400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=19200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=9600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=4800
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=2400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=1200
 | 
			
		||||
 | 
			
		||||
# Select the serial console base port
 | 
			
		||||
default CONFIG_TTYS0_BASE=0x3f8
 | 
			
		||||
 | 
			
		||||
# Select the serial protocol
 | 
			
		||||
# This defaults to 8 data bits, 1 stop bit, and no parity
 | 
			
		||||
default CONFIG_TTYS0_LCS=0x3
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
### Select the coreboot loglevel
 | 
			
		||||
##
 | 
			
		||||
## EMERG      1   system is unusable
 | 
			
		||||
## ALERT      2   action must be taken immediately
 | 
			
		||||
## CRIT       3   critical conditions
 | 
			
		||||
## ERR        4   error conditions
 | 
			
		||||
## WARNING    5   warning conditions
 | 
			
		||||
## NOTICE     6   normal but significant condition
 | 
			
		||||
## INFO       7   informational
 | 
			
		||||
## CONFIG_DEBUG      8   debug-level messages
 | 
			
		||||
## SPEW       9   Way too many details
 | 
			
		||||
 | 
			
		||||
## Request this level of debugging output
 | 
			
		||||
default  CONFIG_DEFAULT_CONSOLE_LOGLEVEL=8
 | 
			
		||||
## At a maximum only compile in this level of debugging
 | 
			
		||||
default  CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=8
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
@@ -1,218 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2008 Advanced Micro Devices, Inc.
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; version 2 of the License.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
##
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
## CONFIG_XIP_ROM_SIZE must be a power of 2.
 | 
			
		||||
default CONFIG_XIP_ROM_SIZE = 64 * 1024
 | 
			
		||||
include /config/nofailovercalculation.lb
 | 
			
		||||
 | 
			
		||||
arch i386 end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build the objects we have code for in this directory.
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
driver mainboard.o
 | 
			
		||||
 | 
			
		||||
#dir /drivers/si/3114
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_MP_TABLE object mptable.o end
 | 
			
		||||
if CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
	object get_bus_conf.o
 | 
			
		||||
	object irq_tables.o
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_ACPI_TABLES
 | 
			
		||||
	object acpi_tables.o
 | 
			
		||||
	object fadt.o
 | 
			
		||||
	makerule dsdt.c
 | 
			
		||||
		depends "$(CONFIG_MAINBOARD)/acpi/*.asl"
 | 
			
		||||
		action  "iasl -p $(CURDIR)/dsdt -tc $(CONFIG_MAINBOARD)/acpi/dsdt.asl"
 | 
			
		||||
		action  "mv dsdt.hex dsdt.c"
 | 
			
		||||
	end
 | 
			
		||||
	object ./dsdt.o
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
	if CONFIG_USE_INIT
 | 
			
		||||
 | 
			
		||||
		makerule ./cache_as_ram_auto.o
 | 
			
		||||
			depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
 | 
			
		||||
			action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
	else
 | 
			
		||||
 | 
			
		||||
		makerule ./cache_as_ram_auto.inc
 | 
			
		||||
			depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
 | 
			
		||||
			action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
 | 
			
		||||
			action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
 | 
			
		||||
			action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our 16 bit and 32 bit coreboot entry code
 | 
			
		||||
##
 | 
			
		||||
mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
mainboardinit cpu/x86/32bit/entry32.inc
 | 
			
		||||
ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
	if CONFIG_USE_INIT
 | 
			
		||||
		ldscript /cpu/x86/32bit/entry32.lds
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	if CONFIG_USE_INIT
 | 
			
		||||
		ldscript      /cpu/amd/car/cache_as_ram.lds
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our reset vector (This is where coreboot is entered)
 | 
			
		||||
##
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds
 | 
			
		||||
else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include an id string (For safe flashing)
 | 
			
		||||
##
 | 
			
		||||
mainboardinit arch/i386/lib/id.inc
 | 
			
		||||
ldscript /arch/i386/lib/id.lds
 | 
			
		||||
 | 
			
		||||
	##
 | 
			
		||||
	## Setup Cache-As-Ram
 | 
			
		||||
	##
 | 
			
		||||
	mainboardinit cpu/amd/car/cache_as_ram.inc
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### This is the early phase of coreboot startup
 | 
			
		||||
### Things are delicate and we test to see if we should
 | 
			
		||||
### failover to another image.
 | 
			
		||||
###
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
		ldscript /arch/i386/lib/failover.lds
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### O.k. We aren't just an intermediary anymore!
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Setup RAM
 | 
			
		||||
##
 | 
			
		||||
	if CONFIG_USE_INIT
 | 
			
		||||
		initobject cache_as_ram_auto.o
 | 
			
		||||
	else
 | 
			
		||||
		mainboardinit ./cache_as_ram_auto.inc
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include the secondary Configuration files
 | 
			
		||||
##
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
#The variables belong to mainboard are defined here.
 | 
			
		||||
 | 
			
		||||
#Define gpp_configuration,	A=0, B=1, C=2, D=3, E=4(default)
 | 
			
		||||
#Define port_enable, (bit map): GFX(2,3), GPP(4,5,6,7)
 | 
			
		||||
#Define gfx_dev2_dev3, 0: a link will never be established on Dev2 or Dev3,
 | 
			
		||||
#			1: the system allows a PCIE link to be established on Dev2 or Dev3.
 | 
			
		||||
#Define gfx_dual_slot, 0: single slot, 1: dual slot
 | 
			
		||||
#Define gfx_lane_reversal, 0: disable lane reversal, 1: enable
 | 
			
		||||
#Define gfx_tmds, 0: didn't support TMDS, 1: support
 | 
			
		||||
#Define gfx_compliance, 0: didn't support compliance, 1: support
 | 
			
		||||
#Define gfx_reconfiguration, 0: short reconfiguration, 1(default): long reconfiguration
 | 
			
		||||
#Define gfx_link_width, 0: x16, 1: x1, 2: x2, 3: x4, 4: x8, 5: x12 (not supported), 6: x16
 | 
			
		||||
chip northbridge/amd/amdk8/root_complex
 | 
			
		||||
	device apic_cluster 0 on
 | 
			
		||||
		chip cpu/amd/socket_AM2
 | 
			
		||||
		device apic 0 on end
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
	device pci_domain 0 on
 | 
			
		||||
		chip northbridge/amd/amdk8
 | 
			
		||||
			device pci 18.0 on #  southbridge, K8 HT Configuration
 | 
			
		||||
				chip southbridge/amd/rs690
 | 
			
		||||
					device pci 0.0 on end # HT  	0x7910
 | 
			
		||||
				#	device pci 0.1 off end # CLK
 | 
			
		||||
					device pci 1.0 on  # Internal Graphics P2P bridge 0x7912
 | 
			
		||||
						device pci 5.0 on end	# Internal Graphics 0x791F
 | 
			
		||||
					end
 | 
			
		||||
					device pci 2.0 on end # PCIE P2P bridge (external graphics) 0x7913
 | 
			
		||||
					device pci 3.0 off end # PCIE P2P bridge	0x791b
 | 
			
		||||
					device pci 4.0 on end # PCIE P2P bridge 0x7914
 | 
			
		||||
					device pci 5.0 on end # PCIE P2P bridge 0x7915
 | 
			
		||||
					device pci 6.0 on end # PCIE P2P bridge 0x7916
 | 
			
		||||
					device pci 7.0 on end # PCIE P2P bridge 0x7917
 | 
			
		||||
					device pci 8.0 off end # NB/SB Link P2P bridge
 | 
			
		||||
					register "gpp_configuration" = "4"
 | 
			
		||||
					register "port_enable" = "0xfc"
 | 
			
		||||
					register "gfx_dev2_dev3" = "1"
 | 
			
		||||
					register "gfx_dual_slot" = "0"
 | 
			
		||||
					register "gfx_lane_reversal" = "0"
 | 
			
		||||
					register "gfx_tmds" = "0"
 | 
			
		||||
					register "gfx_compliance" = "0"
 | 
			
		||||
					register "gfx_reconfiguration" = "1"
 | 
			
		||||
					register "gfx_link_width" = "0"
 | 
			
		||||
				end
 | 
			
		||||
				chip southbridge/amd/sb600 # it is under NB/SB Link, but on the same pri bus
 | 
			
		||||
					device pci 12.0 on end # SATA  0x4380
 | 
			
		||||
					device pci 13.0 on end # USB   0x4387
 | 
			
		||||
					device pci 13.1 on end # USB   0x4388
 | 
			
		||||
					device pci 13.2 on end # USB   0x4389
 | 
			
		||||
					device pci 13.3 on end # USB   0x438a
 | 
			
		||||
					device pci 13.4 on end # USB   0x438b
 | 
			
		||||
					device pci 13.5 on end # USB 2 0x4386
 | 
			
		||||
	 				device pci 14.0 on # SM        0x4385
 | 
			
		||||
						chip drivers/generic/generic #dimm 0-0-0
 | 
			
		||||
							device i2c 50 on end
 | 
			
		||||
						end
 | 
			
		||||
						chip drivers/generic/generic #dimm 0-0-1
 | 
			
		||||
							device i2c 51 off end
 | 
			
		||||
						end
 | 
			
		||||
						chip drivers/generic/generic #dimm 0-1-0
 | 
			
		||||
							device i2c 52 off end
 | 
			
		||||
						end
 | 
			
		||||
						chip drivers/generic/generic #dimm 0-1-1
 | 
			
		||||
							device i2c 53 off end
 | 
			
		||||
						end
 | 
			
		||||
					end # SM
 | 
			
		||||
				device pci 14.1 on end # IDE    0x438c
 | 
			
		||||
				device pci 14.2 on end # HDA    0x4383
 | 
			
		||||
				device pci 14.3 on end # LPC	0x438d
 | 
			
		||||
				device pci 14.4 on end # PCI 0x4384
 | 
			
		||||
				device pci 14.5 on end # ACI 0x4382
 | 
			
		||||
				device pci 14.6 on end # MCI 0x438e
 | 
			
		||||
					register "ide0_enable" = "1"
 | 
			
		||||
					register "sata0_enable" = "1"
 | 
			
		||||
					register "hda_viddid" = "0x10ec0882"
 | 
			
		||||
				end	#southbridge/amd/sb600
 | 
			
		||||
			end #  device pci 18.0
 | 
			
		||||
 | 
			
		||||
			device pci 18.1 on end		# K8 Address Map
 | 
			
		||||
			device pci 18.2 on end		# K8 DRAM Controller and HT Trace Mode
 | 
			
		||||
			device pci 18.3 on end		# K8 Miscellaneous Control
 | 
			
		||||
		end		#northbridge/amd/amdk8
 | 
			
		||||
	end #pci_domain
 | 
			
		||||
end		#northbridge/amd/amdk8/root_complex
 | 
			
		||||
 | 
			
		||||
@@ -1,301 +0,0 @@
 | 
			
		||||
##
 | 
			
		||||
## This file is part of the coreboot project.
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2008 Advanced Micro Devices, Inc.
 | 
			
		||||
##
 | 
			
		||||
## This program is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published by
 | 
			
		||||
## the Free Software Foundation; version 2 of the License.
 | 
			
		||||
##
 | 
			
		||||
## This program is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with this program; if not, write to the Free Software
 | 
			
		||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
##
 | 
			
		||||
##
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_ACPI_TABLES
 | 
			
		||||
uses CONFIG_HAVE_ACPI_RESUME
 | 
			
		||||
uses CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
uses CONFIG_HAVE_FALLBACK_BOOT
 | 
			
		||||
uses CONFIG_HAVE_HARD_RESET
 | 
			
		||||
uses CONFIG_IRQ_SLOT_COUNT
 | 
			
		||||
uses CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_MAX_CPUS
 | 
			
		||||
uses CONFIG_MAX_PHYSICAL_CPUS
 | 
			
		||||
uses CONFIG_LOGICAL_CPUS
 | 
			
		||||
uses CONFIG_IOAPIC
 | 
			
		||||
uses CONFIG_SMP
 | 
			
		||||
uses CONFIG_FALLBACK_SIZE
 | 
			
		||||
uses CONFIG_ROM_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_OFFSET
 | 
			
		||||
uses CONFIG_ROM_PAYLOAD
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
 | 
			
		||||
uses CONFIG_ROMBASE
 | 
			
		||||
uses CONFIG_XIP_ROM_SIZE
 | 
			
		||||
uses CONFIG_XIP_ROM_BASE
 | 
			
		||||
uses CONFIG_STACK_SIZE
 | 
			
		||||
uses CONFIG_HEAP_SIZE
 | 
			
		||||
uses CONFIG_USE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_LB_CKS_RANGE_START
 | 
			
		||||
uses CONFIG_LB_CKS_RANGE_END
 | 
			
		||||
uses CONFIG_LB_CKS_LOC
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD
 | 
			
		||||
uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
 | 
			
		||||
uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
 | 
			
		||||
uses COREBOOT_EXTRA_VERSION
 | 
			
		||||
uses CONFIG_RAMBASE
 | 
			
		||||
uses CONFIG_TTYS0_BAUD
 | 
			
		||||
uses CONFIG_TTYS0_BASE
 | 
			
		||||
uses CONFIG_TTYS0_LCS
 | 
			
		||||
uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL
 | 
			
		||||
uses CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
uses CONFIG_HAVE_INIT_TIMER
 | 
			
		||||
uses CONFIG_GDB_STUB
 | 
			
		||||
uses CONFIG_GDB_STUB
 | 
			
		||||
uses CONFIG_CROSS_COMPILE
 | 
			
		||||
uses CC
 | 
			
		||||
uses HOSTCC
 | 
			
		||||
uses CONFIG_OBJCOPY
 | 
			
		||||
uses CONFIG_CONSOLE_VGA
 | 
			
		||||
uses CONFIG_PCI_ROM_RUN
 | 
			
		||||
uses CONFIG_VGA_ROM_RUN
 | 
			
		||||
uses CONFIG_HW_MEM_HOLE_SIZEK
 | 
			
		||||
uses CONFIG_HT_CHAIN_UNITID_BASE
 | 
			
		||||
uses CONFIG_HT_CHAIN_END_UNITID_BASE
 | 
			
		||||
uses CONFIG_SB_HT_CHAIN_ON_BUS0
 | 
			
		||||
 | 
			
		||||
uses CONFIG_USE_DCACHE_RAM
 | 
			
		||||
uses CONFIG_DCACHE_RAM_BASE
 | 
			
		||||
uses CONFIG_DCACHE_RAM_SIZE
 | 
			
		||||
uses CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE
 | 
			
		||||
uses CONFIG_USE_INIT
 | 
			
		||||
 | 
			
		||||
uses CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY
 | 
			
		||||
uses CONFIG_USE_PRINTK_IN_CAR
 | 
			
		||||
 | 
			
		||||
uses CONFIG_VIDEO_MB
 | 
			
		||||
uses CONFIG_GFXUMA
 | 
			
		||||
uses CONFIG_HAVE_MAINBOARD_RESOURCES
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### Build options
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## CONFIG_ROM_SIZE is the size of boot ROM that this board will use.
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_ROM_SIZE=524288
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## CONFIG_FALLBACK_SIZE is the amount of the ROM the complete fallback image will use
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code for the fallback boot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_FALLBACK_BOOT=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to reset the motherboard from coreboot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_HARD_RESET=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a programmable irq routing table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_PIRQ_TABLE=1
 | 
			
		||||
default CONFIG_IRQ_SLOT_COUNT=11
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export an x86 MP table
 | 
			
		||||
## Useful for specifying IRQ routing values
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_MP_TABLE=1
 | 
			
		||||
 | 
			
		||||
## ACPI tables will be included
 | 
			
		||||
default CONFIG_GENERATE_ACPI_TABLES=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a CMOS option table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_OPTION_TABLE=0
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Move the default coreboot cmos range off of AMD RTC registers
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_LB_CKS_RANGE_START=49
 | 
			
		||||
default CONFIG_LB_CKS_RANGE_END=122
 | 
			
		||||
default CONFIG_LB_CKS_LOC=123
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code for SMP support
 | 
			
		||||
## Only worry about 2 micro processors
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_SMP=1
 | 
			
		||||
default CONFIG_MAX_CPUS=2
 | 
			
		||||
 | 
			
		||||
default CONFIG_MAX_PHYSICAL_CPUS=1
 | 
			
		||||
default CONFIG_LOGICAL_CPUS=1
 | 
			
		||||
 | 
			
		||||
#1G memory hole
 | 
			
		||||
default CONFIG_HW_MEM_HOLE_SIZEK=0x100000
 | 
			
		||||
 | 
			
		||||
#VGA Console
 | 
			
		||||
default CONFIG_CONSOLE_VGA=1
 | 
			
		||||
default CONFIG_PCI_ROM_RUN=1
 | 
			
		||||
default CONFIG_VGA_ROM_RUN=1
 | 
			
		||||
 | 
			
		||||
# BTDC: Only one HT device on Herring.
 | 
			
		||||
#HT Unit ID offset
 | 
			
		||||
#default CONFIG_HT_CHAIN_UNITID_BASE=0x6
 | 
			
		||||
default CONFIG_HT_CHAIN_UNITID_BASE=0x0
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#real SB Unit ID
 | 
			
		||||
default CONFIG_HT_CHAIN_END_UNITID_BASE=0x1
 | 
			
		||||
 | 
			
		||||
#make the SB HT chain on bus 0
 | 
			
		||||
default CONFIG_SB_HT_CHAIN_ON_BUS0=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## enable CACHE_AS_RAM specifics
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_USE_DCACHE_RAM=1
 | 
			
		||||
default CONFIG_DCACHE_RAM_BASE=0xc8000
 | 
			
		||||
default CONFIG_DCACHE_RAM_SIZE=0x8000
 | 
			
		||||
default CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE=0x01000
 | 
			
		||||
default CONFIG_USE_INIT=0
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to setup a generic IOAPIC
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_IOAPIC=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Clean up the motherboard id strings
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_MAINBOARD_PART_NUMBER="pistachio"
 | 
			
		||||
default CONFIG_MAINBOARD_VENDOR="amd"
 | 
			
		||||
default CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID=0x1022
 | 
			
		||||
default CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID=0x3050
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### coreboot layout values
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
## CONFIG_ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
 | 
			
		||||
default CONFIG_ROM_IMAGE_SIZE = 65536
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 8K stack
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_STACK_SIZE=0x2000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 16K heap
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HEAP_SIZE=0x4000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Only use the option table in a normal image
 | 
			
		||||
##
 | 
			
		||||
#default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
default CONFIG_USE_OPTION_TABLE = 0
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## coreboot C code runs at this location in RAM
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_RAMBASE=0x00004000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Load the payload from the ROM
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_ROM_PAYLOAD = 1
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### Defaults of options that you may want to override in the target config file
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The default compiler
 | 
			
		||||
##
 | 
			
		||||
default CC="$(CONFIG_CROSS_COMPILE)gcc -m32"
 | 
			
		||||
default HOSTCC="gcc"
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Disable the gdb stub by default
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GDB_STUB=0
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
default CONFIG_USE_PRINTK_IN_CAR=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The Serial Console
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
# To Enable the Serial Console
 | 
			
		||||
default CONFIG_CONSOLE_SERIAL8250=1
 | 
			
		||||
 | 
			
		||||
## Select the serial console baud rate
 | 
			
		||||
default CONFIG_TTYS0_BAUD=115200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=57600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=38400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=19200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=9600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=4800
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=2400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=1200
 | 
			
		||||
 | 
			
		||||
# Select the serial console base port
 | 
			
		||||
default CONFIG_TTYS0_BASE=0x3f8
 | 
			
		||||
 | 
			
		||||
# Select the serial protocol
 | 
			
		||||
# This defaults to 8 data bits, 1 stop bit, and no parity
 | 
			
		||||
default CONFIG_TTYS0_LCS=0x3
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
### Select the coreboot loglevel
 | 
			
		||||
##
 | 
			
		||||
## EMERG      1   system is unusable
 | 
			
		||||
## ALERT      2   action must be taken immediately
 | 
			
		||||
## CRIT       3   critical conditions
 | 
			
		||||
## ERR        4   error conditions
 | 
			
		||||
## WARNING    5   warning conditions
 | 
			
		||||
## NOTICE     6   normal but significant condition
 | 
			
		||||
## INFO       7   informational
 | 
			
		||||
## CONFIG_DEBUG      8   debug-level messages
 | 
			
		||||
## SPEW       9   Way too many details
 | 
			
		||||
 | 
			
		||||
## Request this level of debugging output
 | 
			
		||||
default  CONFIG_DEFAULT_CONSOLE_LOGLEVEL=8
 | 
			
		||||
## At a maximum only compile in this level of debugging
 | 
			
		||||
default  CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=8
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Select power on after power fail setting
 | 
			
		||||
default CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL="MAINBOARD_POWER_ON"
 | 
			
		||||
 | 
			
		||||
default CONFIG_VIDEO_MB=1
 | 
			
		||||
default CONFIG_GFXUMA=1
 | 
			
		||||
default CONFIG_HAVE_MAINBOARD_RESOURCES=1
 | 
			
		||||
 | 
			
		||||
### End Options.lb
 | 
			
		||||
end
 | 
			
		||||
@@ -1,115 +0,0 @@
 | 
			
		||||
## CONFIG_XIP_ROM_SIZE must be a power of 2.
 | 
			
		||||
default CONFIG_XIP_ROM_SIZE = 64 * 1024
 | 
			
		||||
include /config/nofailovercalculation.lb
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Set all of the defaults for an x86 architecture
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
arch i386 end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build the objects we have code for in this directory.
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
driver mainboard.o
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Romcc output
 | 
			
		||||
##
 | 
			
		||||
makerule ./failover.E
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c ../romcc" 
 | 
			
		||||
	action "../romcc -E -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makerule ./failover.inc
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c ../romcc"
 | 
			
		||||
	action "../romcc -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
makerule ./auto.E 
 | 
			
		||||
	depends	"$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc" 
 | 
			
		||||
	action	"../romcc -E -mcpu=p2 -O -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
makerule ./auto.inc 
 | 
			
		||||
	depends "$(CONFIG_MAINBOARD)/auto.c option_table.h ../romcc"
 | 
			
		||||
	action	"../romcc    -mcpu=p2 -O -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/auto.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our 16 bit and 32 bit coreboot entry code
 | 
			
		||||
##
 | 
			
		||||
mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
mainboardinit cpu/x86/32bit/entry32.inc
 | 
			
		||||
ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
ldscript /cpu/x86/32bit/entry32.lds
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our reset vector (This is where coreboot is entered)
 | 
			
		||||
##
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE 
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc 
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds 
 | 
			
		||||
else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc 
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds 
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
### Should this be in the northbridge code?
 | 
			
		||||
mainboardinit arch/i386/lib/cpu_reset.inc
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include an id string (For safe flashing)
 | 
			
		||||
##
 | 
			
		||||
mainboardinit arch/i386/lib/id.inc
 | 
			
		||||
ldscript /arch/i386/lib/id.lds
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### This is the early phase of coreboot startup 
 | 
			
		||||
### Things are delicate and we test to see if we should
 | 
			
		||||
### failover to another image.
 | 
			
		||||
###
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	ldscript /arch/i386/lib/failover.lds 
 | 
			
		||||
	mainboardinit ./failover.inc
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### O.k. We aren't just an intermediary anymore!
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Setup RAM
 | 
			
		||||
##
 | 
			
		||||
mainboardinit cpu/x86/fpu_enable.inc
 | 
			
		||||
mainboardinit ./auto.inc
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include the secondary Configuration files 
 | 
			
		||||
##
 | 
			
		||||
dir /pc80
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
chip northbridge/amd/gx2
 | 
			
		||||
	device apic_cluster 0 on
 | 
			
		||||
		chip cpu/amd/model_gx2
 | 
			
		||||
			device apic 0 on end
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
  	device pci_domain 0 on 
 | 
			
		||||
    		device pci 1.0 on end
 | 
			
		||||
		device pci 1.1 on end
 | 
			
		||||
      		chip southbridge/amd/cs5536
 | 
			
		||||
			register "lpc_serirq_enable" = "0x80"  # enabled with default timing
 | 
			
		||||
        		device pci d.0 on end	# Realtek 8139 LAN
 | 
			
		||||
        		device pci f.0 on end	# ISA Bridge
 | 
			
		||||
        		device pci f.2 on end	# IDE Controller
 | 
			
		||||
        		device pci f.3 on end 	# Audio
 | 
			
		||||
        		device pci f.4 on end	# OHCI
 | 
			
		||||
			device pci f.4 on end	# UHCI
 | 
			
		||||
      		end
 | 
			
		||||
    	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
@@ -1,159 +0,0 @@
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
uses CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
uses CONFIG_HAVE_FALLBACK_BOOT
 | 
			
		||||
uses CONFIG_HAVE_HARD_RESET
 | 
			
		||||
uses CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_USE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_ROM_PAYLOAD
 | 
			
		||||
uses CONFIG_IRQ_SLOT_COUNT
 | 
			
		||||
uses CONFIG_MAINBOARD
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses COREBOOT_EXTRA_VERSION
 | 
			
		||||
uses CONFIG_ARCH
 | 
			
		||||
uses CONFIG_FALLBACK_SIZE
 | 
			
		||||
uses CONFIG_STACK_SIZE
 | 
			
		||||
uses CONFIG_HEAP_SIZE
 | 
			
		||||
uses CONFIG_ROM_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_OFFSET
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
 | 
			
		||||
uses CONFIG_PRECOMPRESSED_PAYLOAD
 | 
			
		||||
uses CONFIG_ROMBASE
 | 
			
		||||
uses CONFIG_RAMBASE
 | 
			
		||||
uses CONFIG_XIP_ROM_SIZE
 | 
			
		||||
uses CONFIG_XIP_ROM_BASE
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_CROSS_COMPILE
 | 
			
		||||
uses CC
 | 
			
		||||
uses HOSTCC
 | 
			
		||||
uses CONFIG_OBJCOPY
 | 
			
		||||
uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
uses CONFIG_TTYS0_BAUD
 | 
			
		||||
uses CONFIG_TTYS0_BASE
 | 
			
		||||
uses CONFIG_TTYS0_LCS
 | 
			
		||||
uses CONFIG_UDELAY_TSC
 | 
			
		||||
uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
 | 
			
		||||
 | 
			
		||||
## CONFIG_ROM_SIZE is the size of boot ROM that this board will use.
 | 
			
		||||
default CONFIG_ROM_SIZE  = 256*1024
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### Build options
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code for the fallback boot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_FALLBACK_BOOT=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## no MP table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_MP_TABLE=0
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to reset the motherboard from coreboot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_HARD_RESET=0
 | 
			
		||||
 | 
			
		||||
## Delay timer options
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_UDELAY_TSC=1
 | 
			
		||||
default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a programmable irq routing table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_PIRQ_TABLE=1
 | 
			
		||||
default CONFIG_IRQ_SLOT_COUNT=2
 | 
			
		||||
#object irq_tables.o
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a CMOS option table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_OPTION_TABLE=0
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### coreboot layout values
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
## CONFIG_ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
 | 
			
		||||
default CONFIG_ROM_IMAGE_SIZE = 65536
 | 
			
		||||
default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 8K stack
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_STACK_SIZE=0x2000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 16K heap
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HEAP_SIZE=0x4000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Only use the option table in a normal image
 | 
			
		||||
##
 | 
			
		||||
#default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
default CONFIG_USE_OPTION_TABLE = 0
 | 
			
		||||
 | 
			
		||||
default CONFIG_RAMBASE = 0x00004000
 | 
			
		||||
 | 
			
		||||
default CONFIG_ROM_PAYLOAD     = 1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The default compiler
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_CROSS_COMPILE=""
 | 
			
		||||
default CC="$(CONFIG_CROSS_COMPILE)gcc -m32"
 | 
			
		||||
default HOSTCC="gcc"
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The Serial Console
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
# To Enable the Serial Console
 | 
			
		||||
default CONFIG_CONSOLE_SERIAL8250=1
 | 
			
		||||
 | 
			
		||||
## Select the serial console baud rate
 | 
			
		||||
default CONFIG_TTYS0_BAUD=115200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=57600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=38400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=19200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=9600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=4800
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=2400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=1200
 | 
			
		||||
 | 
			
		||||
# Select the serial console base port
 | 
			
		||||
default CONFIG_TTYS0_BASE=0x3f8
 | 
			
		||||
 | 
			
		||||
# Select the serial protocol
 | 
			
		||||
# This defaults to 8 data bits, 1 stop bit, and no parity
 | 
			
		||||
default CONFIG_TTYS0_LCS=0x3
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
### Select the coreboot loglevel
 | 
			
		||||
##
 | 
			
		||||
## EMERG      1   system is unusable               
 | 
			
		||||
## ALERT      2   action must be taken immediately 
 | 
			
		||||
## CRIT       3   critical conditions              
 | 
			
		||||
## ERR        4   error conditions                 
 | 
			
		||||
## WARNING    5   warning conditions               
 | 
			
		||||
## NOTICE     6   normal but significant condition 
 | 
			
		||||
## INFO       7   informational                    
 | 
			
		||||
## CONFIG_DEBUG      8   debug-level messages             
 | 
			
		||||
## SPEW       9   Way too many details             
 | 
			
		||||
 | 
			
		||||
## Request this level of debugging output
 | 
			
		||||
default  CONFIG_DEFAULT_CONSOLE_LOGLEVEL=8
 | 
			
		||||
## At a maximum only compile in this level of debugging
 | 
			
		||||
default  CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=8
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
@@ -1,358 +0,0 @@
 | 
			
		||||
## CONFIG_XIP_ROM_SIZE must be a power of 2.
 | 
			
		||||
default CONFIG_XIP_ROM_SIZE = 64 * 1024
 | 
			
		||||
include /config/failovercalculation.lb
 | 
			
		||||
 | 
			
		||||
arch i386 end 
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build the objects we have code for in this directory.
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
driver mainboard.o
 | 
			
		||||
 | 
			
		||||
#dir /drivers/si/3114
 | 
			
		||||
 | 
			
		||||
#needed by irq_tables and mptable and acpi_tables
 | 
			
		||||
object get_bus_conf.o
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_MP_TABLE 
 | 
			
		||||
	object mptable.o 
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_PIRQ_TABLE 
 | 
			
		||||
	object irq_tables.o 
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
#if CONFIG_GENERATE_ACPI_TABLES
 | 
			
		||||
#       object acpi_tables.o
 | 
			
		||||
#       object fadt.o
 | 
			
		||||
#       if CONFIG_SB_HT_CHAIN_ON_BUS0
 | 
			
		||||
#               object dsdt_bus0.o
 | 
			
		||||
#       else
 | 
			
		||||
#               object dsdt.o
 | 
			
		||||
#       end
 | 
			
		||||
#       object ssdt.o
 | 
			
		||||
#       if CONFIG_ACPI_SSDTX_NUM
 | 
			
		||||
#                if CONFIG_SB_HT_CHAIN_ON_BUS0
 | 
			
		||||
#                 object ssdt2_bus0.o
 | 
			
		||||
#                else
 | 
			
		||||
#                 object ssdt2.o
 | 
			
		||||
#                end
 | 
			
		||||
#       end
 | 
			
		||||
#end
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_ACPI_TABLES
 | 
			
		||||
        object acpi_tables.o
 | 
			
		||||
        object fadt.o
 | 
			
		||||
	makerule dsdt.c
 | 
			
		||||
		depends "$(CONFIG_MAINBOARD)/dx/dsdt_lb.dsl"
 | 
			
		||||
		action  "iasl -p $(CURDIR)/dsdt_lb -tc $(CONFIG_MAINBOARD)/dx/dsdt_lb.dsl"
 | 
			
		||||
		action  "mv dsdt_lb.hex dsdt.c"
 | 
			
		||||
	end
 | 
			
		||||
        object ./dsdt.o
 | 
			
		||||
 | 
			
		||||
	#./ssdt.o is moved to northbridge/amd/amdk8/Config.lb
 | 
			
		||||
	
 | 
			
		||||
        if CONFIG_ACPI_SSDTX_NUM
 | 
			
		||||
            makerule ssdt2.c
 | 
			
		||||
                        depends "$(CONFIG_MAINBOARD)/dx/pci2.asl"
 | 
			
		||||
                        action  "iasl -p $(CURDIR)/pci2 -tc $(CONFIG_MAINBOARD)/dx/pci2.asl"
 | 
			
		||||
                        action  "perl -pi -e 's/AmlCode/AmlCode_ssdt2/g' pci2.hex"
 | 
			
		||||
                        action  "mv pci2.hex ssdt2.c"
 | 
			
		||||
            end
 | 
			
		||||
            object ./ssdt2.o
 | 
			
		||||
            makerule ssdt3.c
 | 
			
		||||
                        depends "$(CONFIG_MAINBOARD)/dx/pci3.asl"
 | 
			
		||||
                        action  "iasl -p $(CURDIR)/pci3 -tc $(CONFIG_MAINBOARD)/dx/pci3.asl"
 | 
			
		||||
                        action  "perl -pi -e 's/AmlCode/AmlCode_ssdt3/g' pci3.hex"
 | 
			
		||||
                        action  "mv pci3.hex ssdt3.c"
 | 
			
		||||
            end
 | 
			
		||||
            object ./ssdt3.o
 | 
			
		||||
            makerule ssdt4.c
 | 
			
		||||
                        depends "$(CONFIG_MAINBOARD)/dx/pci4.asl"
 | 
			
		||||
                        action  "iasl -p $(CURDIR)/pci4 -tc $(CONFIG_MAINBOARD)/dx/pci4.asl"
 | 
			
		||||
                        action  "perl -pi -e 's/AmlCode/AmlCode_ssdt4/g' pci4.hex"
 | 
			
		||||
                        action  "mv pci4.hex ssdt4.c"
 | 
			
		||||
            end
 | 
			
		||||
            object ./ssdt4.o
 | 
			
		||||
        end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
	if CONFIG_USE_INIT
 | 
			
		||||
		# compile cache_as_ram.c to auto.o
 | 
			
		||||
		makerule ./cache_as_ram_auto.o
 | 
			
		||||
		        depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
 | 
			
		||||
		        action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
	else   
 | 
			
		||||
		#compile cache_as_ram.c to auto.inc 
 | 
			
		||||
		makerule ./cache_as_ram_auto.inc
 | 
			
		||||
		        depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
 | 
			
		||||
		        action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
 | 
			
		||||
		        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
 | 
			
		||||
		        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
if CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
else
 | 
			
		||||
    if CONFIG_AP_CODE_IN_CAR
 | 
			
		||||
	makerule ./apc_auto.o
 | 
			
		||||
		depends "$(CONFIG_MAINBOARD)/apc_auto.c option_table.h"
 | 
			
		||||
		action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(CONFIG_MAINBOARD)/apc_auto.c -o $@"
 | 
			
		||||
	end
 | 
			
		||||
	ldscript /arch/i386/init/ldscript_apc.lb
 | 
			
		||||
    end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our 16 bit and 32 bit coreboot entry code
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
if CONFIG_HAVE_FAILOVER_BOOT
 | 
			
		||||
    if CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
	mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
    end
 | 
			
		||||
else
 | 
			
		||||
    if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
    end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
mainboardinit cpu/x86/32bit/entry32.inc
 | 
			
		||||
        if CONFIG_USE_INIT
 | 
			
		||||
                ldscript /cpu/x86/32bit/entry32.lds
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        if CONFIG_USE_INIT
 | 
			
		||||
                ldscript /cpu/amd/car/cache_as_ram.lds
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our reset vector (This is where coreboot is entered)
 | 
			
		||||
##
 | 
			
		||||
if CONFIG_HAVE_FAILOVER_BOOT
 | 
			
		||||
    if CONFIG_USE_FAILOVER_IMAGE 
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc 
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds 
 | 
			
		||||
    else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc 
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds 
 | 
			
		||||
    end
 | 
			
		||||
else
 | 
			
		||||
    if CONFIG_USE_FALLBACK_IMAGE 
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc 
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds 
 | 
			
		||||
    else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc 
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds 
 | 
			
		||||
    end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include an id string (For safe flashing)
 | 
			
		||||
##
 | 
			
		||||
mainboardinit arch/i386/lib/id.inc
 | 
			
		||||
ldscript /arch/i386/lib/id.lds
 | 
			
		||||
 | 
			
		||||
	##
 | 
			
		||||
	## Setup Cache-As-Ram
 | 
			
		||||
	##
 | 
			
		||||
	mainboardinit cpu/amd/car/cache_as_ram.inc
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### This is the early phase of coreboot startup 
 | 
			
		||||
### Things are delicate and we test to see if we should
 | 
			
		||||
### failover to another image.
 | 
			
		||||
###
 | 
			
		||||
if CONFIG_HAVE_FAILOVER_BOOT
 | 
			
		||||
    if CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
		ldscript /arch/i386/lib/failover_failover.lds
 | 
			
		||||
    end
 | 
			
		||||
else
 | 
			
		||||
    if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
		ldscript /arch/i386/lib/failover.lds
 | 
			
		||||
    end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### O.k. We aren't just an intermediary anymore!
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Setup RAM
 | 
			
		||||
##
 | 
			
		||||
	if CONFIG_USE_INIT
 | 
			
		||||
		initobject cache_as_ram_auto.o
 | 
			
		||||
	else
 | 
			
		||||
		mainboardinit ./cache_as_ram_auto.inc
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include the secondary Configuration files 
 | 
			
		||||
##
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
# sample config for amd/serengeti_cheetah 
 | 
			
		||||
chip northbridge/amd/amdk8/root_complex
 | 
			
		||||
        device apic_cluster 0 on
 | 
			
		||||
                chip cpu/amd/socket_F
 | 
			
		||||
                        device apic 0 on end
 | 
			
		||||
                end
 | 
			
		||||
        end
 | 
			
		||||
	device pci_domain 0 on
 | 
			
		||||
		chip northbridge/amd/amdk8
 | 
			
		||||
			device pci 18.0 on #  northbridge 
 | 
			
		||||
				#  devices on link 0, link 0 == LDT 0
 | 
			
		||||
				chip southbridge/amd/amd8132
 | 
			
		||||
					# the on/off keyword is mandatory
 | 
			
		||||
					device pci 0.0 on end
 | 
			
		||||
					device pci 0.1 on end
 | 
			
		||||
					device pci 1.0 on end
 | 
			
		||||
					device pci 1.1 on end
 | 
			
		||||
				end
 | 
			
		||||
				chip southbridge/amd/amd8111
 | 
			
		||||
					# this "device pci 0.0" is the parent the next one
 | 
			
		||||
					# PCI bridge
 | 
			
		||||
					device pci 0.0 on
 | 
			
		||||
						device pci 0.0 on end
 | 
			
		||||
						device pci 0.1 on end
 | 
			
		||||
						device pci 0.2 off end
 | 
			
		||||
						device pci 1.0 off end
 | 
			
		||||
					end
 | 
			
		||||
					device pci 1.0 on
 | 
			
		||||
						chip superio/winbond/w83627hf
 | 
			
		||||
							device pnp 2e.0 off #  Floppy
 | 
			
		||||
                	                 			io 0x60 = 0x3f0
 | 
			
		||||
                	                			irq 0x70 = 6
 | 
			
		||||
                	                			drq 0x74 = 2
 | 
			
		||||
							end
 | 
			
		||||
                	        			device pnp 2e.1 off #  Parallel Port
 | 
			
		||||
                	                 			io 0x60 = 0x378
 | 
			
		||||
                	                			irq 0x70 = 7
 | 
			
		||||
							end
 | 
			
		||||
                	        			device pnp 2e.2 on #  Com1
 | 
			
		||||
                	                 			io 0x60 = 0x3f8
 | 
			
		||||
                	                			irq 0x70 = 4
 | 
			
		||||
							end
 | 
			
		||||
                	        			device pnp 2e.3 off #  Com2
 | 
			
		||||
                	                 			io 0x60 = 0x2f8
 | 
			
		||||
                	                			irq 0x70 = 3
 | 
			
		||||
							end
 | 
			
		||||
                	        			device pnp 2e.5 on #  Keyboard
 | 
			
		||||
                	                 			io 0x60 = 0x60
 | 
			
		||||
                	                 			io 0x62 = 0x64
 | 
			
		||||
                	                			irq 0x70 = 1
 | 
			
		||||
								irq 0x72 = 12
 | 
			
		||||
							end
 | 
			
		||||
                	        			device pnp 2e.6 off #  CIR
 | 
			
		||||
								io 0x60 = 0x100
 | 
			
		||||
							end
 | 
			
		||||
                	        			device pnp 2e.7 off #  GAME_MIDI_GIPO1
 | 
			
		||||
								io 0x60 = 0x220
 | 
			
		||||
								io 0x62 = 0x300
 | 
			
		||||
								irq 0x70 = 9
 | 
			
		||||
							end						
 | 
			
		||||
                	        			device pnp 2e.8 off end #  GPIO2
 | 
			
		||||
                	        			device pnp 2e.9 off end #  GPIO3
 | 
			
		||||
                	        			device pnp 2e.a off end #  ACPI
 | 
			
		||||
                	        			device pnp 2e.b on #  HW Monitor
 | 
			
		||||
 					 			io 0x60 = 0x290
 | 
			
		||||
								irq 0x70 = 5
 | 
			
		||||
                					end
 | 
			
		||||
						end
 | 
			
		||||
					end
 | 
			
		||||
					device pci 1.1 on end
 | 
			
		||||
					device pci 1.2 on end
 | 
			
		||||
					device pci 1.3 on
 | 
			
		||||
                                                chip drivers/i2c/i2cmux # pca9556 smbus mux
 | 
			
		||||
                                                        device i2c 18 on #0 pca9516 1
 | 
			
		||||
                                                                chip drivers/generic/generic #dimm 0-0-0
 | 
			
		||||
                                                                        device i2c 50 on end
 | 
			
		||||
                                                                end
 | 
			
		||||
                                                                chip drivers/generic/generic #dimm 0-0-1
 | 
			
		||||
                                                                        device i2c 51 on end
 | 
			
		||||
                                                                end
 | 
			
		||||
                                                                chip drivers/generic/generic #dimm 0-1-0
 | 
			
		||||
                                                                        device i2c 52 on end
 | 
			
		||||
                                                                end
 | 
			
		||||
                                                                chip drivers/generic/generic #dimm 0-1-1
 | 
			
		||||
                                                                        device i2c 53 on end
 | 
			
		||||
                                                                end
 | 
			
		||||
                                                        end
 | 
			
		||||
                                                        device i2c 18 on #1 pca9516 2
 | 
			
		||||
                                                                chip drivers/generic/generic #dimm 1-0-0
 | 
			
		||||
                                                                        device i2c 50 on end
 | 
			
		||||
                                                                end
 | 
			
		||||
                                                                chip drivers/generic/generic #dimm 1-0-1
 | 
			
		||||
                                                                        device i2c 51 on end
 | 
			
		||||
                                                                end
 | 
			
		||||
                                                                chip drivers/generic/generic #dimm 1-1-0
 | 
			
		||||
                                                                        device i2c 52 on end
 | 
			
		||||
                                                                end
 | 
			
		||||
                                                                chip drivers/generic/generic #dimm 1-1-1
 | 
			
		||||
                                                                        device i2c 53 on end
 | 
			
		||||
                                                                end
 | 
			
		||||
                                                                chip drivers/generic/generic #dimm 1-2-0
 | 
			
		||||
                                                                        device i2c 54 on end
 | 
			
		||||
                                                                end
 | 
			
		||||
                                                                chip drivers/generic/generic #dimm 1-2-1
 | 
			
		||||
                                                                        device i2c 55 on end
 | 
			
		||||
                                                                end
 | 
			
		||||
                                                                chip drivers/generic/generic #dimm 1-3-0
 | 
			
		||||
                                                                        device i2c 56 on end
 | 
			
		||||
                                                                end
 | 
			
		||||
                                                                chip drivers/generic/generic #dimm 1-3-1
 | 
			
		||||
                                                                        device i2c 57 on end
 | 
			
		||||
                                                                end
 | 
			
		||||
                                                        end
 | 
			
		||||
						end
 | 
			
		||||
					end # acpi
 | 
			
		||||
					device pci 1.5 off end
 | 
			
		||||
					device pci 1.6 off end
 | 
			
		||||
                	                register "ide0_enable" = "1"
 | 
			
		||||
                	                register "ide1_enable" = "1"
 | 
			
		||||
				end
 | 
			
		||||
			end #  device pci 18.0
 | 
			
		||||
 | 
			
		||||
                        device pci 18.0 on end
 | 
			
		||||
                        device pci 18.0 on end  
 | 
			
		||||
			device pci 18.1 on end
 | 
			
		||||
			device pci 18.2 on end
 | 
			
		||||
			device pci 18.3 on end
 | 
			
		||||
		end
 | 
			
		||||
                chip northbridge/amd/amdk8
 | 
			
		||||
                        device pci 19.0 on #  northbridge
 | 
			
		||||
                                chip southbridge/amd/amd8151
 | 
			
		||||
                                        # the on/off keyword is mandatory
 | 
			
		||||
                                        device pci 0.0 on end
 | 
			
		||||
                                        device pci 1.0 on end
 | 
			
		||||
                                end
 | 
			
		||||
                        end #  device pci 19.0
 | 
			
		||||
 | 
			
		||||
                        device pci 19.0 on end
 | 
			
		||||
                        device pci 19.0 on end
 | 
			
		||||
                        device pci 19.1 on end
 | 
			
		||||
                        device pci 19.2 on end
 | 
			
		||||
                        device pci 19.3 on end
 | 
			
		||||
                end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	end #pci_domain
 | 
			
		||||
#        chip drivers/generic/debug
 | 
			
		||||
#        	device pnp 0.0 off end # chip name
 | 
			
		||||
#                device pnp 0.1 on end # pci_regs_all
 | 
			
		||||
#                device pnp 0.2 off end # mem
 | 
			
		||||
#                device pnp 0.3 off end # cpuid
 | 
			
		||||
#                device pnp 0.4 off end # smbus_regs_all
 | 
			
		||||
#                device pnp 0.5 off end # dual core msr
 | 
			
		||||
#                device pnp 0.6 off end # cache size
 | 
			
		||||
#                device pnp 0.7 off end # tsc
 | 
			
		||||
#       end
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -1,325 +0,0 @@
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_ACPI_TABLES
 | 
			
		||||
uses CONFIG_HAVE_ACPI_RESUME
 | 
			
		||||
uses CONFIG_ACPI_SSDTX_NUM
 | 
			
		||||
uses CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
uses CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
uses CONFIG_HAVE_FALLBACK_BOOT
 | 
			
		||||
uses CONFIG_HAVE_FAILOVER_BOOT
 | 
			
		||||
uses CONFIG_HAVE_HARD_RESET
 | 
			
		||||
uses CONFIG_IRQ_SLOT_COUNT
 | 
			
		||||
uses CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_MAX_CPUS
 | 
			
		||||
uses CONFIG_MAX_PHYSICAL_CPUS
 | 
			
		||||
uses CONFIG_LOGICAL_CPUS
 | 
			
		||||
uses CONFIG_IOAPIC
 | 
			
		||||
uses CONFIG_SMP
 | 
			
		||||
uses CONFIG_FALLBACK_SIZE
 | 
			
		||||
uses CONFIG_FAILOVER_SIZE
 | 
			
		||||
uses CONFIG_ROM_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_OFFSET
 | 
			
		||||
uses CONFIG_ROM_PAYLOAD
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
 | 
			
		||||
uses CONFIG_PRECOMPRESSED_PAYLOAD
 | 
			
		||||
uses CONFIG_ROMBASE
 | 
			
		||||
uses CONFIG_XIP_ROM_SIZE
 | 
			
		||||
uses CONFIG_XIP_ROM_BASE
 | 
			
		||||
uses CONFIG_STACK_SIZE
 | 
			
		||||
uses CONFIG_HEAP_SIZE
 | 
			
		||||
uses CONFIG_USE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_LB_CKS_RANGE_START
 | 
			
		||||
uses CONFIG_LB_CKS_RANGE_END
 | 
			
		||||
uses CONFIG_LB_CKS_LOC
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD
 | 
			
		||||
uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
 | 
			
		||||
uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
 | 
			
		||||
uses COREBOOT_EXTRA_VERSION
 | 
			
		||||
uses CONFIG_RAMBASE
 | 
			
		||||
uses CONFIG_TTYS0_BAUD
 | 
			
		||||
uses CONFIG_TTYS0_BASE
 | 
			
		||||
uses CONFIG_TTYS0_LCS
 | 
			
		||||
uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL
 | 
			
		||||
uses CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
uses CONFIG_HAVE_INIT_TIMER
 | 
			
		||||
uses CONFIG_GDB_STUB
 | 
			
		||||
uses CONFIG_GDB_STUB
 | 
			
		||||
uses CONFIG_CROSS_COMPILE
 | 
			
		||||
uses CC
 | 
			
		||||
uses HOSTCC
 | 
			
		||||
uses CONFIG_OBJCOPY
 | 
			
		||||
uses CONFIG_CONSOLE_VGA
 | 
			
		||||
uses CONFIG_PCI_ROM_RUN
 | 
			
		||||
uses CONFIG_HW_MEM_HOLE_SIZEK
 | 
			
		||||
uses CONFIG_HW_MEM_HOLE_SIZE_AUTO_INC
 | 
			
		||||
uses CONFIG_K8_HT_FREQ_1G_SUPPORT
 | 
			
		||||
 | 
			
		||||
uses CONFIG_HT_CHAIN_UNITID_BASE
 | 
			
		||||
uses CONFIG_HT_CHAIN_END_UNITID_BASE
 | 
			
		||||
uses CONFIG_SB_HT_CHAIN_ON_BUS0
 | 
			
		||||
uses CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY
 | 
			
		||||
 | 
			
		||||
uses CONFIG_USE_DCACHE_RAM
 | 
			
		||||
uses CONFIG_DCACHE_RAM_BASE
 | 
			
		||||
uses CONFIG_DCACHE_RAM_SIZE
 | 
			
		||||
uses CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE
 | 
			
		||||
uses CONFIG_USE_INIT
 | 
			
		||||
 | 
			
		||||
uses CONFIG_SERIAL_CPU_INIT
 | 
			
		||||
 | 
			
		||||
uses CONFIG_ENABLE_APIC_EXT_ID
 | 
			
		||||
uses CONFIG_APIC_ID_OFFSET
 | 
			
		||||
uses CONFIG_LIFT_BSP_APIC_ID
 | 
			
		||||
 | 
			
		||||
uses CONFIG_PCI_64BIT_PREF_MEM
 | 
			
		||||
 | 
			
		||||
uses CONFIG_RAMTOP
 | 
			
		||||
 | 
			
		||||
uses CONFIG_AP_CODE_IN_CAR
 | 
			
		||||
 | 
			
		||||
uses CONFIG_MEM_TRAIN_SEQ
 | 
			
		||||
 | 
			
		||||
uses CONFIG_WAIT_BEFORE_CPUS_INIT
 | 
			
		||||
 | 
			
		||||
uses CONFIG_USE_PRINTK_IN_CAR
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### Build options
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## CONFIG_ROM_SIZE is the size of boot ROM that this board will use.
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_ROM_SIZE=524288
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## CONFIG_FALLBACK_SIZE is the amount of the ROM the complete fallback image will use
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
default CONFIG_FAILOVER_SIZE=0x01000
 | 
			
		||||
 | 
			
		||||
#more 1M for pgtbl
 | 
			
		||||
default CONFIG_RAMTOP=2048*1024
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code for the fallback boot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_FALLBACK_BOOT=1
 | 
			
		||||
default CONFIG_HAVE_FAILOVER_BOOT=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to reset the motherboard from coreboot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_HARD_RESET=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a programmable irq routing table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_PIRQ_TABLE=1
 | 
			
		||||
default CONFIG_IRQ_SLOT_COUNT=11
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export an x86 MP table
 | 
			
		||||
## Useful for specifying IRQ routing values
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_MP_TABLE=1
 | 
			
		||||
 | 
			
		||||
## ACPI tables will be included
 | 
			
		||||
default CONFIG_GENERATE_ACPI_TABLES=1
 | 
			
		||||
## extra SSDT num
 | 
			
		||||
default CONFIG_ACPI_SSDTX_NUM=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a CMOS option table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_OPTION_TABLE=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Move the default coreboot cmos range off of AMD RTC registers
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_LB_CKS_RANGE_START=49
 | 
			
		||||
default CONFIG_LB_CKS_RANGE_END=122
 | 
			
		||||
default CONFIG_LB_CKS_LOC=123
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code for SMP support
 | 
			
		||||
## Only worry about 2 micro processors
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_SMP=1
 | 
			
		||||
default CONFIG_MAX_CPUS=8
 | 
			
		||||
default CONFIG_MAX_PHYSICAL_CPUS=4
 | 
			
		||||
default CONFIG_LOGICAL_CPUS=1
 | 
			
		||||
 | 
			
		||||
default CONFIG_SERIAL_CPU_INIT=0
 | 
			
		||||
 | 
			
		||||
default CONFIG_ENABLE_APIC_EXT_ID=0
 | 
			
		||||
default CONFIG_APIC_ID_OFFSET=0x8
 | 
			
		||||
default CONFIG_LIFT_BSP_APIC_ID=1
 | 
			
		||||
 | 
			
		||||
#memory hole size, 0 mean disable, others will enable the hole, at that case if it is small than mmio_basek, it will use mmio_basek instead. 
 | 
			
		||||
#2G
 | 
			
		||||
#default CONFIG_HW_MEM_HOLE_SIZEK=0x200000
 | 
			
		||||
#1G
 | 
			
		||||
default CONFIG_HW_MEM_HOLE_SIZEK=0x100000
 | 
			
		||||
#512M
 | 
			
		||||
#default CONFIG_HW_MEM_HOLE_SIZEK=0x80000
 | 
			
		||||
 | 
			
		||||
#make auto increase hole size to avoid hole_startk equal to basek so as to make some kernel happy
 | 
			
		||||
#default CONFIG_HW_MEM_HOLE_SIZE_AUTO_INC=1
 | 
			
		||||
 | 
			
		||||
#Opteron K8 1G HT Support
 | 
			
		||||
default CONFIG_K8_HT_FREQ_1G_SUPPORT=1
 | 
			
		||||
 | 
			
		||||
#VGA Console
 | 
			
		||||
default CONFIG_CONSOLE_VGA=1
 | 
			
		||||
default CONFIG_PCI_ROM_RUN=1
 | 
			
		||||
 | 
			
		||||
#HT Unit ID offset, default is 1, the typical one
 | 
			
		||||
default CONFIG_HT_CHAIN_UNITID_BASE=0xa
 | 
			
		||||
 | 
			
		||||
#real SB Unit ID, default is 0x20, mean dont touch it at last
 | 
			
		||||
default CONFIG_HT_CHAIN_END_UNITID_BASE=0x6
 | 
			
		||||
 | 
			
		||||
#make the SB HT chain on bus 0, default is not (0)
 | 
			
		||||
default CONFIG_SB_HT_CHAIN_ON_BUS0=2
 | 
			
		||||
 | 
			
		||||
#only offset for SB chain?, default is yes(1)
 | 
			
		||||
#default CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY=0
 | 
			
		||||
 | 
			
		||||
#allow capable device use that above 4G
 | 
			
		||||
#default CONFIG_PCI_64BIT_PREF_MEM=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## enable CACHE_AS_RAM specifics
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_USE_DCACHE_RAM=1
 | 
			
		||||
default CONFIG_DCACHE_RAM_BASE=0xc8000
 | 
			
		||||
default CONFIG_DCACHE_RAM_SIZE=0x08000
 | 
			
		||||
default CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE=0x01000
 | 
			
		||||
default CONFIG_USE_INIT=0
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## for rev F training on AP purpose
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_AP_CODE_IN_CAR=1
 | 
			
		||||
default CONFIG_MEM_TRAIN_SEQ=1
 | 
			
		||||
default CONFIG_WAIT_BEFORE_CPUS_INIT=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to setup a generic IOAPIC
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_IOAPIC=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Clean up the motherboard id strings
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_MAINBOARD_PART_NUMBER="serengeti_cheetah"
 | 
			
		||||
default CONFIG_MAINBOARD_VENDOR="AMD"
 | 
			
		||||
default CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID=0x1022
 | 
			
		||||
default CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID=0x2b80
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### coreboot layout values
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
## CONFIG_ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
 | 
			
		||||
default CONFIG_ROM_IMAGE_SIZE = 65536 - CONFIG_FAILOVER_SIZE
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 8K stack
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_STACK_SIZE=0x2000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 32K heap
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HEAP_SIZE=0x8000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Only use the option table in a normal image
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_USE_OPTION_TABLE = (!CONFIG_USE_FALLBACK_IMAGE) && (!CONFIG_USE_FAILOVER_IMAGE )
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Coreboot C code runs at this location in RAM
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_RAMBASE=0x00100000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Load the payload from the ROM
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_ROM_PAYLOAD = 1
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### Defaults of options that you may want to override in the target config file
 | 
			
		||||
### 
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The default compiler
 | 
			
		||||
##
 | 
			
		||||
default CC="$(CONFIG_CROSS_COMPILE)gcc -m32"
 | 
			
		||||
default HOSTCC="gcc"
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Disable the gdb stub by default
 | 
			
		||||
## 
 | 
			
		||||
default CONFIG_GDB_STUB=0
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The Serial Console
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_USE_PRINTK_IN_CAR=1
 | 
			
		||||
 | 
			
		||||
# To Enable the Serial Console
 | 
			
		||||
default CONFIG_CONSOLE_SERIAL8250=1
 | 
			
		||||
 | 
			
		||||
## Select the serial console baud rate
 | 
			
		||||
default CONFIG_TTYS0_BAUD=115200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=57600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=38400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=19200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=9600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=4800
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=2400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=1200
 | 
			
		||||
 | 
			
		||||
# Select the serial console base port
 | 
			
		||||
default CONFIG_TTYS0_BASE=0x3f8
 | 
			
		||||
 | 
			
		||||
# Select the serial protocol
 | 
			
		||||
# This defaults to 8 data bits, 1 stop bit, and no parity
 | 
			
		||||
default CONFIG_TTYS0_LCS=0x3
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
### Select the coreboot loglevel
 | 
			
		||||
##
 | 
			
		||||
## EMERG      1   system is unusable               
 | 
			
		||||
## ALERT      2   action must be taken immediately 
 | 
			
		||||
## CRIT       3   critical conditions              
 | 
			
		||||
## ERR        4   error conditions                 
 | 
			
		||||
## WARNING    5   warning conditions               
 | 
			
		||||
## NOTICE     6   normal but significant condition 
 | 
			
		||||
## INFO       7   informational                    
 | 
			
		||||
## CONFIG_DEBUG      8   debug-level messages             
 | 
			
		||||
## SPEW       9   Way too many details             
 | 
			
		||||
 | 
			
		||||
## Request this level of debugging output
 | 
			
		||||
default  CONFIG_DEFAULT_CONSOLE_LOGLEVEL=8
 | 
			
		||||
## At a maximum only compile in this level of debugging
 | 
			
		||||
default  CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=8
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Select power on after power fail setting
 | 
			
		||||
default CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL="MAINBOARD_POWER_ON"
 | 
			
		||||
 | 
			
		||||
### End Options.lb
 | 
			
		||||
end
 | 
			
		||||
@@ -1,362 +0,0 @@
 | 
			
		||||
#
 | 
			
		||||
# This file is part of the coreboot project.
 | 
			
		||||
#
 | 
			
		||||
# Copyright (C) 2007 Advanced Micro Devices, Inc.
 | 
			
		||||
#
 | 
			
		||||
# This program is free software; you can redistribute it and/or modify
 | 
			
		||||
# it under the terms of the GNU General Public License as published by
 | 
			
		||||
# the Free Software Foundation; version 2 of the License.
 | 
			
		||||
#
 | 
			
		||||
# This program is distributed in the hope that it will be useful,
 | 
			
		||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
 | 
			
		||||
# GNU General Public License for more details.
 | 
			
		||||
#
 | 
			
		||||
# You should have received a copy of the GNU General Public License
 | 
			
		||||
# along with this program; if not, write to the Free Software
 | 
			
		||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
## CONFIG_XIP_ROM_SIZE must be a power of 2.
 | 
			
		||||
default CONFIG_XIP_ROM_SIZE = 64 * 1024
 | 
			
		||||
include /config/failovercalculation.lb
 | 
			
		||||
 | 
			
		||||
arch i386 end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build the objects we have code for in this directory.
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
driver mainboard.o
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#needed by irq_tables and mptable and acpi_tables
 | 
			
		||||
object get_bus_conf.o
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
	object mptable.o
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
	object irq_tables.o
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_ACPI_TABLES
 | 
			
		||||
	 object acpi_tables.o
 | 
			
		||||
	 object fadt.o
 | 
			
		||||
	makerule dsdt.c
 | 
			
		||||
		depends "$(CONFIG_MAINBOARD)/dx/dsdt_lb.dsl"
 | 
			
		||||
		action	"iasl -p $(CURDIR)/dsdt_lb -tc $(CONFIG_MAINBOARD)/dx/dsdt_lb.dsl"
 | 
			
		||||
		action	"mv dsdt_lb.hex dsdt.c"
 | 
			
		||||
	end
 | 
			
		||||
	 object ./dsdt.o
 | 
			
		||||
 | 
			
		||||
	#./ssdt.o is moved to northbridge/amd/amdk8/Config.lb
 | 
			
		||||
 | 
			
		||||
	if CONFIG_ACPI_SSDTX_NUM
 | 
			
		||||
	makerule ssdt2.c
 | 
			
		||||
		depends "$(CONFIG_MAINBOARD)/dx/pci2.asl"
 | 
			
		||||
		action	"iasl -p $(CURDIR)/pci2 -tc $(CONFIG_MAINBOARD)/dx/pci2.asl"
 | 
			
		||||
		action	"perl -pi -e 's/AmlCode/AmlCode_ssdt2/g' pci2.hex"
 | 
			
		||||
		action	"mv pci2.hex ssdt2.c"
 | 
			
		||||
	end
 | 
			
		||||
	object ./ssdt2.o
 | 
			
		||||
	makerule ssdt3.c
 | 
			
		||||
		depends "$(CONFIG_MAINBOARD)/dx/pci3.asl"
 | 
			
		||||
		action	"iasl -p $(CURDIR)/pci3 -tc $(CONFIG_MAINBOARD)/dx/pci3.asl"
 | 
			
		||||
		action	"perl -pi -e 's/AmlCode/AmlCode_ssdt3/g' pci3.hex"
 | 
			
		||||
		action	"mv pci3.hex ssdt3.c"
 | 
			
		||||
	end
 | 
			
		||||
	object ./ssdt3.o
 | 
			
		||||
	makerule ssdt4.c
 | 
			
		||||
		depends "$(CONFIG_MAINBOARD)/dx/pci4.asl"
 | 
			
		||||
		action	"iasl -p $(CURDIR)/pci4 -tc $(CONFIG_MAINBOARD)/dx/pci4.asl"
 | 
			
		||||
		action	"perl -pi -e 's/AmlCode/AmlCode_ssdt4/g' pci4.hex"
 | 
			
		||||
		action	"mv pci4.hex ssdt4.c"
 | 
			
		||||
	end
 | 
			
		||||
	object ./ssdt4.o
 | 
			
		||||
	makerule ssdt5.c
 | 
			
		||||
		depends "$(CONFIG_MAINBOARD)/dx/pci5.asl"
 | 
			
		||||
		action	"iasl -p $(CURDIR)/pci5 -tc $(CONFIG_MAINBOARD)/dx/pci5.asl"
 | 
			
		||||
		action	"perl -pi -e 's/AmlCode/AmlCode_ssdt5/g' pci5.hex"
 | 
			
		||||
		action	"mv pci5.hex ssdt5.c"
 | 
			
		||||
	end
 | 
			
		||||
	object ./ssdt5.o
 | 
			
		||||
	 end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
	if CONFIG_USE_INIT
 | 
			
		||||
		# compile cache_as_ram.c to auto.o
 | 
			
		||||
		makerule ./cache_as_ram_auto.o
 | 
			
		||||
			depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
 | 
			
		||||
			action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
	else
 | 
			
		||||
		#compile cache_as_ram.c to auto.inc
 | 
			
		||||
		makerule ./cache_as_ram_auto.inc
 | 
			
		||||
			depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
 | 
			
		||||
			action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
 | 
			
		||||
			action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
 | 
			
		||||
			action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
if CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
else
 | 
			
		||||
    if CONFIG_AP_CODE_IN_CAR
 | 
			
		||||
	 makerule ./apc_auto.o
 | 
			
		||||
		 depends "$(CONFIG_MAINBOARD)/apc_auto.c option_table.h"
 | 
			
		||||
		 action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(CONFIG_MAINBOARD)/apc_auto.c -o $@"
 | 
			
		||||
	 end
 | 
			
		||||
	 ldscript /arch/i386/init/ldscript_apc.lb
 | 
			
		||||
    end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our 16 bit and 32 bit coreboot entry code
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
if CONFIG_HAVE_FAILOVER_BOOT
 | 
			
		||||
    if CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
	mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
    end
 | 
			
		||||
else
 | 
			
		||||
    if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
    end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
mainboardinit cpu/x86/32bit/entry32.inc
 | 
			
		||||
	 if CONFIG_USE_INIT
 | 
			
		||||
		 ldscript /cpu/x86/32bit/entry32.lds
 | 
			
		||||
	 end
 | 
			
		||||
 | 
			
		||||
	 if CONFIG_USE_INIT
 | 
			
		||||
		 ldscript /cpu/amd/car/cache_as_ram.lds
 | 
			
		||||
	 end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our reset vector (This is where coreboot is entered)
 | 
			
		||||
##
 | 
			
		||||
if CONFIG_HAVE_FAILOVER_BOOT
 | 
			
		||||
    if CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds
 | 
			
		||||
    else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds
 | 
			
		||||
    end
 | 
			
		||||
else
 | 
			
		||||
    if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds
 | 
			
		||||
    else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds
 | 
			
		||||
    end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include an id string (For safe flashing)
 | 
			
		||||
##
 | 
			
		||||
mainboardinit arch/i386/lib/id.inc
 | 
			
		||||
ldscript /arch/i386/lib/id.lds
 | 
			
		||||
 | 
			
		||||
	##
 | 
			
		||||
	## Setup Cache-As-Ram
 | 
			
		||||
	##
 | 
			
		||||
	mainboardinit cpu/amd/car/cache_as_ram.inc
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### This is the early phase of coreboot startup
 | 
			
		||||
### Things are delicate and we test to see if we should
 | 
			
		||||
### failover to another image.
 | 
			
		||||
###
 | 
			
		||||
if CONFIG_HAVE_FAILOVER_BOOT
 | 
			
		||||
    if CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
		ldscript /arch/i386/lib/failover_failover.lds
 | 
			
		||||
    end
 | 
			
		||||
else
 | 
			
		||||
    if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
		ldscript /arch/i386/lib/failover.lds
 | 
			
		||||
    end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### O.k. We aren't just an intermediary anymore!
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Setup RAM
 | 
			
		||||
##
 | 
			
		||||
	if CONFIG_USE_INIT
 | 
			
		||||
		initobject cache_as_ram_auto.o
 | 
			
		||||
	else
 | 
			
		||||
		mainboardinit ./cache_as_ram_auto.inc
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include the secondary Configuration files
 | 
			
		||||
##
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
dir /southbridge/amd/amd8151
 | 
			
		||||
 | 
			
		||||
# sample config for amd/serengeti_cheetah_fam10
 | 
			
		||||
chip northbridge/amd/amdfam10/root_complex
 | 
			
		||||
	device apic_cluster 0 on
 | 
			
		||||
		chip cpu/amd/socket_F_1207  #L1 and DDR2
 | 
			
		||||
			 device apic 0 on end
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
	device pci_domain 0 on
 | 
			
		||||
		chip northbridge/amd/amdfam10
 | 
			
		||||
			device pci 18.0 on #  northbridge
 | 
			
		||||
				#  devices on link 0, link 0 == LDT 0
 | 
			
		||||
				chip southbridge/amd/amd8132
 | 
			
		||||
					# the on/off keyword is mandatory
 | 
			
		||||
					device pci 0.0 on end
 | 
			
		||||
					device pci 0.1 on end
 | 
			
		||||
					device pci 1.0 on end
 | 
			
		||||
					device pci 1.1 on end
 | 
			
		||||
				end
 | 
			
		||||
				chip southbridge/amd/amd8111
 | 
			
		||||
					# this "device pci 0.0" is the parent the next one
 | 
			
		||||
					# PCI bridge
 | 
			
		||||
					device pci 0.0 on
 | 
			
		||||
						device pci 0.0 on end
 | 
			
		||||
						device pci 0.1 on end
 | 
			
		||||
						device pci 0.2 off end
 | 
			
		||||
						device pci 1.0 off end
 | 
			
		||||
					end
 | 
			
		||||
					device pci 1.0 on
 | 
			
		||||
						chip superio/winbond/w83627hf
 | 
			
		||||
							device pnp 2e.0 off #  Floppy
 | 
			
		||||
								io 0x60 = 0x3f0
 | 
			
		||||
								irq 0x70 = 6
 | 
			
		||||
								drq 0x74 = 2
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.1 off #  Parallel Port
 | 
			
		||||
								io 0x60 = 0x378
 | 
			
		||||
								irq 0x70 = 7
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.2 on #  Com1
 | 
			
		||||
								io 0x60 = 0x3f8
 | 
			
		||||
								irq 0x70 = 4
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.3 off #  Com2
 | 
			
		||||
								io 0x60 = 0x2f8
 | 
			
		||||
								irq 0x70 = 3
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.5 on #  Keyboard
 | 
			
		||||
								io 0x60 = 0x60
 | 
			
		||||
								io 0x62 = 0x64
 | 
			
		||||
								irq 0x70 = 1
 | 
			
		||||
								irq 0x72 = 12
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.6 off #  CIR
 | 
			
		||||
								io 0x60 = 0x100
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.7 off #  GAME_MIDI_GIPO1
 | 
			
		||||
								io 0x60 = 0x220
 | 
			
		||||
								io 0x62 = 0x300
 | 
			
		||||
								irq 0x70 = 9
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.8 off end #  GPIO2
 | 
			
		||||
							device pnp 2e.9 off end #  GPIO3
 | 
			
		||||
							device pnp 2e.a off end #  ACPI
 | 
			
		||||
							device pnp 2e.b on #  HW Monitor
 | 
			
		||||
								io 0x60 = 0x290
 | 
			
		||||
								irq 0x70 = 5
 | 
			
		||||
							end
 | 
			
		||||
						end
 | 
			
		||||
					end
 | 
			
		||||
					device pci 1.1 on end
 | 
			
		||||
					device pci 1.2 on end
 | 
			
		||||
					device pci 1.3 on
 | 
			
		||||
						chip drivers/i2c/i2cmux2 # pca9556 smbus mux
 | 
			
		||||
						chip drivers/i2c/i2cmux2 # pca9556 smbus mux
 | 
			
		||||
							device i2c 18 on #0 pca9516 1
 | 
			
		||||
								chip drivers/generic/generic #dimm 0-0-0
 | 
			
		||||
									device i2c 50 on end
 | 
			
		||||
								end
 | 
			
		||||
								chip drivers/generic/generic #dimm 0-0-1
 | 
			
		||||
									device i2c 51 on end
 | 
			
		||||
								end
 | 
			
		||||
								chip drivers/generic/generic #dimm 0-1-0
 | 
			
		||||
									device i2c 52 on end
 | 
			
		||||
								end
 | 
			
		||||
								chip drivers/generic/generic #dimm 0-1-1
 | 
			
		||||
									device i2c 53 on end
 | 
			
		||||
								end
 | 
			
		||||
							end
 | 
			
		||||
							device i2c 18 on #1 pca9516 2
 | 
			
		||||
								chip drivers/generic/generic #dimm 1-0-0
 | 
			
		||||
									device i2c 50 on end
 | 
			
		||||
								end
 | 
			
		||||
								chip drivers/generic/generic #dimm 1-0-1
 | 
			
		||||
									device i2c 51 on end
 | 
			
		||||
								end
 | 
			
		||||
								chip drivers/generic/generic #dimm 1-1-0
 | 
			
		||||
									device i2c 52 on end
 | 
			
		||||
								end
 | 
			
		||||
								chip drivers/generic/generic #dimm 1-1-1
 | 
			
		||||
									device i2c 53 on end
 | 
			
		||||
								end
 | 
			
		||||
							end
 | 
			
		||||
						end
 | 
			
		||||
						end
 | 
			
		||||
					end # acpi
 | 
			
		||||
					device pci 1.5 off end
 | 
			
		||||
					device pci 1.6 off end
 | 
			
		||||
					register "ide0_enable" = "1"
 | 
			
		||||
					register "ide1_enable" = "1"
 | 
			
		||||
				end
 | 
			
		||||
			end #  device pci 18.0
 | 
			
		||||
 | 
			
		||||
			device pci 18.0 on end
 | 
			
		||||
			device pci 18.0 on end
 | 
			
		||||
			device pci 18.1 on end
 | 
			
		||||
			device pci 18.2 on end
 | 
			
		||||
			device pci 18.3 on end
 | 
			
		||||
			device pci 18.4 on end
 | 
			
		||||
#			device pci 00.5 on end
 | 
			
		||||
		end
 | 
			
		||||
	end #pci_domain
 | 
			
		||||
	#for node 32 to node 63
 | 
			
		||||
#	device pci_domain 0 on
 | 
			
		||||
#		chip northbridge/amd/amdfam10
 | 
			
		||||
#			  device pci 00.0 on end#  northbridge
 | 
			
		||||
#			  device pci 00.0 on end
 | 
			
		||||
#			  device pci 00.0 on end
 | 
			
		||||
#			  device pci 00.0 on end
 | 
			
		||||
#			  device pci 00.1 on end
 | 
			
		||||
#			  device pci 00.2 on end
 | 
			
		||||
#			  device pci 00.3 on end
 | 
			
		||||
#			  device pci 00.4 on end
 | 
			
		||||
#			 device pci 00.5 on end
 | 
			
		||||
#		end
 | 
			
		||||
#	end #pci_domain
 | 
			
		||||
 | 
			
		||||
#	  chip drivers/generic/debug
 | 
			
		||||
#		 device pnp 0.0 off end # chip name
 | 
			
		||||
#		  device pnp 0.1 on end # pci_regs_all
 | 
			
		||||
#		  device pnp 0.2 off end # mem
 | 
			
		||||
#		  device pnp 0.3 off end # cpuid
 | 
			
		||||
#		  device pnp 0.4 off end # smbus_regs_all
 | 
			
		||||
#		  device pnp 0.5 off end # dual core msr
 | 
			
		||||
#		  device pnp 0.6 off end # cache size
 | 
			
		||||
#		  device pnp 0.7 off end # tsc
 | 
			
		||||
#		  device pnp 0.8 off end # hard reset
 | 
			
		||||
#		  device pnp 0.9 off end # mcp55
 | 
			
		||||
#		  device pnp 0.a on end # GH ext table
 | 
			
		||||
#	 end
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -1,365 +0,0 @@
 | 
			
		||||
#
 | 
			
		||||
# This file is part of the coreboot project.
 | 
			
		||||
#
 | 
			
		||||
# Copyright (C) 2007 Advanced Micro Devices, Inc.
 | 
			
		||||
#
 | 
			
		||||
# This program is free software; you can redistribute it and/or modify
 | 
			
		||||
# it under the terms of the GNU General Public License as published by
 | 
			
		||||
# the Free Software Foundation; version 2 of the License.
 | 
			
		||||
#
 | 
			
		||||
# This program is distributed in the hope that it will be useful,
 | 
			
		||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
# GNU General Public License for more details.
 | 
			
		||||
#
 | 
			
		||||
# You should have received a copy of the GNU General Public License
 | 
			
		||||
# along with this program; if not, write to the Free Software
 | 
			
		||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_ACPI_TABLES
 | 
			
		||||
uses CONFIG_HAVE_ACPI_RESUME
 | 
			
		||||
uses CONFIG_ACPI_SSDTX_NUM
 | 
			
		||||
uses CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
uses CONFIG_USE_FAILOVER_IMAGE
 | 
			
		||||
uses CONFIG_HAVE_FALLBACK_BOOT
 | 
			
		||||
uses CONFIG_HAVE_FAILOVER_BOOT
 | 
			
		||||
uses CONFIG_HAVE_HARD_RESET
 | 
			
		||||
uses CONFIG_IRQ_SLOT_COUNT
 | 
			
		||||
uses CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_MAX_CPUS
 | 
			
		||||
uses CONFIG_MAX_PHYSICAL_CPUS
 | 
			
		||||
uses CONFIG_LOGICAL_CPUS
 | 
			
		||||
uses CONFIG_IOAPIC
 | 
			
		||||
uses CONFIG_SMP
 | 
			
		||||
uses CONFIG_FALLBACK_SIZE
 | 
			
		||||
uses CONFIG_FAILOVER_SIZE
 | 
			
		||||
uses CONFIG_ROM_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_OFFSET
 | 
			
		||||
uses CONFIG_ROM_PAYLOAD
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_NRV2B
 | 
			
		||||
uses CONFIG_ROMBASE
 | 
			
		||||
uses CONFIG_XIP_ROM_SIZE
 | 
			
		||||
uses CONFIG_XIP_ROM_BASE
 | 
			
		||||
uses CONFIG_STACK_SIZE
 | 
			
		||||
uses CONFIG_HEAP_SIZE
 | 
			
		||||
uses CONFIG_USE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_LB_CKS_RANGE_START
 | 
			
		||||
uses CONFIG_LB_CKS_RANGE_END
 | 
			
		||||
uses CONFIG_LB_CKS_LOC
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD
 | 
			
		||||
uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
 | 
			
		||||
uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
 | 
			
		||||
uses COREBOOT_EXTRA_VERSION
 | 
			
		||||
uses CONFIG_RAMBASE
 | 
			
		||||
uses CONFIG_TTYS0_BAUD
 | 
			
		||||
uses CONFIG_TTYS0_BASE
 | 
			
		||||
uses CONFIG_TTYS0_LCS
 | 
			
		||||
uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL
 | 
			
		||||
uses CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
uses CONFIG_HAVE_INIT_TIMER
 | 
			
		||||
uses CONFIG_GDB_STUB
 | 
			
		||||
uses CONFIG_GDB_STUB
 | 
			
		||||
uses CONFIG_CROSS_COMPILE
 | 
			
		||||
uses CC
 | 
			
		||||
uses HOSTCC
 | 
			
		||||
uses CONFIG_OBJCOPY
 | 
			
		||||
uses CONFIG_CONSOLE_VGA
 | 
			
		||||
uses CONFIG_PCI_ROM_RUN
 | 
			
		||||
uses CONFIG_HW_MEM_HOLE_SIZEK
 | 
			
		||||
uses CONFIG_HW_MEM_HOLE_SIZE_AUTO_INC
 | 
			
		||||
 | 
			
		||||
uses CONFIG_HT_CHAIN_UNITID_BASE
 | 
			
		||||
uses CONFIG_HT_CHAIN_END_UNITID_BASE
 | 
			
		||||
uses CONFIG_SB_HT_CHAIN_ON_BUS0
 | 
			
		||||
uses CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY
 | 
			
		||||
 | 
			
		||||
uses CONFIG_USE_DCACHE_RAM
 | 
			
		||||
uses CONFIG_DCACHE_RAM_BASE
 | 
			
		||||
uses CONFIG_DCACHE_RAM_SIZE
 | 
			
		||||
uses CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE
 | 
			
		||||
uses CONFIG_USE_INIT
 | 
			
		||||
 | 
			
		||||
uses CONFIG_SERIAL_CPU_INIT
 | 
			
		||||
 | 
			
		||||
uses CONFIG_ENABLE_APIC_EXT_ID
 | 
			
		||||
uses CONFIG_APIC_ID_OFFSET
 | 
			
		||||
uses CONFIG_LIFT_BSP_APIC_ID
 | 
			
		||||
 | 
			
		||||
uses CONFIG_PCI_64BIT_PREF_MEM
 | 
			
		||||
 | 
			
		||||
uses CONFIG_RAMTOP
 | 
			
		||||
 | 
			
		||||
uses CONFIG_PCI_BUS_SEGN_BITS
 | 
			
		||||
 | 
			
		||||
uses CONFIG_AP_CODE_IN_CAR
 | 
			
		||||
 | 
			
		||||
uses CONFIG_MEM_TRAIN_SEQ
 | 
			
		||||
 | 
			
		||||
uses CONFIG_WAIT_BEFORE_CPUS_INIT
 | 
			
		||||
 | 
			
		||||
uses CONFIG_AMDMCT
 | 
			
		||||
 | 
			
		||||
uses CONFIG_USE_PRINTK_IN_CAR
 | 
			
		||||
uses CONFIG_AMD_UCODE_PATCH_FILE
 | 
			
		||||
 | 
			
		||||
uses CONFIG_ID_SECTION_OFFSET
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### Build options
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## CONFIG_ROM_SIZE is the size of boot ROM that this board will use.
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_ROM_SIZE=1024*1024
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
##
 | 
			
		||||
#FALLBACK_SIZE_SIZE is the amount of the ROM the complete fallback image will use
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
#FALLBACK: 1024K - 8K
 | 
			
		||||
default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
#FAILOVER: 8k
 | 
			
		||||
default CONFIG_FAILOVER_SIZE=0x02000
 | 
			
		||||
 | 
			
		||||
#more 1M for pgtbl
 | 
			
		||||
#if there is RAM on node0, we need to set it to 32M, otherwise can not access CAR on node0, and RAM on node1 at same time.
 | 
			
		||||
default CONFIG_RAMTOP=16384*1024
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code for the fallback boot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_FALLBACK_BOOT=1
 | 
			
		||||
default CONFIG_HAVE_FAILOVER_BOOT=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to reset the motherboard from coreboot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_HARD_RESET=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a programmable irq routing table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_PIRQ_TABLE=1
 | 
			
		||||
default CONFIG_IRQ_SLOT_COUNT=11
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export an x86 MP table
 | 
			
		||||
## Useful for specifying IRQ routing values
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_MP_TABLE=1
 | 
			
		||||
 | 
			
		||||
## ACPI tables will be included
 | 
			
		||||
default CONFIG_GENERATE_ACPI_TABLES=1
 | 
			
		||||
## extra SSDT num
 | 
			
		||||
default CONFIG_ACPI_SSDTX_NUM=31
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a CMOS option table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_OPTION_TABLE=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Move the default coreboot cmos range off of AMD RTC registers
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_LB_CKS_RANGE_START=49
 | 
			
		||||
default CONFIG_LB_CKS_RANGE_END=122
 | 
			
		||||
default CONFIG_LB_CKS_LOC=123
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code for SMP support
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_SMP=1
 | 
			
		||||
default CONFIG_MAX_PHYSICAL_CPUS=8
 | 
			
		||||
default CONFIG_MAX_CPUS=6 * CONFIG_MAX_PHYSICAL_CPUS
 | 
			
		||||
default CONFIG_LOGICAL_CPUS=1
 | 
			
		||||
 | 
			
		||||
#default CONFIG_SERIAL_CPU_INIT=0
 | 
			
		||||
 | 
			
		||||
default CONFIG_ENABLE_APIC_EXT_ID=1
 | 
			
		||||
default CONFIG_APIC_ID_OFFSET=0x00
 | 
			
		||||
default CONFIG_LIFT_BSP_APIC_ID=1
 | 
			
		||||
 | 
			
		||||
#memory hole size, 0 mean disable, others will enable the hole, at that case if it is small than mmio_basek, it will use mmio_basek instead.
 | 
			
		||||
#2G
 | 
			
		||||
#default CONFIG_HW_MEM_HOLE_SIZEK=0x200000
 | 
			
		||||
#1G
 | 
			
		||||
default CONFIG_HW_MEM_HOLE_SIZEK=0x100000
 | 
			
		||||
#512M
 | 
			
		||||
#default CONFIG_HW_MEM_HOLE_SIZEK=0x80000
 | 
			
		||||
 | 
			
		||||
#make auto increase hole size to avoid hole_startk equal to basek so as to make some kernel happy
 | 
			
		||||
#default CONFIG_HW_MEM_HOLE_SIZE_AUTO_INC=1
 | 
			
		||||
 | 
			
		||||
#VGA Console
 | 
			
		||||
default CONFIG_CONSOLE_VGA=1
 | 
			
		||||
default CONFIG_PCI_ROM_RUN=1
 | 
			
		||||
 | 
			
		||||
#HT Unit ID offset, default is 1, the typical one
 | 
			
		||||
default CONFIG_HT_CHAIN_UNITID_BASE=0xa
 | 
			
		||||
 | 
			
		||||
#real SB Unit ID, default is 0x20, mean dont touch it at last
 | 
			
		||||
default CONFIG_HT_CHAIN_END_UNITID_BASE=0x6
 | 
			
		||||
 | 
			
		||||
#make the SB HT chain on bus 0, default is not (0)
 | 
			
		||||
default CONFIG_SB_HT_CHAIN_ON_BUS0=2
 | 
			
		||||
 | 
			
		||||
#only offset for SB chain?, default is yes(1)
 | 
			
		||||
#default CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY=0
 | 
			
		||||
 | 
			
		||||
#allow capable device use that above 4G
 | 
			
		||||
#default CONFIG_PCI_64BIT_PREF_MEM=1
 | 
			
		||||
 | 
			
		||||
#it only be 0, 1, 2, 3, 4 and default is 0
 | 
			
		||||
#default CONFIG_PCI_BUS_SEGN_BITS=3
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## enable CACHE_AS_RAM specifics
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_USE_DCACHE_RAM=1
 | 
			
		||||
default CONFIG_DCACHE_RAM_BASE=0xc4000
 | 
			
		||||
default CONFIG_DCACHE_RAM_SIZE=0x0c000
 | 
			
		||||
#default CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE=0x08000
 | 
			
		||||
default CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE=0x04000
 | 
			
		||||
default CONFIG_USE_INIT=0
 | 
			
		||||
 | 
			
		||||
#default CONFIG_AP_CODE_IN_CAR=1
 | 
			
		||||
default CONFIG_MEM_TRAIN_SEQ=2
 | 
			
		||||
default CONFIG_WAIT_BEFORE_CPUS_INIT=0
 | 
			
		||||
 | 
			
		||||
default CONFIG_AMDMCT = 1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to setup a generic IOAPIC
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_IOAPIC=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Clean up the motherboard id strings
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_MAINBOARD_PART_NUMBER="Cheetah Fam10"
 | 
			
		||||
default CONFIG_MAINBOARD_VENDOR="AMD"
 | 
			
		||||
default CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID=0x1022
 | 
			
		||||
default CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID=0x2b80
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Set microcode patch file name
 | 
			
		||||
##
 | 
			
		||||
##	Barcelona rev DR-Ax:  "mc_patch_01000020.h"
 | 
			
		||||
##	Barcelona rev DR-B0, B1, BA: "mc_patch_01000096.h"
 | 
			
		||||
##	Barcelona rev DR-B2, B3: "mc_patch_01000095.h"
 | 
			
		||||
##	Shanghai rev DA-C2: "mc_patch_0100009f.h"
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_AMD_UCODE_PATCH_FILE="mc_patch_01000095.h"
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### coreboot layout values
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
## CONFIG_ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
 | 
			
		||||
default CONFIG_ROM_IMAGE_SIZE = 65536
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 8K stack
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_STACK_SIZE=0x2000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 768k heap
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HEAP_SIZE=0xc0000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Only use the option table in a normal image
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_USE_OPTION_TABLE = (!CONFIG_USE_FALLBACK_IMAGE) && (!CONFIG_USE_FAILOVER_IMAGE )
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Coreboot C code runs at this location in RAM
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_RAMBASE=0x00200000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Load the payload from the ROM
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_ROM_PAYLOAD = 1
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### Defaults of options that you may want to override in the target config file
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The default compiler
 | 
			
		||||
##
 | 
			
		||||
default CC="$(CONFIG_CROSS_COMPILE)gcc -m32"
 | 
			
		||||
default HOSTCC="gcc"
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Disable the gdb stub by default
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GDB_STUB=0
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The Serial Console
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
default CONFIG_USE_PRINTK_IN_CAR=1
 | 
			
		||||
 | 
			
		||||
# To Enable the Serial Console
 | 
			
		||||
default CONFIG_CONSOLE_SERIAL8250=1
 | 
			
		||||
 | 
			
		||||
## Select the serial console baud rate
 | 
			
		||||
default CONFIG_TTYS0_BAUD=115200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=57600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=38400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=19200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=9600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=4800
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=2400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=1200
 | 
			
		||||
 | 
			
		||||
# Select the serial console base port
 | 
			
		||||
default CONFIG_TTYS0_BASE=0x3f8
 | 
			
		||||
 | 
			
		||||
# Select the serial protocol
 | 
			
		||||
# This defaults to 8 data bits, 1 stop bit, and no parity
 | 
			
		||||
default CONFIG_TTYS0_LCS=0x3
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
### Select the coreboot loglevel
 | 
			
		||||
##
 | 
			
		||||
## EMERG      1   system is unusable
 | 
			
		||||
## ALERT      2   action must be taken immediately
 | 
			
		||||
## CRIT       3   critical conditions
 | 
			
		||||
## ERR        4   error conditions
 | 
			
		||||
## WARNING    5   warning conditions
 | 
			
		||||
## NOTICE     6   normal but significant condition
 | 
			
		||||
## INFO       7   informational
 | 
			
		||||
## CONFIG_DEBUG      8   debug-level messages
 | 
			
		||||
## SPEW       9   Way too many details
 | 
			
		||||
 | 
			
		||||
## Request this level of debugging output
 | 
			
		||||
default  CONFIG_DEFAULT_CONSOLE_LOGLEVEL=8
 | 
			
		||||
## At a maximum only compile in this level of debugging
 | 
			
		||||
default  CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=8
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Select power on after power fail setting
 | 
			
		||||
default CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL="MAINBOARD_POWER_ON"
 | 
			
		||||
 | 
			
		||||
default CONFIG_ID_SECTION_OFFSET=0x80
 | 
			
		||||
 | 
			
		||||
### End Options.lb
 | 
			
		||||
end
 | 
			
		||||
@@ -1,297 +0,0 @@
 | 
			
		||||
## CONFIG_XIP_ROM_SIZE must be a power of 2.
 | 
			
		||||
default CONFIG_XIP_ROM_SIZE = 128 * 1024
 | 
			
		||||
include /config/nofailovercalculation.lb
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Set all of the defaults for an x86 architecture
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
arch i386 end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build the objects we have code for in this directory.
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
driver mainboard.o
 | 
			
		||||
if CONFIG_GENERATE_MP_TABLE object mptable.o end
 | 
			
		||||
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
 | 
			
		||||
 | 
			
		||||
if CONFIG_USE_INIT
 | 
			
		||||
 | 
			
		||||
makerule ./auto.o
 | 
			
		||||
        depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
 | 
			
		||||
        action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
else    
 | 
			
		||||
                
 | 
			
		||||
makerule ./auto.inc
 | 
			
		||||
        depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
 | 
			
		||||
        action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
 | 
			
		||||
        action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
 | 
			
		||||
        action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our 16 bit and 32 bit coreboot entry code
 | 
			
		||||
##
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
        mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
        ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
mainboardinit cpu/x86/32bit/entry32.inc
 | 
			
		||||
 | 
			
		||||
        if CONFIG_USE_INIT
 | 
			
		||||
                ldscript /cpu/x86/32bit/entry32.lds
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        if CONFIG_USE_INIT
 | 
			
		||||
                ldscript      /cpu/amd/car/cache_as_ram.lds
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our reset vector (This is where coreboot is entered)
 | 
			
		||||
##
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE 
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds
 | 
			
		||||
else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include an id string (For safe flashing)
 | 
			
		||||
##
 | 
			
		||||
mainboardinit arch/i386/lib/id.inc
 | 
			
		||||
ldscript /arch/i386/lib/id.lds
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Setup Cache-As-Ram
 | 
			
		||||
##
 | 
			
		||||
mainboardinit cpu/amd/car/cache_as_ram.inc
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### This is the early phase of coreboot startup 
 | 
			
		||||
### Things are delicate and we test to see if we should
 | 
			
		||||
### failover to another image.
 | 
			
		||||
###
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
       ldscript /arch/i386/lib/failover.lds
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### O.k. We aren't just an intermediary anymore!
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Setup RAM
 | 
			
		||||
##
 | 
			
		||||
if CONFIG_USE_INIT
 | 
			
		||||
initobject auto.o
 | 
			
		||||
else
 | 
			
		||||
mainboardinit ./auto.inc
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include the secondary Configuration files 
 | 
			
		||||
##
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
# config for arima/hdama
 | 
			
		||||
chip northbridge/amd/amdk8/root_complex
 | 
			
		||||
	device apic_cluster 0 on
 | 
			
		||||
		chip cpu/amd/socket_940
 | 
			
		||||
			device apic 0 on end
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
	device pci_domain 0 on
 | 
			
		||||
		chip northbridge/amd/amdk8
 | 
			
		||||
			device pci 18.0 on #  northbridge 
 | 
			
		||||
				#  devices on link 0, link 0 == LDT 0 
 | 
			
		||||
				chip southbridge/amd/amd8131
 | 
			
		||||
					# the on/off keyword is mandatory
 | 
			
		||||
					device pci 0.0 on	# PCIX bridge
 | 
			
		||||
						## On board NIC A
 | 
			
		||||
						#chip drivers/generic/generic
 | 
			
		||||
						#	device pci 3.0 on	
 | 
			
		||||
						#		irq 0 = 0x13
 | 
			
		||||
						#	end
 | 
			
		||||
						#end
 | 
			
		||||
						## On board NIC B
 | 
			
		||||
						#chip drivers/generic/generic
 | 
			
		||||
						#	device pci 4.0 on
 | 
			
		||||
						#		irq 0 = 0x13
 | 
			
		||||
						#	end
 | 
			
		||||
						#end
 | 
			
		||||
						## PCI Slot 3
 | 
			
		||||
						#chip drivers/generic/generic
 | 
			
		||||
						#	device pci 1.0 on
 | 
			
		||||
						#		irq 0 = 0x11
 | 
			
		||||
						#		irq 1 = 0x12
 | 
			
		||||
						#		irq 2 = 0x13
 | 
			
		||||
						#		irq 3 = 0x10
 | 
			
		||||
						#	end
 | 
			
		||||
						#end 
 | 
			
		||||
						## PCI Slot 4
 | 
			
		||||
						#chip drivers/generic/generic
 | 
			
		||||
						#	device pci 2.0 on
 | 
			
		||||
						#		irq 0 = 0x12
 | 
			
		||||
						#		irq 1 = 0x13
 | 
			
		||||
						#		irq 2 = 0x10
 | 
			
		||||
						#		irq 3 = 0x11
 | 
			
		||||
						#	end
 | 
			
		||||
						#end 
 | 
			
		||||
					end
 | 
			
		||||
					device pci 0.1 on end	# IOAPIC
 | 
			
		||||
					device pci 1.0 on 	# PCIX bridge
 | 
			
		||||
						## PCI Slot 1
 | 
			
		||||
						#chip drivers/generic/generic
 | 
			
		||||
						#	device pci 1.0 on
 | 
			
		||||
						#		irq 0 = 0x11
 | 
			
		||||
						#		irq 1 = 0x12
 | 
			
		||||
						#		irq 2 = 0x13
 | 
			
		||||
						#		irq 3 = 0x10
 | 
			
		||||
						#	end
 | 
			
		||||
						#end
 | 
			
		||||
						## PCI Slot 2
 | 
			
		||||
						#chip drivers/generic/generic
 | 
			
		||||
						#	device pci 2.0 on
 | 
			
		||||
						#		irq 0 = 0x12
 | 
			
		||||
						#		irq 1 = 0x13
 | 
			
		||||
						#		irq 2 = 0x10
 | 
			
		||||
						#		irq 3 = 0x11
 | 
			
		||||
						#	end
 | 
			
		||||
						#end 
 | 
			
		||||
					end
 | 
			
		||||
					device pci 1.1 on end	# IOAPIC
 | 
			
		||||
				end
 | 
			
		||||
				chip southbridge/amd/amd8111
 | 
			
		||||
					# this "device pci 0.0" is the parent of the next one
 | 
			
		||||
					# PCI bridge
 | 
			
		||||
					device pci 0.0 on
 | 
			
		||||
						device pci 0.0 on  end	# USB0
 | 
			
		||||
						device pci 0.1 on  end	# USB1
 | 
			
		||||
						device pci 0.2 off end	# USB 2.0
 | 
			
		||||
						device pci 1.0 off end	# LAN
 | 
			
		||||
						device pci 6.0 on end # ATI Rage XL
 | 
			
		||||
						## PCI Slot 5 (correct?)
 | 
			
		||||
						#chip drivers/generic/generic
 | 
			
		||||
						#	device pci 5.0 on
 | 
			
		||||
						#		irq 0 = 0x11
 | 
			
		||||
						#		irq 1 = 0x12
 | 
			
		||||
						#		irq 2 = 0x13
 | 
			
		||||
						#		irq 3 = 0x10
 | 
			
		||||
						#	end
 | 
			
		||||
						#end 
 | 
			
		||||
						## PCI Slot 6 (correct?)
 | 
			
		||||
						#chip drivers/generic/generic
 | 
			
		||||
						#	device pci 4.0 on
 | 
			
		||||
						#		irq 0 = 0x10
 | 
			
		||||
						#		irq 1 = 0x11
 | 
			
		||||
						#		irq 2 = 0x12
 | 
			
		||||
						#		irq 3 = 0x13
 | 
			
		||||
						#	end
 | 
			
		||||
						#end 
 | 
			
		||||
 | 
			
		||||
					end
 | 
			
		||||
					# LPC bridge
 | 
			
		||||
					device pci 1.0 on
 | 
			
		||||
						chip superio/nsc/pc87360
 | 
			
		||||
							device	pnp 2e.0 off  # Floppy 
 | 
			
		||||
								 io 0x60 = 0x3f0
 | 
			
		||||
								irq 0x70 = 6
 | 
			
		||||
								drq 0x74 = 2
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.1 off  # Parallel Port
 | 
			
		||||
								 io 0x60 = 0x378
 | 
			
		||||
								irq 0x70 = 7
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.2 off # Com 2
 | 
			
		||||
								 io 0x60 = 0x2f8
 | 
			
		||||
								irq 0x70 = 3
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.3 on  # Com 1
 | 
			
		||||
								 io 0x60 = 0x3f8
 | 
			
		||||
								irq 0x70 = 4
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.4 off end # SWC
 | 
			
		||||
							device pnp 2e.5 off end # Mouse
 | 
			
		||||
							device pnp 2e.6 on  # Keyboard
 | 
			
		||||
								 io 0x60 = 0x60
 | 
			
		||||
								 io 0x62 = 0x64
 | 
			
		||||
								irq 0x70 = 1
 | 
			
		||||
							end
 | 
			
		||||
							device pnp 2e.7 off end # GPIO
 | 
			
		||||
							device pnp 2e.8 off end # ACB
 | 
			
		||||
							device pnp 2e.9 off end # FSCM
 | 
			
		||||
							device pnp 2e.a off end # WDT  
 | 
			
		||||
						end
 | 
			
		||||
					end
 | 
			
		||||
					device pci 1.1 on end	# IDE
 | 
			
		||||
					device pci 1.2 on end	# SMBus 2.0
 | 
			
		||||
					device pci 1.3 on 	# System Management
 | 
			
		||||
						chip drivers/generic/generic
 | 
			
		||||
							#phillips pca9545 smbus mux
 | 
			
		||||
							device i2c 70 on 
 | 
			
		||||
								# analog_devices adm1026	
 | 
			
		||||
								chip drivers/generic/generic
 | 
			
		||||
									device i2c 2c on end
 | 
			
		||||
								end
 | 
			
		||||
							end
 | 
			
		||||
							device i2c 70 on end
 | 
			
		||||
							device i2c 70 on end
 | 
			
		||||
							device i2c 70 on end
 | 
			
		||||
						end
 | 
			
		||||
						chip drivers/generic/generic #dimm 0-0-0
 | 
			
		||||
							device i2c 50 on end
 | 
			
		||||
						end
 | 
			
		||||
						chip drivers/generic/generic #dimm 0-0-1
 | 
			
		||||
							device i2c 51 on end
 | 
			
		||||
						end 
 | 
			
		||||
						chip drivers/generic/generic #dimm 0-1-0
 | 
			
		||||
							device i2c 52 on end
 | 
			
		||||
						end 
 | 
			
		||||
						chip drivers/generic/generic #dimm 0-1-1
 | 
			
		||||
							device i2c 53 on end
 | 
			
		||||
						end 
 | 
			
		||||
						chip drivers/generic/generic #dimm 1-0-0
 | 
			
		||||
							device i2c 54 on end 
 | 
			
		||||
						end
 | 
			
		||||
						chip drivers/generic/generic #dimm 1-0-1
 | 
			
		||||
							device i2c 55 on end
 | 
			
		||||
						end 
 | 
			
		||||
						chip drivers/generic/generic #dimm 1-1-0
 | 
			
		||||
							device i2c 56 on end
 | 
			
		||||
						end 
 | 
			
		||||
						chip drivers/generic/generic #dimm 1-1-1
 | 
			
		||||
							device i2c 57 on end
 | 
			
		||||
						end 
 | 
			
		||||
					end
 | 
			
		||||
					device pci 1.5 off end	# AC97 Audio
 | 
			
		||||
					device pci 1.6 on  end	# AC97 Modem
 | 
			
		||||
					register "ide0_enable" = "1"
 | 
			
		||||
					register "ide1_enable" = "1"
 | 
			
		||||
				end
 | 
			
		||||
			end #  device pci 18.0 
 | 
			
		||||
			
 | 
			
		||||
			device pci 18.0 on end # LDT1
 | 
			
		||||
			device pci 18.0 on end # LDT2
 | 
			
		||||
			device pci 18.1 on end
 | 
			
		||||
			device pci 18.2 on end
 | 
			
		||||
			device pci 18.3 on end
 | 
			
		||||
		end  # chip northbridge/amd/amdk8
 | 
			
		||||
		chip northbridge/amd/amdk8
 | 
			
		||||
			device pci 19.0 on end
 | 
			
		||||
			device pci 19.0 on end
 | 
			
		||||
			device pci 19.0 on end
 | 
			
		||||
			device pci 19.1 on end
 | 
			
		||||
			device pci 19.2 on end
 | 
			
		||||
			device pci 19.3 on end
 | 
			
		||||
		end
 | 
			
		||||
	end 
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
@@ -1,242 +0,0 @@
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
uses CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
uses CONFIG_HAVE_FALLBACK_BOOT
 | 
			
		||||
uses CONFIG_HAVE_HARD_RESET
 | 
			
		||||
uses CONFIG_IRQ_SLOT_COUNT
 | 
			
		||||
uses CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_MAX_CPUS
 | 
			
		||||
uses CONFIG_MAX_PHYSICAL_CPUS
 | 
			
		||||
uses CONFIG_IOAPIC
 | 
			
		||||
uses CONFIG_SMP
 | 
			
		||||
uses CONFIG_FALLBACK_SIZE
 | 
			
		||||
uses CONFIG_ROM_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_OFFSET
 | 
			
		||||
uses CONFIG_ROM_PAYLOAD
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
 | 
			
		||||
uses CONFIG_PRECOMPRESSED_PAYLOAD
 | 
			
		||||
uses CONFIG_ROMBASE
 | 
			
		||||
uses CONFIG_XIP_ROM_SIZE
 | 
			
		||||
uses CONFIG_XIP_ROM_BASE
 | 
			
		||||
uses CONFIG_STACK_SIZE
 | 
			
		||||
uses CONFIG_HEAP_SIZE
 | 
			
		||||
uses CONFIG_USE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_LB_CKS_RANGE_START
 | 
			
		||||
uses CONFIG_LB_CKS_RANGE_END
 | 
			
		||||
uses CONFIG_LB_CKS_LOC
 | 
			
		||||
uses CONFIG_MAINBOARD
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
 | 
			
		||||
uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
 | 
			
		||||
uses COREBOOT_EXTRA_VERSION
 | 
			
		||||
uses CONFIG_RAMBASE
 | 
			
		||||
uses CONFIG_TTYS0_BAUD
 | 
			
		||||
uses CONFIG_TTYS0_BASE
 | 
			
		||||
uses CONFIG_TTYS0_LCS
 | 
			
		||||
uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL
 | 
			
		||||
uses CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
uses CONFIG_HAVE_INIT_TIMER
 | 
			
		||||
uses CONFIG_GDB_STUB
 | 
			
		||||
uses CONFIG_CROSS_COMPILE
 | 
			
		||||
uses CC
 | 
			
		||||
uses HOSTCC
 | 
			
		||||
uses CONFIG_OBJCOPY
 | 
			
		||||
uses CONFIG_CONSOLE_VGA
 | 
			
		||||
uses CONFIG_PCI_ROM_RUN
 | 
			
		||||
uses CONFIG_LOGICAL_CPUS
 | 
			
		||||
uses CONFIG_USE_DCACHE_RAM
 | 
			
		||||
uses CONFIG_DCACHE_RAM_BASE
 | 
			
		||||
uses CONFIG_DCACHE_RAM_SIZE
 | 
			
		||||
uses CONFIG_USE_INIT
 | 
			
		||||
uses CONFIG_USE_PRINTK_IN_CAR
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### Build options
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## CONFIG_LOGICAL_CPUS enables dual core support
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_LOGICAL_CPUS=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## CONFIG_ROM_SIZE is the size of boot ROM that this board will use.
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_ROM_SIZE=524288
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## CONFIG_FALLBACK_SIZE is the amount of the ROM the complete fallback image will use
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code for the fallback boot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_FALLBACK_BOOT=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to reset the motherboard from coreboot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_HARD_RESET=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a programmable irq routing table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_PIRQ_TABLE=1
 | 
			
		||||
default CONFIG_IRQ_SLOT_COUNT=9
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export an x86 MP table
 | 
			
		||||
## Useful for specifying IRQ routing values
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_MP_TABLE=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a CMOS option table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_OPTION_TABLE=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Move the default coreboot cmos range off of AMD RTC registers
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_LB_CKS_RANGE_START=49
 | 
			
		||||
default CONFIG_LB_CKS_RANGE_END=122
 | 
			
		||||
default CONFIG_LB_CKS_LOC=123
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code for SMP support
 | 
			
		||||
## Only worry about 2 micro processors
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_SMP=1
 | 
			
		||||
default CONFIG_MAX_CPUS=4
 | 
			
		||||
default CONFIG_MAX_PHYSICAL_CPUS=2
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to setup a generic IOAPIC
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_IOAPIC=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## enable CACHE_AS_RAM specifics
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_USE_DCACHE_RAM=1
 | 
			
		||||
default CONFIG_DCACHE_RAM_BASE=0xcf000
 | 
			
		||||
default CONFIG_DCACHE_RAM_SIZE=0x1000
 | 
			
		||||
default CONFIG_USE_INIT=0
 | 
			
		||||
 
 | 
			
		||||
#VGA
 | 
			
		||||
default CONFIG_CONSOLE_VGA=1
 | 
			
		||||
default CONFIG_PCI_ROM_RUN=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Clean up the motherboard id strings
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_MAINBOARD_PART_NUMBER="HDAMA"
 | 
			
		||||
default CONFIG_MAINBOARD_VENDOR="ARIMA"
 | 
			
		||||
default CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID=0x161f
 | 
			
		||||
default CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID=0x3016
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### coreboot layout values
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
## CONFIG_ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
 | 
			
		||||
default CONFIG_ROM_IMAGE_SIZE = 65536
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 8K stack
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_STACK_SIZE=0x2000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 16K heap
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HEAP_SIZE=0x4000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Only use the option table in a normal image
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Coreboot C code runs at this location in RAM
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_RAMBASE=0x00004000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Load the payload from the ROM
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_ROM_PAYLOAD = 1
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### Defaults of options that you may want to override in the target config file
 | 
			
		||||
### 
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The default compiler
 | 
			
		||||
##
 | 
			
		||||
default CC="$(CONFIG_CROSS_COMPILE)gcc -m32"
 | 
			
		||||
default HOSTCC="gcc"
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Disable the gdb stub by default
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GDB_STUB=0
 | 
			
		||||
 | 
			
		||||
default CONFIG_USE_PRINTK_IN_CAR=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The Serial Console
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
# To Enable the Serial Console
 | 
			
		||||
default CONFIG_CONSOLE_SERIAL8250=1
 | 
			
		||||
 | 
			
		||||
## Select the serial console baud rate
 | 
			
		||||
default CONFIG_TTYS0_BAUD=115200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=57600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=38400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=19200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=9600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=4800
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=2400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=1200
 | 
			
		||||
 | 
			
		||||
# Select the serial console base port
 | 
			
		||||
default CONFIG_TTYS0_BASE=0x3f8
 | 
			
		||||
 | 
			
		||||
# Select the serial protocol
 | 
			
		||||
# This defaults to 8 data bits, 1 stop bit, and no parity
 | 
			
		||||
default CONFIG_TTYS0_LCS=0x3
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
### Select the coreboot loglevel
 | 
			
		||||
##
 | 
			
		||||
## EMERG      1   system is unusable               
 | 
			
		||||
## ALERT      2   action must be taken immediately 
 | 
			
		||||
## CRIT       3   critical conditions              
 | 
			
		||||
## ERR        4   error conditions                 
 | 
			
		||||
## WARNING    5   warning conditions               
 | 
			
		||||
## NOTICE     6   normal but significant condition 
 | 
			
		||||
## INFO       7   informational                    
 | 
			
		||||
## CONFIG_DEBUG      8   debug-level messages             
 | 
			
		||||
## SPEW       9   Way too many details             
 | 
			
		||||
 | 
			
		||||
## Request this level of debugging output
 | 
			
		||||
default  CONFIG_DEFAULT_CONSOLE_LOGLEVEL=8
 | 
			
		||||
## At a maximum only compile in this level of debugging
 | 
			
		||||
default  CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=8
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Select power on after power fail setting
 | 
			
		||||
default CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL="MAINBOARD_POWER_ON"
 | 
			
		||||
 | 
			
		||||
### End Options.lb
 | 
			
		||||
end
 | 
			
		||||
@@ -1,124 +0,0 @@
 | 
			
		||||
## CONFIG_XIP_ROM_SIZE must be a power of 2.
 | 
			
		||||
default CONFIG_XIP_ROM_SIZE = 64 * 1024
 | 
			
		||||
include /config/nofailovercalculation.lb
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Set all of the defaults for an x86 architecture
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
arch i386 end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build the objects we have code for in this directory.
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
driver mainboard.o
 | 
			
		||||
 | 
			
		||||
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
 | 
			
		||||
 | 
			
		||||
	#compile cache_as_ram.c to auto.inc
 | 
			
		||||
	makerule ./cache_as_ram_auto.inc
 | 
			
		||||
			depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
 | 
			
		||||
			action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@"
 | 
			
		||||
			action "perl -e 's/\.rodata/.rom.data/g' -pi $@"
 | 
			
		||||
			action "perl -e 's/\.text/.section .rom.text/g' -pi $@"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our 16 bit and 32 bit coreboot entry code
 | 
			
		||||
##
 | 
			
		||||
mainboardinit cpu/x86/16bit/entry16.inc
 | 
			
		||||
mainboardinit cpu/x86/32bit/entry32.inc
 | 
			
		||||
ldscript /cpu/x86/16bit/entry16.lds
 | 
			
		||||
ldscript /cpu/x86/32bit/entry32.lds
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build our reset vector (This is where coreboot is entered)
 | 
			
		||||
##
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE 
 | 
			
		||||
	mainboardinit cpu/x86/16bit/reset16.inc 
 | 
			
		||||
	ldscript /cpu/x86/16bit/reset16.lds 
 | 
			
		||||
else
 | 
			
		||||
	mainboardinit cpu/x86/32bit/reset32.inc 
 | 
			
		||||
	ldscript /cpu/x86/32bit/reset32.lds 
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
### Should this be in the northbridge code?
 | 
			
		||||
mainboardinit arch/i386/lib/cpu_reset.inc
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include an id string (For safe flashing)
 | 
			
		||||
##
 | 
			
		||||
mainboardinit arch/i386/lib/id.inc
 | 
			
		||||
ldscript /arch/i386/lib/id.lds
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### This is the early phase of coreboot startup 
 | 
			
		||||
### Things are delicate and we test to see if we should
 | 
			
		||||
### failover to another image.
 | 
			
		||||
###
 | 
			
		||||
if CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
	ldscript /arch/i386/lib/failover.lds 
 | 
			
		||||
#	mainboardinit ./failover.inc
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### O.k. We aren't just an intermediary anymore!
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Setup RAM
 | 
			
		||||
##
 | 
			
		||||
mainboardinit cpu/x86/fpu_enable.inc
 | 
			
		||||
 | 
			
		||||
	mainboardinit cpu/amd/model_lx/cache_as_ram.inc
 | 
			
		||||
	mainboardinit ./cache_as_ram_auto.inc
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Include the secondary Configuration files 
 | 
			
		||||
##
 | 
			
		||||
dir /pc80
 | 
			
		||||
config chip.h
 | 
			
		||||
 | 
			
		||||
chip northbridge/amd/lx
 | 
			
		||||
	device pci_domain 0 on
 | 
			
		||||
		device pci 1.0 on end	# Northbridge
 | 
			
		||||
		device pci 1.1 on end	# Graphics
 | 
			
		||||
		chip southbridge/amd/cs5536
 | 
			
		||||
			# IRQ 12 and 1 unmasked,  Keyboard and Mouse IRQs. OK
 | 
			
		||||
			# SIRQ Mode = Active(Quiet) mode. Save power....
 | 
			
		||||
			# Invert mask = IRQ 12 and 1 are active high. Keyboard and Mouse IRQs. OK
 | 
			
		||||
			register "lpc_serirq_enable" = "0x00001002"
 | 
			
		||||
			register "lpc_serirq_polarity" = "0x0000EFFD"
 | 
			
		||||
			register "lpc_serirq_mode" = "1"
 | 
			
		||||
			register "enable_gpio_int_route" = "0x0D0C0700"
 | 
			
		||||
			register "enable_ide_nand_flash" = "0" # 0:ide mode, 1:flash
 | 
			
		||||
			register "enable_USBP4_device" = "0"	#0: host, 1:device
 | 
			
		||||
			register "enable_USBP4_overcurrent" = "0" #0:off, xxxx:overcurrent setting CS5536 Data Book (pages 380-381)
 | 
			
		||||
			register "com1_enable" = "0"
 | 
			
		||||
			register "com1_address" = "0x2F8"
 | 
			
		||||
			register "com1_irq" = "3"
 | 
			
		||||
			register "com2_enable" = "1"
 | 
			
		||||
			register "com2_address" = "0x3F8"
 | 
			
		||||
			register "com2_irq" = "4"
 | 
			
		||||
			register "unwanted_vpci[0]" = "0"	# End of list has a zero
 | 
			
		||||
			device pci b.0 on end	# Slot 3
 | 
			
		||||
			device pci c.0 on end	# Slot 4
 | 
			
		||||
			device pci d.0 on end	# Slot 1
 | 
			
		||||
			device pci e.0 on end	# Slot 2
 | 
			
		||||
			device pci f.0 on end	# ISA Bridge
 | 
			
		||||
			device pci f.2 on end	# IDE Controller
 | 
			
		||||
			device pci f.3 on end	# Audio
 | 
			
		||||
			device pci f.4 on end	# OHCI
 | 
			
		||||
			device pci f.5 on end	# EHCI
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
	# APIC cluster is late CPU init.
 | 
			
		||||
	device apic_cluster 0 on
 | 
			
		||||
		chip cpu/amd/model_lx
 | 
			
		||||
			device apic 0 on end
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
@@ -1,180 +0,0 @@
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_GENERATE_PIRQ_TABLE
 | 
			
		||||
uses CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
uses CONFIG_HAVE_FALLBACK_BOOT
 | 
			
		||||
uses CONFIG_HAVE_HARD_RESET
 | 
			
		||||
uses CONFIG_HAVE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_USE_OPTION_TABLE
 | 
			
		||||
uses CONFIG_ROM_PAYLOAD
 | 
			
		||||
uses CONFIG_IRQ_SLOT_COUNT
 | 
			
		||||
uses CONFIG_MAINBOARD
 | 
			
		||||
uses CONFIG_MAINBOARD_VENDOR
 | 
			
		||||
uses CONFIG_MAINBOARD_PART_NUMBER
 | 
			
		||||
uses COREBOOT_EXTRA_VERSION
 | 
			
		||||
uses CONFIG_ARCH
 | 
			
		||||
uses CONFIG_FALLBACK_SIZE
 | 
			
		||||
uses CONFIG_STACK_SIZE
 | 
			
		||||
uses CONFIG_HEAP_SIZE
 | 
			
		||||
uses CONFIG_ROM_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_SIZE
 | 
			
		||||
uses CONFIG_ROM_SECTION_OFFSET
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_LZMA
 | 
			
		||||
uses CONFIG_COMPRESSED_PAYLOAD_NRV2B
 | 
			
		||||
uses CONFIG_PRECOMPRESSED_PAYLOAD
 | 
			
		||||
uses CONFIG_ROMBASE
 | 
			
		||||
uses CONFIG_RAMBASE
 | 
			
		||||
uses CONFIG_XIP_ROM_SIZE
 | 
			
		||||
uses CONFIG_XIP_ROM_BASE
 | 
			
		||||
uses CONFIG_GENERATE_MP_TABLE
 | 
			
		||||
uses CONFIG_CROSS_COMPILE
 | 
			
		||||
uses CC
 | 
			
		||||
uses HOSTCC
 | 
			
		||||
uses CONFIG_OBJCOPY
 | 
			
		||||
uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
 | 
			
		||||
uses CONFIG_CONSOLE_SERIAL8250
 | 
			
		||||
uses CONFIG_TTYS0_BAUD
 | 
			
		||||
uses CONFIG_TTYS0_BASE
 | 
			
		||||
uses CONFIG_TTYS0_LCS
 | 
			
		||||
uses CONFIG_UDELAY_TSC
 | 
			
		||||
uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
 | 
			
		||||
uses CONFIG_CONSOLE_VGA
 | 
			
		||||
uses CONFIG_PCI_ROM_RUN
 | 
			
		||||
uses CONFIG_VIDEO_MB
 | 
			
		||||
uses CONFIG_USE_DCACHE_RAM
 | 
			
		||||
uses CONFIG_DCACHE_RAM_BASE
 | 
			
		||||
uses CONFIG_DCACHE_RAM_SIZE
 | 
			
		||||
uses CONFIG_USE_PRINTK_IN_CAR
 | 
			
		||||
uses CONFIG_PIRQ_ROUTE
 | 
			
		||||
 | 
			
		||||
## CONFIG_ROM_SIZE is the size of boot ROM that this board will use.
 | 
			
		||||
default CONFIG_ROM_SIZE  = 256*1024
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### Build options
 | 
			
		||||
###
 | 
			
		||||
default CONFIG_CONSOLE_VGA=0
 | 
			
		||||
default CONFIG_PCI_ROM_RUN=0
 | 
			
		||||
default CONFIG_VIDEO_MB=8
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code for the fallback boot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_FALLBACK_BOOT=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## no MP table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_MP_TABLE=0
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to reset the motherboard from coreboot
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_HARD_RESET=0
 | 
			
		||||
 | 
			
		||||
## Delay timer options
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_UDELAY_TSC=1
 | 
			
		||||
default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a programmable irq routing table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_GENERATE_PIRQ_TABLE=1
 | 
			
		||||
default CONFIG_IRQ_SLOT_COUNT=3
 | 
			
		||||
default CONFIG_PIRQ_ROUTE=1
 | 
			
		||||
#object irq_tables.o
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Build code to export a CMOS option table
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HAVE_OPTION_TABLE=0
 | 
			
		||||
 | 
			
		||||
###
 | 
			
		||||
### coreboot layout values
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
## CONFIG_ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy.
 | 
			
		||||
default CONFIG_ROM_IMAGE_SIZE = 65536
 | 
			
		||||
default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## enable CACHE_AS_RAM specifics
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_USE_DCACHE_RAM=1
 | 
			
		||||
default CONFIG_DCACHE_RAM_BASE=0xc8000
 | 
			
		||||
default CONFIG_DCACHE_RAM_SIZE=0x08000
 | 
			
		||||
default CONFIG_USE_PRINTK_IN_CAR=1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 8K stack
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_STACK_SIZE=0x2000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Use a small 16K heap
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_HEAP_SIZE=0x4000
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## Only use the option table in a normal image
 | 
			
		||||
##
 | 
			
		||||
#default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE
 | 
			
		||||
default CONFIG_USE_OPTION_TABLE = 0
 | 
			
		||||
 | 
			
		||||
default CONFIG_RAMBASE = 0x00004000
 | 
			
		||||
 | 
			
		||||
default CONFIG_ROM_PAYLOAD     = 1
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The default compiler
 | 
			
		||||
##
 | 
			
		||||
default CONFIG_CROSS_COMPILE=""
 | 
			
		||||
default CC="$(CONFIG_CROSS_COMPILE)gcc -m32"
 | 
			
		||||
default HOSTCC="gcc"
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
## The Serial Console
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
# To Enable the Serial Console
 | 
			
		||||
default CONFIG_CONSOLE_SERIAL8250=1
 | 
			
		||||
 | 
			
		||||
## Select the serial console baud rate
 | 
			
		||||
default CONFIG_TTYS0_BAUD=115200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=57600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=38400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=19200
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=9600
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=4800
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=2400
 | 
			
		||||
#default CONFIG_TTYS0_BAUD=1200
 | 
			
		||||
 | 
			
		||||
# Select the serial console base port
 | 
			
		||||
default CONFIG_TTYS0_BASE=0x3f8
 | 
			
		||||
 | 
			
		||||
# Select the serial protocol
 | 
			
		||||
# This defaults to 8 data bits, 1 stop bit, and no parity
 | 
			
		||||
default CONFIG_TTYS0_LCS=0x3
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
### Select the coreboot loglevel
 | 
			
		||||
##
 | 
			
		||||
## EMERG      1   system is unusable               
 | 
			
		||||
## ALERT      2   action must be taken immediately 
 | 
			
		||||
## CRIT       3   critical conditions              
 | 
			
		||||
## ERR        4   error conditions                 
 | 
			
		||||
## WARNING    5   warning conditions               
 | 
			
		||||
## NOTICE     6   normal but significant condition 
 | 
			
		||||
## INFO       7   informational                    
 | 
			
		||||
## CONFIG_DEBUG      8   debug-level messages             
 | 
			
		||||
## SPEW       9   Way too many details             
 | 
			
		||||
 | 
			
		||||
## Request this level of debugging output
 | 
			
		||||
default  CONFIG_DEFAULT_CONSOLE_LOGLEVEL=8
 | 
			
		||||
## At a maximum only compile in this level of debugging
 | 
			
		||||
default  CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=8
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
@@ -1,2 +0,0 @@
 | 
			
		||||
config chip.h
 | 
			
		||||
driver vgabios.o
 | 
			
		||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user