From 9cfc05985319c52933d84a7609fc8b143b1ff18a Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Sun, 20 Mar 2016 18:37:07 -0700 Subject: pxa: add support for D- and I- caches Tested with OHCI and pxafb drivers - no issues found Signed-off-by: Vasily Khoruzhick --- arch/arm/cpu/pxa/pxa2xx.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arch/arm/cpu/pxa/pxa2xx.c') diff --git a/arch/arm/cpu/pxa/pxa2xx.c b/arch/arm/cpu/pxa/pxa2xx.c index 2f12fb9c82..77f0ef2de4 100644 --- a/arch/arm/cpu/pxa/pxa2xx.c +++ b/arch/arm/cpu/pxa/pxa2xx.c @@ -284,3 +284,13 @@ void reset_cpu(ulong ignored) for (;;) ; } + +void enable_caches(void) +{ +#ifndef CONFIG_SYS_ICACHE_OFF + icache_enable(); +#endif +#ifndef CONFIG_SYS_DCACHE_OFF + dcache_enable(); +#endif +} -- cgit v1.2.1