[SerialICE] New patch to review for serialice: 0cd917b add support for Asus K8V-X
Florian Zumbiehl
gerrit at coreboot.org
Wed Nov 2 11:39:52 CET 2011
Florian Zumbiehl just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/392
-gerrit
commit 0cd917b5c88d6118f2babb54470be825caa0c287
Author: Florian Zumbiehl <florz at florz.de>
Date: Wed Nov 2 11:29:24 2011 +0100
add support for Asus K8V-X
Change-Id: I9c0d1a7335872c06a5f2599ba2570d1c66ba21d4
Signed-off-by: Florian Zumbiehl <florz at florz.de>
---
SerialICE/Kconfig | 6 +++
SerialICE/mainboard/asus_k8v-x.c | 68 ++++++++++++++++++++++++++++++++++++++
2 files changed, 74 insertions(+), 0 deletions(-)
diff --git a/SerialICE/Kconfig b/SerialICE/Kconfig
index fc2601a..655e3f4 100644
--- a/SerialICE/Kconfig
+++ b/SerialICE/Kconfig
@@ -50,6 +50,11 @@ config BOARD_ASUS_M2V_MX_SE
select VIA_ROMSTRAP
select BUILD_XMMSTACK
+config BOARD_ASUS_K8V_X
+ bool "ASUS K8V-X"
+ select VIA_ROMSTRAP
+ select BUILD_XMMSTACK
+
config BOARD_ASUS_M4A77TD_PRO
bool "ASUS M4A77TD-PRO"
select BUILD_XMMSTACK
@@ -102,6 +107,7 @@ config BOARD_INIT
default "intel_d945gclf.c" if BOARD_INTEL_D945GCLF
default "dell_s1850.c" if BOARD_DELL_S1850
default "asus_m2v-mx_se.c" if BOARD_ASUS_M2V_MX_SE
+ default "asus_k8v-x.c" if BOARD_ASUS_K8V_X
default "msi_ms6178.c" if BOARD_MSI_MS6178
default "rca_rm4100.c" if BOARD_RCA_RM4100
default "thomson_ip1000.c" if BOARD_THOMSON_IP1000
diff --git a/SerialICE/mainboard/asus_k8v-x.c b/SerialICE/mainboard/asus_k8v-x.c
new file mode 100644
index 0000000..bc3dbe9
--- /dev/null
+++ b/SerialICE/mainboard/asus_k8v-x.c
@@ -0,0 +1,68 @@
+/*
+ * SerialICE
+ *
+ * Copyright (C) 2006 Uwe Hermann <uwe at hermann-uwe.de>
+ * Copyright (C) 2009 Rudolf Marek <r.marek at assembler.cz>
+ *
+ * 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
+ */
+
+const char boardname[33]="ASUS K8V-X ";
+
+#define SUPERIO_CONFIG_PORT 0x2e
+
+static void superio_init(void)
+{
+ pnp_enter_ext_func_mode(SUPERIO_CONFIG_PORT);
+
+ /* Disable the watchdog. */
+// pnp_set_logical_device(SUPERIO_CONFIG_PORT, 7);
+// pnp_write_register(SUPERIO_CONFIG_PORT, 0x72, 0x00);
+
+ /* Enable the serial port. */
+ pnp_set_logical_device(SUPERIO_CONFIG_PORT, 2); /* COM1 */
+ pnp_set_enable(SUPERIO_CONFIG_PORT, 0);
+ pnp_set_iobase0(SUPERIO_CONFIG_PORT, 0x3f8);
+ pnp_set_irq0(SUPERIO_CONFIG_PORT, 4);
+ pnp_set_enable(SUPERIO_CONFIG_PORT, 1);
+
+ pnp_exit_ext_func_mode(SUPERIO_CONFIG_PORT);
+}
+
+static void chipset_init(void)
+{
+ superio_init();
+
+ __asm__ __volatile__("\
+ jmp skip\n\
+ .align 128\n\
+ .global via_romstrap\n\
+ via_romstrap:\n\
+ .long 0x50220000, 0X619707C2\n\
+ .long 0x50220000, 0X619707C2\n\
+ .long 0x50220000, 0X619707C2\n\
+ .long 0x0\n\
+ .long 0x0\n\
+ .long 0x0\n\
+ .long 0x0\n\
+ .long 0x0\n\
+ .long 0x0\n\
+ .long 0x0\n\
+ .long 0x0\n\
+ .long 0x0\n\
+ .long 0x0\n\
+ .long 0x0\n\
+ .long 0x0\n\
+ skip:\n");
+}
More information about the SerialICE
mailing list