Fix VIA EPIA-M700 target enough for a first serial boot log.

Add the respective Super I/O config in Config.lb (Winbond W83697HG),
enable COM1 on the board, fix irq_table.c, as well as the PCI
devices listed in Config.lb (based on lspci output).

This has been tested by Jakob Bornecrantz <wallbraker@gmail.com>
on hardware, i.e. there is serial output. It does not yet boot
to a Linux console successfully, more fixing will be needed.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Jakob Bornecrantz <wallbraker@gmail.com>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4426 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
diff --git a/src/mainboard/via/epia-m700/cache_as_ram_auto.c b/src/mainboard/via/epia-m700/cache_as_ram_auto.c
index b0d543b..daa4be8 100644
--- a/src/mainboard/via/epia-m700/cache_as_ram_auto.c
+++ b/src/mainboard/via/epia-m700/cache_as_ram_auto.c
@@ -55,6 +55,10 @@
 #include "cpu/x86/car/copy_and_run.c"
 #include "wakeup.h"
 
+#include "superio/winbond/w83697hf/w83697hf_early_serial.c"
+
+#define SERIAL_DEV PNP_DEV(0x2e, W83697HF_SP1)
+
 /*
  * This acpi_is_wakeup_early_via_VX800 is from Rudolf's patch on the list:
  * http://www.coreboot.org/pipermail/coreboot/2008-January/028787.html.
@@ -407,7 +411,10 @@
 	 * console_init()) are the same with epia-cn port.
 	 */
 	pci_write_config8(PCI_DEV(0, 0, 0), 0x4f, 0x01);
-	EmbedComInit();
+	/* EmbedComInit(); */
+	w83697hf_set_clksel_48(SERIAL_DEV);
+	w83697hf_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
+	uart_init();
 	/* enable_vx800_serial(); */
 	/* uart_init(); */