From cb0aeef0a9ef58049a093eb42b8c7f06c9e1b271 Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Mon, 8 Jul 2013 12:27:13 +0800 Subject: libpayload: armv7: Add cache control function to invalidate range. When dealing with DMA, we need a function to invalidate cache without corrupting contents on main memory (clean). Change-Id: I28e632ae57a7b7ed1accee74e76045b92f92a699 Signed-off-by: Hung-Te Lin Reviewed-on: https://gerrit.chromium.org/gerrit/61078 Reviewed-by: Gabe Black Commit-Queue: Gabe Black Reviewed-on: http://review.coreboot.org/4345 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- payloads/libpayload/include/armv7/arch/cache.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'payloads/libpayload/include') diff --git a/payloads/libpayload/include/armv7/arch/cache.h b/payloads/libpayload/include/armv7/arch/cache.h index 1db86dc57c..2571e81c35 100644 --- a/payloads/libpayload/include/armv7/arch/cache.h +++ b/payloads/libpayload/include/armv7/arch/cache.h @@ -266,6 +266,9 @@ void dcache_clean_by_mva(unsigned long addr, unsigned long len); /* dcache clean and invalidate by modified virtual address to PoC */ void dcache_clean_invalidate_by_mva(unsigned long addr, unsigned long len); +/* dcache invalidate by modified virtual address to PoC */ +void dcache_invalidate_by_mva(unsigned long addr, unsigned long len); + /* dcache invalidate all (on current level given by CCSELR) */ void dcache_invalidate_all(void); -- cgit v1.2.3