Index: src/mainboard/via/epia/auto.c
===================================================================
--- src/mainboard/via/epia/auto.c	(revision 2621)
+++ src/mainboard/via/epia/auto.c	(working copy)
@@ -66,8 +66,16 @@
 	/* we do this here as in V2, we can not yet do raw operations 
 	 * to pci!
 	 */
-        dev += 0x100; /* ICKY */
-
+   
+   /* changed this to work correctly on later revisions of LB. 
+    * The original dev += 0x100; stopped working. It also appears
+    * that if this is not set here, but in ide_init() only, the IDE
+    * does not work at all. I assume it needs to be set before something else,
+    * possibly before enabling the IDE peripheral, or it is a timing issue.
+    * Ben Hewson 29 Apr 2007.
+    */
+	
+	dev = pci_locate_device(PCI_ID(0x1106,0x0571), 0);	
 	pci_write_config8(dev, 0x42, 0);
 }
 


Index: src/southbridge/via/vt8231/vt8231_ide.c
===================================================================
--- src/southbridge/via/vt8231/vt8231_ide.c	(revision 2621)
+++ src/southbridge/via/vt8231/vt8231_ide.c	(working copy)
@@ -15,6 +15,12 @@
 		// Run the IDE controller in 'compatiblity mode - i.e. don't use PCI
 		// interrupts.  Using PCI ints confuses linux for some reason.
 		
+		/* Setting reg 0x42 here does not work. It is set in mainboard/auto.c
+		 * It probably can only be changed while the IDE is disabled 
+		 * or it is possibly a timing issue. Ben Hewson 29 Apr 2007.
+		 */
+		
+		/*
 		printk_info("%s: enabling compatibility IDE addresses\n", __FUNCTION__);
 		enables = pci_read_config8(dev, 0x42);
 		printk_debug("enables in reg 0x42 0x%x\n", enables);
@@ -22,6 +28,8 @@
 		pci_write_config8(dev, 0x42, enables);
 		enables = pci_read_config8(dev, 0x42);
 		printk_debug("enables in reg 0x42 read back as 0x%x\n", enables);
+		*/
+		
 	}
 	
 	enables = pci_read_config8(dev, 0x40);


Index: src/mainboard/via/epia/Options.lb
===================================================================
--- src/mainboard/via/epia/Options.lb	(revision 2621)
+++ src/mainboard/via/epia/Options.lb	(working copy)
@@ -51,7 +51,7 @@
 
 default CONFIG_CONSOLE_SERIAL8250=1
 ## Select the serial console baud rate
-default TTYS0_BAUD=19200
+default TTYS0_BAUD=115200
 
 # Select the serial console base port
 default TTYS0_BASE=0x3f8
