armv8/cache: Change cache invalidate and flush function
authorYork Sun <yorksun@freescale.com>
Wed, 26 Feb 2014 21:26:04 +0000 (13:26 -0800)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 7 Apr 2014 15:43:41 +0000 (17:43 +0200)
commit1e6ad55c058200010bb0649524a2c874e7049242
treece208690a42037bb29a34a24ea512b8d0edd0835
parent83571bcab10bc8d6d73dc77b64442dbd281afc99
armv8/cache: Change cache invalidate and flush function

When SoC first boots up, we should invalidate the cache but not flush it.
We can use the same function for invalid and flush mostly, with a wrapper.

Invalidating large cache can ben slow on emulator, so we postpone doing
so until I-cache is enabled, and before enabling D-cache.

Signed-off-by: York Sun <yorksun@freescale.com>
CC: David Feng <fenghua@phytium.com.cn>
arch/arm/cpu/armv8/cache.S
arch/arm/cpu/armv8/cache_v8.c
arch/arm/cpu/armv8/start.S
arch/arm/include/asm/system.h