Author: myles Date: 2009-08-26 18:55:06 +0200 (Wed, 26 Aug 2009) New Revision: 4586
Added: trunk/coreboot-v2/src/mainboard/asus/m2v-mx_se/Kconfig trunk/coreboot-v2/src/mainboard/asus/m2v-mx_se/Makefile.inc Modified: trunk/coreboot-v2/src/mainboard/asus/Kconfig Log: Asus M2V-MX-SE support in Kbuild
Signed-off-by: Cristi Magherusan cristi.magherusan@net.utcluj.ro Acked-by: Ronald G. Minnich rminnich@gmail.com
Modified: trunk/coreboot-v2/src/mainboard/asus/Kconfig =================================================================== --- trunk/coreboot-v2/src/mainboard/asus/Kconfig 2009-08-26 16:04:47 UTC (rev 4585) +++ trunk/coreboot-v2/src/mainboard/asus/Kconfig 2009-08-26 16:55:06 UTC (rev 4586) @@ -21,8 +21,9 @@ choice prompt "Mainboard model" depends on VENDOR_ASUS - + source "src/mainboard/asus/p2b-f/Kconfig" +source "src/mainboard/asus/m2v-mx_se/Kconfig"
endchoice
Added: trunk/coreboot-v2/src/mainboard/asus/m2v-mx_se/Kconfig =================================================================== --- trunk/coreboot-v2/src/mainboard/asus/m2v-mx_se/Kconfig (rev 0) +++ trunk/coreboot-v2/src/mainboard/asus/m2v-mx_se/Kconfig 2009-08-26 16:55:06 UTC (rev 4586) @@ -0,0 +1,125 @@ +## +## This file is part of the coreboot project. +## +## Copyright (C) 2009 Cristi Măgherușan cristi.magherusan@net.utcluj.ro +## +## 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 BOARD_ASUS_M2V_MX_SE + bool "M2V-MX-SE" + select ARCH_X86 + select CPU_AMD_K8 + select CPU_AMD_SOCKET_AM2 + select NORTHBRIDGE_AMD_AMDK8 + select NORTHBRIDGE_AMD_AMDK8_ROOT_COMPLEX + select SOUTHBRIDGE_VIA_VT8237R + select SOUTHBRIDGE_VIA_K8T890 + select SUPERIO_ITE_IT8712F + select USE_PRINTK_IN_CAR + help + Asus M2V-MX-SE mainboard. + +config MAINBOARD_DIR + string + default asus/m2v-mx_se + depends on BOARD_ASUS_M2V_MX_SE + +config USE_DCACHE_RAM + bool + dafault y + depends on BOARD_ASUS_M2V_MX_SE + +config DCACHE_RAM_BASE + hex + default 0xcc000 + depends on BOARD_ASUS_M2V_MX_SE + +config DCACHE_RAM_SIZE + hex + default 0x4000 + depends on BOARD_ASUS_M2V_MX_SE + +config DCACHE_RAM_GLOBAL_VAR_SIZE + hex + default 0x01000 + depends on BOARD_ASUS_M2V_MX_SE + +config APIC_ID_OFFSET + hex + default 0x10 + depends on BOARD_ASUS_M2V_MX_SE + +config HAVE_HARD_RESET + bool + default y + depends on BOARD_ASUS_M2V_MX_SE + +config IOAPIC + bool + default y + depends on BOARD_ASUS_M2V_MX_SE + +config MAINBOARD_VENDOR + string + default "ASUS" + depends on BOARD_ASUS_M2V_MX_SE + +config MAINBOARD_PART_NUMBER + string + default "M2V-MX SE" + depends on BOARD_ASUS_M2V_MX_SE + +config MAX_CPUS + int + default 2 + depends on BOARD_ASUS_M2V_MX_SE + +config MAX_PHYSICAL_CPUS + int + default 1 + depends on BOARD_ASUS_M2V_MX_SE + +config STACK_SIZE + int + default 8192 + depends on BOARD_ASUS_M2V_MX_SE + +config HEAP_SIZE + int + default 262144 + depends on BOARD_ASUS_M2V_MX_SE + +config HAVE_OPTION_TABLE + bool + default y + depends on BOARD_ASUS_M2V_MX_SE + +config HAVE_ACPI_TABLES + bool + default y + depends on BOARD_ASUS_M2V_MX_SE + + +config LB_CKS_RANGE_END + int + default 122 + depends on BOARD_ASUS_M2V_MX_SE + +config LB_CKS_LOC + int + default 123 + depends on BOARD_ASUS_M2V_MX_SE +
Added: trunk/coreboot-v2/src/mainboard/asus/m2v-mx_se/Makefile.inc =================================================================== --- trunk/coreboot-v2/src/mainboard/asus/m2v-mx_se/Makefile.inc (rev 0) +++ trunk/coreboot-v2/src/mainboard/asus/m2v-mx_se/Makefile.inc 2009-08-26 16:55:06 UTC (rev 4586) @@ -0,0 +1,65 @@ +## +## This file is part of the coreboot project. +## +## Copyright (C) 2007-2008 coresystems GmbH +## Copyright (C) 2009 Cristi Măgherușan cristi.magherusan@net.utcluj.ro +## +## 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 +## + +driver-y += mainboard.o + +#needed by irq_tables and mptable and acpi_tables +obj-$(CONFIG_HAVE_ACPI_TABLES) += dsdt.o +obj-$(CONFIG_HAVE_ACPI_TABLES) += acpi_tables.o + +# This is part of the conversion to init-obj and away from included code. + +initobj-y += crt0.o +# FIXME in $(top)/Makefile +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/amd/car/cache_as_ram.inc +crt0-y += auto.inc + +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 + +ifdef POST_EVALUATION + +MAINBOARD_OPTIONS=\ + -DCONFIG_AP_IN_SIPI_WAIT=0 \ + -DCONFIG_USE_PRINTK_IN_CAR=1 + +$(obj)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl + iasl -p dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl + mv dsdt.hex $@ + +$(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/dsdt.c + $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@ + +$(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c $(obj)/option_table.h + $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c -o $@ + perl -e 's/.rodata/.rom.data/g' -pi $@ + perl -e 's/.text/.section .rom.text/g' -pi $@ + +endif +