From patchwork Thu Sep 8 22:20:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 113993 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 BC773B70BD for ; Fri, 9 Sep 2011 08:20:37 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DDB3E2835F; Fri, 9 Sep 2011 00:20:35 +0200 (CEST) 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 co-6T1kkA-Yj; Fri, 9 Sep 2011 00:20:35 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4899E28356; Fri, 9 Sep 2011 00:20:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6D96828317 for ; Fri, 9 Sep 2011 00:20:31 +0200 (CEST) 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 xl1y1C7OvQYN for ; Fri, 9 Sep 2011 00:20:30 +0200 (CEST) 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 smtp-out.google.com (smtp-out.google.com [74.125.121.67]) by theia.denx.de (Postfix) with ESMTPS id C0E952825D for ; Fri, 9 Sep 2011 00:20:29 +0200 (CEST) Received: from hpaq14.eem.corp.google.com (hpaq14.eem.corp.google.com [172.25.149.14]) by smtp-out.google.com with ESMTP id p88MKN8q023756; Thu, 8 Sep 2011 15:20:23 -0700 Received: from sglass.mtv.corp.google.com (sglass.mtv.corp.google.com [172.22.72.144]) by hpaq14.eem.corp.google.com with ESMTP id p88MKLZJ025032; Thu, 8 Sep 2011 15:20:22 -0700 Received: by sglass.mtv.corp.google.com (Postfix, from userid 121222) id 56C34140A02; Thu, 8 Sep 2011 15:20:21 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Thu, 8 Sep 2011 15:20:16 -0700 Message-Id: <1315520416-6407-1-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.3.1 X-System-Of-Record: true Cc: Tom Warren Subject: [U-Boot] [PATCH] tegra2: Enable data cache 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 This enables the data cache on Tegra2 boards. Signed-off-by: Simon Glass --- board/nvidia/common/board.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 160dac8..031cc68 100644 --- a/board/nvidia/common/board.c +++ b/board/nvidia/common/board.c @@ -307,3 +307,11 @@ int board_mmc_getcd(u8 *cd, struct mmc *mmc) return 0; } #endif + +#ifndef CONFIG_SYS_DCACHE_OFF +void enable_caches(void) +{ + /* Enable D-cache. I-cache is already enabled in start.S */ + dcache_enable(); +} +#endif