4 * http://www.dave-tech.it
5 * http://www.wawnet.biz
6 * mailto:info@wawnet.biz
8 * SPDX-License-Identifier: GPL-2.0+
13 #include <asm/hardware.h>
15 static void s3c44b0_flush_cache(void)
19 for(i=0x10002000;i<0x10004800;i+=16)
25 void icache_enable (void)
29 s3c44b0_flush_cache();
33 Non-cacheable area (everything outside RAM)
34 0x0000:0000 - 0x0C00:0000
36 NCACHBE0 = 0xC0000000;
37 NCACHBE1 = 0x00000000;
43 reg |= 0x00000006; /* 8kB */
47 void icache_disable (void)
52 reg &= ~0x00000006; /* 8kB */
56 int icache_status (void)
61 void dcache_enable (void)
66 void dcache_disable (void)
71 int dcache_status (void)
73 return dcache_status();