Patchwork New patch to review: 2a221db Skip memory clear for boot time reduction

login
register
about
Submitter gerrit@coreboot.org
Date 2011-06-11 02:36:03
Message ID <E1QVE3P-0007UN-H3@ra.coresystems.de>
Download mbox | patch
Permalink /patch/3106/
State New, archived
Headers show

Comments

gerrit@coreboot.org - 2011-06-11 02:36:03
Marshall Buschman (mbuschman@lucidmachines.com) just uploaded a new patch set to gerrit, which you can find at
http://review.coreboot.org/20

-gerrit

Patch

commit 2a221db6ad48055f5d3eed0c86b78d2780c6fafc
Author: Marshall Buschman <mbuschman@lucidmachines.com>
Date:   Fri Jun 10 21:16:41 2011 -0500

    Skip memory clear for boot time reduction
    
    Applying Scott's patches to e350m1, svn r6600:
    Memory clear is not required for non-ECC boards.
    
    Change-Id: Ia1a7c926611de72351434cbdc1795ed10bc56ed1
    Signed-off-by: Scott Duplichan <scott@notabs.org>
    Signed-off-by: Marshall Buschman <mbuschman@lucidmachines.com>

diff --git a/src/mainboard/asrock/e350m1/BiosCallOuts.c b/src/mainboard/asrock/e350m1/BiosCallOuts.c
index f4a5cb6..de5d547e 100644
--- a/src/mainboard/asrock/e350m1/BiosCallOuts.c
+++ b/src/mainboard/asrock/e350m1/BiosCallOuts.c
@@ -512,6 +512,8 @@  AGESA_STATUS BiosHookBeforeDramInit (UINT32 Func, UINT32 Data, VOID *ConfigPtr)
       Data8 &= ~(UINT8)BIT6;
       Write64Mem8(GpioMmioAddr+SB_GPIO_REG179, Data8);
   }
+  // disable memory clear for boot time reduction
+  MemData->ParameterListPtr->EnableMemClr = FALSE;
   return Status;
 }
 /*  Call the host environment interface to provide a user hook opportunity. */