From patchwork Sun Dec 5 14:39:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Support for Asus M4A78-EM mainboard Date: Sun, 05 Dec 2010 14:39:54 -0000 From: Juhana Helovuo X-Patchwork-Id: 2397 Message-Id: <4CFBA43A.6030306@iki.fi> To: coreboot@coreboot.org Hello, Here is a patch to get Asus M4A78-EM supported and booting Linux. Files attached are: * Boot log with the patches applied. * Board-specific patch for SVN 6139 * Resend of Myles Watson's patch for AMD Northbridge, because the original did not work for me without manual editing. It is also needed for booting Linux. Before applying the patch, the board directory should be created with % svn cp src/mainboard/asus/m4a785-m src/mainboard/asus/m4a78-em Signed-off-by: Juhana Helovuo Best regards, Juhana Helovuo Index: src/northbridge/amd/amdfam10/northbridge.c =================================================================== --- src/northbridge/amd/amdfam10/northbridge.c (revision 6139) +++ src/northbridge/amd/amdfam10/northbridge.c (working copy) @@ -684,6 +684,13 @@ resource->flags = IORESOURCE_MEM; } #endif +#if CONFIG_MMCONF_SUPPORT + struct resource *resource = new_resource(dev, 0xc0010058); + resource->base = CONFIG_MMCONF_BASE_ADDRESS; + resource->size = CONFIG_MMCONF_BUS_NUMBER * 4096*256; + resource->flags = IORESOURCE_MEM | IORESOURCE_RESERVE | + IORESOURCE_FIXED | IORESOURCE_STORED | IORESOURCE_ASSIGNED; +#endif } static u32 my_find_pci_tolm(struct bus *bus, u32 tolm) @@ -1447,13 +1454,6 @@ static void cpu_bus_read_resources(device_t dev) { -#if CONFIG_MMCONF_SUPPORT - struct resource *resource = new_resource(dev, 0xc0010058); - resource->base = CONFIG_MMCONF_BASE_ADDRESS; - resource->size = CONFIG_MMCONF_BUS_NUMBER * 4096*256; - resource->flags = IORESOURCE_MEM | IORESOURCE_RESERVE | - IORESOURCE_FIXED | IORESOURCE_STORED | IORESOURCE_ASSIGNED; -#endif } static void cpu_bus_set_resources(device_t dev)