From patchwork Fri Dec 3 08:47:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Weisser X-Patchwork-Id: 74102 X-Patchwork-Delegate: albert.aribaud@free.fr 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 DDF7BB70A7 for ; Fri, 3 Dec 2010 19:47:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7146F28160; Fri, 3 Dec 2010 09:47:24 +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 3T0XaW7-usED; Fri, 3 Dec 2010 09:47:24 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3EF1428164; Fri, 3 Dec 2010 09:47:23 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 21D4028164 for ; Fri, 3 Dec 2010 09:47:21 +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 sERgLiA6QNVw for ; Fri, 3 Dec 2010 09:47:19 +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 mail-in-14.arcor-online.net (mail-in-14.arcor-online.net [151.189.21.54]) by theia.denx.de (Postfix) with ESMTPS id 05CE028160 for ; Fri, 3 Dec 2010 09:47:17 +0100 (CET) Received: from mail-in-04-z2.arcor-online.net (mail-in-04-z2.arcor-online.net [151.189.8.16]) by mx.arcor.de (Postfix) with ESMTP id 002F59C2EA for ; Fri, 3 Dec 2010 09:47:17 +0100 (CET) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by mail-in-04-z2.arcor-online.net (Postfix) with ESMTP id 6949D1F9315; Fri, 3 Dec 2010 09:47:16 +0100 (CET) Received: from localhost.localdomain (unknown [212.87.136.142]) (Authenticated sender: weisserm@arcor.de) by mail-in-07.arcor-online.net (Postfix) with ESMTPA id EF04A107E75; Fri, 3 Dec 2010 09:47:15 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-07.arcor-online.net EF04A107E75 From: Matthias Weisser To: u-boot@lists.denx.de Date: Fri, 3 Dec 2010 09:47:10 +0100 Message-Id: <1291366030-10233-1-git-send-email-weisserm@arcor.de> X-Mailer: git-send-email 1.7.0.4 Subject: [U-Boot] [PATCH] [NEXT]arm: Enable dcache in jadecpu 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Enabling d cache leads to greatly improved image decompression times. Signed-off-by: Matthias Weisser --- board/syteco/jadecpu/jadecpu.c | 1 + include/configs/jadecpu.h | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/board/syteco/jadecpu/jadecpu.c b/board/syteco/jadecpu/jadecpu.c index 69476f8..4919e06 100644 --- a/board/syteco/jadecpu/jadecpu.c +++ b/board/syteco/jadecpu/jadecpu.c @@ -44,6 +44,7 @@ int board_init(void) gd->bd->bi_boot_params = PHYS_SDRAM + PHYS_SDRAM_SIZE - 0x10000; icache_enable(); + dcache_enable(); return 0; } diff --git a/include/configs/jadecpu.h b/include/configs/jadecpu.h index c119392..5a41c89 100644 --- a/include/configs/jadecpu.h +++ b/include/configs/jadecpu.h @@ -129,6 +129,7 @@ #define CONFIG_CMD_FAT 1 #define CONFIG_CMD_PING 1 #define CONFIG_CMD_USB 1 +#define CONFIG_CMD_CACHE #define CONFIG_SYS_HUSH_PARSER #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "