[coreboot-gerrit] Patch set updated for coreboot: 4b2fa98 mainboard/via/epia-: EOL some non-existent hw ROMCC boards

Edward O'Callaghan (eocallaghan@alterapraxis.com) gerrit at coreboot.org
Tue Apr 8 07:07:14 CEST 2014


Edward O'Callaghan (eocallaghan at alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5474

-gerrit

commit 4b2fa988f0453b6ae4ee1366eae4e14b8f911f77
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Tue Apr 8 14:43:11 2014 +1000

    mainboard/via/epia-: EOL some non-existent hw ROMCC boards
    
    The VIA Epia-{M,MII,ML,N} board hardware is EOL'ed and so hardware is in
    limited suppy. Further, this board is ROMCC which makes for a good case
    to drop it now from bitrot.
    
    Change-Id: If910c74253dfce48ffa9e542853d1a7a84c00db2
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
---
 src/mainboard/via/Kconfig                      |  12 -
 src/mainboard/via/epia-m/Kconfig               |  33 --
 src/mainboard/via/epia-m/acpi_tables.c         |  93 ----
 src/mainboard/via/epia-m/board_info.txt        |   3 -
 src/mainboard/via/epia-m/cmos.layout           |  74 ----
 src/mainboard/via/epia-m/devicetree.cb         |  61 ---
 src/mainboard/via/epia-m/dsdt.asl              | 257 -----------
 src/mainboard/via/epia-m/fadt.c                | 157 -------
 src/mainboard/via/epia-m/irq_tables.c          |  34 --
 src/mainboard/via/epia-m/romstage.c            | 109 -----
 src/mainboard/via/epia-mii/Kconfig             |  10 -
 src/mainboard/via/epia-mii/board_info.txt      |   4 -
 src/mainboard/via/epia-ml/Kconfig              |  10 -
 src/mainboard/via/epia-ml/board_info.txt       |   4 -
 src/mainboard/via/epia-n/Kconfig               |  30 --
 src/mainboard/via/epia-n/acpi/irq_links.asl    | 571 -------------------------
 src/mainboard/via/epia-n/acpi/pata_methods.asl | 133 ------
 src/mainboard/via/epia-n/acpi/pci_init.asl     |  30 --
 src/mainboard/via/epia-n/acpi/sb_physical.asl  | 548 ------------------------
 src/mainboard/via/epia-n/acpi_tables.c         | 186 --------
 src/mainboard/via/epia-n/board_info.txt        |   2 -
 src/mainboard/via/epia-n/cmos.layout           |  74 ----
 src/mainboard/via/epia-n/devicetree.cb         | 101 -----
 src/mainboard/via/epia-n/dsdt.asl              | 354 ---------------
 src/mainboard/via/epia-n/irq_tables.c          |  47 --
 src/mainboard/via/epia-n/mptable.c             |  50 ---
 src/mainboard/via/epia-n/romstage.c            | 135 ------
 27 files changed, 3122 deletions(-)

diff --git a/src/mainboard/via/Kconfig b/src/mainboard/via/Kconfig
index b1d9c54..9b2c8ef 100644
--- a/src/mainboard/via/Kconfig
+++ b/src/mainboard/via/Kconfig
@@ -14,14 +14,6 @@ config BOARD_VIA_EPIA_M850
 	help
 	  STOP RIGHT HERE AND READ THIS!!!
 	  Read http://www.coreboot.org/VIA_EPIA-M850 before you proceed.
-config BOARD_VIA_EPIA_M
-	bool "EPIA-M"
-config BOARD_VIA_EPIA_MII
-	bool "EPIA-MII"
-config BOARD_VIA_EPIA_ML
-	bool "EPIA-ML"
-config BOARD_VIA_EPIA_N
-	bool "EPIA-N"
 config BOARD_VIA_PC2500E
 	bool "pc2500e"
 config BOARD_VIA_VT8454C
@@ -33,10 +25,6 @@ source "src/mainboard/via/epia/Kconfig"
 source "src/mainboard/via/epia-cn/Kconfig"
 source "src/mainboard/via/epia-m700/Kconfig"
 source "src/mainboard/via/epia-m850/Kconfig"
-source "src/mainboard/via/epia-m/Kconfig"
-source "src/mainboard/via/epia-mii/Kconfig"
-source "src/mainboard/via/epia-ml/Kconfig"
-source "src/mainboard/via/epia-n/Kconfig"
 source "src/mainboard/via/pc2500e/Kconfig"
 source "src/mainboard/via/vt8454c/Kconfig"
 
diff --git a/src/mainboard/via/epia-m/Kconfig b/src/mainboard/via/epia-m/Kconfig
deleted file mode 100644
index 3e8a93d..0000000
--- a/src/mainboard/via/epia-m/Kconfig
+++ /dev/null
@@ -1,33 +0,0 @@
-if BOARD_VIA_EPIA_M || BOARD_VIA_EPIA_MII || BOARD_VIA_EPIA_ML
-
-config BOARD_SPECIFIC_OPTIONS # dummy
-	def_bool y
-	select ARCH_X86
-	select CPU_VIA_C3
-	select NORTHBRIDGE_VIA_VT8623
-	select SOUTHBRIDGE_VIA_VT8235
-	select SOUTHBRIDGE_RICOH_RL5C476
-	select SUPERIO_VIA_VT1211
-	select HAVE_OPTION_TABLE
-	select HAVE_PIRQ_TABLE
-	select HAVE_ACPI_TABLES
-	select BOARD_ROMSIZE_KB_256
-	select ROMCC
-
-config MAINBOARD_DIR
-	string
-	default via/epia-m
-
-if BOARD_VIA_EPIA_M
-
-config MAINBOARD_PART_NUMBER
-	string
-	default "EPIA-M"
-
-endif
-
-config IRQ_SLOT_COUNT
-	int
-	default 5
-
-endif # BOARD_VIA_EPIA_M
diff --git a/src/mainboard/via/epia-m/acpi_tables.c b/src/mainboard/via/epia-m/acpi_tables.c
deleted file mode 100644
index b174bae..0000000
--- a/src/mainboard/via/epia-m/acpi_tables.c
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * coreboot ACPI Table support
- * written by Stefan Reinauer <stepan at openbios.org>
- * ACPI FADT, FACS, and DSDT table support added by
- * Nick Barker <nick.barker9 at btinternet.com>, and those portions
- * (C) Copyright 2004 Nick Barker
- * (C) Copyright 2005 Stefan Reinauer
- */
-
-#include <console/console.h>
-#include <string.h>
-#include <arch/acpi.h>
-
-extern const unsigned char AmlCode[];
-
-unsigned long acpi_fill_mcfg(unsigned long current)
-{
-	/* Nothing to do */
-	return current;
-}
-
-unsigned long acpi_fill_slit(unsigned long current)
-{
-	// Not implemented
-	return current;
-}
-
-unsigned long acpi_fill_madt(unsigned long current)
-{
-	/* Nothing to do */
-	return current;
-}
-
-unsigned long acpi_fill_srat(unsigned long current)
-{
-	/* No NUMA, no SRAT */
-	return current;
-}
-
-unsigned long write_acpi_tables(unsigned long start)
-{
-	unsigned long current;
-	acpi_rsdp_t *rsdp;
-	acpi_rsdt_t *rsdt;
-	acpi_fadt_t *fadt;
-	acpi_facs_t *facs;
-	acpi_header_t *dsdt;
-
-	/* Align ACPI tables to 16byte */
-	start   = ALIGN(start, 16);
-	current = start;
-
-	printk(BIOS_INFO, "ACPI: Writing ACPI tables at %lx...\n", start);
-
-	/* We need at least an RSDP and an RSDT Table */
-	rsdp = (acpi_rsdp_t *) current;
-	current += sizeof(acpi_rsdp_t);
-	rsdt = (acpi_rsdt_t *) current;
-	current += sizeof(acpi_rsdt_t);
-
-	/* clear all table memory */
-	memset((void *)start, 0, current - start);
-
-	acpi_write_rsdp(rsdp, rsdt, NULL);
-	acpi_write_rsdt(rsdt);
-
-	/*
-	 * We explicitly add these tables later on:
-	 */
-	printk(BIOS_DEBUG, "ACPI:     * FACS\n");
-	facs = (acpi_facs_t *) current;
-	current += sizeof(acpi_facs_t);
-	acpi_create_facs(facs);
-
-	dsdt = (acpi_header_t *)current;
-	memcpy(dsdt, &AmlCode, sizeof(acpi_header_t));
-	current += dsdt->length;
-	memcpy(dsdt, &AmlCode, dsdt->length);
-	dsdt->checksum = 0; // don't trust intel iasl compiler to get this right
-	dsdt->checksum = acpi_checksum((u8*)dsdt, dsdt->length);
-	printk(BIOS_DEBUG, "ACPI:     * DSDT @ %p Length %x\n",dsdt,dsdt->length);
-	printk(BIOS_DEBUG, "ACPI:     * FADT\n");
-
-	fadt = (acpi_fadt_t *) current;
-	current += sizeof(acpi_fadt_t);
-
-	acpi_create_fadt(fadt,facs,dsdt);
-	acpi_add_table(rsdp,fadt);
-
-	printk(BIOS_INFO, "ACPI: done.\n");
-	return current;
-}
-
diff --git a/src/mainboard/via/epia-m/board_info.txt b/src/mainboard/via/epia-m/board_info.txt
deleted file mode 100644
index 3d084e0..0000000
--- a/src/mainboard/via/epia-m/board_info.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-Category: mini
-Board URL: http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id=81
-Flashrom support: y
diff --git a/src/mainboard/via/epia-m/cmos.layout b/src/mainboard/via/epia-m/cmos.layout
deleted file mode 100644
index c1354a2..0000000
--- a/src/mainboard/via/epia-m/cmos.layout
+++ /dev/null
@@ -1,74 +0,0 @@
-entries
-
-#start-bit length  config config-ID    name
-#0            8       r       0        seconds
-#8            8       r       0        alarm_seconds
-#16           8       r       0        minutes
-#24           8       r       0        alarm_minutes
-#32           8       r       0        hours
-#40           8       r       0        alarm_hours
-#48           8       r       0        day_of_week
-#56           8       r       0        day_of_month
-#64           8       r       0        month
-#72           8       r       0        year
-#80           4       r       0        rate_select
-#84           3       r       0        REF_Clock
-#87           1       r       0        UIP
-#88           1       r       0        auto_switch_DST
-#89           1       r       0        24_hour_mode
-#90           1       r       0        binary_values_enable
-#91           1       r       0        square-wave_out_enable
-#92           1       r       0        update_finished_enable
-#93           1       r       0        alarm_interrupt_enable
-#94           1       r       0        periodic_interrupt_enable
-#95           1       r       0        disable_clock_updates
-#96         288       r       0        temporary_filler
-0          384       r       0        reserved_memory
-384          1       e       4        boot_option
-385          1       e       4        last_boot
-386          1       e       1        ECC_memory
-388          4       r       0        reboot_bits
-392          3       e       5        baud_rate
-400          1       e       1        power_on_after_fail
-412          4       e       6        debug_level
-416          4       e       7        boot_first
-420          4       e       7        boot_second
-424          4       e       7        boot_third
-428          4       h       0        boot_index
-432          8       h       0        boot_countdown
-1008         16      h       0        check_sum
-
-enumerations
-
-#ID value   text
-1     0     Disable
-1     1     Enable
-2     0     Enable
-2     1     Disable
-4     0     Fallback
-4     1     Normal
-5     0     115200
-5     1     57600
-5     2     38400
-5     3     19200
-5     4     9600
-5     5     4800
-5     6     2400
-5     7     1200
-6     6     Notice
-6     7     Info
-6     8     Debug
-6     9     Spew
-7     0     Network
-7     1     HDD
-7     2     Floppy
-7     8     Fallback_Network
-7     9     Fallback_HDD
-7     10    Fallback_Floppy
-#7     3     ROM
-
-checksums
-
-checksum 392 1007 1008
-
-
diff --git a/src/mainboard/via/epia-m/devicetree.cb b/src/mainboard/via/epia-m/devicetree.cb
deleted file mode 100644
index 98f6b4f..0000000
--- a/src/mainboard/via/epia-m/devicetree.cb
+++ /dev/null
@@ -1,61 +0,0 @@
-chip northbridge/via/vt8623
-
-	device cpu_cluster 0 on
-		chip cpu/via/c3
-			device lapic 0 on  end
-		end
-	end
-
-	device domain 0 on
-
-		device pci 0.0 on end
-		device pci 1.0 on end
-
-		chip southbridge/via/vt8235
-
-			device pci 10.0 on end # USB 1.1
-			device pci 10.1 on end # USB 1.1
-			device pci 10.2 on end # USB 1.1
-			device pci 10.3 on end # USB 2
-
-			device pci 11.0 on      # Southbridge
-				chip superio/via/vt1211
-					device pnp 2e.0 on	# Floppy
-						io 0x60 = 0x3f0
-						irq 0x70 = 6
-						drq 0x74 = 2
-					end
-					device pnp 2e.1 on	# Parallel Port
-						io 0x60 = 0x378
-						irq 0x70 = 7
-						drq 0x74 = 3
-					end
-					device pnp 2e.2 on	# COM1
-						io 0x60 = 0x3f8
-						irq 0x70 = 4
-					end
-					device pnp 2e.3 on	# COM2
-						io 0x60 = 0x2f8
-						irq 0x70 = 3
-					end
-					device pnp 2e.b on	# HWM
-						io 0x60 = 0xec00
-					end
-
-				end
-			end
-
-			device pci 11.1 on  end # IDE
-			# 2-4 non existant?
-			device pci 11.5 on  end # AC97 Audio
-			device pci 11.6 off end # AC97 Modem
-			device pci 12.0 on end  # Ethernet
-		end
-#		This is on the EPIA MII, not the M.
-		chip southbridge/ricoh/rl5c476
-			register "enable_cf" = "1"
-			device pci 0a.0 on end
-			device pci 0a.1 on end
-		end
-	end
-end
diff --git a/src/mainboard/via/epia-m/dsdt.asl b/src/mainboard/via/epia-m/dsdt.asl
deleted file mode 100644
index edc38bf..0000000
--- a/src/mainboard/via/epia-m/dsdt.asl
+++ /dev/null
@@ -1,257 +0,0 @@
-/*
- * Minimalist ACPI DSDT table for EPIA-M / MII
- * (C) Copyright 2004 Nick Barker <Nick.Barker9 at btinternet.com>
- *
- *
- */
-
-DefinitionBlock ("DSDT.aml", "DSDT", 1, "CORE  ", "COREBOOT", 1)
-{
-	/*
-	 * Define the main processor
-	 */
-	Scope (\_PR)
-	{
-		Processor (\_PR.CPU0, 0x00, 0x00000410, 0x06) {}
-	}
-
-	/* For now only define 2 power states:
-	 *  - S0 which is fully on
-	 *  - S5 which is soft off
-	 * any others would involve declaring the wake up methods
-	 */
-	Name (\_S0, Package () {0x00, 0x00, 0x00, 0x00 })
-	Name (\_S5, Package () {0x02, 0x02, 0x00, 0x00 })
-
-	/* Root of the bus hierarchy */
-	Scope (\_SB)
-    	{
-		/* Define how interrupt Link A is plumbed in */
-		Device (LNKA)
-		{
-			Name (_HID, EisaId ("PNP0C0F"))
-			Name (_UID, 0x01)
-			/* Status - always return ready */
-			Method (_STA, 0, NotSerialized)
-			{
-				Return (0x0B)
- 			}
-			/* Current Resources - return irq set up in BIOS */
-			Method (_CRS, 0, NotSerialized)
-			{
-				Name (BUFF, ResourceTemplate ()
-				{
-					IRQ (Level, ActiveLow, Shared) {5}
-				})
-				Return (BUFF)
-                	}
-			/* Possible Resources - return the range of irqs
- 			 * we are using for PCI - only here to keep Linux ACPI
-			 * happy
-			 */
-			Method (_PRS, 0, NotSerialized)
-			{
-				Name (BUFF, ResourceTemplate ()
-                    		{
-					IRQ (Level, ActiveLow, Shared) {5,9,10}
-                    		})
-                    		Return (BUFF)
-                	}
-			/* Set Resources - dummy function to keep Linux ACPI happy
-                         * Linux is more than happy not to tinker with irq
-			 * assignments as long as the CRS and STA functions
-			 * return good values
-			 */
-			Method (_SRS, 1, NotSerialized ) {}
-			/* Disable - dummy function to keep Linux ACPI happy */
-			Method (_DIS, 0, NotSerialized ) {}
-
-		} // End of LNKA
-
-		/* Define how interrupt Link B is plumbed in */
-		Device (LNKB)
-		{
-			Name (_HID, EisaId ("PNP0C0F"))
-			Name (_UID, 0x02)
-			/* Status - always return ready */
-			Method (_STA, 0, NotSerialized)
-			{
-				Return (0x0B)
- 			}
-			/* Current Resources - return irq set up in BIOS */
-			Method (_CRS, 0, NotSerialized)
-			{
-				Name (BUFF, ResourceTemplate ()
-				{
-					IRQ (Level, ActiveLow, Shared) {9}
-				})
-				Return (BUFF)
-                	}
-			/* Possible Resources - return the range of irqs
-			 * we are using for PCI - only here to keep Linux ACPI
-			 * happy
-			 */
-			Method (_PRS, 0, NotSerialized)
-			{
-				Name (BUFF, ResourceTemplate ()
-                    		{
-					IRQ (Level, ActiveLow, Shared) {5,9,10}
-                    		})
-                    		Return (BUFF)
-                	}
-			/* Set Resources - dummy function to keep Linux ACPI happy
-                         * Linux is more than happy not to tinker with irq
-			 * assignments as long as the CRS and STA functions
-			 * return good values
-			 */
-			Method (_SRS, 1, NotSerialized ) {}
-			/* Disable - dummy function to keep Linux ACPI happy */
-			Method (_DIS, 0, NotSerialized ) {}
-
-		} // End of LNKB
-
-		/* Define how interrupt Link C is plumbed in */
-		Device (LNKC)
-		{
-			Name (_HID, EisaId ("PNP0C0F"))
-			Name (_UID, 0x03)
-			/* Status - always return ready */
-			Method (_STA, 0, NotSerialized)
-			{
-				Return (0x0B)
- 			}
-			/* Current Resources - return irq set up in BIOS */
-			Method (_CRS, 0, NotSerialized)
-			{
-				Name (BUFF, ResourceTemplate ()
-				{
-					IRQ (Level, ActiveLow, Shared) {9}
-				})
-				Return (BUFF)
-                	}
-			/* Possible Resources - return the range of irqs
-			 * we are using for PCI - only here to keep Linux ACPI
-			 * happy
-			 */
-			Method (_PRS, 0, NotSerialized)
-			{
-				Name (BUFF, ResourceTemplate ()
-                    		{
-					IRQ (Level, ActiveLow, Shared) {5,9,10}
-                    		})
-                    		Return (BUFF)
-                	}
-			/* Set Resources - dummy function to keep Linux ACPI happy
-                         * Linux is more than happy not to tinker with irq
-			 * assignments as long as the CRS and STA functions
-			 * return good values
-			 */
-			Method (_SRS, 1, NotSerialized ) {}
-			/* Disable - dummy function to keep Linux ACPI happy */
-			Method (_DIS, 0, NotSerialized ) {}
-
-		} // End of LNKC
-
-		/* Define how interrupt Link D is plumbed in */
-		Device (LNKD)
-		{
-			Name (_HID, EisaId ("PNP0C0F"))
-			Name (_UID, 0x04)
-			/* Status - always return ready */
-			Method (_STA, 0, NotSerialized)
-			{
-				Return (0x0B)
- 			}
-			/* Current Resources - return irq set up in BIOS */
-			Method (_CRS, 0, NotSerialized)
-			{
-				Name (BUFF, ResourceTemplate ()
-				{
-					IRQ (Level, ActiveLow, Shared) {5}
-				})
-				Return (BUFF)
-                	}
-			/* Possible Resources - return the range of irqs
-			 * we are using for PCI - only here to keep Linux ACPI
-			 * happy
-			 */
-			Method (_PRS, 0, NotSerialized)
-			{
-				Name (BUFF, ResourceTemplate ()
-                    		{
-					IRQ (Level, ActiveLow, Shared) {5,9,10}
-                    		})
-                    		Return (BUFF)
-                	}
-			/* Set Resources - dummy function to keep Linux ACPI happy
-                         * Linux is more than happy not to tinker with irq
-			 * assignments as long as the CRS and STA functions
-			 * return good values
-			 */
-			Method (_SRS, 1, NotSerialized ) {}
-			/* Disable - dummy function to keep Linux ACPI happy */
-			Method (_DIS, 0, NotSerialized ) {}
-
-		} // End of LNKD
-
-
-		/* top PCI device */
-		Device (PCI0)
-		{
-			Name (_HID, EisaId ("PNP0A03"))
-			Name (_ADR, 0x00)
-			Name (_UID, 0x00)
-			Name (_BBN, 0x00)
-
-			/* PCI Routing Table */
-			Name (_PRT, Package () {
-				/* Epia-MII 6000e cardbus: */
-				Package () {0x000AFFFF, 0x00, LNKA, 0x00}, // Cardbus Link A
-				Package () {0x000AFFFF, 0x01, LNKB, 0x00}, // Cardbus Link B
-				Package () {0x000AFFFF, 0x02, LNKC, 0x00}, // Cardbus Link C
-				Package () {0x000AFFFF, 0x03, LNKD, 0x00}, // Cardbus Link D
-
-				Package () {0x000DFFFF, 0x00, LNKB, 0x00}, // Firewire Link B
-				Package () {0x000DFFFF, 0x01, LNKC, 0x00}, // Firewire Link C
-				Package () {0x000DFFFF, 0x02, LNKD, 0x00}, // Firewire Linc D
-				Package () {0x000DFFFF, 0x03, LNKA, 0x00}, // Firewire Link A
-
-				Package () {0x0010FFFF, 0x00, LNKA, 0x00}, // USB Link A
-				Package () {0x0010FFFF, 0x01, LNKB, 0x00}, // USB Link B
-				Package () {0x0010FFFF, 0x02, LNKC, 0x00}, // USB Link C
-				Package () {0x0010FFFF, 0x03, LNKD, 0x00}, // USB Link D
-
-				Package () {0x0011FFFF, 0x00, LNKA, 0x00}, // vt8623 Link A
-				Package () {0x0011FFFF, 0x01, LNKB, 0x00}, // vt8623 Link B
-				Package () {0x0011FFFF, 0x02, LNKC, 0x00}, // vt8623 Link C
-				Package () {0x0011FFFF, 0x03, LNKD, 0x00}, // vt8623 Link D
-
-				Package () {0x0012FFFF, 0x00, LNKA, 0x00}, // LAN Link A
-				Package () {0x0012FFFF, 0x01, LNKB, 0x00}, // LAN Link B
-				Package () {0x0012FFFF, 0x02, LNKC, 0x00}, // LAN Link C
-				Package () {0x0012FFFF, 0x03, LNKD, 0x00}, // LAN Link D
-
-				Package () {0x0013FFFF, 0x00, LNKA, 0x00}, // Riser slot LinkA
-				Package () {0x0013FFFF, 0x01, LNKB, 0x00}, // Riser slot LinkB
-				Package () {0x0013FFFF, 0x02, LNKC, 0x00}, // Riser slot LinkC
-				Package () {0x0013FFFF, 0x03, LNKD, 0x00}, // Riser slot LinkD
-
-				Package () {0x0014FFFF, 0x00, LNKB, 0x00}, // Slot 1, Link B
-				Package () {0x0014FFFF, 0x01, LNKC, 0x00}, // Slot 1, Link C
-				Package () {0x0014FFFF, 0x02, LNKD, 0x00}, // Slot 1, Link D
-				Package () {0x0014FFFF, 0x03, LNKA, 0x00}, // Slot 1, Link A
-
-				Package () {0x0001FFFF, 0x00, LNKA, 0x00}, // VGA Link A
-				Package () {0x0001FFFF, 0x01, LNKB, 0x00}, // VGA Link B
-				Package () {0x0001FFFF, 0x02, LNKC, 0x00}, // VGA Link C
-				Package () {0x0001FFFF, 0x03, LNKD, 0x00} // VGA Link D
-
-            		})
-
-
-		} // End of PCI0
-
-	} // End of _SB
-
-} // End of Definition Block
-
diff --git a/src/mainboard/via/epia-m/fadt.c b/src/mainboard/via/epia-m/fadt.c
deleted file mode 100644
index 101ff19..0000000
--- a/src/mainboard/via/epia-m/fadt.c
+++ /dev/null
@@ -1,157 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * (C) Copyright 2004 Nick Barker <nick.barker9 at btinternet.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, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-/*
- * ACPI - create the Fixed ACPI Description Tables (FADT)
- */
-
-#include <string.h>
-#include <arch/acpi.h>
-
-void acpi_create_fadt(acpi_fadt_t *fadt,acpi_facs_t *facs,void *dsdt){
-	acpi_header_t *header=&(fadt->header);
-
-	memset((void *)fadt,0,sizeof(acpi_fadt_t));
-	memcpy(header->signature,"FACP",4);
-	header->length = 244;
-	header->revision = 3;
-	memcpy(header->oem_id,OEM_ID,6);
-	memcpy(header->oem_table_id, ACPI_TABLE_CREATOR, 8);
-	memcpy(header->asl_compiler_id,ASLC,4);
-	header->asl_compiler_revision=0;
-
-	fadt->firmware_ctrl=(u32)facs;
-	fadt->dsdt=(u32)dsdt;
-	fadt->preferred_pm_profile=0;
-	fadt->sci_int=5;
-	fadt->smi_cmd = 0;
-	fadt->acpi_enable = 0;
-	fadt->acpi_disable = 0;
-	fadt->s4bios_req = 0x0;
-	fadt->pstate_cnt = 0x0;
-
-	fadt->pm1a_evt_blk = 0x400;
-	fadt->pm1b_evt_blk = 0x0;
-	fadt->pm1a_cnt_blk = 0x404;
-	fadt->pm1b_cnt_blk = 0x0;
-	fadt->pm2_cnt_blk = 0x0;
-	fadt->pm_tmr_blk = 0x408;
-	fadt->gpe0_blk = 0x420;
-	fadt->gpe1_blk = 0x0;
-
-	fadt->pm1_evt_len = 4;
-	fadt->pm1_cnt_len = 2;
-	fadt->pm2_cnt_len = 0;
-	fadt->pm_tmr_len = 4;
-	fadt->gpe0_blk_len = 4;
-	fadt->gpe1_blk_len = 0;
-	fadt->gpe1_base = 0;
-	fadt->cst_cnt = 0;
-	fadt->p_lvl2_lat = 90;
-	fadt->p_lvl3_lat = 900;
-	fadt->flush_size = 0;
-	fadt->flush_stride = 0;
-	fadt->duty_offset = 0;
-	fadt->duty_width = 1;
-	fadt->day_alrm = 125;
-	fadt->mon_alrm = 126;
-	fadt->century = 50;
-	fadt->iapc_boot_arch = 0x1;
-	fadt->flags = 0x4a5;
-
-	fadt->reset_reg.space_id = 0;
-	fadt->reset_reg.bit_width = 0;
-	fadt->reset_reg.bit_offset = 0;
-	fadt->reset_reg.resv = 0;
-	fadt->reset_reg.addrl = 0x0;
-	fadt->reset_reg.addrh = 0x0;
-
-	fadt->reset_value = 0;
-	fadt->x_firmware_ctl_l = (u32)facs;
-	fadt->x_firmware_ctl_h = 0;
-	fadt->x_dsdt_l = (u32)dsdt;
-	fadt->x_dsdt_h = 0;
-
-	fadt->x_pm1a_evt_blk.space_id = 1;
-	fadt->x_pm1a_evt_blk.bit_width = 4;
-	fadt->x_pm1a_evt_blk.bit_offset = 0;
-	fadt->x_pm1a_evt_blk.resv = 0;
-	fadt->x_pm1a_evt_blk.addrl = 0x400;
-	fadt->x_pm1a_evt_blk.addrh = 0x0;
-
-
-	fadt->x_pm1b_evt_blk.space_id = 1;
-	fadt->x_pm1b_evt_blk.bit_width = 4;
-	fadt->x_pm1b_evt_blk.bit_offset = 0;
-	fadt->x_pm1b_evt_blk.resv = 0;
-	fadt->x_pm1b_evt_blk.addrl = 0x0;
-	fadt->x_pm1b_evt_blk.addrh = 0x0;
-
-
-	fadt->x_pm1a_cnt_blk.space_id = 1;
-	fadt->x_pm1a_cnt_blk.bit_width = 2;
-	fadt->x_pm1a_cnt_blk.bit_offset = 0;
-	fadt->x_pm1a_cnt_blk.resv = 0;
-	fadt->x_pm1a_cnt_blk.addrl = 0x404;
-	fadt->x_pm1a_cnt_blk.addrh = 0x0;
-
-
-	fadt->x_pm1b_cnt_blk.space_id = 1;
-	fadt->x_pm1b_cnt_blk.bit_width = 2;
-	fadt->x_pm1b_cnt_blk.bit_offset = 0;
-	fadt->x_pm1b_cnt_blk.resv = 0;
-	fadt->x_pm1b_cnt_blk.addrl = 0x0;
-	fadt->x_pm1b_cnt_blk.addrh = 0x0;
-
-
-	fadt->x_pm2_cnt_blk.space_id = 1;
-	fadt->x_pm2_cnt_blk.bit_width = 0;
-	fadt->x_pm2_cnt_blk.bit_offset = 0;
-	fadt->x_pm2_cnt_blk.resv = 0;
-	fadt->x_pm2_cnt_blk.addrl = 0x0;
-	fadt->x_pm2_cnt_blk.addrh = 0x0;
-
-
-	fadt->x_pm_tmr_blk.space_id = 1;
-	fadt->x_pm_tmr_blk.bit_width = 4;
-	fadt->x_pm_tmr_blk.bit_offset = 0;
-	fadt->x_pm_tmr_blk.resv = 0;
-	fadt->x_pm_tmr_blk.addrl = 0x408;
-	fadt->x_pm_tmr_blk.addrh = 0x0;
-
-
-	fadt->x_gpe0_blk.space_id = 1;
-	fadt->x_gpe0_blk.bit_width = 0;
-	fadt->x_gpe0_blk.bit_offset = 0;
-	fadt->x_gpe0_blk.resv = 0;
-	fadt->x_gpe0_blk.addrl = 0x420;
-	fadt->x_gpe0_blk.addrh = 0x0;
-
-
-	fadt->x_gpe1_blk.space_id = 1;
-	fadt->x_gpe1_blk.bit_width = 0;
-	fadt->x_gpe1_blk.bit_offset = 0;
-	fadt->x_gpe1_blk.resv = 0;
-	fadt->x_gpe1_blk.addrl = 0x0;
-	fadt->x_gpe1_blk.addrh = 0x0;
-
-	header->checksum = acpi_checksum((void *)fadt, sizeof(acpi_fadt_t));
-
-}
diff --git a/src/mainboard/via/epia-m/irq_tables.c b/src/mainboard/via/epia-m/irq_tables.c
deleted file mode 100644
index 1f2634e..0000000
--- a/src/mainboard/via/epia-m/irq_tables.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/* This file was generated by getpir.c, do not modify!
-   (but if you do, please run checkpir on it to verify)
- * Contains the IRQ Routing Table dumped directly from your memory, which BIOS sets up
- *
- * Documentation at : http://www.microsoft.com/hwdev/busbios/PCIIRQ.HTM
-*/
-
-#include <arch/pirq_routing.h>
-
-static const struct irq_routing_table intel_irq_routing_table = {
-	PIRQ_SIGNATURE,  /* u32 signature */
-	PIRQ_VERSION,    /* u16 version   */
-	32+16*CONFIG_IRQ_SLOT_COUNT,	 /* there can be total CONFIG_IRQ_SLOT_COUNT devices on the bus */
-	0x00,		 /* Where the interrupt router lies (bus) */
-	(0x00<<3)|0x0,   /* Where the interrupt router lies (dev) */
-	0xc20,		 /* IRQs devoted exclusively to PCI usage */
-	0,		 /* Vendor */
-	0,		 /* Device */
-	0,		 /* Miniport data */
-	{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
-	0x68,         /*  u8 checksum , this hase to set to some value that would give 0 after the sum of all bytes for this structure (including checksum) */
-	{
-		/* bus,     dev|fn,   {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap},  slot, rfu */
-		{0x00,(0x14<<3)|0x0, {{0x02, 0xdeb8}, {0x03, 0xdeb8}, {0x04, 0xdeb8}, {0x01, 0x0deb8}}, 0x1, 0x0},
-		{0x00,(0x13<<3)|0x0, {{0x01, 0xdeb8}, {0x02, 0xdeb8}, {0x03, 0xdeb8}, {0x04, 0x0deb8}}, 0x2, 0x0},
-		{0x00,(0x0a<<3)|0x0, {{0x04, 0xdeb8}, {0x01, 0xdeb8}, {0x02, 0xdeb8}, {0x03, 0x0deb8}}, 0x3, 0x0},
-		{0x00,(0x0d<<3)|0x0, {{0x02, 0xdeb8}, {0x03, 0xdeb8}, {0x04, 0xdeb8}, {0x01, 0x0deb8}}, 0x4, 0x0},
-		{0x00,(0x01<<3)|0x0, {{0x01, 0xdeb8}, {0x02, 0xdeb8}, {0x03, 0xdeb8}, {0x04, 0x0deb8}}, 0x0, 0x0},
-	}
-};
-unsigned long write_pirq_routing_table(unsigned long addr)
-{
-        return copy_pirq_routing_table(addr, &intel_irq_routing_table);
-}
diff --git a/src/mainboard/via/epia-m/romstage.c b/src/mainboard/via/epia-m/romstage.c
deleted file mode 100644
index ebe6a50..0000000
--- a/src/mainboard/via/epia-m/romstage.c
+++ /dev/null
@@ -1,109 +0,0 @@
-#include <stdint.h>
-#include <device/pci_def.h>
-#include <device/pci_ids.h>
-#include <arch/io.h>
-#include <device/pnp_def.h>
-#include <arch/hlt.h>
-#include <stdlib.h>
-#include <console/console.h>
-#include "northbridge/via/vt8623/raminit.h"
-#include "cpu/x86/mtrr/earlymtrr.c"
-#include "cpu/x86/bist.h"
-#include "drivers/pc80/udelay_io.c"
-#include "lib/delay.c"
-#include "cpu/x86/lapic/boot_cpu.c"
-#include "lib/debug.c"
-#include "southbridge/via/vt8235/early_smbus.c"
-#include "southbridge/via/vt8235/early_serial.c"
-
-static inline int spd_read_byte(unsigned device, unsigned address)
-{
-	return smbus_read_byte(device, address);
-}
-
-#include "northbridge/via/vt8623/raminit.c"
-
-static void enable_mainboard_devices(void)
-{
-	device_t dev;
-
-	dev = pci_locate_device_on_bus(PCI_ID(PCI_VENDOR_ID_VIA,
-				       PCI_DEVICE_ID_VIA_8235), 0);
-
-	if (dev == PCI_DEV_INVALID) {
-		die("Southbridge not found!!!\n");
-	}
-	pci_write_config8(dev, 0x50, 0x80);
-	pci_write_config8(dev, 0x51, 0x1f);
-#if 0
-	// This early setup switches IDE into compatibility mode before PCI gets
-	// a chance to assign I/Os
-	// movl    $CONFIG_ADDR(0, 0x89, 0x42), %eax
-	// //      movb    $0x09, %dl
-	// movb    $0x00, %dl
-	// PCI_WRITE_CONFIG_BYTE
-#endif
-	/* we do this here as in V2, we can not yet do raw operations
-	 * to pci!
-	 */
-        dev += 0x100; /* ICKY */
-
-	pci_write_config8(dev, 0x04, 7);
-	pci_write_config8(dev, 0x40, 3);
-	pci_write_config8(dev, 0x42, 0);
-	pci_write_config8(dev, 0x3c, 0xe);
-	pci_write_config8(dev, 0x3d, 0);
-}
-
-static void enable_shadow_ram(void)
-{
-	device_t dev = 0; /* no need to look up 0:0.0 */
-	unsigned char shadowreg;
-	/* dev 0 for southbridge */
-	shadowreg = pci_read_config8(dev, 0x63);
-	/* 0xf0000-0xfffff */
-	shadowreg |= 0x30;
-	pci_write_config8(dev, 0x63, shadowreg);
-}
-
-static void main(unsigned long bist)
-{
-	device_t dev;
-
-	/* Enable VGA; 32MB buffer. */
-	pci_write_config8(0, 0xe1, 0xdd);
-
-	/*
-	 * Disable the firewire stuff, which apparently steps on IO 0+ on
-	 * reset. Doh!
-	 */
-	dev = pci_locate_device_on_bus(PCI_ID(PCI_VENDOR_ID_VIA,
-				PCI_DEVICE_ID_VIA_6305), 0);
-	if (dev != PCI_DEV_INVALID)
-		pci_write_config8(dev, 0x15, 0x1c);
-
-	enable_vt8235_serial();
-	console_init();
-
-	enable_smbus();
-
-	/* Halt if there was a built in self test failure */
-	report_bist_failure(bist);
-
-	// init_timer();
-
-	post_code(0x05);
-
-	print_debug(" Enabling mainboard devices\n");
-	enable_mainboard_devices();
-
-	print_debug(" Enabling shadow ram\n");
-	enable_shadow_ram();
-
-	ddr_ram_setup((const struct mem_controller *)0);
-
-	if (bist == 0)
-		early_mtrr_init();
-
-	//dump_pci_devices();
-}
diff --git a/src/mainboard/via/epia-mii/Kconfig b/src/mainboard/via/epia-mii/Kconfig
deleted file mode 100644
index 6106ad2..0000000
--- a/src/mainboard/via/epia-mii/Kconfig
+++ /dev/null
@@ -1,10 +0,0 @@
-if BOARD_VIA_EPIA_MII
-
-# Dummy for abuild
-#select ARCH_X86
-
-config MAINBOARD_PART_NUMBER
-	string
-	default "EPIA-MII"
-
-endif
diff --git a/src/mainboard/via/epia-mii/board_info.txt b/src/mainboard/via/epia-mii/board_info.txt
deleted file mode 100644
index 78b956d..0000000
--- a/src/mainboard/via/epia-mii/board_info.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-Board URL: http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id=202
-Flashrom support: y
-Category: mini
-Clone of: via/epia-m
diff --git a/src/mainboard/via/epia-ml/Kconfig b/src/mainboard/via/epia-ml/Kconfig
deleted file mode 100644
index 54eac0d..0000000
--- a/src/mainboard/via/epia-ml/Kconfig
+++ /dev/null
@@ -1,10 +0,0 @@
-if BOARD_VIA_EPIA_ML
-
-# Dummy for abuild
-#select ARCH_X86
-
-config MAINBOARD_PART_NUMBER
-	string
-	default "EPIA-ML"
-
-endif
diff --git a/src/mainboard/via/epia-ml/board_info.txt b/src/mainboard/via/epia-ml/board_info.txt
deleted file mode 100644
index cbea112..0000000
--- a/src/mainboard/via/epia-ml/board_info.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-Board URL: http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id=301
-Flashrom support: y
-Category: mini
-Clone of: via/epia-m
diff --git a/src/mainboard/via/epia-n/Kconfig b/src/mainboard/via/epia-n/Kconfig
deleted file mode 100644
index 2b327b7..0000000
--- a/src/mainboard/via/epia-n/Kconfig
+++ /dev/null
@@ -1,30 +0,0 @@
-if BOARD_VIA_EPIA_N
-
-config BOARD_SPECIFIC_OPTIONS # dummy
-	def_bool y
-	select ARCH_X86
-	select CPU_VIA_C3
-	select NORTHBRIDGE_VIA_CN400
-	select SOUTHBRIDGE_VIA_VT8237R
-	select SUPERIO_WINBOND_W83697HF
-	select HAVE_OPTION_TABLE
-	select HAVE_PIRQ_TABLE
-	select HAVE_MP_TABLE
-	select EPIA_VT8237R_INIT
-	select HAVE_ACPI_TABLES
-	select BOARD_ROMSIZE_KB_512
-	select ROMCC
-
-config MAINBOARD_DIR
-	string
-	default via/epia-n
-
-config MAINBOARD_PART_NUMBER
-	string
-	default "EPIA-N"
-
-config IRQ_SLOT_COUNT
-	int
-	default 7
-
-endif # BOARD_VIA_EPIA_N
diff --git a/src/mainboard/via/epia-n/acpi/irq_links.asl b/src/mainboard/via/epia-n/acpi/irq_links.asl
deleted file mode 100644
index 29b2a1b..0000000
--- a/src/mainboard/via/epia-n/acpi/irq_links.asl
+++ /dev/null
@@ -1,571 +0,0 @@
-/*
- * Minimalist ACPI DSDT table for EPIA-N / NL
- * Basic description of PCI Interrupt Assignments.
- * This is expected to be included into _SB.PCI0 namespace
- * (C) Copyright 2009 Jon Harrison <jon.harrison at blueyonder.co.uk>
- *
- */
-
- /* PCI PnP Routing Links */
-
- /* Define how interrupt Link A is plumbed in */
- Device (LNKA)
- {
-	 Name (_HID, EisaId ("PNP0C0F"))
-	 Name (_UID, 0x01)
- 	 /* Status - always return ready */
-	 Method (_STA, 0, NotSerialized)
-	 {
-	 	/* See if coreboot has allocated INTA# */
-	 	And (PIRA, 0xF0, Local0)
-		If (LEqual (Local0, 0x00))
-		{
-			Return (0x09)
-		}
-		Else
-		{
-		 	Return (0x0B)
-		}
-	 }
-
-	 Method (_PRS, 0, NotSerialized)
-	 {
-		 Name (BUFA, ResourceTemplate ()
-		 {
-			 IRQ (Level, ActiveLow, Shared, )
-				 {3,4,6,7,10,11,12}
-		 })
-		 Return (BUFA)
-	 }
-
-	 Method (_CRS, 0, NotSerialized)
-	 {
-		 Name (BUFA, ResourceTemplate ()
-		 {
-			 IRQ (Level, ActiveLow, Shared, _Y07)
-			 {}
-		 })
-		 /* Read the Binary Encoded Field and Map this        */
-		 /* onto the bitwise _INT field in the IRQ descriptor */
-		 /* See ACPI Spec for detail of _IRQ Descriptor       */
-         CreateByteField (BUFA, \_SB.PCI0.LNKA._CRS._Y07._INT, IRA1)
-         CreateByteField (BUFA, 0x02, IRA2)
-         Store (0x00, Local3)
-         Store (0x00, Local4)
-         And (PIRA, 0xF0, Local1)
-         ShiftRight (Local1, 0x04, Local1)
-         If (LNotEqual (Local1, 0x00))
-         {
-         	 If (LGreater (Local1, 0x07))
-         	 {
-         		 Subtract (Local1, 0x08, Local2)
-         		 ShiftLeft (One, Local2, Local4)
-         	 }
-         	 Else
-         	 {
-         		 If (LGreater (Local1, 0x00))
-         		 {
-         			 ShiftLeft (One, Local1, Local3)
-         		 }
-         	 }
-
-         	 Store (Local3, IRA1)
-         	 Store (Local4, IRA2)
-         }
-		 Return (BUFA)
-	 }
-
- 	 /* Set Resources - dummy function to keep Linux ACPI happy
-	  * Linux is more than happy not to tinker with irq
- 	  * assignments as long as the CRS and STA functions
- 	  * return good values
- 	 */
-	 Method (_SRS, 1, NotSerialized) {}
- 	 /* Disable - Set PnP Routing Reg to 0 */
- 	 Method (_DIS, 0, NotSerialized )
-	 {
-	 	And (PIRA, 0x0F, PIRA)
-	 }
- } // End of LNKA
-
- Device (LNKB)
- {
-	 Name (_HID, EisaId ("PNP0C0F"))
-	 Name (_UID, 0x02)
-	 Method (_STA, 0, NotSerialized)
-	 {
-	 	/* See if coreboot has allocated INTB# */
-	 	And (PIBC, 0x0F, Local0)
-		If (LEqual (Local0, 0x00))
-		{
-			Return (0x09)
-		}
-		Else
-		{
-		 	Return (0x0B)
-		}
-	 }
-
-	 Method (_PRS, 0, NotSerialized)
-	 {
-		 Name (BUFB, ResourceTemplate ()
-		 {
-			 IRQ (Level, ActiveLow, Shared, )
-				 {3,4,6,7,10,11,12}
-		 })
-		 Return (BUFB)
-	 }
-
-	 Method (_CRS, 0, NotSerialized)
-	 {
-		 Name (BUFB, ResourceTemplate ()
-		 {
-			 IRQ (Level, ActiveLow, Shared, _Y08)
-			 {}
-		 })
-		 /* Read the Binary Encoded Field and Map this        */
-		 /* onto the bitwise _INT field in the IRQ descriptor */
-		 /* See ACPI Spec for detail of _IRQ Descriptor       */
-         CreateByteField (BUFB, \_SB.PCI0.LNKB._CRS._Y08._INT, IRB1)
-         CreateByteField (BUFB, 0x02, IRB2)
-         Store (0x00, Local3)
-         Store (0x00, Local4)
-         And (PIBC, 0x0F, Local1)
-         If (LNotEqual (Local1, 0x00))
-         {
-         	 If (LGreater (Local1, 0x07))
-         	 {
-         		 Subtract (Local1, 0x08, Local2)
-         		 ShiftLeft (One, Local2, Local4)
-         	 }
-         	 Else
-         	 {
-         		 If (LGreater (Local1, 0x00))
-         		 {
-         			 ShiftLeft (One, Local1, Local3)
-         		 }
-         	 }
-
-         	 Store (Local3, IRB1)
-         	 Store (Local4, IRB2)
-         }
-		 Return (BUFB)
-	 }
-
- 	 /* Set Resources - dummy function to keep Linux ACPI happy
-	  * Linux is more than happy not to tinker with irq
- 	  * assignments as long as the CRS and STA functions
- 	  * return good values
- 	 */
-	 Method (_SRS, 1, NotSerialized) {}
- 	 /* Disable - Set PnP Routing Reg to 0 */
- 	 Method (_DIS, 0, NotSerialized )
-	 {
-	 	And (PIBC, 0xF0, PIBC)
-	 }
-
- } // End of LNKB
-
- Device (LNKC)
- {
-	 Name (_HID, EisaId ("PNP0C0F"))
-	 Name (_UID, 0x03)
-	 Method (_STA, 0, NotSerialized)
-	 {
-	 	/* See if coreboot has allocated INTC# */
-	 	And (PIBC, 0xF0, Local0)
-		If (LEqual (Local0, 0x00))
-		{
-			Return (0x09)
-		}
-		Else
-		{
-		 	Return (0x0B)
-		}
-	 }
-
-	 Method (_PRS, 0, NotSerialized)
-	 {
-		 Name (BUFC, ResourceTemplate ()
-		 {
-			 IRQ (Level, ActiveLow, Shared, )
-				 {3,4,6,7,10,11,12}
-		 })
-		 Return (BUFC)
-	 }
-
-	 Method (_CRS, 0, NotSerialized)
-	 {
-		 Name (BUFC, ResourceTemplate ()
-		 {
-			 IRQ (Level, ActiveLow, Shared, _Y09)
-			 {}
-		 })
-		 /* Read the Binary Encoded Field and Map this        */
-		 /* onto the bitwise _INT field in the IRQ descriptor */
-		 /* See ACPI Spec for detail of _IRQ Descriptor       */
-         CreateByteField (BUFC, \_SB.PCI0.LNKC._CRS._Y09._INT, IRC1)
-         CreateByteField (BUFC, 0x02, IRC2)
-         Store (0x00, Local3)
-         Store (0x00, Local4)
-         And (PIBC, 0xF0, Local1)
-         ShiftRight (Local1, 0x04, Local1)
-         If (LNotEqual (Local1, 0x00))
-         {
-         	 If (LGreater (Local1, 0x07))
-         	 {
-         		 Subtract (Local1, 0x08, Local2)
-         		 ShiftLeft (One, Local2, Local4)
-         	 }
-         	 Else
-         	 {
-         		 If (LGreater (Local1, 0x00))
-         		 {
-         			 ShiftLeft (One, Local1, Local3)
-         		 }
-         	 }
-
-         	 Store (Local3, IRC1)
-         	 Store (Local4, IRC2)
-         }
-		 Return (BUFC)
-	 }
-
- 	 /* Set Resources - dummy function to keep Linux ACPI happy
-	  * Linux is more than happy not to tinker with irq
- 	  * assignments as long as the CRS and STA functions
- 	  * return good values
- 	 */
-	 Method (_SRS, 1, NotSerialized) {}
- 	 /* Disable - Set PnP Routing Reg to 0 */
- 	 Method (_DIS, 0, NotSerialized )
-	 {
-	 	And (PIBC, 0x0F, PIBC)
-	 }
-
-} // End of LNKC
-
-Device (LNKD)
-{
-	 Name (_HID, EisaId ("PNP0C0F"))
-	 Name (_UID, 0x04)
-	 Method (_STA, 0, NotSerialized)
-	 {
-	 	/* See if coreboot has allocated INTD# */
-	 	And (PIRD, 0xF0, Local0)
-		If (LEqual (Local0, 0x00))
-		{
-			Return (0x09)
-		}
-		Else
-		{
-		 	Return (0x0B)
-		}
-	 }
-
-	 Method (_PRS, 0, NotSerialized)
-	 {
-		 Name (BUFD, ResourceTemplate ()
-		 {
-			 IRQ (Level, ActiveLow, Shared, )
-				 {3,4,6,7,10,11,12}
-		 })
-		 Return (BUFD)
-	 }
-
-	 Method (_CRS, 0, NotSerialized)
-	 {
-		 Name (BUFD, ResourceTemplate ()
-		 {
-			 IRQ (Level, ActiveLow, Shared, _Y0A)
-			 {}
-		 })
-		 /* Read the Binary Encoded Field and Map this        */
-		 /* onto the bitwise _INT field in the IRQ descriptor */
-		 /* See ACPI Spec for detail of _IRQ Descriptor       */
-         CreateByteField (BUFD, \_SB.PCI0.LNKD._CRS._Y0A._INT, IRD1)
-         CreateByteField (BUFD, 0x02, IRD2)
-         Store (0x00, Local3)
-         Store (0x00, Local4)
-         And (PIRD, 0xF0, Local1)
-         ShiftRight (Local1, 0x04, Local1)
-         If (LNotEqual (Local1, 0x00))
-         {
-         	 If (LGreater (Local1, 0x07))
-         	 {
-         		 Subtract (Local1, 0x08, Local2)
-         		 ShiftLeft (One, Local2, Local4)
-         	 }
-         	 Else
-         	 {
-         		 If (LGreater (Local1, 0x00))
-         		 {
-         			 ShiftLeft (One, Local1, Local3)
-         		 }
-         	 }
-
-         	 Store (Local3, IRD1)
-         	 Store (Local4, IRD2)
-         }
-		 Return (BUFD)
-	 }
-
- 	 /* Set Resources - dummy function to keep Linux ACPI happy
-	  * Linux is more than happy not to tinker with irq
- 	  * assignments as long as the CRS and STA functions
- 	  * return good values
- 	 */
-	 Method (_SRS, 1, NotSerialized) {}
- 	 /* Disable - Set PnP Routing Reg to 0 */
- 	 Method (_DIS, 0, NotSerialized )
-	 {
-	 	And (PIRD, 0x0F, PIRD)
-	 }
-
-} // End of LNKD
-
-
-/* APIC IRQ Links */
-
-Device (ATAI)
-{
-	 Name (_HID, EisaId ("PNP0C0F"))
-	 Name (_UID, 0x05)
-	 Method (_STA, 0, NotSerialized)
-	 {
-	 	/* ATFL == 0x02 if SATA Enabled */
-      	If (LNotEqual (ATFL, 0x02))
-      	{
-			/* Double Check By Reading SATA VID */
-			/* Otherwise Compatibility Mode     */
-        	If (LNotEqual (\_SB.PCI0.SATA.VID, 0x1106))
-          	{
-        	  	Return (0x09)
-          	}
-          	Else
-          	{
-        	  	Return (0x0B)
-          	}
-      	}
-      	Else
-      	{
-			/* Serial ATA Enabled Check if PATA is in */
-			/* Compatibility Mode 					  */
-          	If (LEqual (\_SB.PCI0.PATA.ENAT, 0x0A))
-          	{
-        	  	Return (0x09)
-          	}
-          	Else
-          	{
-        	  	Return (0x0B)
-          	}
-      	}
-	 }
-
-     Method (_PRS, 0, NotSerialized)
-     {
-          Name (ATAN, ResourceTemplate ()
-          {
-              Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, )
-              {
-            	  0x00000014,
-              }
-          })
-		  Return (ATAN)
-	 }
-
-     Method (_CRS, 0, NotSerialized)
-     {
-     	Name (ATAB, ResourceTemplate ()
-        {
-            Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, _Y10)
-            {
-                0x00000000,
-            }
-        })
-        CreateByteField (ATAB, \_SB.PCI0.ATAI._CRS._Y10._INT, IRAI)
-        Store (0x14, IRAI)
-        Return (ATAB)
-
-	 }
-
- 	 /* Set Resources - dummy function to keep Linux ACPI happy
-	  * Linux is more than happy not to tinker with irq
- 	  * assignments as long as the CRS and STA functions
- 	  * return good values
- 	 */
-	 Method (_SRS, 1, NotSerialized) {}
- 	 /* Disable - dummy function to keep Linux ACPI happy */
- 	 Method (_DIS, 0, NotSerialized ) {}
-
-} // End of ATA Interface Link
-
-
-Device (USBI)
-{
-	Name (_HID, EisaId ("PNP0C0F"))
-    Name (_UID, 0x0A)
-    Method (_STA, 0, NotSerialized)
-    {
-		/* Check that at least one of the USB */
-		/* functions is enabled               */
-         And (IDEB, 0x37, Local0)
-         If (LEqual (Local0, 0x37))
-         {
-         	 Return (0x09)
-         }
-         Else
-         {
-         	 Return (0x0B)
-         }
-	}
-
-    Method (_PRS, 0, NotSerialized)
-    {
-        Name (USBB, ResourceTemplate ()
-        {
-            Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, )
-            {
-                0x00000015,
-            }
-        })
-
-		Return(USBB)
-	}
-
-    Method (_CRS, 0, NotSerialized)
-    {
-        Name (USBB, ResourceTemplate ()
-        {
-            Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, _Y12)
-            {
-                0x00000000,
-            }
-        })
-        CreateByteField (USBB, \_SB.PCI0.USBI._CRS._Y12._INT, IRBI)
-        Store (0x15, IRBI)
-        Return (USBB)
-	}
-
-
- 	/* Set Resources - dummy function to keep Linux ACPI happy
-	 * Linux is more than happy not to tinker with irq
- 	 * assignments as long as the CRS and STA functions
- 	 * return good values
- 	*/
-	Method (_SRS, 1, NotSerialized) {}
- 	/* Disable - dummy function to keep Linux ACPI happy */
- 	Method (_DIS, 0, NotSerialized ) {}
-}
-
-Device (VT8I)
-{
-    Name (_HID, EisaId ("PNP0C0F"))
-    Name (_UID, 0x0B)
-    Method (_STA, 0, NotSerialized)
-    {
-		/* Check Whether Sound and/or Modem are Activated */
-        If (LEqual (EAMC, 0x03))
-        {
-            Return (0x09)
-        }
-        Else
-        {
-            Return (0x0B)
-        }
-    }
-
-    Method (_PRS, 0, NotSerialized)
-    {
-        Name (A97C, ResourceTemplate ()
-        {
-            Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, )
-            {
-                0x00000016,
-            }
-        })
-        Return (A97C)
-	}
-
-    Method (_CRS, 0, NotSerialized)
-    {
-        Name (A97B, ResourceTemplate ()
-        {
-            Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, _Y14)
-            {
-                0x00000000,
-            }
-        })
-        CreateByteField (A97B, \_SB.PCI0.VT8I._CRS._Y14._INT, IRCI)
-        Store (0x16, IRCI)
-        Return (A97B)
-	}
-
- 	/* Set Resources - dummy function to keep Linux ACPI happy
-	 * Linux is more than happy not to tinker with irq
- 	 * assignments as long as the CRS and STA functions
- 	 * return good values
- 	*/
-	Method (_SRS, 1, NotSerialized) {}
- 	/* Disable - dummy function to keep Linux ACPI happy */
- 	Method (_DIS, 0, NotSerialized ) {}
-
-}
-
-
-Device (NICI)
-{
-    Name (_HID, EisaId ("PNP0C0F"))
-    Name (_UID, 0x0C)
-    Method (_STA, 0, NotSerialized)
-    {
-		/* Check if LAN Function is Enabled           */
-		/* Note that LAN Enable Polarity is different */
-		/* from other functions in VT8237R !?         */
-    	If (LEqual (ELAN, 0x00))
-    	{
-    		Return (0x09)
-    	}
-    	Else
-    	{
-    		Return (0x0B)
-    	}
-	}
-
-    Method (_PRS, 0, NotSerialized)
-    {
-        Name (NICB, ResourceTemplate ()
-        {
-            Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, )
-            {
-                0x00000017,
-            }
-        })
-        Return (NICB)
-	}
-
-    Method (_CRS, 0, NotSerialized)
-    {
-        Name (NICD, ResourceTemplate ()
-        {
-            Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, _Y16)
-            {
-                0x00000000,
-            }
-        })
-        CreateByteField (NICD, \_SB.PCI0.NICI._CRS._Y16._INT, IRDI)
-        Store (0x17, IRDI)
-        Return (NICD)
-	}
-
-  	/* Set Resources - dummy function to keep Linux ACPI happy
-	 * Linux is more than happy not to tinker with irq
- 	 * assignments as long as the CRS and STA functions
- 	 * return good values
- 	*/
-	Method (_SRS, 1, NotSerialized) {}
- 	/* Disable - dummy function to keep Linux ACPI happy */
- 	Method (_DIS, 0, NotSerialized ) {}
-
-
-}
diff --git a/src/mainboard/via/epia-n/acpi/pata_methods.asl b/src/mainboard/via/epia-n/acpi/pata_methods.asl
deleted file mode 100644
index 6106fc9..0000000
--- a/src/mainboard/via/epia-n/acpi/pata_methods.asl
+++ /dev/null
@@ -1,133 +0,0 @@
-/*
- * Minimalist ACPI DSDT table for EPIA-N / NL
- * Basic description of some hardware resources to allow
- * interrupt assignments to be done. This is expected to be included
- * into the PATA Device definition in ab_physical.asl
- * (C) Copyright 2009 Jon Harrison <jon.harrison at blueyonder.co.uk>
- *
- */
-
-Name (TIM0, Package (0x07)
-{
-    Package (0x05)
-    {
-        0x78, 0xB4, 0xF0, 0x017F, 0x0258
-    },
-
-    Package (0x05)
-    {
-        0x20, 0x22, 0x33, 0x47, 0x5D
-    },
-
-    Package (0x05)
-    {
-        0x04, 0x03, 0x02, 0x01, 0x00
-    },
-
-    Package (0x04)
-    {
-        0x02, 0x01, 0x00, 0x00
-    },
-
-    Package (0x07)
-    {
-        0x78, 0x50, 0x3C, 0x2D, 0x1E, 0x14, 0x0F
-    },
-
-    Package (0x0F)
-    {
-        0x06, 0x05, 0x04, 0x04, 0x03, 0x03, 0x02, 0x02,
-        0x01, 0x01, 0x01, 0x01, 0x01, 0x01,0x00
-    },
-
-    Package (0x07)
-    {
-        0x0E, 0x08, 0x06, 0x04, 0x02, 0x01, 0x00
-    }
-})
-
-
-/* This method sets up the PATA Timing Control.
- * Note that a lot of this is done in the
- * coreboot VT8237R init code, but this is
- * already getting very cluttered with board
- * specific code. Using ACPI will allow this
- * to be de-cluttered a bit (so long as we're
- * running a ACPI capable OS!)
- */
-
-Method (PMEX, 0, Serialized)
-{
-    If (REGF)
-    {
-		/* Check if these regs are still at defaults */
-		/* Board specific timing improvement if not  */
-		/* Already changed                           */
-        If (LEqual (PMPT, 0xA8))
-        {
-            Store (0x5D, PMPT)
-        }
-
-        If (LEqual (PSPT, 0xA8))
-        {
-            Store (0x5D, PSPT)
-        }
-
-        If (LEqual (SMPT, 0xA8))
-        {
-            Store (0x5D, SMPT)
-        }
-
-        If (LEqual (SSPT, 0xA8))
-        {
-            Store (0x5D, SSPT)
-        }
-
-    }
-}
-
-/* This Method Provides the method that is used to */
-/* Reset ATA Drives to POST reset condition        */
-Method (GTF, 4, Serialized)
-{
-    Store (Buffer (0x07)
-        {
-            0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
-        }, Local1)
-    Store (Buffer (0x07)
-        {
-            0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
-        }, Local2)
-    CreateByteField (Local1, 0x01, MODE)
-    CreateByteField (Local2, 0x01, UMOD)
-    CreateByteField (Local1, 0x05, PCHA)
-    CreateByteField (Local2, 0x05, UCHA)
-    And (Arg0, 0x03, Local3)
-    If (LEqual (And (Local3, 0x01), 0x01))
-    {
-        Store (0xB0, PCHA)
-        Store (0xB0, UCHA)
-    }
-
-    If (Arg1)
-    {
-        Store (DerefOf (Index (DerefOf (Index (TIM0, 0x05)), Arg2)),
-            UMOD)
-        Or (UMOD, 0x40, UMOD)
-    }
-    Else
-    {
-        Store (Match (DerefOf (Index (TIM0, 0x01)), MEQ, Arg3, MTR,
-            0x00, 0x00), Local0)
-        Or (0x20, DerefOf (Index (DerefOf (Index (TIM0, 0x03)), Local0
-            )), UMOD)
-    }
-
-    Store (Match (DerefOf (Index (TIM0, 0x01)), MEQ, Arg3, MTR,
-        0x00, 0x00), Local0)
-    Or (0x08, DerefOf (Index (DerefOf (Index (TIM0, 0x02)), Local0
-        )), MODE)
-    Concatenate (Local1, Local2, Local6)
-    Return (Local6)
-}
-
diff --git a/src/mainboard/via/epia-n/acpi/pci_init.asl b/src/mainboard/via/epia-n/acpi/pci_init.asl
deleted file mode 100644
index 3169a03..0000000
--- a/src/mainboard/via/epia-n/acpi/pci_init.asl
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Minimalist ACPI DSDT table for EPIA-N / NL
- * Basic description of PCI Interrupt Assignments.
- * This is expected to be included into _SB.PCI0 namespace
- * (C) Copyright 2009 Jon Harrison <jon.harrison at blueyonder.co.uk>
- *
- */
-
-/* This file provides a PCI Bus Initialisation Method that sets
- * some flags for use in the interrupt link assignment
- */
-
-Method (\_SB.PCI0._INI, 0, NotSerialized)
-{
-
-	/* Checking for ATA Interface Enabled */
-	Store (0x00, ATFL)
-	If (LEqual (EIDE, 0x01))
-	{
-    	Store (0x02, ATFL)
-	}
-	Else
-	{
-    	If (LNotEqual (\_SB.PCI0.PATA.VID, 0x1106))
-    	{
-        	Store (0x01, ATFL)
-    	}
-	}
-
-}
diff --git a/src/mainboard/via/epia-n/acpi/sb_physical.asl b/src/mainboard/via/epia-n/acpi/sb_physical.asl
deleted file mode 100644
index 7dd7b1d..0000000
--- a/src/mainboard/via/epia-n/acpi/sb_physical.asl
+++ /dev/null
@@ -1,548 +0,0 @@
-/*
- * Minimalist ACPI DSDT table for EPIA-N / NL
- * Basic description of some hardware resources to allow
- * interrupt assignments to be done. This is expected to be included
- * into _SB.PCI0 namespace
- * (C) Copyright 2009 Jon Harrison <jon.harrison at blueyonder.co.uk>
- *
- */
-
-
-/* Basic description of the VT8237R LPC Interface
- * PCI Configuration Space
- */
-
-Device (VT8R)
-{
-    Name (_ADR, 0x00110000)
-    OperationRegion (USBC, PCI_Config, 0x50, 0x02)
-    Scope (\)
-    {
-    	Field (\_SB.PCI0.VT8R.USBC, ByteAcc, NoLock, Preserve)
-    	{
-    		IDEB,	8
-    	}
-    }
-
-    OperationRegion (VTSB, PCI_Config, 0x00, 0xE8)
-    Scope (\)
-    {
-    	Field (\_SB.PCI0.VT8R.VTSB, ByteAcc, NoLock, Preserve)
-    	{
-    				Offset (0x02),
-    		DEID,	16,
-    				Offset (0x2C),
-    		ID2C,	8,
-    		ID2D,	8,
-    		ID2E,	8,
-    		ID2F,	8,
-    				Offset (0x44),
-    		PIRE,	4,
-    		PIRF,	4,
-    		PIRG,	4,
-    		PIRH,	4,
-    		POLE,	1,
-    		POLF,	1,
-    		POLG,	1,
-    		POLH,	1,
-    		ENR8,	1,
-    				Offset (0x50),
-    		ESB4,	1,
-    		ESB3,	1,
-    		ESB2,	1,
-    		EIDE,	1,
-    		EUSB,	1,
-    		ESB1,	1,
-    		EAMC,	2,
-    		EKBC,	1,
-    		KBCC,	1,
-    		EPS2,	1,
-    		ERTC,	1,
-    		ELAN,	1,
-    			,	2,
-    		USBD,	1,
-    		SIRQ,	8,
-    				Offset (0x55),
-    		PIRA,	8,
-    		PIBC,	8,
-    		PIRD,	8,
-    				Offset (0x75),
-    		BSAT,	1,
-    				Offset (0x94),
-    		PWC1,	2,
-    		GPO1,	1,
-    		GPO2,	1,
-    		GPO3,	1,
-    		PLLD,	1
-    	}
-    }
-}
-
-/* Basic Description of Serial ATA Interface */
-Device (SATA)
-{
-    Name (_ADR, 0x000F0000)
-    Method (_STA, 0, NotSerialized)
-    {
-        If (LNotEqual (\_SB.PCI0.SATA.VID, 0x1106))
-        {
-            Return (0x00)
-        }
-        Else
-        {
-            If (LEqual (\_SB.PCI0.SATA.CMDR, 0x00))
-            {
-                Return (0x0D)
-            }
-            Else
-            {
-                Return (0x0F)
-            }
-        }
-    }
-
-    OperationRegion (SAPR, PCI_Config, 0x00, 0xC2)
-    Field (SAPR, ByteAcc, NoLock, Preserve)
-    {
-        VID,    16,
-                Offset (0x04),
-        CMDR,   3,
-                Offset (0x3C),
-        IDEI,   8,
-                Offset (0x49),
-            ,   6,
-        EPHY,   1
-    }
-}
-
-/* Basic Description of Parallel ATA Interface */
-/* An some initialisation of the interface     */
-Device (PATA)
-{
-    Name (_ADR, 0x000F0001)
-    Name (REGF, 0x01)
-    Method (_STA, 0, NotSerialized)
-    {
-        If (LNotEqual (\_SB.PCI0.PATA.VID, 0x1106))
-        {
-            Return (0x00)
-        }
-        Else
-        {
-            PMEX ()
-			/* Check if the Interface is Enabled */
-            If (LEqual (\_SB.PCI0.PATA.CMDR, 0x00))
-            {
-                Return (0x0D)
-            }
-            Else
-            {
-                Return (0x0F)
-            }
-        }
-    }
-
-	/* ACPI Spec says to check that regions are accessible */
-	/* before trying to access them                        */
-    Method (_REG, 2, NotSerialized)
-    {
-		/* Arg0 = Operating Region (0x02 == PCI_Config) */
-        If (LEqual (Arg0, 0x02))
-        {
-			/* Arg1 = Handler Connection Mode (0x01 == Connect) */
-            Store (Arg1, REGF)
-        }
-    }
-
-	#include "pata_methods.asl"
-
-
-    OperationRegion (PAPR, PCI_Config, 0x00, 0xC2)
-    Field (PAPR, ByteAcc, NoLock, Preserve)
-    {
-        VID,    16,
-                Offset (0x04),
-        CMDR,   3,
-                Offset (0x09),
-        ENAT,   4,
-                Offset (0x3C),
-        IDEI,   8,
-                Offset (0x40),
-        ESCH,   1,
-        EPCH,   1,
-                Offset (0x48),
-        SSPT,   8,
-        SMPT,   8,
-        PSPT,   8,
-        PMPT,   8,
-                Offset (0x50),
-        SSUT,   4,
-        SSCT,   1,
-        SSUE,   3,
-        SMUT,   4,
-        SMCT,   1,
-        SMUE,   3,
-        PSUT,   4,
-        PSCT,   1,
-        PSUE,   3,
-        PMUT,   4,
-        PMCT,   1,
-        PMUE,   3
-    }
-
-
-    Device (CHN0)
-    {
-        Name (_ADR, 0x00)
-        Method (_STA, 0, NotSerialized)
-        {
-            If (LNotEqual (\_SB.PCI0.PATA.EPCH, 0x01))
-            {
-                Return (0x00)
-            }
-            Else
-            {
-                Return (0x0F)
-            }
-        }
-
-        Device (DRV0)
-        {
-            Name (_ADR, 0x00)
-            Method (_GTF, 0, NotSerialized)
-            {
-                Return (GTF (0x00, PMUE, PMUT, PMPT))
-            }
-        }
-
-        Device (DRV1)
-        {
-            Name (_ADR, 0x01)
-            Method (_GTF, 0, NotSerialized)
-            {
-                Return (GTF (0x01, PSUE, PSUT, PSPT))
-            }
-        }
-    }
-
-    Device (CHN1)
-    {
-        Name (_ADR, 0x01)
-        Method (_STA, 0, NotSerialized)
-        {
-            If (LNotEqual (ATFL, 0x02))
-            {
-                If (LEqual (\_SB.PCI0.SATA.EPHY, 0x01))
-                {
-                    Return (0x00)
-                }
-                Else
-                {
-                    If (LNotEqual (\_SB.PCI0.PATA.ESCH, 0x01))
-                    {
-                        Return (0x00)
-                    }
-                    Else
-                    {
-                        Return (0x0F)
-                    }
-                }
-            }
-			Else
-			{
-               If (LEqual (ATFL, 0x02))
-               {
-                   If (LNotEqual (\_SB.PCI0.PATA.ESCH, 0x01))
-                   {
-                	   Return (0x00)
-                   }
-                   Else
-                   {
-                	   Return (0x0F)
-                   }
-               }
-			   Else
-			   {
-			   		Return(0x00)
-			   }
-			}
-        }
-
-        Device (DRV0)
-        {
-            Name (_ADR, 0x00)
-            Method (_GTF, 0, NotSerialized)
-            {
-                Return (GTF (0x02, SMUE, SMUT, SMPT))
-            }
-        }
-
-        Device (DRV1)
-        {
-            Name (_ADR, 0x01)
-            Method (_GTF, 0, NotSerialized)
-            {
-                Return (GTF (0x03, SSUE, SSUT, SSPT))
-            }
-        }
-    }
-} // End of PATA Device
-
-
-/* Implement Basic USB Presence detect and */
-/* Power Management Event mask             */
-Device (USB0)
-{
-    Name (_ADR, 0x00100000)
-    Name (_PRW, Package (0x02)
-    {
-        0x0E,
-        0x03
-    })
-
-    OperationRegion (U2F0, PCI_Config, 0x00, 0xC2)
-    Field (U2F0, ByteAcc, NoLock, Preserve)
-    {
-        VID,    16,
-                Offset (0x04),
-        CMDR,   3,
-                Offset (0x3C),
-        U0IR,   4,
-                Offset (0x84),
-        ECDX,   2
-    }
-
-    Method (_STA, 0, NotSerialized)
-    {
-        If (LNotEqual (\_SB.PCI0.USB0.VID, 0x1106))
-        {
-            Return (0x00)
-        }
-        Else
-        {
-            If (LEqual (\_SB.PCI0.USB0.CMDR, 0x00))
-            {
-                Return (0x0D)
-            }
-            Else
-            {
-                Return (0x0F)
-            }
-        }
-    }
-}
-
-Device (USB1)
-{
-    Name (_ADR, 0x00100001)
-    Name (_PRW, Package (0x02)
-    {
-        0x0E,
-        0x03
-    })
-
-    OperationRegion (U2F1, PCI_Config, 0x00, 0xC2)
-    Field (U2F1, ByteAcc, NoLock, Preserve)
-    {
-        VID,    16,
-                Offset (0x04),
-        CMDR,   3,
-                Offset (0x3C),
-        U1IR,   4,
-                Offset (0x84),
-        ECDX,   2
-    }
-
-    Method (_STA, 0, NotSerialized)
-    {
-        If (LNotEqual (\_SB.PCI0.USB1.VID, 0x1106))
-        {
-            Return (0x00)
-        }
-        Else
-        {
-            If (LEqual (\_SB.PCI0.USB1.CMDR, 0x00))
-            {
-                Return (0x0D)
-            }
-            Else
-            {
-                Return (0x0F)
-            }
-        }
-    }
-}
-
-Device (USB2)
-{
-    Name (_ADR, 0x00100002)
-    Name (_PRW, Package (0x02)
-    {
-        0x0E,
-        0x03
-    })
-
-    OperationRegion (U2F2, PCI_Config, 0x00, 0xC2)
-    Field (U2F2, ByteAcc, NoLock, Preserve)
-    {
-        VID,    16,
-                Offset (0x04),
-        CMDR,   3,
-                Offset (0x3C),
-        U2IR,   4,
-                Offset (0x84),
-        ECDX,   2
-    }
-
-    Method (_STA, 0, NotSerialized)
-    {
-        If (LNotEqual (\_SB.PCI0.USB2.VID, 0x1106))
-        {
-            Return (0x00)
-        }
-        Else
-        {
-            If (LEqual (\_SB.PCI0.USB2.CMDR, 0x00))
-            {
-                Return (0x0D)
-            }
-            Else
-            {
-                Return (0x0F)
-            }
-        }
-    }
-}
-
-Device (USB3)
-{
-    Name (_ADR, 0x00100003)
-    Name (_PRW, Package (0x02)
-    {
-        0x0E,
-        0x03
-    })
-
-    OperationRegion (U2F3, PCI_Config, 0x00, 0xC2)
-    Field (U2F3, ByteAcc, NoLock, Preserve)
-    {
-        VID,    16,
-                Offset (0x04),
-        CMDR,   3,
-                Offset (0x3C),
-        U3IR,   4,
-                Offset (0x84),
-        ECDX,   2
-    }
-
-    Method (_STA, 0, NotSerialized)
-    {
-        If (LNotEqual (\_SB.PCI0.USB3.VID, 0x1106))
-        {
-            Return (0x00)
-        }
-        Else
-        {
-            If (LEqual (\_SB.PCI0.USB3.CMDR, 0x00))
-            {
-                Return (0x0D)
-            }
-            Else
-            {
-                Return (0x0F)
-            }
-        }
-    }
-}
-
-Device (USB4)
-{
-    Name (_ADR, 0x00100004)
-    Name (_PRW, Package (0x02)
-    {
-        0x0E,
-        0x03
-    })
-
-    OperationRegion (U2F4, PCI_Config, 0x00, 0xC2)
-    Field (U2F4, ByteAcc, NoLock, Preserve)
-    {
-        VID,    16,
-                Offset (0x04),
-        CMDR,   3,
-                Offset (0x3C),
-        U4IR,   4,
-                Offset (0x84),
-        ECDX,   2
-    }
-
-    Method (_STA, 0, NotSerialized)
-    {
-        If (LNotEqual (\_SB.PCI0.USB4.VID, 0x1106))
-        {
-            Return (0x00)
-        }
-        Else
-        {
-            If (LEqual (\_SB.PCI0.USB4.CMDR, 0x00))
-            {
-                Return (0x0D)
-            }
-            Else
-            {
-                Return (0x0F)
-            }
-        }
-    }
-}
-
-/* Basic Definition of Ethernet Interface */
-Device (NIC0)
-{
-    Name (_ADR, 0x00120000)
-    Name (_PRW, Package (0x02)
-    {
-        0x03,
-        0x05
-    })
-
-    OperationRegion (NIC0, PCI_Config, 0x00, 0xC2)
-    Field (NIC0, ByteAcc, NoLock, Preserve)
-    {
-        VID,    16,
-                Offset (0x04),
-        CMDR,   3,
-                Offset (0x3C),
-        NIIR,   4,
-    }
-
-    Method (_STA, 0, NotSerialized)
-    {
-        If (LNotEqual (\_SB.PCI0.NIC0.VID, 0x1106))
-        {
-            Return (0x00)
-        }
-        Else
-        {
-            If (LEqual (\_SB.PCI0.NIC0.CMDR, 0x00))
-            {
-                Return (0x0D)
-            }
-            Else
-            {
-                Return (0x0F)
-            }
-        }
-    }
-}
-
-/* Very Basic Definition of Sound Controller */
-Device (AC97)
-{
-    Name (_ADR, 0x00110005)
-    Name (_PRW, Package (0x02)
-    {
-        0x0D,
-        0x05
-    })
-}
diff --git a/src/mainboard/via/epia-n/acpi_tables.c b/src/mainboard/via/epia-n/acpi_tables.c
deleted file mode 100644
index 5558dcb..0000000
--- a/src/mainboard/via/epia-n/acpi_tables.c
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
- * coreboot ACPI Table support
- * written by Stefan Reinauer <stepan at openbios.org>
- * ACPI FADT, FACS, and DSDT table support added by
- * Nick Barker <nick.barker9 at btinternet.com>, and those portions
- * (C) Copyright 2004 Nick Barker
- * (C) Copyright 2005 Stefan Reinauer
- * (C) Copyright 2009 Jon Harrison <bothlyn at blueyonder.co.uk>
- *
- * 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
- */
-
-
-/*
- * Most parts of this file copied from via\epia-m\acpi_tables.c,
- * and via\epia-m700\acpi_tables.c
- */
-
-#include <console/console.h>
-#include <string.h>
-#include <arch/acpi.h>
-#include <arch/ioapic.h>
-#include <device/device.h>
-#include <device/pci.h>
-#include <device/pci_ids.h>
-#include "southbridge/via/vt8237r/vt8237r.h"
-
-extern const unsigned char AmlCode[];
-
-/*
- * These 8 macros are copied from <arch/smp/mpspec.h>, I have to do this
- * since the "CONFIG_GENERATE_MP_TABLE = 0", and also since
- * mainboard/via/... have no mptable.c (so that I can not set
- * "CONFIG_GENERATE_MP_TABLE = 1" as many other mainboards.
- * So I have to copy these four to here. acpi_fill_madt() needs this.
- */
-#define MP_IRQ_POLARITY_DEFAULT	0x0
-#define MP_IRQ_POLARITY_HIGH	0x1
-#define MP_IRQ_POLARITY_LOW		0x3
-#define MP_IRQ_POLARITY_MASK    0x3
-#define MP_IRQ_TRIGGER_DEFAULT	0x0
-#define MP_IRQ_TRIGGER_EDGE		0x4
-#define MP_IRQ_TRIGGER_LEVEL	0xc
-#define MP_IRQ_TRIGGER_MASK     0xc
-
-unsigned long acpi_fill_mcfg(unsigned long current)
-{
-	/* Nothing to do */
-	return current;
-}
-
-unsigned long acpi_fill_slit(unsigned long current)
-{
-	// Not implemented
-	return current;
-}
-
-unsigned long acpi_create_madt_lapic_nmis(unsigned long current, u16 flags,
-					  u8 lint)
-{
-	device_t cpu;
-	int cpu_index = 0;
-
-	for (cpu = all_devices; cpu; cpu = cpu->next) {
-		if ((cpu->path.type != DEVICE_PATH_APIC) ||
-		    (cpu->bus->dev->path.type != DEVICE_PATH_CPU_CLUSTER)) {
-			continue;
-		}
-		if (!cpu->enabled)
-			continue;
-		current += acpi_create_madt_lapic_nmi((acpi_madt_lapic_nmi_t *)
-					      current, cpu_index, flags, lint);
-		cpu_index++;
-	}
-	return current;
-}
-
-unsigned long acpi_fill_madt(unsigned long current)
-{
-	unsigned int gsi_base = 0x00;
-
-	/* Create all subtables for processors. */
-	current = acpi_create_madt_lapics(current);
-
-	/* Write SB IOAPIC. */
-	current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *) current,
-				   VT8237R_APIC_ID, IO_APIC_ADDR, gsi_base);
-
-	/* IRQ0 -> APIC IRQ2. */
-	current += acpi_create_madt_irqoverride((acpi_madt_irqoverride_t *)
-						current, 0, 0, 2, 0x0);
-
-	/* IRQ9 ACPI active low. */
-	current += acpi_create_madt_irqoverride((acpi_madt_irqoverride_t *)
-		current, 0, 9, 9, MP_IRQ_TRIGGER_LEVEL | MP_IRQ_POLARITY_LOW);
-
-	/* Create all subtables for processors. */
-	current = acpi_create_madt_lapic_nmis(current,
-			      MP_IRQ_TRIGGER_EDGE | MP_IRQ_POLARITY_HIGH, 1);
-
-	return current;
-}
-
-unsigned long acpi_fill_srat(unsigned long current)
-{
-	/* No NUMA, no SRAT */
-	return current;
-}
-
-unsigned long write_acpi_tables(unsigned long start)
-{
-	unsigned long current;
-	acpi_rsdp_t *rsdp;
-	acpi_rsdt_t *rsdt;
-	acpi_madt_t *madt;
-	acpi_fadt_t *fadt;
-	acpi_facs_t *facs;
-	acpi_header_t *dsdt;
-
-	/* Align ACPI tables to 16byte */
-	start   = ALIGN(start, 16);
-	current = start;
-
-	printk(BIOS_INFO, "ACPI: Writing ACPI tables at %lx...\n", start);
-
-	/* We need at least an RSDP and an RSDT Table */
-	rsdp = (acpi_rsdp_t *) current;
-	current += sizeof(acpi_rsdp_t);
-	rsdt = (acpi_rsdt_t *) current;
-	current += sizeof(acpi_rsdt_t);
-
-	/* clear all table memory */
-	memset((void *)start, 0, current - start);
-
-	acpi_write_rsdp(rsdp, rsdt, NULL);
-	acpi_write_rsdt(rsdt);
-
-	/*
-	 * We explicitly add these tables later on:
-	 */
-	printk(BIOS_DEBUG, "ACPI:     * FACS\n");
-	current = ALIGN(current, 64);
-	facs = (acpi_facs_t *) current;
-	current += sizeof(acpi_facs_t);
-	acpi_create_facs(facs);
-
-	printk(BIOS_DEBUG, "ACPI:     * DSDT\n");
-	dsdt = (acpi_header_t *)current;
-	memcpy(dsdt, &AmlCode, sizeof(acpi_header_t));
-	current += dsdt->length;
-	memcpy(dsdt, &AmlCode, dsdt->length);
-#if 0
-	dsdt->checksum = 0; // don't trust intel iasl compiler to get this right
-	dsdt->checksum = acpi_checksum(dsdt,dsdt->length);
-#endif
-	printk(BIOS_DEBUG, "ACPI:     * DSDT @ %p Length %x\n",dsdt,dsdt->length);
-	printk(BIOS_DEBUG, "ACPI:     * FADT\n");
-
-	fadt = (acpi_fadt_t *) current;
-	current += sizeof(acpi_fadt_t);
-
-	acpi_create_fadt(fadt,facs,dsdt);
-	acpi_add_table(rsdp,fadt);
-
-	/* If we want IOAPIC Support Linux wants it in MADT. */
-	printk(BIOS_DEBUG, "ACPI:    * MADT\n");
-	madt = (acpi_madt_t *) current;
-	acpi_create_madt(madt);
-	current += madt->header.length;
-	acpi_add_table(rsdp, madt);
-
-	printk(BIOS_INFO, "ACPI: done.\n");
-	return current;
-}
-
diff --git a/src/mainboard/via/epia-n/board_info.txt b/src/mainboard/via/epia-n/board_info.txt
deleted file mode 100644
index d7bb1d9..0000000
--- a/src/mainboard/via/epia-n/board_info.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Category: mini
-Board URL: http://www.idotpc.com/TheStore/pc/viewCategories.asp?idCategory=56
diff --git a/src/mainboard/via/epia-n/cmos.layout b/src/mainboard/via/epia-n/cmos.layout
deleted file mode 100644
index c1354a2..0000000
--- a/src/mainboard/via/epia-n/cmos.layout
+++ /dev/null
@@ -1,74 +0,0 @@
-entries
-
-#start-bit length  config config-ID    name
-#0            8       r       0        seconds
-#8            8       r       0        alarm_seconds
-#16           8       r       0        minutes
-#24           8       r       0        alarm_minutes
-#32           8       r       0        hours
-#40           8       r       0        alarm_hours
-#48           8       r       0        day_of_week
-#56           8       r       0        day_of_month
-#64           8       r       0        month
-#72           8       r       0        year
-#80           4       r       0        rate_select
-#84           3       r       0        REF_Clock
-#87           1       r       0        UIP
-#88           1       r       0        auto_switch_DST
-#89           1       r       0        24_hour_mode
-#90           1       r       0        binary_values_enable
-#91           1       r       0        square-wave_out_enable
-#92           1       r       0        update_finished_enable
-#93           1       r       0        alarm_interrupt_enable
-#94           1       r       0        periodic_interrupt_enable
-#95           1       r       0        disable_clock_updates
-#96         288       r       0        temporary_filler
-0          384       r       0        reserved_memory
-384          1       e       4        boot_option
-385          1       e       4        last_boot
-386          1       e       1        ECC_memory
-388          4       r       0        reboot_bits
-392          3       e       5        baud_rate
-400          1       e       1        power_on_after_fail
-412          4       e       6        debug_level
-416          4       e       7        boot_first
-420          4       e       7        boot_second
-424          4       e       7        boot_third
-428          4       h       0        boot_index
-432          8       h       0        boot_countdown
-1008         16      h       0        check_sum
-
-enumerations
-
-#ID value   text
-1     0     Disable
-1     1     Enable
-2     0     Enable
-2     1     Disable
-4     0     Fallback
-4     1     Normal
-5     0     115200
-5     1     57600
-5     2     38400
-5     3     19200
-5     4     9600
-5     5     4800
-5     6     2400
-5     7     1200
-6     6     Notice
-6     7     Info
-6     8     Debug
-6     9     Spew
-7     0     Network
-7     1     HDD
-7     2     Floppy
-7     8     Fallback_Network
-7     9     Fallback_HDD
-7     10    Fallback_Floppy
-#7     3     ROM
-
-checksums
-
-checksum 392 1007 1008
-
-
diff --git a/src/mainboard/via/epia-n/devicetree.cb b/src/mainboard/via/epia-n/devicetree.cb
deleted file mode 100644
index d17b96d..0000000
--- a/src/mainboard/via/epia-n/devicetree.cb
+++ /dev/null
@@ -1,101 +0,0 @@
-##
-## This file is part of the coreboot project.
-##
-## Copyright (C) 2008 VIA Technologies, Inc.
-## (Written by Aaron Lwe <aaron.lwe at gmail.com> for VIA)
-##
-## 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, write to the Free Software
-## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-##
-
-chip northbridge/via/cn400			# Northbridge
-
-  device cpu_cluster 0 on			# APIC cluster
-    chip cpu/via/c3			# VIA C3
-      device lapic 0 on end			# APIC
-    end
-  end
-
-  device domain 0 on			# PCI domain
-    device pci 0.0 on end			# AGP Bridge
-    device pci 0.1 on end			# Error Reporting
-    device pci 0.2 on end			# Host Bus Control
-    device pci 0.3 on end			# Memory Controller
-    device pci 0.4 on end			# Power Management
-    device pci 0.7 on end			# V-Link Controller
-    device pci 1.0 on end			# PCI Bridge
-    chip southbridge/via/vt8237r		# Southbridge
-      # Enable both IDE channels.
-      register "ide0_enable" = "1"
-      register "ide1_enable" = "1"
-      # Both cables are 40pin.
-      register "ide0_80pin_cable" = "0"
-      register "ide1_80pin_cable" = "0"
-      device pci f.0 on end			# IDE/SATA
-	  device pci f.1 on end			# IDE
-      register "fn_ctrl_lo" = "0xC0"    # Disable AC/MC97
-      register "fn_ctrl_hi" = "0x9d"    # Disable USB Direct & LAN Gating
-      device pci 10.0 on end			# OHCI
-      device pci 10.1 on end			# OHCI
-      device pci 10.2 on end			# OHCI
-      device pci 10.3 on end			# OHCI
-      device pci 10.4 on end			# EHCI
-      device pci 10.5 off end			# USB Direct
-      device pci 11.0 on			# Southbridge LPC
-        chip superio/winbond/w83697hf		# Super I/O
-          device pnp 2e.0 off			# Floppy
-            io 0x60 = 0x3f0
-            irq 0x70 = 6
-            drq 0x74 = 2
-          end
-          device pnp 2e.1 off			# Parallel Port
-            io 0x60 = 0x378
-            irq 0x70 = 7
-            drq 0x74 = 3
-          end
-          device pnp 2e.2 on			# COM1
-            io 0x60 = 0x3f8
-            irq 0x70 = 4
-          end
-          device pnp 2e.3 off			# COM2
-            io 0x60 = 0x2f8
-            irq 0x70 = 3
-          end
-          device pnp 2e.6 off			# IR Port
-            io 0x60 = 0x000
-          end
-          device pnp 2e.7 off			# GPIO 1
-            io 0x60 = 0x201			# 0x201
-          end
-          device pnp 2e.8 off			# GPIO 5
-            io 0x60 = 0x330			# 0x330
-          end
-          device pnp 2e.9 off			# GPIO 2, 3,and 4
-            io 0x60 = 0x000			#
-          end
-          device pnp 2e.a off			# ACPI
-            io 0x60 = 0x000			#
-          end
-          device pnp 2e.b on			# HWM
-            io 0x60 = 0x290
-			irq 0x70 = 0
-          end
-        end
-      end
-      device pci 11.5 off end			# AC'97 audio
-      device pci 11.6 off end			# AC'97 Modem
-      device pci 12.0 on end			# Ethernet
-    end
-  end
-end
diff --git a/src/mainboard/via/epia-n/dsdt.asl b/src/mainboard/via/epia-n/dsdt.asl
deleted file mode 100644
index e50ee6b..0000000
--- a/src/mainboard/via/epia-n/dsdt.asl
+++ /dev/null
@@ -1,354 +0,0 @@
-/*
- * Minimalist ACPI DSDT table for EPIA-N / NL
- * (C) Copyright 2009 Jon Harrison <jon.harrison at blueyonder.co.uk>
- * Heavily based on EPIA-M dstd.asl
- * (C) Copyright 2004 Nick Barker <Nick.Barker9 at btinternet.com>
- *
- */
-DefinitionBlock ("dsdt.aml", "DSDT", 1, "CBT-V2", "CBT-DSDT", 1)
-{
-    Scope (\_PR)
-    {
-        Processor (\_PR.CPU0, 0x00, 0x00000000, 0x00) {}
-    }
-
-	/* For now only define 2 power states:
-	 *  - S0 which is fully on
-	 *  - S5 which is soft off
-	 * any others would involve declaring the wake up methods
-	 */
-    Name (\_S0, Package (0x04)
-    {
-        0x00,
-        0x00,
-        0x00,
-        0x00
-    })
-    Name (\_S5, Package (0x04)
-    {
-        0x02,
-        0x02,
-        0x02,
-        0x02
-    })
-
-	/* Global Flag Used to Indicate State of */
-	/* ATA Interface                         */
-    Name (ATFL, 0x00)
-
-	/* Root of the bus hierarchy */
-	Scope (\_SB)
-    {
-
-       Device (PCI0)
-       {
-           Name (_HID, EisaId ("PNP0A03"))
-           Name (_ADR, 0x00)
-           Name (_UID, 0x01)
-           Name (_BBN, 0x00)
-
-	       /* PCI Routing Table */
-	       Name (_PRT, Package () {
-
-        	   Package (0x04) {0x000FFFFF, 0x00, ATAI, 0x00}, // SATA Link A
-        	   Package (0x04) {0x000FFFFF, 0x01, ATAI, 0x00}, // SATA Link B
-        	   Package (0x04) {0x000FFFFF, 0x02, ATAI, 0x00}, // SATA Link C
-        	   Package (0x04) {0x000FFFFF, 0x03, ATAI, 0x00}, // SATA Link D
-
-        	   Package (0x04) {0x0010FFFF, 0x00, USBI, 0x00}, // USB Link A
-        	   Package (0x04) {0x0010FFFF, 0x01, USBI, 0x00}, // USB Link B
-        	   Package (0x04) {0x0010FFFF, 0x02, USBI, 0x00}, // USB Link C
-        	   Package (0x04) {0x0010FFFF, 0x03, USBI, 0x00}, // USB Link D
-
-        	   Package (0x04) {0x0011FFFF, 0x00, VT8I, 0x00}, // VT8237 Link A
-        	   Package (0x04) {0x0011FFFF, 0x01, VT8I, 0x00}, // VT8237 Link B
-        	   Package (0x04) {0x0011FFFF, 0x02, VT8I, 0x00}, // VT8237 Link C
-        	   Package (0x04) {0x0011FFFF, 0x03, VT8I, 0x00}, // VT8237 Link D
-
-        	   Package (0x04) {0x0012FFFF, 0x00, NICI, 0x00}, // LAN Link A
-        	   Package (0x04) {0x0012FFFF, 0x01, NICI, 0x00}, // LAN Link B
-        	   Package (0x04) {0x0012FFFF, 0x02, NICI, 0x00}, // LAN Link C
-        	   Package (0x04) {0x0012FFFF, 0x03, NICI, 0x00}, // LAN Link D
-
-        	   Package (0x04) {0x0001FFFF, 0x00, 0, 0x10}, // VGA Link A (GSI)
-        	   Package (0x04) {0x0001FFFF, 0x01, 0, 0x11}, // VGA Link B (GSI)
-        	   Package (0x04) {0x0001FFFF, 0x02, 0, 0x12}, // VGA Link C (GSI)
-        	   Package (0x04) {0x0001FFFF, 0x03, 0, 0x13}, // VGA Link D (GSI)
-
-        	   Package (0x04) {0x0014FFFF, 0x00, 0, 0x12}, // Slot 1 Link C (GSI)
-        	   Package (0x04) {0x0014FFFF, 0x01, 0, 0x13}, // Slot 1 Link D (GSI)
-        	   Package (0x04) {0x0014FFFF, 0x02, 0, 0x10}, // Slot 1 Link A (GSI)
-        	   Package (0x04) {0x0014FFFF, 0x03, 0, 0x11}, // Slot 1 Link B (GSI)
-
-        	   Package (0x04) {0x0013FFFF, 0x00, 0, 0x13}, // Riser Slot Link D (GSI)
-        	   Package (0x04) {0x0013FFFF, 0x01, 0, 0x12}, // Riser Slot Link C (GSI)
-        	   Package (0x04) {0x0013FFFF, 0x02, 0, 0x11}, // Riser Slot Link B (GSI)
-        	   Package (0x04) {0x0013FFFF, 0x03, 0, 0x10} // Riser Slot Link A (GSI)
-
-	       })
-
-		   /* PCI Devices Included Here */
-		   #include "acpi/sb_physical.asl"
-
-		   /* Legacy PNP Devices Defined Here */
-
-		   /* Disable PS2 Mouse Support */
-           Device (PS2M)
-           {
-        	   Name (_HID, EisaId ("PNP0F13"))
-        	   Method (_STA, 0, NotSerialized)
-        	   {
-       			   Return (0x09)
-        	   }
-
-        	   Method (_CRS, 0, NotSerialized)
-        	   {
-        		   Name (BUF1, ResourceTemplate ()
-        		   {
-        			   IRQNoFlags ()
-        				   {12}
-        		   })
-        		   Return (BUF1)
-        	   }
-           }
-
-		   /* Disable Legacy PS2 Keyboard Support */
-           Device (PS2K)
-           {
-         	   Name (_HID, EisaId ("PNP0303"))
-         	   Name (_CID, 0x0B03D041)
-         	   Method (_STA, 0, NotSerialized)
-         	   {
-         			Return (0x09)
-         	   }
-
-         	   Name (_CRS, ResourceTemplate ()
-         	   {
-         		   IO (Decode16,
-         			   0x0060,  		   // Range Minimum
-         			   0x0060,  		   // Range Maximum
-         			   0x01,			   // Alignment
-         			   0x01,			   // Length
-         			   )
-         		   IO (Decode16,
-         			   0x0064,  		   // Range Minimum
-         			   0x0064,  		   // Range Maximum
-         			   0x01,			   // Alignment
-         			   0x01,			   // Length
-         			   )
-         		   IRQNoFlags ()
-         			   {1}
-         	   })
-           }
-
-		   /* Legacy PIC Description */
-           Device (PIC)
-           {
-         	   Name (_HID, EisaId ("PNP0000"))
-         	   Name (_CRS, ResourceTemplate ()
-         	   {
-         		   IO (Decode16,
-         			   0x0020,  		   // Range Minimum
-         			   0x0020,  		   // Range Maximum
-         			   0x01,			   // Alignment
-         			   0x02,			   // Length
-         			   )
-         		   IO (Decode16,
-         			   0x00A0,  		   // Range Minimum
-         			   0x00A0,  		   // Range Maximum
-         			   0x01,			   // Alignment
-         			   0x02,			   // Length
-         			   )
-         		   IRQNoFlags ()
-         			   {2}
-         	   })
-           }
-
-		   /* Legacy DMA Description */
-           Device (DMA1)
-           {
-         	   Name (_HID, EisaId ("PNP0200"))
-         	   Name (_CRS, ResourceTemplate ()
-         	   {
-         		   DMA (Compatibility, BusMaster, Transfer8, )
-         			   {4}
-         		   IO (Decode16,
-         			   0x0000,  		   // Range Minimum
-         			   0x0000,  		   // Range Maximum
-         			   0x01,			   // Alignment
-         			   0x10,			   // Length
-         			   )
-         		   IO (Decode16,
-         			   0x0080,  		   // Range Minimum
-         			   0x0080,  		   // Range Maximum
-         			   0x01,			   // Alignment
-         			   0x11,			   // Length
-         			   )
-         		   IO (Decode16,
-         			   0x0094,  		   // Range Minimum
-         			   0x0094,  		   // Range Maximum
-         			   0x01,			   // Alignment
-         			   0x0C,			   // Length
-         			   )
-         		   IO (Decode16,
-         			   0x00C0,  		   // Range Minimum
-         			   0x00C0,  		   // Range Maximum
-         			   0x01,			   // Alignment
-         			   0x20,			   // Length
-         			   )
-         	   })
-           }
-
-		   /* Legacy Timer Description */
-           Device (TMR)
-           {
-         	   Name (_HID, EisaId ("PNP0100"))
-         	   Name (_CRS, ResourceTemplate ()
-         	   {
-         		   IO (Decode16,
-         			   0x0040,  		   // Range Minimum
-         			   0x0040,  		   // Range Maximum
-         			   0x01,			   // Alignment
-         			   0x04,			   // Length
-         			   )
-         		   IRQNoFlags ()
-         			   {0}
-         	   })
-           }
-
-		   /* Legacy RTC Description */
-           Device (RTC)
-           {
-         	   Name (_HID, EisaId ("PNP0B00"))
-         	   Name (_CRS, ResourceTemplate ()
-         	   {
-         		   IO (Decode16,
-         			   0x0070,  		   // Range Minimum
-         			   0x0070,  		   // Range Maximum
-         			   0x04,			   // Alignment
-         			   0x04,			   // Length
-         			   )
-         		   IRQNoFlags ()
-         			   {8}
-         	   })
-           }
-
-		   /* Legacy Speaker Description */
-           Device (SPKR)
-           {
-         	   Name (_HID, EisaId ("PNP0800"))
-         	   Name (_CRS, ResourceTemplate ()
-         	   {
-         		   IO (Decode16,
-         			   0x0061,  		   // Range Minimum
-         			   0x0061,  		   // Range Maximum
-         			   0x01,			   // Alignment
-         			   0x01,			   // Length
-         			   )
-         	   })
-           }
-
-		   /* Legacy Math Co-Processor Description */
-           Device (COPR)
-           {
-         	   Name (_HID, EisaId ("PNP0C04"))
-         	   Name (_CRS, ResourceTemplate ()
-         	   {
-         		   IO (Decode16,
-         			   0x00F0,  		   // Range Minimum
-         			   0x00F0,  		   // Range Maximum
-         			   0x01,			   // Alignment
-         			   0x10,			   // Length
-         			   )
-         		   IRQNoFlags ()
-         			   {13}
-         	   })
-           }
-
-		   /* General Legacy IO Reservations                   */
-		   /* Covering items that are not explicitly reserved  */
-		   /* from coreboot.                                   */
-           Device (SYSR)
-           {
-               Name (_HID, EisaId ("PNP0C02"))
-               Name (_UID, 0x01)
-               Name (_CRS, ResourceTemplate ()
-               {
-            	   IO (Decode16,
-            		   0x0010,  		   // Range Minimum
-            		   0x0010,  		   // Range Maximum
-            		   0x01,			   // Alignment
-            		   0x10,			   // Length
-            		   )
-            	   IO (Decode16,
-            		   0x0022,  		   // Range Minimum
-            		   0x0022,  		   // Range Maximum
-            		   0x01,			   // Alignment
-            		   0x1E,			   // Length
-            		   )
-            	   IO (Decode16,
-            		   0x0044,  		   // Range Minimum
-            		   0x0044,  		   // Range Maximum
-            		   0x01,			   // Alignment
-            		   0x1C,			   // Length
-            		   )
-            	   IO (Decode16,
-            		   0x0062,  		   // Range Minimum
-            		   0x0062,  		   // Range Maximum
-            		   0x01,			   // Alignment
-            		   0x02,			   // Length
-            		   )
-            	   IO (Decode16,
-            		   0x0065,  		   // Range Minimum
-            		   0x0065,  		   // Range Maximum
-            		   0x01,			   // Alignment
-            		   0x0B,			   // Length
-            		   )
-            	   IO (Decode16,
-            		   0x0074,  		   // Range Minimum
-            		   0x0074,  		   // Range Maximum
-            		   0x01,			   // Alignment
-            		   0x0C,			   // Length
-            		   )
-            	   IO (Decode16,
-            		   0x0091,  		   // Range Minimum
-            		   0x0091,  		   // Range Maximum
-            		   0x01,			   // Alignment
-            		   0x03,			   // Length
-            		   )
-            	   IO (Decode16,
-            		   0x00A2,  		   // Range Minimum
-            		   0x00A2,  		   // Range Maximum
-            		   0x01,			   // Alignment
-            		   0x1E,			   // Length
-            		   )
-            	   IO (Decode16,
-            		   0x00E0,  		   // Range Minimum
-            		   0x00E0,  		   // Range Maximum
-            		   0x01,			   // Alignment
-            		   0x10,			   // Length
-            		   )
-            	   IO (Decode16,
-            		   0x04D0,  		   // Range Minimum
-            		   0x04D0,  		   // Range Maximum
-            		   0x01,			   // Alignment
-            		   0x02,			   // Length
-            		   )
-            	   IO (Decode16,
-            		   0x0294,  		   // Range Minimum
-            		   0x0294,  		   // Range Maximum
-            		   0x01,			   // Alignment
-            		   0x04,			   // Length
-            		   )
-               })
-           }
-
-		   #include "acpi/irq_links.asl"
-		   #include "acpi/pci_init.asl"
-
-	   } //End of PCI0
-
-	} // End of _SB
-
-} // End of Definition Block
-
diff --git a/src/mainboard/via/epia-n/irq_tables.c b/src/mainboard/via/epia-n/irq_tables.c
deleted file mode 100644
index 9c1ee4e..0000000
--- a/src/mainboard/via/epia-n/irq_tables.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* This file was generated by getpir.c, do not modify!
- * (but if you do, please run checkpir on it to verify)
- *
- * Contains the IRQ Routing Table dumped directly from your
- * memory, which BIOS sets up.
- *
- * Documentation at: http://www.microsoft.com/whdc/archive/pciirq.mspx
- */
-
-#ifdef GETPIR
-#include "pirq_routing.h"
-#else
-#include <arch/pirq_routing.h>
-#endif
-
-static const struct irq_routing_table intel_irq_routing_table = {
-	PIRQ_SIGNATURE,  /* u32 signature */
-	PIRQ_VERSION,    /* u16 version   */
-	32+16*CONFIG_IRQ_SLOT_COUNT,	 /* There can be total CONFIG_IRQ_SLOT_COUNT devices on the bus */
-	0x00,		 /* Where the interrupt router lies (bus) */
-	(0x11<<3)|0x0,   /* Where the interrupt router lies (dev) */
-	0x1c00,		 /* IRQs devoted exclusively to PCI usage */
-	0x1106,		 /* Vendor */
-	0x3227,		 /* Device */
-	0,		 /* Miniport */
-	{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
-	0xf,		 /* u8 checksum. This has to be set to some
-			    value that would give 0 after the sum of all
-			    bytes for this structure (including checksum) */
-	{
-		/* bus,     dev|fn,   {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap},  slot, rfu */
-		{0x00,(0x14<<3)|0x0, {{0x03, 0xdeb8}, {0x05, 0xdeb8}, {0x01, 0xdeb8}, {0x02, 0xdeb8}}, 0x1, 0x0},
-		{0x00,(0x13<<3)|0x0, {{0x05, 0xdeb8}, {0x03, 0xdeb8}, {0x02, 0xdeb8}, {0x01, 0xdeb8}}, 0x2, 0x0},
-		{0x00,(0x11<<3)|0x0, {{0x00, 0xdeb8}, {0x00, 0xdeb8}, {0x03, 0xdeb8}, {0x05, 0xdeb8}}, 0x0, 0x0},
-		{0x00,(0x0f<<3)|0x0, {{0x01, 0xdeb8}, {0x02, 0xdeb8}, {0x03, 0xdeb8}, {0x05, 0xdeb8}}, 0x0, 0x0},
-		{0x00,(0x01<<3)|0x0, {{0x01, 0xdeb8}, {0x02, 0xdeb8}, {0x03, 0xdeb8}, {0x05, 0xdeb8}}, 0x0, 0x0},
-		{0x00,(0x10<<3)|0x0, {{0x01, 0xdeb8}, {0x02, 0xdeb8}, {0x03, 0xdeb8}, {0x05, 0xdeb8}}, 0x0, 0x0},
-		{0x00,(0x12<<3)|0x0, {{0x01, 0xdeb8}, {0x00, 0xdeb8}, {0x00, 0xdeb8}, {0x00, 0xdeb8}}, 0x0, 0x0},
-	}
-};
-#ifndef GETPIR
-
-unsigned long write_pirq_routing_table(unsigned long addr)
-{
-	return copy_pirq_routing_table(addr, &intel_irq_routing_table);
-}
-#endif
diff --git a/src/mainboard/via/epia-n/mptable.c b/src/mainboard/via/epia-n/mptable.c
deleted file mode 100644
index de25d0e..0000000
--- a/src/mainboard/via/epia-n/mptable.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* generated by MPTable, version 2.0.15*/
-/* as modified by RGM for coreboot */
-#include <console/console.h>
-#include <arch/smp/mpspec.h>
-#include <arch/ioapic.h>
-#include <device/pci.h>
-#include <string.h>
-#include <stdint.h>
-
-static void *smp_write_config_table(void *v)
-{
-        struct mp_config_table *mc;
-        int isa_bus;
-
-        mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);
-
-	mptable_init(mc, LOCAL_APIC_ADDR);
-
-        smp_write_processors(mc);
-        mptable_write_buses(mc, NULL, &isa_bus);
-
-/*I/O APICs:	APIC ID	Version	State		Address*/
-	smp_write_ioapic(mc, 2, 0x20, IO_APIC_ADDR);
-
-	mptable_add_isa_interrupts(mc, isa_bus, 0x2, 0);
-
-/*I/O Ints:	Type	Polarity    Trigger	Bus ID	 IRQ	APIC ID	PIN# */
-	smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x40, 0x2, 0x15);
-	smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x40, 0x2, 0x15);
-	smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x41, 0x2, 0x15);
-	smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x41, 0x2, 0x15);
-	smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x42, 0x2, 0x15);
-	smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x46, 0x2, 0x16);
-	smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x1, 0x0, 0x2, 0x10);
-	smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x48, 0x2, 0x17);
-	smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x3d, 0x2, 0x14);
-/*Local Ints:	Type	Polarity    Trigger	Bus ID	 IRQ	APIC ID	PIN#*/
-	mptable_lintsrc(mc, 0x0);
-	/* There is no extension information... */
-
-	/* Compute the checksums */
-	return mptable_finalize(mc);
-}
-
-unsigned long write_smp_table(unsigned long addr)
-{
-	void *v;
-	v = smp_write_floating_table(addr, 0);
-	return (unsigned long)smp_write_config_table(v);
-}
diff --git a/src/mainboard/via/epia-n/romstage.c b/src/mainboard/via/epia-n/romstage.c
deleted file mode 100644
index 568dab5..0000000
--- a/src/mainboard/via/epia-n/romstage.c
+++ /dev/null
@@ -1,135 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2008 VIA Technologies, Inc.
- * (Written by Aaron Lwe <aaron.lwe at gmail.com> for VIA)
- *
- * 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, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include <stdint.h>
-#include <device/pci_def.h>
-#include <device/pci_ids.h>
-#include <arch/io.h>
-#include <device/pnp_def.h>
-#include <arch/hlt.h>
-#include <console/console.h>
-#include "northbridge/via/cn400/raminit.h"
-#include "cpu/x86/mtrr/earlymtrr.c"
-#include "cpu/x86/bist.h"
-#include "drivers/pc80/udelay_io.c"
-#include "lib/delay.c"
-#include "cpu/x86/lapic/boot_cpu.c"
-#include "southbridge/via/vt8237r/early_smbus.c"
-#include "superio/winbond/w83697hf/early_serial.c"
-#include <spd.h>
-
-#define SERIAL_DEV PNP_DEV(0x2e, W83697HF_SP1)
-#define DUMMY_DEV PNP_DEV(0x2e, 0)
-
-static const struct mem_controller ctrl = {
-	.d0f0 = 0x0000,
-	.d0f2 = 0x2000,
-	.d0f3 = 0x3000,
-	.d0f4 = 0x4000,
-	.d0f7 = 0x7000,
-	.d1f0 = 0x8000,
-	.channel0 = { DIMM0 },
-};
-
-static inline int spd_read_byte(unsigned device, unsigned address)
-{
-	return smbus_read_byte(device, address);
-}
-
-#include "northbridge/via/cn400/raminit.c"
-
-static void enable_mainboard_devices(void)
-{
-	device_t dev;
-	u8 reg;
-
-	dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_VIA,
-				PCI_DEVICE_ID_VIA_VT8237R_LPC), 0);
-	if (dev == PCI_DEV_INVALID)
-		die("Southbridge not found!!!\n");
-
-	/* bit=0 means enable function (per VT8237R datasheet)
-	 *   7 17.6 MC97
-	 *   6 17.5 AC97
-	 *   5 16.1 USB 2
-	 *   4 16.0 USB 1
-	 *   3 15.0 SATA and PATA
-	 *   2 16.2 USB 3
-	 *   1 16.4 USB EHCI
-	 */
-	pci_write_config8(dev, 0x50, 0xC0);
-
-	/*bit=0 means enable internal function (per VT8237R datasheet)
-	 *   7 USB Device Mode
-	 *bit=1 means enable internal function (per VT8237R datasheet)
-	 *   6 Reserved
-	 *   5 LAN Controller Clock Gating
-	 *   4 LAN Controller
-	 *   3 Internal RTC
-	 *   2 Internal PS2 Mouse
-	 *   1 Internal KBC Configuration
-	 *   0 Internal Keyboard Controller
-	 */
-	pci_write_config8(dev, 0x51, 0x9d);
-}
-
-static void enable_shadow_ram(void)
-{
-	unsigned char shadowreg;
-
-	shadowreg = pci_read_config8(ctrl.d0f3, 0x82);
-	/* 0xf0000-0xfffff Read/Write*/
-	shadowreg |= 0x30;
-	pci_write_config8(ctrl.d0f3, 0x82, shadowreg);
-}
-
-static void main(unsigned long bist)
-{
-	unsigned long x;
-	device_t dev;
-
-	/* Enable multifunction for northbridge. */
-	pci_write_config8(ctrl.d0f0, 0x4f, 0x01);
-
-	w83697hf_set_clksel_48(DUMMY_DEV);
-	w83697hf_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
-	console_init();
-
-	enable_smbus();
-	smbus_fixup(&ctrl);
-
-	/* Halt if there was a built-in self test failure. */
-	report_bist_failure(bist);
-
-	print_debug("Enabling mainboard devices\n");
-	enable_mainboard_devices();
-
-	print_debug("Enable F-ROM Shadow RAM\n");
-	enable_shadow_ram();
-
-	print_debug("Setup CPU Interface\n");
-	c3_cpu_setup(ctrl.d0f2);
-
-	ddr_ram_setup();
-
-	if (bist == 0)
-		early_mtrr_init();
-}



More information about the coreboot-gerrit mailing list