Author: uwe Date: 2009-10-16 15:34:32 +0200 (Fri, 16 Oct 2009) New Revision: 4786
Modified: trunk/coreboot-v2/src/mainboard/via/pc2500e/Kconfig trunk/coreboot-v2/src/mainboard/via/pc2500e/Makefile.inc Log: Fix kconfig setup for the VIA pc2500e.
Add/drop Kconfig variables as needed. In Makefile.inc just include Makefile.romccboard.inc with -mcpu=c3.
Build- and runtime-tested on hardware.
Signed-off-by: Uwe Hermann uwe@hermann-uwe.de Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net Acked-by: Peter Stuge peter@stuge.se
Modified: trunk/coreboot-v2/src/mainboard/via/pc2500e/Kconfig =================================================================== --- trunk/coreboot-v2/src/mainboard/via/pc2500e/Kconfig 2009-10-16 10:06:18 UTC (rev 4785) +++ trunk/coreboot-v2/src/mainboard/via/pc2500e/Kconfig 2009-10-16 13:34:32 UTC (rev 4786) @@ -7,22 +7,15 @@ select SUPERIO_ITE_IT8716F select HAVE_PIRQ_TABLE select HAVE_MP_TABLE + select SMP + select UDELAY_TSC + select TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
config MAINBOARD_DIR string default via/pc2500e depends on BOARD_VIA_PC2500E
-#config DCACHE_RAM_BASE -# hex -# default 0xffef0000 -# depends on BOARD_VIA_PC2500E -# -#config DCACHE_RAM_SIZE -# hex -# default 0x8000 -# depends on BOARD_VIA_PC2500E - config MAINBOARD_PART_NUMBER string default "pc2500e" @@ -42,3 +35,14 @@ int default 10 depends on BOARD_VIA_PC2500E + +config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID + hex + default 0x1019 + depends on BOARD_VIA_PC2500E + +config MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID + hex + default 0xaa51 + depends on BOARD_VIA_PC2500E +
Modified: trunk/coreboot-v2/src/mainboard/via/pc2500e/Makefile.inc =================================================================== --- trunk/coreboot-v2/src/mainboard/via/pc2500e/Makefile.inc 2009-10-16 10:06:18 UTC (rev 4785) +++ trunk/coreboot-v2/src/mainboard/via/pc2500e/Makefile.inc 2009-10-16 13:34:32 UTC (rev 4786) @@ -1,8 +1,7 @@ ## ## This file is part of the coreboot project. ## -## Copyright (C) 2008 VIA Technologies, Inc. -## (Written by Aaron Lwe aaron.lwe@gmail.com for VIA) +## Copyright (C) 2009 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 @@ -19,43 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ##
-initobj-y += crt0.o -obj-y += mainboard.o -obj-$(CONFIG_GENERATE_PIRQ_TABLE) += irq_tables.o -obj-$(CONFIG_GENERATE_MP_TABLE) += mptable.o +ROMCCFLAGS ?= -mcpu=c3 +include $(src)/mainboard/Makefile.romccboard.inc
-obj-$(CONFIG_GENERATE_ACPI_TABLES) += fadt.o -obj-$(CONFIG_GENERATE_ACPI_TABLES) += dsdt.o -obj-$(CONFIG_GENERATE_ACPI_TABLES) += acpi_tables.o - -ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb -ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds -ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds -ldscript-y += ../../../../src/arch/i386/lib/id.lds -ldscript-y += ../../../../src/arch/i386/lib/failover.lds - -crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc -crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc -crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc -crt0-y += ../../../../src/arch/i386/lib/id.inc -crt0-y += ../../../../src/cpu/x86/fpu/enable_fpu.inc -crt0-y += ../../../../src/cpu/x86/mmx/enable_mmx.inc -crt0-y += auto.inc -crt0-y += ../../../../src/cpu/x86/mmx/disable_mmx.inc - -ifdef POST_EVALUATION - -$(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/dsdt.c - $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@ - -$(obj)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl - iasl -p dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl - mv dsdt.hex $@ - -$(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(src)/mainboard/$(MAINBOARDDIR)/auto.c $(obj)/option_table.h - $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $(src)/mainboard/$(MAINBOARDDIR)/auto.c -o $@ - perl -e 's/.rodata/.rom.data/g' -pi $@ - perl -e 's/.text/.section .rom.text/g' -pi $@ - -endif -