diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2016-03-20 18:37:07 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-27 09:13:00 -0400 |
commit | 9cfc05985319c52933d84a7609fc8b143b1ff18a (patch) | |
tree | c69d20955f63785f9da083a0253b073141723001 /arch/arm/cpu/pxa/pxa2xx.c | |
parent | 9ddde3e6ce8abd97d397e3915204a6981d287e42 (diff) | |
download | blackbird-obmc-uboot-9cfc05985319c52933d84a7609fc8b143b1ff18a.tar.gz blackbird-obmc-uboot-9cfc05985319c52933d84a7609fc8b143b1ff18a.zip |
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>
Diffstat (limited to 'arch/arm/cpu/pxa/pxa2xx.c')
-rw-r--r-- | arch/arm/cpu/pxa/pxa2xx.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 +} |