[coreboot] Tyan s2881 Kconfig

2009-09-23 Thread Myles Watson
I realize that these boards are old.  If I were new to coreboot and wanted
to experiment with it, I might be looking at boards like this one.  You can
get them for $39 with 2 CPUs (refurbished).

Build tested but not boot tested.

Signed-off-by: Myles Watson myle...@gmail.com

Thanks,
Myles
Index: svn/src/mainboard/tyan/Kconfig
===
--- svn.orig/src/mainboard/tyan/Kconfig
+++ svn/src/mainboard/tyan/Kconfig
@@ -23,6 +23,7 @@ choice
 	depends on VENDOR_TYAN
 	
 source src/mainboard/tyan/s1846/Kconfig
+source src/mainboard/tyan/s2881/Kconfig
 source src/mainboard/tyan/s2891/Kconfig
 source src/mainboard/tyan/s2892/Kconfig
 source src/mainboard/tyan/s2895/Kconfig
Index: svn/src/mainboard/tyan/s2881/Kconfig
===
--- svn.orig/src/mainboard/tyan/s2881/Kconfig
+++ svn/src/mainboard/tyan/s2881/Kconfig
@@ -1,142 +1,143 @@
-config BOARD_TYAN_S2891
-	bool Tyan Thunder K8SRE S2891
+config BOARD_TYAN_S2881
+	bool Tyan Thunder K8SR S2881
 	select ARCH_X86
 	select CPU_AMD_K8
 	select CPU_AMD_SOCKET_940
 	select NORTHBRIDGE_AMD_AMDK8
 	select NORTHBRIDGE_AMD_AMDK8_ROOT_COMPLEX
-	select SOUTHBRIDGE_NVIDIA_CK804
 	select SOUTHBRIDGE_AMD_AMD8131
+	select SOUTHBRIDGE_AMD_AMD8111
 	select SUPERIO_WINBOND_W83627HF
+	select I2C_ADM1027
 	select PIRQ_TABLE
 
 config MAINBOARD_DIR
 	string
-	default tyan/s2891
-	depends on BOARD_TYAN_S2891
+	default tyan/s2881
+	depends on BOARD_TYAN_S2881
 
 config APIC_ID_OFFSET
 	hex
 	default 0x10
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config SB_HT_CHAIN_ON_BUS0
 	int
 	default 2
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config LB_CKS_RANGE_END
 	int
 	default 122
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config LB_CKS_LOC
 	int
 default 123
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config MAINBOARD_PART_NUMBER
 	string
-	default s2891
-	depends on BOARD_TYAN_S2891
+	default s2881
+	depends on BOARD_TYAN_S2881
 
 config MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
 	hex
-	default 0x2891
-	depends on BOARD_TYAN_S2891
+	default 0x2881
+	depends on BOARD_TYAN_S2881
 
 config USE_FAILOVER_IMAGE
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config HW_MEM_HOLE_SIZEK
 	hex
 	default 0x10
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config MEM_TRAIN_SEQ
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config HAVE_FAILOVER_BOOT
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config USE_FAILOVER_IMAGE
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config MAX_CPUS
 	int
 	default 4
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config MAX_PHYSICAL_CPUS
 	int
 	default 2
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config MEM_TRAIN_SEQ
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config AP_CODE_IN_CAR
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config HW_MEM_HOLE_SIZE_AUTO_INC
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config HT_CHAIN_UNITID_BASE
 	hex
-	default 0
-	depends on BOARD_TYAN_S2891
+	default 0xa
+	depends on BOARD_TYAN_S2881
 
 config HT_CHAIN_END_UNITID_BASE
 	hex
-	default 0x20
-	depends on BOARD_TYAN_S2891
+	default 0x6
+	depends on BOARD_TYAN_S2881
 
 config USE_INIT
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config SERIAL_CPU_INIT
 	bool
 	default y
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config AP_CODE_IN_CAR
 	bool
 	default y
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config WAIT_BEFORE_CPUS_INIT
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config SB_HT_CHAIN_ON_BUS0
 	int
-	default 2
-	depends on BOARD_TYAN_S2891
+	default 0
+	depends on BOARD_TYAN_S2881
 
 config SB_HT_CHAIN_UNITID_OFFSET_ONLY
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config HAVE_ACPI_TABLES
 	bool Generate ACPI tables
-	default y
-	depends on BOARD_TYAN_S2891
+	default n
+	depends on BOARD_TYAN_S2881
 
Index: svn/src/drivers/Makefile.inc
===
--- svn.orig/src/drivers/Makefile.inc
+++ svn/src/drivers/Makefile.inc
@@ -1 +1,2 @@
 subdirs-y += pci
+subdirs-y += i2c
Index: svn/src/drivers/i2c/Makefile.inc
===
--- /dev/null
+++ svn/src/drivers/i2c/Makefile.inc
@@ -0,0 +1,2 @@
+subdirs-y += adm1026
+subdirs-y += adm1027
Index: svn/src/Kconfig
===
--- svn.orig/src/Kconfig
+++ svn/src/Kconfig
@@ -31,6 +31,7 @@ source src/mainboard/Kconfig
 source src/arch/i386/Kconfig
 

Re: [coreboot] Tyan s2881 Kconfig

2009-09-23 Thread ron minnich
Currently, because they are so simple, we don't have makefile.inc
files for i2c drivers. see serengeti_cheetah:
driver-y += ../../../drivers/i2c/i2cmux/i2cmux.o

This is admittedly inconsistent, but it saves a lot of unnecessary
makefile.inc stuff.

So I don't think we need the Makefile.inc for the i2c parts.

$39 for those boards is pretty attractive, do you have a link?

ron

-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot


Re: [coreboot] Tyan s2881 Kconfig

2009-09-23 Thread Myles Watson
On Wed, Sep 23, 2009 at 10:56 AM, ron minnich rminn...@gmail.com wrote:

 Currently, because they are so simple, we don't have makefile.inc
 files for i2c drivers. see serengeti_cheetah:
 driver-y += ../../../drivers/i2c/i2cmux/i2cmux.o

Should it be a driver? In the old config it was just an object.


 This is admittedly inconsistent, but it saves a lot of unnecessary
 makefile.inc stuff.

No problem.  I just missed it.


 $39 for those boards is pretty attractive, do you have a link?

http://www.pacificgeek.com/product.asp?id=847374

$35 if you buy 100 or more :)

Thanks,
Myles
-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot

Re: [coreboot] Tyan s2881 Kconfig

2009-09-23 Thread Myles Watson
On Wed, Sep 23, 2009 at 10:56 AM, ron minnich rminn...@gmail.com wrote:

 Currently, because they are so simple, we don't have makefile.inc
 files for i2c drivers. see serengeti_cheetah:
 driver-y += ../../../drivers/i2c/i2cmux/i2cmux.o

Second try.

Signed-off-by: Myles Watson myle...@gmail.com

Thanks,
Myles
Index: svn/src/mainboard/tyan/Kconfig
===
--- svn.orig/src/mainboard/tyan/Kconfig
+++ svn/src/mainboard/tyan/Kconfig
@@ -23,6 +23,7 @@ choice
 	depends on VENDOR_TYAN
 	
 source src/mainboard/tyan/s1846/Kconfig
+source src/mainboard/tyan/s2881/Kconfig
 source src/mainboard/tyan/s2891/Kconfig
 source src/mainboard/tyan/s2892/Kconfig
 source src/mainboard/tyan/s2895/Kconfig
Index: svn/src/mainboard/tyan/s2881/Kconfig
===
--- svn.orig/src/mainboard/tyan/s2881/Kconfig
+++ svn/src/mainboard/tyan/s2881/Kconfig
@@ -1,142 +1,142 @@
-config BOARD_TYAN_S2891
-	bool Tyan Thunder K8SRE S2891
+config BOARD_TYAN_S2881
+	bool Tyan Thunder K8SR S2881
 	select ARCH_X86
 	select CPU_AMD_K8
 	select CPU_AMD_SOCKET_940
 	select NORTHBRIDGE_AMD_AMDK8
 	select NORTHBRIDGE_AMD_AMDK8_ROOT_COMPLEX
-	select SOUTHBRIDGE_NVIDIA_CK804
 	select SOUTHBRIDGE_AMD_AMD8131
+	select SOUTHBRIDGE_AMD_AMD8111
 	select SUPERIO_WINBOND_W83627HF
 	select PIRQ_TABLE
 
 config MAINBOARD_DIR
 	string
-	default tyan/s2891
-	depends on BOARD_TYAN_S2891
+	default tyan/s2881
+	depends on BOARD_TYAN_S2881
 
 config APIC_ID_OFFSET
 	hex
 	default 0x10
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config SB_HT_CHAIN_ON_BUS0
 	int
 	default 2
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config LB_CKS_RANGE_END
 	int
 	default 122
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config LB_CKS_LOC
 	int
 default 123
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config MAINBOARD_PART_NUMBER
 	string
-	default s2891
-	depends on BOARD_TYAN_S2891
+	default s2881
+	depends on BOARD_TYAN_S2881
 
 config MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
 	hex
-	default 0x2891
-	depends on BOARD_TYAN_S2891
+	default 0x2881
+	depends on BOARD_TYAN_S2881
 
 config USE_FAILOVER_IMAGE
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config HW_MEM_HOLE_SIZEK
 	hex
 	default 0x10
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config MEM_TRAIN_SEQ
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config HAVE_FAILOVER_BOOT
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config USE_FAILOVER_IMAGE
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config MAX_CPUS
 	int
 	default 4
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config MAX_PHYSICAL_CPUS
 	int
 	default 2
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config MEM_TRAIN_SEQ
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config AP_CODE_IN_CAR
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config HW_MEM_HOLE_SIZE_AUTO_INC
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config HT_CHAIN_UNITID_BASE
 	hex
-	default 0
-	depends on BOARD_TYAN_S2891
+	default 0xa
+	depends on BOARD_TYAN_S2881
 
 config HT_CHAIN_END_UNITID_BASE
 	hex
-	default 0x20
-	depends on BOARD_TYAN_S2891
+	default 0x6
+	depends on BOARD_TYAN_S2881
 
 config USE_INIT
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config SERIAL_CPU_INIT
 	bool
 	default y
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config AP_CODE_IN_CAR
 	bool
 	default y
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config WAIT_BEFORE_CPUS_INIT
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config SB_HT_CHAIN_ON_BUS0
 	int
-	default 2
-	depends on BOARD_TYAN_S2891
+	default 0
+	depends on BOARD_TYAN_S2881
 
 config SB_HT_CHAIN_UNITID_OFFSET_ONLY
 	bool
 	default n
-	depends on BOARD_TYAN_S2891
+	depends on BOARD_TYAN_S2881
 
 config HAVE_ACPI_TABLES
 	bool Generate ACPI tables
-	default y
-	depends on BOARD_TYAN_S2891
+	default n
+	depends on BOARD_TYAN_S2881
 
Index: svn/src/mainboard/tyan/s2881/Makefile.inc
===
--- svn.orig/src/mainboard/tyan/s2881/Makefile.inc
+++ svn/src/mainboard/tyan/s2881/Makefile.inc
@@ -1 +1,2 @@
 include $(src)/mainboard/tyan/Makefile.s289x.inc
+driver-$(CONFIG_BOARD_TYAN_S2881) += ../../../drivers/i2c/adm1027/adm1027.o
-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot

Re: [coreboot] Tyan s2881 Kconfig

2009-09-23 Thread Ward Vandewege
On Wed, Sep 23, 2009 at 11:13:11AM -0600, Myles Watson wrote:
 On Wed, Sep 23, 2009 at 10:56 AM, ron minnich rminn...@gmail.com wrote:
 
  Currently, because they are so simple, we don't have makefile.inc
  files for i2c drivers. see serengeti_cheetah:
  driver-y += ../../../drivers/i2c/i2cmux/i2cmux.o
 
 Should it be a driver? In the old config it was just an object.
 
 
  This is admittedly inconsistent, but it saves a lot of unnecessary
  makefile.inc stuff.
 
 No problem.  I just missed it.
 
 
  $39 for those boards is pretty attractive, do you have a link?
 
 http://www.pacificgeek.com/product.asp?id=847374

Argh, can not resist. Ordered :) Good for spare parts, too - I've still got a
couple of those out in the field...

Thanks,
Ward.

-- 
Ward Vandewege w...@fsf.org
Free Software Foundation - Senior Systems Administrator

-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot


Re: [coreboot] Tyan s2881 Kconfig

2009-09-23 Thread Myles Watson
On Wed, Sep 23, 2009 at 11:54 AM, ron minnich rminn...@gmail.com wrote:

 great. Is it  a driver or not? I'm too distracted with another but to
 tell. If you're sure it's a driver,

I thought it should be, and serengeti_cheetah says it is.  If it's wrong I
guess we can change both in a separate commit.


 Acked-by: Ronald G. Minnich rminn...@gmail.com

Rev 4660.
Thanks,
Myles
-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot