diff options
author | Wu, Josh <Josh.wu@atmel.com> | 2014-05-19 19:51:28 +0800 |
---|---|---|
committer | Andreas Bießmann <andreas.devel@googlemail.com> | 2014-06-14 18:07:03 +0200 |
commit | d337a09c30a04d14e2c35b7517105c6b2e3e48dd (patch) | |
tree | e3044ca9fdaf71eef7adc46acdc3f19b1891989d /arch | |
parent | b137bd8c8d75062719c2fe2880205f8b707a89a8 (diff) | |
download | u-boot-imx-d337a09c30a04d14e2c35b7517105c6b2e3e48dd.zip u-boot-imx-d337a09c30a04d14e2c35b7517105c6b2e3e48dd.tar.gz u-boot-imx-d337a09c30a04d14e2c35b7517105c6b2e3e48dd.tar.bz2 |
ARMv7: at91: enable ICache and DCache.
For at91 armv7 SoC (SAMA5D3x), only LCD and macb used DMA.
Now as the lcd and macb driver already support dcache. So we can
enable dcache now.
Also we can enable icache without any problem.
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/armv7/at91/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/at91/cpu.c b/arch/arm/cpu/armv7/at91/cpu.c index 2fbf60d..8d86f97 100644 --- a/arch/arm/cpu/armv7/at91/cpu.c +++ b/arch/arm/cpu/armv7/at91/cpu.c @@ -61,6 +61,8 @@ int print_cpuinfo(void) void enable_caches(void) { + icache_enable(); + dcache_enable(); } unsigned int get_chip_id(void) |