From: Simon Glass Date: Mon, 9 Jan 2012 13:22:15 +0000 (+0000) Subject: tegra2: Enable data cache X-Git-Tag: v2012.04-rc1~243 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd29cb05f2bd655a15ba32d96a0b4028b83be320;p=u-boot tegra2: Enable data cache This enables the data cache on Tegra2 boards. As discussed on the list, this is better off in the Tegra2 cpu code than in a particular vendor directory. We should be safe turning on the cache for all Tegra2 boards. Signed-off-by: Simon Glass Acked-by: Stephen Warren Signed-off-by: Tom Warren --- diff --git a/arch/arm/cpu/armv7/tegra2/board.c b/arch/arm/cpu/armv7/tegra2/board.c index 8e28d08247..349d50e1ac 100644 --- a/arch/arm/cpu/armv7/tegra2/board.c +++ b/arch/arm/cpu/armv7/tegra2/board.c @@ -141,3 +141,11 @@ void board_init_uart_f(void) #endif setup_uarts(uart_ids); } + +#ifndef CONFIG_SYS_DCACHE_OFF +void enable_caches(void) +{ + /* Enable D-cache. I-cache is already enabled in start.S */ + dcache_enable(); +} +#endif