From patchwork Mon Feb 14 11:59:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Cenedese X-Patchwork-Id: 83070 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3E4A7B7195 for ; Mon, 14 Feb 2011 22:59:46 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 41F8F281D8; Mon, 14 Feb 2011 12:59:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JriS-maE-u3E; Mon, 14 Feb 2011 12:59:44 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CE938281CB; Mon, 14 Feb 2011 12:59:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 23D5C281CB for ; Mon, 14 Feb 2011 12:59:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SRm8iy6VSETz for ; Mon, 14 Feb 2011 12:59:38 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from ms9smtp.webland.ch (ms9.webland.ch [92.43.217.109]) by theia.denx.de (Postfix) with ESMTPS id 07458281B7 for ; Mon, 14 Feb 2011 12:59:35 +0100 (CET) Received: from macserver.private ([77.57.184.28]) by ms9smtp.webland.ch (Webland Mail Server v10.0) with ASMTP id XNV00335; Mon, 14 Feb 2011 12:59:35 +0100 Received: from localhost (localhost [127.0.0.1]) by macserver.private (Postfix) with ESMTP id CFB20B4D0CE; Mon, 14 Feb 2011 12:59:32 +0100 (CET) X-Virus-Scanned: amavisd-new at indel.ch Received: from macserver.private ([127.0.0.1]) by localhost (macserver.private [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Diu8Md1ZTNBC; Mon, 14 Feb 2011 12:59:32 +0100 (CET) Received: from fabi-PC.indel.ch (unknown [192.168.1.38]) by macserver.private (Postfix) with ESMTP id 56B7DB4D0C2; Mon, 14 Feb 2011 12:59:32 +0100 (CET) Message-Id: <5.2.0.9.1.20110214125601.03fdef40@localhost> X-Sender: cenedese@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Mon, 14 Feb 2011 12:59:33 +0100 To: u-boot@lists.denx.de From: Fabian Cenedese Mime-Version: 1.0 Cc: Kumar Gala Subject: [U-Boot] [PATCH] Removed clearing of L2-as-SRAM X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Removed clearing of L2 cache as SRAM as it is not necessary without ECC. This also speeds up the booting process. Signed-off-by: Fabian Cenedese Cc: Kumar Gala --- arch/powerpc/cpu/mpc85xx/cpu_init_nand.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init_nand.c b/arch/powerpc/cpu/mpc85xx/cpu_init_nand.c index 8fb27ab..1c42a0b 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu_init_nand.c +++ b/arch/powerpc/cpu/mpc85xx/cpu_init_nand.c @@ -42,8 +42,6 @@ void cpu_init_f(void) #if defined(CONFIG_SYS_RAMBOOT) && defined(CONFIG_SYS_INIT_L2_ADDR) ccsr_l2cache_t *l2cache = (void *)CONFIG_SYS_MPC85xx_L2_ADDR; - char *l2srbar; - int i; out_be32(&l2cache->l2srbar0, CONFIG_SYS_INIT_L2_ADDR); @@ -54,10 +52,5 @@ void cpu_init_f(void) /* set L2E=1 & L2SRAM=001 */ out_be32(&l2cache->l2ctl, (MPC85xx_L2CTL_L2E | MPC85xx_L2CTL_L2SRAM_ENTIRE)); - - /* Initialize L2 SRAM to zero */ - l2srbar = (char *)CONFIG_SYS_INIT_L2_ADDR; - for (i = 0; i < CONFIG_SYS_L2_SIZE; i++) - l2srbar[i] = 0; #endif }