diff options
author | Vasili Galka <vvv444@gmail.com> | 2014-06-30 13:00:12 +0300 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-07-07 19:47:11 -0400 |
commit | a91fd00175f56e2d697c6f883f7d9b328242ca8b (patch) | |
tree | 61c1e279a2a2798d54f2ee455fff51a7c1f319cf | |
parent | 0519e80d834f18fa92c24ac42937271ea97d7347 (diff) | |
download | u-boot-imx-a91fd00175f56e2d697c6f883f7d9b328242ca8b.zip u-boot-imx-a91fd00175f56e2d697c6f883f7d9b328242ca8b.tar.gz u-boot-imx-a91fd00175f56e2d697c6f883f7d9b328242ca8b.tar.bz2 |
blackfin: Add more dcache functions
Add invalidate_dcache_range() and flush_dcache_range() for the blackfin
architecture. Such functions already exist on this arch with different
names, so just forward the call.
This fixes the build of bf609-ezkit board as it uses
drivers/net/designware.c which requires the above functions.
Cc: Sonic Zhang <sonic.adi@gmail.com>, Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vasili Galka <vvv444@gmail.com>
-rw-r--r-- | arch/blackfin/lib/cache.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/blackfin/lib/cache.c b/arch/blackfin/lib/cache.c index 0a321a4..e8a0cb5 100644 --- a/arch/blackfin/lib/cache.c +++ b/arch/blackfin/lib/cache.c @@ -111,3 +111,13 @@ int dcache_status(void) { return bfin_read_DMEM_CONTROL() & ACACHE_BCACHE; } + +void invalidate_dcache_range(unsigned long start, unsigned long stop) +{ + blackfin_dcache_flush_invalidate_range((const void *)start, (const void *)stop); +} + +void flush_dcache_range(unsigned long start, unsigned long stop) +{ + blackfin_dcache_flush_range((const void *)start, (const void *)stop); +} |