Add via south support. Correct usage of conditional variables. 
Note the makefile.inc may be out of date given the new commits of code
today, but this is what was signed off ...

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4551 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
diff --git a/src/southbridge/Kconfig b/src/southbridge/Kconfig
index b3303a5..9e38328 100644
--- a/src/southbridge/Kconfig
+++ b/src/southbridge/Kconfig
@@ -4,5 +4,5 @@
 #source src/southbridge/nvidia/Kconfig
 #source src/southbridge/ricoh/Kconfig
 #source src/southbridge/sis/Kconfig
-#source src/southbridge/via/Kconfig
+source src/southbridge/via/Kconfig
 #source src/southbridge/winbond/Kconfig
diff --git a/src/southbridge/Makefile.inc b/src/southbridge/Makefile.inc
index 8986f14..fd04093 100644
--- a/src/southbridge/Makefile.inc
+++ b/src/southbridge/Makefile.inc
@@ -4,5 +4,5 @@
 #subdirs-y += nvidia
 #subdirs-y += ricoh
 #subdirs-y += sis
-#subdirs-y += via
+subdirs-y += via
 #subdirs-y += winbond
diff --git a/src/southbridge/via/Kconfig b/src/southbridge/via/Kconfig
index fb19cbc..cbc697d 100644
--- a/src/southbridge/via/Kconfig
+++ b/src/southbridge/via/Kconfig
@@ -1,5 +1,5 @@
-source src/southbridge/via/k8t890/Kconfig
-source src/southbridge/via/vt8231/Kconfig
-source src/southbridge/via/vt8235/Kconfig
+#source src/southbridge/via/k8t890/Kconfig
+#source src/southbridge/via/vt8231/Kconfig
+#source src/southbridge/via/vt8235/Kconfig
 source src/southbridge/via/vt8237r/Kconfig
-source src/southbridge/via/vt82c686/Kconfig
+#source src/southbridge/via/vt82c686/Kconfig
diff --git a/src/southbridge/via/Makefile.inc b/src/southbridge/via/Makefile.inc
index 12357e9..b866b33 100644
--- a/src/southbridge/via/Makefile.inc
+++ b/src/southbridge/via/Makefile.inc
@@ -1,5 +1,5 @@
-subdirs-y += k8t890
-subdirs-y += vt8231
-subdirs-y += vt8235
-subdirs-y += vt8237r
-subdirs-y += vt82c686
+#subdirs-y += k8t890
+#subdirs-y += vt8231
+#subdirs-y += vt8235
+subdirs-$(CONFIG_SOUTHBRIDGE_VIA_VT8237R) += vt8237r
+#subdirs-y += vt82c686
diff --git a/src/southbridge/via/vt8237r/Kconfig b/src/southbridge/via/vt8237r/Kconfig
new file mode 100644
index 0000000..018eedc
--- /dev/null
+++ b/src/southbridge/via/vt8237r/Kconfig
@@ -0,0 +1,23 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2008-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 SOUTHBRIDGE_VIA_VT8237R
+	bool
+	default n
+
diff --git a/src/southbridge/via/vt8237r/Makefile.inc b/src/southbridge/via/vt8237r/Makefile.inc
new file mode 100644
index 0000000..c1b743d
--- /dev/null
+++ b/src/southbridge/via/vt8237r/Makefile.inc
@@ -0,0 +1,27 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2007, 2009 Rudolf Marek <r.marek@assembler.cz>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License v2 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
+##
+
+driver-y +=  vt8237r.o
+driver-y +=  vt8237_ctrl.o
+driver-y +=  vt8237r_ide.o
+driver-y +=  vt8237r_lpc.o
+driver-y +=  vt8237r_sata.o
+driver-y +=  vt8237r_usb.o
+driver-y +=  vt8237r_nic.o
+obj-$(CONFIG_HAVE_ACPI_TABLES) += vt8237_fadt.o