commit | b1670097607c2e6841a4bb196d628e32d3063125 | [log] [tgz] |
---|---|---|
author | Vasily Khoruzhick <anarsoul@gmail.com> | Sun Mar 20 18:37:07 2016 -0700 |
committer | Tom Rini <trini@konsulko.com> | Sun Mar 27 09:13:00 2016 -0400 |
tree | c69d20955f63785f9da083a0253b073141723001 | |
parent | 3b5ab6228ba0d33d3df1c7c7fa4e0b13b58f45d7 [diff] [blame] |
pxa: add support for D- and I- caches Tested with OHCI and pxafb drivers - no issues found Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
diff --git a/arch/arm/cpu/pxa/pxa2xx.c b/arch/arm/cpu/pxa/pxa2xx.c index 2f12fb9..77f0ef2 100644 --- a/arch/arm/cpu/pxa/pxa2xx.c +++ b/arch/arm/cpu/pxa/pxa2xx.c
@@ -284,3 +284,13 @@ for (;;) ; } + +void enable_caches(void) +{ +#ifndef CONFIG_SYS_ICACHE_OFF + icache_enable(); +#endif +#ifndef CONFIG_SYS_DCACHE_OFF + dcache_enable(); +#endif +}