[SerialICE] Patch set updated for serialice: b98badc Add SerialICE support for ASUS P4P800-VM.

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Thu Dec 22 21:56:57 CET 2011


Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/418

-gerrit

commit b98badcf108f3241cdda306fbafb7e11b11e7be8
Author: Idwer Vollering <vidwer at gmail.com>
Date:   Sun Nov 6 01:05:40 2011 +0100

    Add SerialICE support for ASUS P4P800-VM.
    
    Change-Id: I0ce304c7be28f24c5612603720ae470353a4a3cb
    Signed-off-by: Idwer Vollering <vidwer at gmail.com>
---
 SerialICE/Kconfig                    |    4 ++
 SerialICE/mainboard/asus_p4p800-vm.c |   57 ++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/SerialICE/Kconfig b/SerialICE/Kconfig
index 48d43b7..ac53de1 100644
--- a/SerialICE/Kconfig
+++ b/SerialICE/Kconfig
@@ -99,6 +99,9 @@ config BOARD_WYSE_S50
 config BOARD_ASROCK_P4I65GV
 	bool "ASRock P4i65GV"
 
+config BOARD_ASUS_P4P800_VM
+	bool "ASUS P4P800-VM"
+
 endchoice
 
 config BOARD_INIT
@@ -124,6 +127,7 @@ config BOARD_INIT
 	default "hp_dl165_g6.c" if BOARD_HP_DL165_G6
 	default "wyse_s50.c" if BOARD_WYSE_S50
 	default "asrock_p4i65gv.c" if BOARD_ASROCK_P4I65GV
+	default "asus_p4p800-vm.c" if BOARD_ASUS_P4P800_VM
 
 config SOUTHBRIDGE_INIT
 	string
diff --git a/SerialICE/mainboard/asus_p4p800-vm.c b/SerialICE/mainboard/asus_p4p800-vm.c
new file mode 100644
index 0000000..4109bc0
--- /dev/null
+++ b/SerialICE/mainboard/asus_p4p800-vm.c
@@ -0,0 +1,57 @@
+/*
+ * SerialICE
+ *
+ * Copyright (C) 2011 Idwer Vollering <vidwer at gmail.com>
+ *
+ * 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 P4P800-VM                  ";
+
+#define SUPERIO_CONFIG_PORT 0x2e
+
+/* Hardware specific functions */
+static void mainboard_set_ich5(void)
+{
+	/* COM_DEC */ /* COMA at 0x3f8, COMB at 0x3f8 */
+	pci_write_config8(PCI_ADDR(0, 0x1f, 0, 0xe0), 0x0);
+	/* LPC_EN */ /* FDD_LPC_EN=1, KBC_LPC_EN=1, CNF1_LPC_EN=1 */
+	pci_write_config16(PCI_ADDR(0, 0x1f, 0, 0xe6), 0x1408);
+	/* FB_DEC_EN1 */ /* FN_F8_EN=1, decode two 512 kilobyte flash ranges */
+	pci_write_config8(PCI_ADDR(0, 0x1f, 0, 0xe3), 0x80);
+	/* FB_DEC_EN2 */ /* don't decode two 1 megabyte ranges */
+	pci_write_config8(PCI_ADDR(0, 0x1f, 0, 0xf0), 0x0);
+	/* FUNC_DIS */ /* D31_F6_DISABLE=1 (AC97 modem) */
+	pci_write_config16(PCI_ADDR(0, 0x1f, 0, 0xf2), 0x0040);
+}
+
+/* Winbond W83627THF */
+static void superio_init(void)
+{
+	pnp_enter_ext_func_mode(SUPERIO_CONFIG_PORT);
+	/* Set the clock to 48MHz */
+	pnp_write_register(SUPERIO_CONFIG_PORT, 0x24, 0x42);
+	pnp_set_logical_device(SUPERIO_CONFIG_PORT, 2);
+	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)
+{
+	mainboard_set_ich5();
+	superio_init();
+}



More information about the SerialICE mailing list