More Kconfig-supported boards, and also kconfig support
authorPatrick Georgi <patrick.georgi@coresystems.de>
Fri, 9 Oct 2009 12:32:52 +0000 (12:32 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Fri, 9 Oct 2009 12:32:52 +0000 (12:32 +0000)
for amd/socket_AM2R2, amd/socket_939, drivers/ati/ragexl

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4750 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

41 files changed:
src/Kconfig
src/cpu/amd/Kconfig
src/cpu/amd/Makefile.inc
src/cpu/amd/socket_939/Kconfig [new file with mode: 0644]
src/cpu/amd/socket_939/Makefile.inc [new file with mode: 0644]
src/cpu/amd/socket_AM2r2/Kconfig [new file with mode: 0644]
src/cpu/amd/socket_AM2r2/Makefile.inc [new file with mode: 0644]
src/drivers/Makefile.inc
src/drivers/ati/ragexl/Makefile.inc [new file with mode: 0644]
src/mainboard/arima/Kconfig
src/mainboard/arima/hdama/Kconfig [new file with mode: 0644]
src/mainboard/arima/hdama/Makefile.inc [new file with mode: 0644]
src/mainboard/asus/Kconfig
src/mainboard/asus/a8n_e/Kconfig [new file with mode: 0644]
src/mainboard/asus/a8n_e/Makefile.inc [new file with mode: 0644]
src/mainboard/asus/a8v-e_se/Kconfig [new file with mode: 0644]
src/mainboard/asus/a8v-e_se/Makefile.inc [new file with mode: 0644]
src/mainboard/broadcom/Kconfig
src/mainboard/broadcom/blast/Kconfig [new file with mode: 0644]
src/mainboard/broadcom/blast/Makefile.inc [new file with mode: 0644]
src/mainboard/hp/Kconfig
src/mainboard/hp/dl145_g3/Kconfig [new file with mode: 0644]
src/mainboard/hp/dl145_g3/Makefile.inc [new file with mode: 0644]
src/mainboard/ibm/Kconfig
src/mainboard/ibm/e325/Kconfig [new file with mode: 0644]
src/mainboard/ibm/e325/Makefile.inc [new file with mode: 0644]
src/mainboard/ibm/e326/Kconfig [new file with mode: 0644]
src/mainboard/ibm/e326/Makefile.inc [new file with mode: 0644]
src/mainboard/intel/jarrell/Kconfig
src/mainboard/iwill/Kconfig
src/mainboard/iwill/dk8_htx/Kconfig [new file with mode: 0644]
src/mainboard/iwill/dk8_htx/Makefile.inc [new file with mode: 0644]
src/mainboard/iwill/dk8s2/Kconfig [new file with mode: 0644]
src/mainboard/iwill/dk8s2/Makefile.inc [new file with mode: 0644]
src/mainboard/iwill/dk8x/Kconfig [new file with mode: 0644]
src/mainboard/iwill/dk8x/Makefile.inc [new file with mode: 0644]
src/mainboard/olpc/Kconfig
src/mainboard/olpc/btest/Kconfig [new file with mode: 0644]
src/mainboard/olpc/btest/Makefile.inc [new file with mode: 0644]
src/mainboard/olpc/rev_a/Kconfig [new file with mode: 0644]
src/mainboard/olpc/rev_a/Makefile.inc [new file with mode: 0644]

index 5ffc3563e5ce4b9292fd5ffc58aecf684006bf10..ebdd1b44bc490bed7b4762aabe1b83674c1bc849 100644 (file)
@@ -146,6 +146,10 @@ config COMPRESSED_PAYLOAD_NRV2B
        bool
        default n
 
+config ATI_RAGE_XL
+       bool
+       default n
+
 source src/console/Kconfig
 
 config HAVE_ACPI_RESUME
index 31f85a7b4154162b82e6e20fb0cbfd0f250495dd..7285bb7e066c08e7d284ab0b3cbac6de9fc1d910 100644 (file)
@@ -3,10 +3,10 @@ config K8_REV_F_SUPPORT
        default n
 
 source src/cpu/amd/socket_754/Kconfig
-#source src/cpu/amd/socket_939/Kconfig
+source src/cpu/amd/socket_939/Kconfig
 source src/cpu/amd/socket_940/Kconfig
 source src/cpu/amd/socket_AM2/Kconfig
-#source src/cpu/amd/socket_AM2r2/Kconfig
+source src/cpu/amd/socket_AM2r2/Kconfig
 source src/cpu/amd/socket_F/Kconfig
 source src/cpu/amd/socket_F_1207/Kconfig
 source src/cpu/amd/socket_S1G1/Kconfig
index fb710d734f7d235fb81362a2d7ed9d6c6a7a6d1c..77285285fad6234fd55a53235936e057997f8b80 100644 (file)
@@ -1,7 +1,9 @@
 subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += socket_F
 subdirs-$(CONFIG_CPU_AMD_SOCKET_754) += socket_754
+subdirs-$(CONFIG_CPU_AMD_SOCKET_939) += socket_939
 subdirs-$(CONFIG_CPU_AMD_SOCKET_940) += socket_940
 subdirs-$(CONFIG_CPU_AMD_SOCKET_AM2) += socket_AM2
+subdirs-$(CONFIG_CPU_AMD_SOCKET_AM2R2) += socket_AM2r2
 subdirs-$(CONFIG_CPU_AMD_GX1) += model_gx1
 subdirs-$(CONFIG_CPU_AMD_GX2) += model_gx2
 subdirs-$(CONFIG_CPU_AMD_LX) += model_lx
diff --git a/src/cpu/amd/socket_939/Kconfig b/src/cpu/amd/socket_939/Kconfig
new file mode 100644 (file)
index 0000000..4006365
--- /dev/null
@@ -0,0 +1,9 @@
+config CPU_AMD_SOCKET_939
+       bool
+       default n
+       select CPU_AMD_MODEL_FXX
+
+config CPU_SOCKET_TYPE
+       hex
+       default 0x0
+       depends on CPU_AMD_SOCKET_939
diff --git a/src/cpu/amd/socket_939/Makefile.inc b/src/cpu/amd/socket_939/Makefile.inc
new file mode 100644 (file)
index 0000000..aeed905
--- /dev/null
@@ -0,0 +1,14 @@
+obj-y += socket_939.o
+subdirs-y += ../model_fxx
+subdirs-y += ../dualcore
+subdirs-y += ../mtrr
+subdirs-y += ../microcode
+subdirs-y += ../../x86/tsc
+subdirs-y += ../../x86/mtrr
+subdirs-y += ../../x86/fpu
+subdirs-y += ../../x86/mmx
+subdirs-y += ../../x86/sse
+subdirs-y += ../../x86/lapic
+subdirs-y += ../../x86/cache
+subdirs-y += ../../x86/mtrr
+subdirs-y += ../../x86/pae
diff --git a/src/cpu/amd/socket_AM2r2/Kconfig b/src/cpu/amd/socket_AM2r2/Kconfig
new file mode 100644 (file)
index 0000000..1008401
--- /dev/null
@@ -0,0 +1,18 @@
+config CPU_AMD_SOCKET_AM2R2
+       bool
+       default n
+       select CPU_AMD_MODEL_10XXX
+       select HT3_SUPPORT
+       select CAR_FAM10
+
+config CPU_SOCKET_TYPE
+       hex
+       default 0x11
+       depends on CPU_AMD_SOCKET_AM2R2
+
+# DDR2 and REG
+config DIMM_SUPPORT
+       hex
+       default 0x0104
+       depends on CPU_AMD_SOCKET_AM2R2
+
diff --git a/src/cpu/amd/socket_AM2r2/Makefile.inc b/src/cpu/amd/socket_AM2r2/Makefile.inc
new file mode 100644 (file)
index 0000000..5ff9c58
--- /dev/null
@@ -0,0 +1,14 @@
+obj-y += socket_AM2r2.o
+subdirs-y += ../model_10xxx
+subdirs-y += ../quadcore
+subdirs-y += ../mtrr
+subdirs-y += ../microcode
+subdirs-y += ../../x86/tsc
+subdirs-y += ../../x86/fpu
+subdirs-y += ../../x86/mmx
+subdirs-y += ../../x86/sse
+subdirs-y += ../../x86/lapic
+subdirs-y += ../../x86/cache
+subdirs-y += ../../x86/pae
+subdirs-y += ../../x86/smm
+subdirs-y += ../../x86/mtrr
index 061728ae245d3347f98edff658c8e50d0dbbb286..29cdbac9fa29d53aedb2d16d8a2c87195b6006e4 100644 (file)
@@ -1 +1,2 @@
 subdirs-y += pci
+subdirs-y += ati/ragexl
diff --git a/src/drivers/ati/ragexl/Makefile.inc b/src/drivers/ati/ragexl/Makefile.inc
new file mode 100644 (file)
index 0000000..9fac872
--- /dev/null
@@ -0,0 +1 @@
+driver-$(CONFIG_ATI_RAGE_XL) += xlinit.o
index 792d6005489ebee62cde02066f19c5521e620451..d1979b00a22b2f04a46c5155616863d1f79eccfe 100644 (file)
@@ -1 +1,8 @@
-#
+choice
+       prompt "Mainboard model"
+       depends on VENDOR_ARIMA
+        
+source "src/mainboard/arima/hdama/Kconfig"
+
+endchoice
+
diff --git a/src/mainboard/arima/hdama/Kconfig b/src/mainboard/arima/hdama/Kconfig
new file mode 100644 (file)
index 0000000..25a277a
--- /dev/null
@@ -0,0 +1,108 @@
+config BOARD_ARIMA_HDAMA
+       bool "HDAMA"
+       select ARCH_X86
+       select CPU_AMD_K8
+       select CPU_AMD_SOCKET_940
+       select NORTHBRIDGE_AMD_AMDK8
+       select NORTHBRIDGE_AMD_AMDK8_ROOT_COMPLEX
+       select SOUTHBRIDGE_AMD_AMD8111
+       select SOUTHBRIDGE_AMD_AMD8131
+       select SUPERIO_NSC_PC87360
+       select HAVE_PIRQ_TABLE
+       select USE_PRINTK_IN_CAR
+       select USE_DCACHE_RAM
+       select HAVE_HARD_RESET
+       select IOAPIC
+       select AP_CODE_IN_CAR
+       select SB_HT_CHAIN_UNITID_OFFSET_ONLY
+       select WAIT_BEFORE_CPUS_INIT
+
+config MAINBOARD_DIR
+       string
+       default arima/hdama
+       depends on BOARD_ARIMA_HDAMA
+
+config DCACHE_RAM_BASE
+       hex
+       default 0xc8000
+       depends on BOARD_ARIMA_HDAMA
+
+config DCACHE_RAM_SIZE
+       hex
+       default 0x08000
+       depends on BOARD_ARIMA_HDAMA
+
+config DCACHE_RAM_GLOBAL_VAR_SIZE
+       hex
+       default 0x01000
+       depends on BOARD_ARIMA_HDAMA
+
+config APIC_ID_OFFSET
+       hex
+       default 0x8
+       depends on BOARD_ARIMA_HDAMA
+
+config LB_CKS_RANGE_END
+       int
+       default 122
+       depends on BOARD_ARIMA_HDAMA
+
+config LB_CKS_LOC
+       int
+       default 123
+       depends on BOARD_ARIMA_HDAMA
+
+config MAINBOARD_PART_NUMBER
+       string
+       default "HDAMA"
+       depends on BOARD_ARIMA_HDAMA
+
+config HW_MEM_HOLE_SIZEK
+       hex
+       default 0x100000
+       depends on BOARD_ARIMA_HDAMA
+
+config MAX_CPUS
+       int
+       default 4
+       depends on BOARD_ARIMA_HDAMA
+
+config MAX_PHYSICAL_CPUS
+       int
+       default 2
+       depends on BOARD_ARIMA_HDAMA
+
+config HW_MEM_HOLE_SIZE_AUTO_INC
+       bool
+       default n
+       depends on BOARD_ARIMA_HDAMA
+
+config SB_HT_CHAIN_ON_BUS0
+       int
+       default 2
+       depends on BOARD_ARIMA_HDAMA
+
+config HT_CHAIN_END_UNITID_BASE
+       hex
+       default 0x6
+       depends on BOARD_ARIMA_HDAMA
+
+config HT_CHAIN_UNITID_BASE
+       hex
+       default 0xa
+       depends on BOARD_ARIMA_HDAMA
+
+config USE_INIT
+       bool
+       default n
+       depends on BOARD_ARIMA_HDAMA
+
+config SERIAL_CPU_INIT
+       bool
+       default n
+       depends on BOARD_ARIMA_HDAMA
+
+config IRQ_SLOT_COUNT
+       int
+       default 11
+       depends on BOARD_ARIMA_HDAMA
diff --git a/src/mainboard/arima/hdama/Makefile.inc b/src/mainboard/arima/hdama/Makefile.inc
new file mode 100644 (file)
index 0000000..5ad2d55
--- /dev/null
@@ -0,0 +1,53 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (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
+##
+
+driver-y += mainboard.o
+
+# Needed by irq_tables and mptable.
+obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
+obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_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
+
+$(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
+
index 2843fe2b0fd6d7d27a49f0103142c6db05516f6b..90f5c543990ea299643ee22474f939c3b777da6e 100644 (file)
@@ -22,6 +22,8 @@ choice
        prompt "Mainboard model"
        depends on VENDOR_ASUS
 
+source "src/mainboard/asus/a8n_e/Kconfig"
+source "src/mainboard/asus/a8v-e_se/Kconfig"
 source "src/mainboard/asus/p2b/Kconfig"
 source "src/mainboard/asus/p2b-d/Kconfig"
 source "src/mainboard/asus/p2b-f/Kconfig"
diff --git a/src/mainboard/asus/a8n_e/Kconfig b/src/mainboard/asus/a8n_e/Kconfig
new file mode 100644 (file)
index 0000000..b495ad5
--- /dev/null
@@ -0,0 +1,99 @@
+config BOARD_ASUS_A8N_E
+       bool "A8N-E"
+       select ARCH_X86
+       select CPU_AMD_K8
+       select CPU_AMD_SOCKET_939
+       select NORTHBRIDGE_AMD_AMDK8
+       select NORTHBRIDGE_AMD_AMDK8_ROOT_COMPLEX
+       select SOUTHBRIDGE_NVIDIA_CK804
+       select SUPERIO_ITE_IT8712F
+       select HAVE_PIRQ_TABLE
+       select USE_PRINTK_IN_CAR
+       select USE_DCACHE_RAM
+       select HAVE_HARD_RESET
+       select IOAPIC
+
+config MAINBOARD_DIR
+       string
+       default asus/a8n_e
+       depends on BOARD_ASUS_A8N_E
+
+config DCACHE_RAM_BASE
+       hex
+       default 0xcf000
+       depends on BOARD_ASUS_A8N_E
+
+config DCACHE_RAM_SIZE
+       hex
+       default 0x01000
+       depends on BOARD_ASUS_A8N_E
+
+config APIC_ID_OFFSET
+       hex
+       default 0x10
+       depends on BOARD_ASUS_A8N_E
+
+config SB_HT_CHAIN_ON_BUS0
+       int
+       default 2
+       depends on BOARD_ASUS_A8N_E
+
+config SB_HT_CHAIN_UNITID_OFFSET_ONLY
+       bool
+       default n
+       depends on BOARD_ASUS_A8N_E
+
+config LB_CKS_RANGE_END
+       int
+       default 122
+       depends on BOARD_ASUS_A8N_E
+
+config LB_CKS_LOC
+       int
+       default 123
+       depends on BOARD_ASUS_A8N_E
+
+config MAINBOARD_PART_NUMBER
+       string
+       default "A8N-E"
+       depends on BOARD_ASUS_A8N_E
+
+config HW_MEM_HOLE_SIZEK
+       hex
+       default 0x100000
+       depends on BOARD_ASUS_A8N_E
+
+config MAX_CPUS
+       int
+       default 2
+       depends on BOARD_ASUS_A8N_E
+
+config MAX_PHYSICAL_CPUS
+       int
+       default 1
+       depends on BOARD_ASUS_A8N_E
+
+config HT_CHAIN_END_UNITID_BASE
+       hex
+       default 0x0
+       depends on BOARD_ASUS_A8N_E
+
+config HT_CHAIN_UNITID_BASE
+       hex
+       default 0x0
+       depends on BOARD_ASUS_A8N_E
+
+config USE_INIT
+       bool
+       default n
+       depends on BOARD_ASUS_A8N_E
+
+config SB_HT_CHAIN_ON_BUS0
+       int
+       default 2
+       depends on BOARD_ASUS_A8N_E
+
+config IRQ_SLOT_COUNT
+       int
+       default 13
+       depends on BOARD_ASUS_A8N_E
diff --git a/src/mainboard/asus/a8n_e/Makefile.inc b/src/mainboard/asus/a8n_e/Makefile.inc
new file mode 100644 (file)
index 0000000..bfba668
--- /dev/null
@@ -0,0 +1,76 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (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
+##
+
+driver-y += mainboard.o
+
+# Needed by irq_tables and mptable and acpi_tables.
+obj-y += get_bus_conf.o
+obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
+obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_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
+
+$(obj)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/dsdt_lb.dsl
+       iasl -p dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/dx/dsdt_lb.dsl
+       mv dsdt.hex $@
+
+$(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/dsdt.c
+       $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@
+
+$(obj)/ssdt2.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci2.asl
+       iasl -p $(CURDIR)/pci2 -tc $(CONFIG_MAINBOARD)/dx/pci2.asl
+       perl -pi -e 's/AmlCode/AmlCode_ssdt2/g' pci2.hex
+       mv pci2.hex ssdt2.c
+
+$(obj)/ssdt3.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci3.asl"
+       iasl -p $(CURDIR)/pci3 -tc $(CONFIG_MAINBOARD)/
+       perl -pi -e 's/AmlCode/AmlCode_ssdt3/g' pci3.hex
+       mv pci3.hex ssdt3.c
+
+$(obj)/ssdt4.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci4.asl"
+       iasl -p $(CURDIR)/pci4 -tc $(CONFIG_MAINBOARD)/dx/pci4.asl
+       perl -pi -e 's/AmlCode/AmlCode_ssdt4/g' pci4.hex
+       mv pci4.hex ssdt4.c
+
+$(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
+
diff --git a/src/mainboard/asus/a8v-e_se/Kconfig b/src/mainboard/asus/a8v-e_se/Kconfig
new file mode 100644 (file)
index 0000000..bf23b81
--- /dev/null
@@ -0,0 +1,104 @@
+config BOARD_ASUS_A8V_E_SE
+       bool "A8V-E SE"
+       select ARCH_X86
+       select CPU_AMD_K8
+       select CPU_AMD_SOCKET_939
+       select NORTHBRIDGE_AMD_AMDK8
+       select NORTHBRIDGE_AMD_AMDK8_ROOT_COMPLEX
+       select SOUTHBRIDGE_VIA_VT8237R
+       select SUPERIO_WINBOND_W83627EHG
+       select USE_PRINTK_IN_CAR
+       select USE_DCACHE_RAM
+       select HAVE_HARD_RESET
+       select IOAPIC
+       select HAVE_ACPI_TABLES
+
+config MAINBOARD_DIR
+       string
+       default asus/a8v-e_se
+       depends on BOARD_ASUS_A8V_E_SE
+
+config DCACHE_RAM_BASE
+       hex
+       default 0xcc000
+       depends on BOARD_ASUS_A8V_E_SE
+
+config DCACHE_RAM_SIZE
+       hex
+       default 0x4000
+       depends on BOARD_ASUS_A8V_E_SE
+
+config DCACHE_RAM_GLOBAL_VAR_SIZE
+       hex
+       default 0x1000
+       depends on BOARD_ASUS_A8V_E_SE
+
+config APIC_ID_OFFSET
+       hex
+       default 0x10
+       depends on BOARD_ASUS_A8V_E_SE
+
+config SB_HT_CHAIN_ON_BUS0
+       int
+       default 2
+       depends on BOARD_ASUS_A8V_E_SE
+
+config SB_HT_CHAIN_UNITID_OFFSET_ONLY
+       bool
+       default n
+       depends on BOARD_ASUS_A8V_E_SE
+
+config LB_CKS_RANGE_END
+       int
+       default 122
+       depends on BOARD_ASUS_A8V_E_SE
+
+config LB_CKS_LOC
+       int
+       default 123
+       depends on BOARD_ASUS_A8V_E_SE
+
+config MAINBOARD_PART_NUMBER
+       string
+       default "A8V-E SE"
+       depends on BOARD_ASUS_A8V_E_SE
+
+config HW_MEM_HOLE_SIZEK
+       hex
+       default 0x100000
+       depends on BOARD_ASUS_A8V_E_SE
+
+config MAX_CPUS
+       int
+       default 2
+       depends on BOARD_ASUS_A8V_E_SE
+
+config MAX_PHYSICAL_CPUS
+       int
+       default 1
+       depends on BOARD_ASUS_A8V_E_SE
+
+config HT_CHAIN_END_UNITID_BASE
+       hex
+       default 0x0
+       depends on BOARD_ASUS_A8V_E_SE
+
+config HT_CHAIN_UNITID_BASE
+       hex
+       default 0x0
+       depends on BOARD_ASUS_A8V_E_SE
+
+config USE_INIT
+       bool
+       default n
+       depends on BOARD_ASUS_A8V_E_SE
+
+config SB_HT_CHAIN_ON_BUS0
+       int
+       default 2
+       depends on BOARD_ASUS_A8V_E_SE
+
+config IRQ_SLOT_COUNT
+       int
+       default 13
+       depends on BOARD_ASUS_A8V_E_SE
diff --git a/src/mainboard/asus/a8v-e_se/Makefile.inc b/src/mainboard/asus/a8v-e_se/Makefile.inc
new file mode 100644 (file)
index 0000000..77348fd
--- /dev/null
@@ -0,0 +1,41 @@
+driver-y += mainboard.o
+
+# Needed by irq_tables and mptable and acpi_tables.
+obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
+obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_tables.o
+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
+
+$(obj)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl
+       iasl -p $(obj)/dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl
+       mv $(obj)/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
+
index 792d6005489ebee62cde02066f19c5521e620451..bf956ecdb3f23199ed8430279600bf9fc946b21d 100644 (file)
@@ -1 +1,8 @@
-#
+choice
+       prompt "Mainboard model"
+       depends on VENDOR_BROADCOM
+        
+source "src/mainboard/broadcom/blast/Kconfig"
+
+endchoice
+
diff --git a/src/mainboard/broadcom/blast/Kconfig b/src/mainboard/broadcom/blast/Kconfig
new file mode 100644 (file)
index 0000000..2cd56f1
--- /dev/null
@@ -0,0 +1,105 @@
+config BOARD_BROADCOM_BLAST
+       bool "Blast"
+       select ARCH_X86
+       select CPU_AMD_K8
+       select CPU_AMD_SOCKET_940
+       select NORTHBRIDGE_AMD_AMDK8
+       select NORTHBRIDGE_AMD_AMDK8_ROOT_COMPLEX
+       select SOUTHBRIDGE_BROADCOM_BCM5780
+       select SOUTHBRIDGE_BROADCOM_BCM5785
+       select SUPERIO_NSC_PC87417
+       select HAVE_PIRQ_TABLE
+       select USE_PRINTK_IN_CAR
+       select USE_DCACHE_RAM
+       select HAVE_HARD_RESET
+       select IOAPIC
+
+config MAINBOARD_DIR
+       string
+       default broadcom/blast
+       depends on BOARD_BROADCOM_BLAST
+
+config DCACHE_RAM_BASE
+       hex
+       default 0xcf000
+       depends on BOARD_BROADCOM_BLAST
+
+config DCACHE_RAM_SIZE
+       hex
+       default 0x01000
+       depends on BOARD_BROADCOM_BLAST
+
+config DCACHE_RAM_GLOBAL_VAR_SIZE
+       hex
+       default 0x0
+       depends on BOARD_BROADCOM_BLAST
+
+config APIC_ID_OFFSET
+       hex
+       default 0x10
+       depends on BOARD_BROADCOM_BLAST
+
+config SB_HT_CHAIN_ON_BUS0
+       int
+       default 2
+       depends on BOARD_BROADCOM_BLAST
+
+config SB_HT_CHAIN_UNITID_OFFSET_ONLY
+       bool
+       default n
+       depends on BOARD_BROADCOM_BLAST
+
+config LB_CKS_RANGE_END
+       int
+       default 122
+       depends on BOARD_BROADCOM_BLAST
+
+config LB_CKS_LOC
+       int
+       default 123
+       depends on BOARD_BROADCOM_BLAST
+
+config MAINBOARD_PART_NUMBER
+       string
+       default "BLAST"
+       depends on BOARD_BROADCOM_BLAST
+
+config HW_MEM_HOLE_SIZEK
+       hex
+       default 0x100000
+       depends on BOARD_BROADCOM_BLAST
+
+config MAX_CPUS
+       int
+       default 4
+       depends on BOARD_BROADCOM_BLAST
+
+config MAX_PHYSICAL_CPUS
+       int
+       default 2
+       depends on BOARD_BROADCOM_BLAST
+
+config HT_CHAIN_END_UNITID_BASE
+       hex
+       default 0x0
+       depends on BOARD_BROADCOM_BLAST
+
+config HT_CHAIN_UNITID_BASE
+       hex
+       default 0x0
+       depends on BOARD_BROADCOM_BLAST
+
+config USE_INIT
+       bool
+       default n
+       depends on BOARD_BROADCOM_BLAST
+
+config SB_HT_CHAIN_ON_BUS0
+       int
+       default 2
+       depends on BOARD_BROADCOM_BLAST
+
+config IRQ_SLOT_COUNT
+       int
+       default 11
+       depends on BOARD_BROADCOM_BLAST
diff --git a/src/mainboard/broadcom/blast/Makefile.inc b/src/mainboard/broadcom/blast/Makefile.inc
new file mode 100644 (file)
index 0000000..09a594e
--- /dev/null
@@ -0,0 +1,35 @@
+driver-y += mainboard.o
+
+# Needed by irq_tables and mptable and acpi_tables.
+obj-y += get_bus_conf.o
+obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
+obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_tables.o
+
+driver-y += ../../../drivers/i2c/i2cmux2/i2cmux2.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
+
+$(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
+
index 792d6005489ebee62cde02066f19c5521e620451..b78032cd276b7511494a5fe8ae050e8e8dbb8369 100644 (file)
@@ -1 +1,8 @@
-#
+choice
+       prompt "Mainboard model"
+       depends on VENDOR_HP
+        
+source "src/mainboard/hp/dl145_g3/Kconfig"
+
+endchoice
+
diff --git a/src/mainboard/hp/dl145_g3/Kconfig b/src/mainboard/hp/dl145_g3/Kconfig
new file mode 100644 (file)
index 0000000..60cbcfe
--- /dev/null
@@ -0,0 +1,105 @@
+config BOARD_HP_DL145_G3
+       bool "DL145-G3"
+       select ARCH_X86
+       select CPU_AMD_K8
+       select CPU_AMD_SOCKET_F
+       select NORTHBRIDGE_AMD_AMDK8
+       select NORTHBRIDGE_AMD_AMDK8_ROOT_COMPLEX
+       select SOUTHBRIDGE_BROADCOM_BCM21000
+       select SOUTHBRIDGE_BROADCOM_BCM5785
+       select SUPERIO_NSC_PC87417
+       select HAVE_PIRQ_TABLE
+       select USE_PRINTK_IN_CAR
+       select USE_DCACHE_RAM
+       select HAVE_HARD_RESET
+       select IOAPIC
+
+config MAINBOARD_DIR
+       string
+       default hp/dl145_g3
+       depends on BOARD_HP_DL145_G3
+
+config DCACHE_RAM_BASE
+       hex
+       default 0xcc000
+       depends on BOARD_HP_DL145_G3
+
+config DCACHE_RAM_SIZE
+       hex
+       default 0x04000
+       depends on BOARD_HP_DL145_G3
+
+config DCACHE_RAM_GLOBAL_VAR_SIZE
+       hex
+       default 0x01000
+       depends on BOARD_HP_DL145_G3
+
+config APIC_ID_OFFSET
+       hex
+       default 0x10
+       depends on BOARD_HP_DL145_G3
+
+config SB_HT_CHAIN_ON_BUS0
+       int
+       default 2
+       depends on BOARD_HP_DL145_G3
+
+config SB_HT_CHAIN_UNITID_OFFSET_ONLY
+       bool
+       default n
+       depends on BOARD_HP_DL145_G3
+
+config LB_CKS_RANGE_END
+       int
+       default 122
+       depends on BOARD_HP_DL145_G3
+
+config LB_CKS_LOC
+       int
+       default 123
+       depends on BOARD_HP_DL145_G3
+
+config MAINBOARD_PART_NUMBER
+       string
+       default "DL145G3"
+       depends on BOARD_HP_DL145_G3
+
+config HW_MEM_HOLE_SIZEK
+       hex
+       default 0x100000
+       depends on BOARD_HP_DL145_G3
+
+config MAX_CPUS
+       int
+       default 4
+       depends on BOARD_HP_DL145_G3
+
+config MAX_PHYSICAL_CPUS
+       int
+       default 2
+       depends on BOARD_HP_DL145_G3
+
+config HT_CHAIN_END_UNITID_BASE
+       hex
+       default 0x0
+       depends on BOARD_HP_DL145_G3
+
+config HT_CHAIN_UNITID_BASE
+       hex
+       default 0x0
+       depends on BOARD_HP_DL145_G3
+
+config USE_INIT
+       bool
+       default n
+       depends on BOARD_HP_DL145_G3
+
+config SB_HT_CHAIN_ON_BUS0
+       int
+       default 2
+       depends on BOARD_HP_DL145_G3
+
+config IRQ_SLOT_COUNT
+       int
+       default 15
+       depends on BOARD_HP_DL145_G3
diff --git a/src/mainboard/hp/dl145_g3/Makefile.inc b/src/mainboard/hp/dl145_g3/Makefile.inc
new file mode 100644 (file)
index 0000000..e646f71
--- /dev/null
@@ -0,0 +1,33 @@
+driver-y += mainboard.o
+
+# Needed by irq_tables and mptable and acpi_tables.
+obj-y += get_bus_conf.o
+obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
+obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_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
+
+$(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
+
index 792d6005489ebee62cde02066f19c5521e620451..d3d4f292e12558d1af5542cc2c5534530ab22c75 100644 (file)
@@ -1 +1,9 @@
-#
+choice
+       prompt "Mainboard model"
+       depends on VENDOR_IBM
+        
+source "src/mainboard/ibm/e325/Kconfig"
+source "src/mainboard/ibm/e326/Kconfig"
+
+endchoice
+
diff --git a/src/mainboard/ibm/e325/Kconfig b/src/mainboard/ibm/e325/Kconfig
new file mode 100644 (file)
index 0000000..d0e211f
--- /dev/null
@@ -0,0 +1,108 @@
+config BOARD_IBM_E325
+       bool "e325"
+       select ARCH_X86
+       select CPU_AMD_K8
+       select CPU_AMD_SOCKET_940
+       select NORTHBRIDGE_AMD_AMDK8
+       select NORTHBRIDGE_AMD_AMDK8_ROOT_COMPLEX
+       select SOUTHBRIDGE_AMD_AMD8111
+       select SOUTHBRIDGE_AMD_AMD8131
+       select SUPERIO_NSC_PC87366
+       select HAVE_PIRQ_TABLE
+       select USE_PRINTK_IN_CAR
+       select USE_DCACHE_RAM
+       select HAVE_HARD_RESET
+       select IOAPIC
+       select AP_CODE_IN_CAR
+       select SB_HT_CHAIN_UNITID_OFFSET_ONLY
+       select WAIT_BEFORE_CPUS_INIT
+
+config MAINBOARD_DIR
+       string
+       default ibm/e325
+       depends on BOARD_IBM_E325
+
+config DCACHE_RAM_BASE
+       hex
+       default 0xcf000
+       depends on BOARD_IBM_E325
+
+config DCACHE_RAM_SIZE
+       hex
+       default 0x1000
+       depends on BOARD_IBM_E325
+
+config DCACHE_RAM_GLOBAL_VAR_SIZE
+       hex
+       default 0x0
+       depends on BOARD_IBM_E325
+
+config APIC_ID_OFFSET
+       hex
+       default 0x8
+       depends on BOARD_IBM_E325
+
+config LB_CKS_RANGE_END
+       int
+       default 122
+       depends on BOARD_IBM_E325
+
+config LB_CKS_LOC
+       int
+       default 123
+       depends on BOARD_IBM_E325
+
+config MAINBOARD_PART_NUMBER
+       string
+       default "E325"
+       depends on BOARD_IBM_E325
+
+config HW_MEM_HOLE_SIZEK
+       hex
+       default 0x100000
+       depends on BOARD_IBM_E325
+
+config MAX_CPUS
+       int
+       default 1
+       depends on BOARD_IBM_E325
+
+config MAX_PHYSICAL_CPUS
+       int
+       default 1
+       depends on BOARD_IBM_E325
+
+config HW_MEM_HOLE_SIZE_AUTO_INC
+       bool
+       default n
+       depends on BOARD_IBM_E325
+
+config SB_HT_CHAIN_ON_BUS0
+       int
+       default 2
+       depends on BOARD_IBM_E325
+
+config HT_CHAIN_END_UNITID_BASE
+       hex
+       default 0x6
+       depends on BOARD_IBM_E325
+
+config HT_CHAIN_UNITID_BASE
+       hex
+       default 0xa
+       depends on BOARD_IBM_E325
+
+config USE_INIT
+       bool
+       default n
+       depends on BOARD_IBM_E325
+
+config SERIAL_CPU_INIT
+       bool
+       default n
+       depends on BOARD_IBM_E325
+
+config IRQ_SLOT_COUNT
+       int
+       default 12
+       depends on BOARD_IBM_E325
diff --git a/src/mainboard/ibm/e325/Makefile.inc b/src/mainboard/ibm/e325/Makefile.inc
new file mode 100644 (file)
index 0000000..0f9bd72
--- /dev/null
@@ -0,0 +1,53 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (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
+##
+
+driver-y += mainboard.o
+
+# Needed by irq_tables and mptable and acpi_tables.
+obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
+obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_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
+
+$(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
+
diff --git a/src/mainboard/ibm/e326/Kconfig b/src/mainboard/ibm/e326/Kconfig
new file mode 100644 (file)
index 0000000..5d3496c
--- /dev/null
@@ -0,0 +1,108 @@
+config BOARD_IBM_E326
+       bool "e326"
+       select ARCH_X86
+       select CPU_AMD_K8
+       select CPU_AMD_SOCKET_940
+       select NORTHBRIDGE_AMD_AMDK8
+       select NORTHBRIDGE_AMD_AMDK8_ROOT_COMPLEX
+       select SOUTHBRIDGE_AMD_AMD8111
+       select SOUTHBRIDGE_AMD_AMD8131
+       select SUPERIO_NSC_PC87366
+       select HAVE_PIRQ_TABLE
+       select USE_PRINTK_IN_CAR
+       select USE_DCACHE_RAM
+       select HAVE_HARD_RESET
+       select IOAPIC
+       select AP_CODE_IN_CAR
+       select SB_HT_CHAIN_UNITID_OFFSET_ONLY
+       select WAIT_BEFORE_CPUS_INIT
+
+config MAINBOARD_DIR
+       string
+       default ibm/e326
+       depends on BOARD_IBM_E326
+
+config DCACHE_RAM_BASE
+       hex
+       default 0xcf000
+       depends on BOARD_IBM_E326
+
+config DCACHE_RAM_SIZE
+       hex
+       default 0x1000
+       depends on BOARD_IBM_E326
+
+config DCACHE_RAM_GLOBAL_VAR_SIZE
+       hex
+       default 0x0
+       depends on BOARD_IBM_E326
+
+config APIC_ID_OFFSET
+       hex
+       default 0x8
+       depends on BOARD_IBM_E326
+
+config LB_CKS_RANGE_END
+       int
+       default 122
+       depends on BOARD_IBM_E326
+
+config LB_CKS_LOC
+       int
+       default 123
+       depends on BOARD_IBM_E326
+
+config MAINBOARD_PART_NUMBER
+       string
+       default "E326"
+       depends on BOARD_IBM_E326
+
+config HW_MEM_HOLE_SIZEK
+       hex
+       default 0x100000
+       depends on BOARD_IBM_E326
+
+config MAX_CPUS
+       int
+       default 2
+       depends on BOARD_IBM_E326
+
+config MAX_PHYSICAL_CPUS
+       int
+       default 2
+       depends on BOARD_IBM_E326
+
+config HW_MEM_HOLE_SIZE_AUTO_INC
+       bool
+       default n
+       depends on BOARD_IBM_E326
+
+config SB_HT_CHAIN_ON_BUS0
+       int
+       default 2
+       depends on BOARD_IBM_E326
+
+config HT_CHAIN_END_UNITID_BASE
+       hex
+       default 0x6
+       depends on BOARD_IBM_E326
+
+config HT_CHAIN_UNITID_BASE
+       hex
+       default 0xa
+       depends on BOARD_IBM_E326
+
+config USE_INIT
+       bool
+       default n
+       depends on BOARD_IBM_E326
+
+config SERIAL_CPU_INIT
+       bool
+       default n
+       depends on BOARD_IBM_E326
+
+config IRQ_SLOT_COUNT
+       int
+       default 12
+       depends on BOARD_IBM_E326
diff --git a/src/mainboard/ibm/e326/Makefile.inc b/src/mainboard/ibm/e326/Makefile.inc
new file mode 100644 (file)
index 0000000..0f9bd72
--- /dev/null
@@ -0,0 +1,53 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (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
+##
+
+driver-y += mainboard.o
+
+# Needed by irq_tables and mptable and acpi_tables.
+obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
+obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_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
+
+$(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
+
index b53e589aac58dd4897eb51006e1c250cd175de1d..4ad4140bd834704d5978359a6166d822edc2ef9a 100644 (file)
@@ -8,6 +8,7 @@ config BOARD_INTEL_JARRELL
        select SUPERIO_NSC_PC87427
        select HAVE_PIRQ_TABLE
        select UDELAY_TSC
+       select ATI_RAGE_XL
 
 config MAINBOARD_DIR
        string
@@ -38,3 +39,4 @@ config IRQ_SLOT_COUNT
        int
        default 9
        depends on BOARD_INTEL_JARRELL
+
index 792d6005489ebee62cde02066f19c5521e620451..cfb986f7eb0fdef6415eef72be2abf07fbfbb426 100644 (file)
@@ -1 +1,10 @@
-#
+choice
+       prompt "Mainboard model"
+       depends on VENDOR_IWILL
+        
+source "src/mainboard/iwill/dk8_htx/Kconfig"
+source "src/mainboard/iwill/dk8s2/Kconfig"
+source "src/mainboard/iwill/dk8x/Kconfig"
+
+endchoice
+
diff --git a/src/mainboard/iwill/dk8_htx/Kconfig b/src/mainboard/iwill/dk8_htx/Kconfig
new file mode 100644 (file)
index 0000000..ace1650
--- /dev/null
@@ -0,0 +1,109 @@
+config BOARD_IWILL_DK8_HTX
+       bool "DK8-HTX"
+       select ARCH_X86
+       select CPU_AMD_K8
+       select CPU_AMD_SOCKET_940
+       select NORTHBRIDGE_AMD_AMDK8
+       select NORTHBRIDGE_AMD_AMDK8_ROOT_COMPLEX
+       select SOUTHBRIDGE_AMD_AMD8111
+       select SOUTHBRIDGE_AMD_AMD8131
+       select SUPERIO_WINBOND_W83627HF
+       select HAVE_PIRQ_TABLE
+       select USE_PRINTK_IN_CAR
+       select USE_DCACHE_RAM
+       select HAVE_HARD_RESET
+       select IOAPIC
+       select AP_CODE_IN_CAR
+       select SB_HT_CHAIN_UNITID_OFFSET_ONLY
+       select WAIT_BEFORE_CPUS_INIT
+       select HAVE_ACPI_TABLES
+
+config MAINBOARD_DIR
+       string
+       default iwill/dk8_htx
+       depends on BOARD_IWILL_DK8_HTX
+
+config DCACHE_RAM_BASE
+       hex
+       default 0xc8000
+       depends on BOARD_IWILL_DK8_HTX
+
+config DCACHE_RAM_SIZE
+       hex
+       default 0x08000
+       depends on BOARD_IWILL_DK8_HTX
+
+config DCACHE_RAM_GLOBAL_VAR_SIZE
+       hex
+       default 0x01000
+       depends on BOARD_IWILL_DK8_HTX
+
+config APIC_ID_OFFSET
+       hex
+       default 0x8
+       depends on BOARD_IWILL_DK8_HTX
+
+config LB_CKS_RANGE_END
+       int
+       default 122
+       depends on BOARD_IWILL_DK8_HTX
+
+config LB_CKS_LOC
+       int
+       default 123
+       depends on BOARD_IWILL_DK8_HTX
+
+config MAINBOARD_PART_NUMBER
+       string
+       default "DK8-HTX"
+       depends on BOARD_IWILL_DK8_HTX
+
+config HW_MEM_HOLE_SIZEK
+       hex
+       default 0x100000
+       depends on BOARD_IWILL_DK8_HTX
+
+config MAX_CPUS
+       int
+       default 4
+       depends on BOARD_IWILL_DK8_HTX
+
+config MAX_PHYSICAL_CPUS
+       int
+       default 2
+       depends on BOARD_IWILL_DK8_HTX
+
+config HW_MEM_HOLE_SIZE_AUTO_INC
+       bool
+       default n
+       depends on BOARD_IWILL_DK8_HTX
+
+config SB_HT_CHAIN_ON_BUS0
+       int
+       default 2
+       depends on BOARD_IWILL_DK8_HTX
+
+config HT_CHAIN_END_UNITID_BASE
+       hex
+       default 0x6
+       depends on BOARD_IWILL_DK8_HTX
+
+config HT_CHAIN_UNITID_BASE
+       hex
+       default 0xa
+       depends on BOARD_IWILL_DK8_HTX
+
+config USE_INIT
+       bool
+       default n
+       depends on BOARD_IWILL_DK8_HTX
+
+config SERIAL_CPU_INIT
+       bool
+       default n
+       depends on BOARD_IWILL_DK8_HTX
+
+config IRQ_SLOT_COUNT
+       int
+       default 11
+       depends on BOARD_IWILL_DK8_HTX
diff --git a/src/mainboard/iwill/dk8_htx/Makefile.inc b/src/mainboard/iwill/dk8_htx/Makefile.inc
new file mode 100644 (file)
index 0000000..6135e90
--- /dev/null
@@ -0,0 +1,90 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (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
+##
+
+driver-y += mainboard.o
+
+# Needed by irq_tables and mptable and acpi_tables.
+obj-y += get_bus_conf.o
+obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
+obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_tables.o
+obj-$(CONFIG_HAVE_ACPI_TABLES) += dsdt.o
+obj-$(CONFIG_HAVE_ACPI_TABLES) += acpi_tables.o
+obj-$(CONFIG_HAVE_ACPI_TABLES) += fadt.o
+
+# ./ssdt.o is in northbridge/amd/amdk8/Config.lb
+obj-$(CONFIG_ACPI_SSDTX_NUM) += ssdt2.o
+obj-$(CONFIG_ACPI_SSDTX_NUM) += ssdt3.o
+obj-$(CONFIG_ACPI_SSDTX_NUM) += ssdt4.o
+obj-$(CONFIG_ACPI_SSDTX_NUM) += ssdt5.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
+
+$(obj)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/dsdt_lb.dsl
+       iasl -p dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/dx/dsdt_lb.dsl
+       mv dsdt.hex $@
+
+$(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/dsdt.c
+       $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@
+
+$(obj)/ssdt2.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci2.asl
+       iasl -p $(CURDIR)/pci2 -tc $(CONFIG_MAINBOARD)/dx/pci2.asl
+       perl -pi -e 's/AmlCode/AmlCode_ssdt2/g' pci2.hex
+       mv pci2.hex ssdt2.c
+
+$(obj)/ssdt3.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci3.asl"
+       iasl -p $(CURDIR)/pci3 -tc $(CONFIG_MAINBOARD)/
+       perl -pi -e 's/AmlCode/AmlCode_ssdt3/g' pci3.hex
+       mv pci3.hex ssdt3.c
+
+$(obj)/ssdt4.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci4.asl"
+       iasl -p $(CURDIR)/pci4 -tc $(CONFIG_MAINBOARD)/dx/pci4.asl
+       perl -pi -e 's/AmlCode/AmlCode_ssdt4/g' pci4.hex
+       mv pci4.hex ssdt4.c
+
+$(obj)/ssdt5.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci5.asl"
+       iasl -p $(CURDIR)/pci4 -tc $(CONFIG_MAINBOARD)/dx/pci5.asl
+       perl -pi -e 's/AmlCode/AmlCode_ssdt5/g' pci5.hex
+       mv pci5.hex ssdt5.c
+
+$(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
+
diff --git a/src/mainboard/iwill/dk8s2/Kconfig b/src/mainboard/iwill/dk8s2/Kconfig
new file mode 100644 (file)
index 0000000..32d2a27
--- /dev/null
@@ -0,0 +1,109 @@
+config BOARD_IWILL_DK8S2
+       bool "DK8S2"
+       select ARCH_X86
+       select CPU_AMD_K8
+       select CPU_AMD_SOCKET_940
+       select NORTHBRIDGE_AMD_AMDK8
+       select NORTHBRIDGE_AMD_AMDK8_ROOT_COMPLEX
+       select SOUTHBRIDGE_AMD_AMD8111
+       select SOUTHBRIDGE_AMD_AMD8131
+       select SUPERIO_WINBOND_W83627HF
+       select HAVE_PIRQ_TABLE
+       select USE_PRINTK_IN_CAR
+       select USE_DCACHE_RAM
+       select HAVE_HARD_RESET
+       select IOAPIC
+       select AP_CODE_IN_CAR
+       select SB_HT_CHAIN_UNITID_OFFSET_ONLY
+       select WAIT_BEFORE_CPUS_INIT
+       select ATI_RAGE_XL
+
+config MAINBOARD_DIR
+       string
+       default iwill/dk8s2
+       depends on BOARD_IWILL_DK8S2
+
+config DCACHE_RAM_BASE
+       hex
+       default 0xc8000
+       depends on BOARD_IWILL_DK8S2
+
+config DCACHE_RAM_SIZE
+       hex
+       default 0x08000
+       depends on BOARD_IWILL_DK8S2
+
+config DCACHE_RAM_GLOBAL_VAR_SIZE
+       hex
+       default 0x01000
+       depends on BOARD_IWILL_DK8S2
+
+config APIC_ID_OFFSET
+       hex
+       default 0x8
+       depends on BOARD_IWILL_DK8S2
+
+config LB_CKS_RANGE_END
+       int
+       default 122
+       depends on BOARD_IWILL_DK8S2
+
+config LB_CKS_LOC
+       int
+       default 123
+       depends on BOARD_IWILL_DK8S2
+
+config MAINBOARD_PART_NUMBER
+       string
+       default "DK8S2"
+       depends on BOARD_IWILL_DK8S2
+
+config HW_MEM_HOLE_SIZEK
+       hex
+       default 0x100000
+       depends on BOARD_IWILL_DK8S2
+
+config MAX_CPUS
+       int
+       default 4
+       depends on BOARD_IWILL_DK8S2
+
+config MAX_PHYSICAL_CPUS
+       int
+       default 2
+       depends on BOARD_IWILL_DK8S2
+
+config HW_MEM_HOLE_SIZE_AUTO_INC
+       bool
+       default n
+       depends on BOARD_IWILL_DK8S2
+
+config SB_HT_CHAIN_ON_BUS0
+       int
+       default 2
+       depends on BOARD_IWILL_DK8S2
+
+config HT_CHAIN_END_UNITID_BASE
+       hex
+       default 0x6
+       depends on BOARD_IWILL_DK8S2
+
+config HT_CHAIN_UNITID_BASE
+       hex
+       default 0xa
+       depends on BOARD_IWILL_DK8S2
+
+config USE_INIT
+       bool
+       default n
+       depends on BOARD_IWILL_DK8S2
+
+config SERIAL_CPU_INIT
+       bool
+       default n
+       depends on BOARD_IWILL_DK8S2
+
+config IRQ_SLOT_COUNT
+       int
+       default 11
+       depends on BOARD_IWILL_DK8S2
diff --git a/src/mainboard/iwill/dk8s2/Makefile.inc b/src/mainboard/iwill/dk8s2/Makefile.inc
new file mode 100644 (file)
index 0000000..0f9bd72
--- /dev/null
@@ -0,0 +1,53 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (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
+##
+
+driver-y += mainboard.o
+
+# Needed by irq_tables and mptable and acpi_tables.
+obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
+obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_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
+
+$(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
+
diff --git a/src/mainboard/iwill/dk8x/Kconfig b/src/mainboard/iwill/dk8x/Kconfig
new file mode 100644 (file)
index 0000000..a18152d
--- /dev/null
@@ -0,0 +1,108 @@
+config BOARD_IWILL_DK8X
+       bool "DK8X"
+       select ARCH_X86
+       select CPU_AMD_K8
+       select CPU_AMD_SOCKET_940
+       select NORTHBRIDGE_AMD_AMDK8
+       select NORTHBRIDGE_AMD_AMDK8_ROOT_COMPLEX
+       select SOUTHBRIDGE_AMD_AMD8111
+       select SOUTHBRIDGE_AMD_AMD8131
+       select SUPERIO_WINBOND_W83627THF
+       select HAVE_PIRQ_TABLE
+       select USE_PRINTK_IN_CAR
+       select USE_DCACHE_RAM
+       select HAVE_HARD_RESET
+       select IOAPIC
+       select AP_CODE_IN_CAR
+       select SB_HT_CHAIN_UNITID_OFFSET_ONLY
+       select WAIT_BEFORE_CPUS_INIT
+
+config MAINBOARD_DIR
+       string
+       default iwill/dk8x
+       depends on BOARD_IWILL_DK8X
+
+config DCACHE_RAM_BASE
+       hex
+       default 0xc8000
+       depends on BOARD_IWILL_DK8X
+
+config DCACHE_RAM_SIZE
+       hex
+       default 0x08000
+       depends on BOARD_IWILL_DK8X
+
+config DCACHE_RAM_GLOBAL_VAR_SIZE
+       hex
+       default 0x01000
+       depends on BOARD_IWILL_DK8X
+
+config APIC_ID_OFFSET
+       hex
+       default 0x8
+       depends on BOARD_IWILL_DK8X
+
+config LB_CKS_RANGE_END
+       int
+       default 122
+       depends on BOARD_IWILL_DK8X
+
+config LB_CKS_LOC
+       int
+       default 123
+       depends on BOARD_IWILL_DK8X
+
+config MAINBOARD_PART_NUMBER
+       string
+       default "DK8X"
+       depends on BOARD_IWILL_DK8X
+
+config HW_MEM_HOLE_SIZEK
+       hex
+       default 0x100000
+       depends on BOARD_IWILL_DK8X
+
+config MAX_CPUS
+       int
+       default 4
+       depends on BOARD_IWILL_DK8X
+
+config MAX_PHYSICAL_CPUS
+       int
+       default 2
+       depends on BOARD_IWILL_DK8X
+
+config HW_MEM_HOLE_SIZE_AUTO_INC
+       bool
+       default n
+       depends on BOARD_IWILL_DK8X
+
+config SB_HT_CHAIN_ON_BUS0
+       int
+       default 2
+       depends on BOARD_IWILL_DK8X
+
+config HT_CHAIN_END_UNITID_BASE
+       hex
+       default 0x6
+       depends on BOARD_IWILL_DK8X
+
+config HT_CHAIN_UNITID_BASE
+       hex
+       default 0xa
+       depends on BOARD_IWILL_DK8X
+
+config USE_INIT
+       bool
+       default n
+       depends on BOARD_IWILL_DK8X
+
+config SERIAL_CPU_INIT
+       bool
+       default n
+       depends on BOARD_IWILL_DK8X
+
+config IRQ_SLOT_COUNT
+       int
+       default 11
+       depends on BOARD_IWILL_DK8X
diff --git a/src/mainboard/iwill/dk8x/Makefile.inc b/src/mainboard/iwill/dk8x/Makefile.inc
new file mode 100644 (file)
index 0000000..86d71e1
--- /dev/null
@@ -0,0 +1,52 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (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
+##
+
+driver-y += mainboard.o
+
+obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
+obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_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
+
+$(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
+
index 792d6005489ebee62cde02066f19c5521e620451..658ebb51c6e1400260cda8739e93783dffe31ebd 100644 (file)
@@ -1 +1,9 @@
-#
+choice
+       prompt "Mainboard model"
+       depends on VENDOR_OLPC
+        
+source "src/mainboard/olpc/rev_a/Kconfig"
+source "src/mainboard/olpc/btest/Kconfig"
+
+endchoice
+
diff --git a/src/mainboard/olpc/btest/Kconfig b/src/mainboard/olpc/btest/Kconfig
new file mode 100644 (file)
index 0000000..7d12098
--- /dev/null
@@ -0,0 +1,34 @@
+config BOARD_OLPC_BTEST
+       bool "B-test"
+       select ARCH_X86
+       select CPU_AMD_GX2
+       select NORTHBRIDGE_AMD_GX2
+       select SOUTHBRIDGE_AMD_CS5536
+       select UDELAY_TSC
+       select TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
+       select HAVE_PIRQ_TABLE
+
+config MAINBOARD_DIR
+       string
+       default olpc/btest
+       depends on BOARD_OLPC_BTEST
+
+config MAINBOARD_PART_NUMBER
+       string
+       default "BTEST"
+       depends on BOARD_OLPC_BTEST
+
+config HAVE_OPTION_TABLE
+       bool
+       default n
+       depends on BOARD_OLPC_BTEST
+
+config IRQ_SLOT_COUNT
+       int
+       default 2
+       depends on BOARD_OLPC_BTEST
+
+config USE_INIT
+       bool
+       default n
+       depends on BOARD_OLPC_BTEST
diff --git a/src/mainboard/olpc/btest/Makefile.inc b/src/mainboard/olpc/btest/Makefile.inc
new file mode 100644 (file)
index 0000000..3e1aee5
--- /dev/null
@@ -0,0 +1,2 @@
+ROMCCFLAGS=-mcpu=p2 -O
+include $(src)/mainboard/Makefile.romccboard.inc
diff --git a/src/mainboard/olpc/rev_a/Kconfig b/src/mainboard/olpc/rev_a/Kconfig
new file mode 100644 (file)
index 0000000..47d77da
--- /dev/null
@@ -0,0 +1,34 @@
+config BOARD_OLPC_REV_A
+       bool "Rev A"
+       select ARCH_X86
+       select CPU_AMD_GX2
+       select NORTHBRIDGE_AMD_GX2
+       select SOUTHBRIDGE_AMD_CS5536
+       select UDELAY_TSC
+       select TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
+       select HAVE_PIRQ_TABLE
+
+config MAINBOARD_DIR
+       string
+       default olpc/rev_a
+       depends on BOARD_OLPC_REV_A
+
+config MAINBOARD_PART_NUMBER
+       string
+       default "REV A"
+       depends on BOARD_OLPC_REV_A
+
+config HAVE_OPTION_TABLE
+       bool
+       default n
+       depends on BOARD_OLPC_REV_A
+
+config IRQ_SLOT_COUNT
+       int
+       default 2
+       depends on BOARD_OLPC_REV_A
+
+config USE_INIT
+       bool
+       default n
+       depends on BOARD_OLPC_REV_A
diff --git a/src/mainboard/olpc/rev_a/Makefile.inc b/src/mainboard/olpc/rev_a/Makefile.inc
new file mode 100644 (file)
index 0000000..3e1aee5
--- /dev/null
@@ -0,0 +1,2 @@
+ROMCCFLAGS=-mcpu=p2 -O
+include $(src)/mainboard/Makefile.romccboard.inc