[SerialICE] Patch set updated for serialice: fb4c69c Add SerialICE support for ASRock P4i65GV.

Idwer Vollering (vidwer@gmail.com) gerrit at coreboot.org
Sun Nov 6 02:22:56 CET 2011


Idwer Vollering (vidwer at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/419

-gerrit

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

    Add SerialICE support for ASRock P4i65GV.
    
    Change-Id: I67c5e999675d0bd29fab890f905407b0259f9c2c
    Signed-off-by: Idwer Vollering <vidwer at gmail.com>
---
 SerialICE/Kconfig                    |    6 ++-
 SerialICE/mainboard/asrock_p4i65gv.c |   57 ++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+), 2 deletions(-)

diff --git a/SerialICE/Kconfig b/SerialICE/Kconfig
index 655e3f4..a28b4c5 100644
--- a/SerialICE/Kconfig
+++ b/SerialICE/Kconfig
@@ -96,6 +96,9 @@ config BOARD_HP_DL165_G6
 config BOARD_WYSE_S50
 	bool "WYSE S50"
 
+config BOARD_ASROCK_P4I65GV
+	bool "ASRock P4i65GV"
+
 endchoice
 
 config BOARD_INIT
@@ -120,6 +123,7 @@ config BOARD_INIT
 	default "tyan_s2912.c" if BOARD_TYAN_S2912
 	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
 choice
 	prompt "Target communication"
 
@@ -309,5 +313,3 @@ config BUILD_XMMSTACK
 	bool
 	select HAVE_SSE
 	depends on !EXPERT
-
-
diff --git a/SerialICE/mainboard/asrock_p4i65gv.c b/SerialICE/mainboard/asrock_p4i65gv.c
new file mode 100644
index 0000000..d0f46f4
--- /dev/null
+++ b/SerialICE/mainboard/asrock_p4i65gv.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]="ASRock P4i65GV                  ";
+
+#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 W83627HG */
+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, 0xc0);
+        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