[SerialICE] [commit] r99 - in trunk/SerialICE: . mainboard

repository service svn at coresystems.de
Fri Jul 2 16:39:51 CEST 2010


Author: stepan
Date: Fri Jul  2 16:39:51 2010
New Revision: 99
URL: http://www.serialice.com/trac/serialice/changeset/99

Log:
emulators.diff from 2010/06/21

Signed-off-by: Myles Watson <mylesgw at gmail.com>

Added:
   trunk/SerialICE/mainboard/amd_serengeti-cheetah.c
   trunk/SerialICE/mainboard/qemu-x86.c
Modified:
   trunk/SerialICE/Kconfig

Modified: trunk/SerialICE/Kconfig
==============================================================================
--- trunk/SerialICE/Kconfig	Fri Jul  2 16:31:49 2010	(r98)
+++ trunk/SerialICE/Kconfig	Fri Jul  2 16:39:51 2010	(r99)
@@ -27,6 +27,12 @@
 choice
 	prompt "Mainboard model"
 
+config BOARD_QEMU_X86
+	bool "Qemu"
+
+config BOARD_AMD_SERENGETI_CHEETAH
+	bool "AMD Serengeti Cheetah (SimNOW)"
+
 config BOARD_KONTRON_986LCD_M
 	bool "Kontron 986LCD-M/mITX"
 
@@ -74,6 +80,8 @@
 
 config BOARD_INIT
 	string
+	default "qemu-x86.c" if BOARD_QEMU_X86
+	default "amd_serengeti-cheetah.c" if BOARD_AMD_SERENGETI_CHEETAH
 	default "kontron_986lcd-m.c" if BOARD_KONTRON_986LCD_M
 	default "roda_rk886ex.c" if BOARD_RODA_RK886EX
 	default "intel_d945gclf.c" if BOARD_INTEL_D945GCLF

Added: trunk/SerialICE/mainboard/amd_serengeti-cheetah.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/SerialICE/mainboard/amd_serengeti-cheetah.c	Fri Jul  2 16:39:51 2010	(r99)
@@ -0,0 +1,44 @@
+/*
+ * SerialICE 
+ *
+ * Copyright (C) 2009 Uwe Hermann <uwe at hermann-uwe.de>
+ * Copyright (C) 2010 Arne Georg Gleditsch <arne.gleditsch at numascale.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]="AMD SERENGETI CHEETAH           ";
+
+#define SUPERIO_CONFIG_PORT	0x2e
+#define W83627HF_SP1            2
+
+static void superio_init(void)
+{
+	int i;
+	pnp_enter_ext_func_mode(SUPERIO_CONFIG_PORT);
+
+	/* Enable the serial port. */
+	pnp_set_logical_device(SUPERIO_CONFIG_PORT, W83627HF_SP1); /* 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();
+}

Added: trunk/SerialICE/mainboard/qemu-x86.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/SerialICE/mainboard/qemu-x86.c	Fri Jul  2 16:39:51 2010	(r99)
@@ -0,0 +1,35 @@
+/*
+ * SerialICE
+ *
+ * Copyright (C) 2010 Myles Watson <mylesgw 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]="QEMU X86                        ";
+
+static void southbridge_init(void)
+{
+}
+
+static void superio_init(void)
+{
+}
+
+static void chipset_init(void)
+{
+	southbridge_init();
+	superio_init();
+}
+



More information about the SerialICE mailing list