From patchwork Thu Sep 8 22:20:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot] tegra2: Enable data cache Date: Thu, 08 Sep 2011 12:20:16 -0000 From: Simon Glass X-Patchwork-Id: 113993 Message-Id: <1315520416-6407-1-git-send-email-sjg@chromium.org> To: U-Boot Mailing List Cc: Tom Warren 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