the following patch was just integrated into master:
commit 773e0c310e3236729cb161dce17decdd9119625a
Author: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Date: Sat May 19 12:31:10 2012 +0300
SerialICE: Add support for Intel D845GBV2
This is my test platform for booting SerialICE from PCI add-on card.
This ancient mainboard has soldered PLCC32 and FWH write-protection
lock set by vendor BIOS.
Change-Id: I0df0a70bdb721e571561446e7b4e8915aa36f222
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Build-Tested: build bot (Jenkins) at Sun Jul 8 07:59:01 2012, giving +1
Reviewed-By: Peter Stuge <peter(a)stuge.se> at Sun Jul 8 10:39:23 2012, giving +2
See http://review.coreboot.org/1189 for details.
-gerrit
Kyösti Mälkki (kyosti.malkki(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1189
-gerrit
commit 773e0c310e3236729cb161dce17decdd9119625a
Author: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Date: Sat May 19 12:31:10 2012 +0300
SerialICE: Add support for Intel D845GBV2
This is my test platform for booting SerialICE from PCI add-on card.
This ancient mainboard has soldered PLCC32 and FWH write-protection
lock set by vendor BIOS.
Change-Id: I0df0a70bdb721e571561446e7b4e8915aa36f222
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
---
SerialICE/Kconfig | 4 ++
SerialICE/mainboard/intel_d845gbv2.c | 59 ++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+), 0 deletions(-)
diff --git a/SerialICE/Kconfig b/SerialICE/Kconfig
index 9844b4a..7199453 100644
--- a/SerialICE/Kconfig
+++ b/SerialICE/Kconfig
@@ -108,6 +108,9 @@ config BOARD_AOPEN_DXPL_PLUS
config BOARD_VIA_EPIA_M850
bool "VIA EPIA M850"
+config BOARD_INTEL_D845GBV2
+ bool "Intel D845GBV2"
+
endchoice
config BOARD_INIT
@@ -136,6 +139,7 @@ config BOARD_INIT
default "asus_p4p800-vm.c" if BOARD_ASUS_P4P800_VM
default "aopen_dxpl-plus.c" if BOARD_AOPEN_DXPL_PLUS
default "via_epia_m850.c" if BOARD_VIA_EPIA_M850
+ default "intel_d845gbv2.c" if BOARD_INTEL_D845GBV2
config SOUTHBRIDGE_INIT
string
diff --git a/SerialICE/mainboard/intel_d845gbv2.c b/SerialICE/mainboard/intel_d845gbv2.c
new file mode 100644
index 0000000..3588c33
--- /dev/null
+++ b/SerialICE/mainboard/intel_d845gbv2.c
@@ -0,0 +1,59 @@
+/*
+ * SerialICE
+ *
+ * Copyright (C) 2012 Kyösti Mälkki <kyosti.malkki(a)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]="Intel D845GBV2 ";
+
+#define SUPERIO_CONFIG_PORT 0x2e
+
+/* Hardware specific functions */
+static void southbridge_init(void)
+{
+ /* Set NO_REBOOT flag */
+ pci_write_config8(PCI_ADDR(0, 0x1f, 0, 0xd4), 0x02);
+
+ /* Select COM1 COM2 I/O ranges. */
+ pci_write_config8(PCI_ADDR(0, 0x1f, 0, 0xe0), 0x10);
+
+ /* Enable COM1, COM2, KBD, SIO config registers 0x2e. */
+ pci_write_config16(PCI_ADDR(0, 0x1f, 0, 0xe6), 0x1403);
+
+ /* Enable Serial IRQ */
+ pci_write_config8(PCI_ADDR(0, 0x1f, 0, 0x64), 0xd0);
+}
+
+static void superio_init(void)
+{
+ pnp_enter_ext_func_mode_alt(SUPERIO_CONFIG_PORT);
+
+ /* Settings for LPC47M172 with LD_NUM = 0. */
+ pnp_set_logical_device(SUPERIO_CONFIG_PORT, 3); /* 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)
+{
+ southbridge_init();
+ superio_init();
+}
+
the following patch was just integrated into master:
commit 5c0399c44727c3adcccda9de65536225e07a7b49
Author: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
Date: Fri Jul 6 22:42:00 2012 -0500
SerialICE: Add support for VIA EPIA M-850 mainboard
Add code to initialize the serial port on the M-850 and create
a working SerialICE rom.
Change-Id: Ie6639f62383e3acc64259d339b5a51bbf123d38d
Signed-off-by: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
Build-Tested: build bot (Jenkins) at Sat Jul 7 14:29:35 2012, giving +1
Reviewed-By: Peter Stuge <peter(a)stuge.se> at Sat Jul 7 14:30:05 2012, giving +2
See http://review.coreboot.org/1183 for details.
-gerrit
Peter Stuge (peter(a)stuge.se) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1183
-gerrit
commit 5c0399c44727c3adcccda9de65536225e07a7b49
Author: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
Date: Fri Jul 6 22:42:00 2012 -0500
SerialICE: Add support for VIA EPIA M-850 mainboard
Add code to initialize the serial port on the M-850 and create
a working SerialICE rom.
Change-Id: Ie6639f62383e3acc64259d339b5a51bbf123d38d
Signed-off-by: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
---
SerialICE/Kconfig | 4 ++
SerialICE/mainboard/via_epia_m850.c | 63 +++++++++++++++++++++++++++++++++++
2 files changed, 67 insertions(+), 0 deletions(-)
diff --git a/SerialICE/Kconfig b/SerialICE/Kconfig
index aab5249..9844b4a 100644
--- a/SerialICE/Kconfig
+++ b/SerialICE/Kconfig
@@ -105,6 +105,9 @@ config BOARD_ASUS_P4P800_VM
config BOARD_AOPEN_DXPL_PLUS
bool "AOpen DXPL Plus"
+config BOARD_VIA_EPIA_M850
+ bool "VIA EPIA M850"
+
endchoice
config BOARD_INIT
@@ -132,6 +135,7 @@ config BOARD_INIT
default "asrock_p4i65gv.c" if BOARD_ASROCK_P4I65GV
default "asus_p4p800-vm.c" if BOARD_ASUS_P4P800_VM
default "aopen_dxpl-plus.c" if BOARD_AOPEN_DXPL_PLUS
+ default "via_epia_m850.c" if BOARD_VIA_EPIA_M850
config SOUTHBRIDGE_INIT
string
diff --git a/SerialICE/mainboard/via_epia_m850.c b/SerialICE/mainboard/via_epia_m850.c
new file mode 100644
index 0000000..6d041bd
--- /dev/null
+++ b/SerialICE/mainboard/via_epia_m850.c
@@ -0,0 +1,63 @@
+/*
+ * This file is part of the SerialICE project.
+ *
+ * Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me(a)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, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
+
+const char boardname[33]="VIA EPIA M-850 ";
+
+#define SUPERIO_CONFIG_PORT 0x2e
+
+static inline void pnp_enter_conf_state(u16 port)
+{
+ outb(0x87, port);
+ outb(0x87, port);
+}
+
+static inline void pnp_exit_conf_state(u16 port)
+{
+ outb(0xaa, port);
+}
+
+static void superio_init(void)
+{
+ pnp_enter_conf_state(SUPERIO_CONFIG_PORT);
+ pnp_set_logical_device(SUPERIO_CONFIG_PORT, 0);
+ pnp_set_enable(SUPERIO_CONFIG_PORT, 0);
+ pnp_set_iobase0(SUPERIO_CONFIG_PORT, 0x03f8);
+ pnp_set_enable(SUPERIO_CONFIG_PORT, 1);
+ pnp_exit_conf_state(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 0x77886047\n\
+ .long 0x00777777\n\
+ .long 0x00000000\n\
+ .long 0x00000000\n\
+ .long 0x00888888\n\
+ .long 0x00AA1111\n\
+ .long 0x00000000\n\
+ .long 0x00000000\n\
+ skip:\n");
+}
Alexandru Gagniuc (mr.nuke.me(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1183
-gerrit
commit e8268ed8a6d251dc4b9e37461c2e590ff3ba2aba
Author: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
Date: Fri Jul 6 22:42:00 2012 -0500
SerialICE: Add support for VIA EPIA M-850 mainboard
Add code to initialize the serial port on the M-850 and create
a working SerialICE rom.
Change-Id: Ie6639f62383e3acc64259d339b5a51bbf123d38d
Signed-off-by: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
---
SerialICE/Kconfig | 4 ++
SerialICE/mainboard/via_epia_m850.c | 64 +++++++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+), 0 deletions(-)
diff --git a/SerialICE/Kconfig b/SerialICE/Kconfig
index aab5249..9844b4a 100644
--- a/SerialICE/Kconfig
+++ b/SerialICE/Kconfig
@@ -105,6 +105,9 @@ config BOARD_ASUS_P4P800_VM
config BOARD_AOPEN_DXPL_PLUS
bool "AOpen DXPL Plus"
+config BOARD_VIA_EPIA_M850
+ bool "VIA EPIA M850"
+
endchoice
config BOARD_INIT
@@ -132,6 +135,7 @@ config BOARD_INIT
default "asrock_p4i65gv.c" if BOARD_ASROCK_P4I65GV
default "asus_p4p800-vm.c" if BOARD_ASUS_P4P800_VM
default "aopen_dxpl-plus.c" if BOARD_AOPEN_DXPL_PLUS
+ default "via_epia_m850.c" if BOARD_VIA_EPIA_M850
config SOUTHBRIDGE_INIT
string
diff --git a/SerialICE/mainboard/via_epia_m850.c b/SerialICE/mainboard/via_epia_m850.c
new file mode 100644
index 0000000..6446c61
--- /dev/null
+++ b/SerialICE/mainboard/via_epia_m850.c
@@ -0,0 +1,64 @@
+/*
+ * This file is part of the SerialICE project.
+ *
+ * Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me(a)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, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
+
+const char boardname[33]="VIA EPIA M-850 ";
+
+#define SUPERIO_CONFIG_PORT 0x2e
+
+static inline void pnp_enter_conf_state(u16 port)
+{
+ outb(0x87, port);
+ outb(0x87, port);
+}
+
+static inline void pnp_exit_conf_state(u16 port)
+{
+ outb(0xaa, port);
+}
+
+static void superio_init(void)
+{
+ pnp_enter_conf_state(SUPERIO_CONFIG_PORT);
+ pnp_set_logical_device(SUPERIO_CONFIG_PORT, 0);
+ pnp_set_enable(SUPERIO_CONFIG_PORT, 0);
+ pnp_set_iobase0(SUPERIO_CONFIG_PORT, 0x03f8);
+ pnp_set_enable(SUPERIO_CONFIG_PORT, 1);
+ pnp_exit_conf_state(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 0x77886047\n\
+ .long 0x00777777\n\
+ .long 0x00000000\n\
+ .long 0x00000000\n\
+ .long 0x00888888\n\
+ .long 0x00AA1111\n\
+ .long 0x00000000\n\
+ .long 0x00000000\n\
+ skip:\n");
+}
Alexandru Gagniuc (mr.nuke.me(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1181
-gerrit
commit 1e8a323b9d6e04c97dd51f14449aae6bcc10f5f6
Author: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
Date: Fri Jul 6 22:22:02 2012 -0500
SerialICE: Add support for VIA EPIA M-850 mainboard
Add code to initialize the serial port on the M-850 and create
a working SerialICE rom.
Change-Id: Ifba4313cceb46df5ec03132fc41378d806eb027a
Signed-off-by: Alexandru Gagniuc <mr.nuke.me(a)gmail.com>
---
SerialICE/mainboard/via_epia_m850.c | 64 +++++++++++++++++++++++++++++++++++
1 files changed, 64 insertions(+), 0 deletions(-)
diff --git a/SerialICE/mainboard/via_epia_m850.c b/SerialICE/mainboard/via_epia_m850.c
new file mode 100644
index 0000000..6446c61
--- /dev/null
+++ b/SerialICE/mainboard/via_epia_m850.c
@@ -0,0 +1,64 @@
+/*
+ * This file is part of the SerialICE project.
+ *
+ * Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me(a)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, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
+
+const char boardname[33]="VIA EPIA M-850 ";
+
+#define SUPERIO_CONFIG_PORT 0x2e
+
+static inline void pnp_enter_conf_state(u16 port)
+{
+ outb(0x87, port);
+ outb(0x87, port);
+}
+
+static inline void pnp_exit_conf_state(u16 port)
+{
+ outb(0xaa, port);
+}
+
+static void superio_init(void)
+{
+ pnp_enter_conf_state(SUPERIO_CONFIG_PORT);
+ pnp_set_logical_device(SUPERIO_CONFIG_PORT, 0);
+ pnp_set_enable(SUPERIO_CONFIG_PORT, 0);
+ pnp_set_iobase0(SUPERIO_CONFIG_PORT, 0x03f8);
+ pnp_set_enable(SUPERIO_CONFIG_PORT, 1);
+ pnp_exit_conf_state(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 0x77886047\n\
+ .long 0x00777777\n\
+ .long 0x00000000\n\
+ .long 0x00000000\n\
+ .long 0x00888888\n\
+ .long 0x00AA1111\n\
+ .long 0x00000000\n\
+ .long 0x00000000\n\
+ skip:\n");
+}