Lines Matching +full:v7 +full:- +full:r
2 * arch/arm/mm/cache-tauros2.c - Tauros2 L2 cache controller support
11 * - PJ1 CPU Core Datasheet,
12 * Document ID MV-S104837-01, Rev 0.7, January 24 2008.
13 * - PJ4 CPU Core Datasheet,
14 * Document ID MV-S105190-00, Rev 0.7, March 14 2008.
23 #include <asm/hardware/cache-tauros2.h>
32 * When Tauros2 is used on a CPU that supports the v7 hierarchical
33 * cache operations, the cache handling code in proc-v7.S takes care
37 * being used on a pre-v7 CPU, and we only need to build support for
39 * configured to support a pre-v7 CPU.
43 * Low-level cache maintenance operations.
47 __asm__("mcr p15, 1, %0, c7, c11, 3" : : "r" (addr)); in tauros2_clean_pa()
52 __asm__("mcr p15, 1, %0, c7, c15, 3" : : "r" (addr)); in tauros2_clean_inv_pa()
57 __asm__("mcr p15, 1, %0, c7, c7, 3" : : "r" (addr)); in tauros2_inv_pa()
74 if (start & (CACHE_LINE_SIZE - 1)) { in tauros2_inv_range()
75 tauros2_clean_inv_pa(start & ~(CACHE_LINE_SIZE - 1)); in tauros2_inv_range()
76 start = (start | (CACHE_LINE_SIZE - 1)) + 1; in tauros2_inv_range()
82 if (end & (CACHE_LINE_SIZE - 1)) { in tauros2_inv_range()
83 tauros2_clean_inv_pa(end & ~(CACHE_LINE_SIZE - 1)); in tauros2_inv_range()
84 end &= ~(CACHE_LINE_SIZE - 1); in tauros2_inv_range()
100 start &= ~(CACHE_LINE_SIZE - 1); in tauros2_clean_range()
111 start &= ~(CACHE_LINE_SIZE - 1); in tauros2_flush_range()
127 : : "r" (0x0)); in tauros2_disable()
137 : : "r" (0x0)); in tauros2_resume()
145 __asm__("mrc p15, 1, %0, c15, c1, 0" : "=r" (u)); in read_extra_features()
152 __asm__("mcr p15, 1, %0, c15, c1, 0" : : "r" (u)); in write_extra_features()
164 __asm__("mrc p15, 0, %0, c0, c1, 7\n" : "=r" (mmfr3)); in read_mmfr3()
173 __asm__("mrc p15, 0, %0, c1, c0, 1\n" : "=r" (actlr)); in read_actlr()
180 __asm__("mcr p15, 0, %0, c1, c0, 1\n" : : "r" (actlr)); in write_actlr()
239 * Check whether this CPU has support for the v7 hierarchical in tauros2_internal_init()
240 * cache ops. (PJ4 is in its v7 personality mode if the MMFR3 in tauros2_internal_init()
241 * register indicates support for the v7 hierarchical cache in tauros2_internal_init()
245 * implement the v7 cache ops but are only ARMv6 CPUs (due to in tauros2_internal_init()
247 * there are no real-life examples of Tauros2 being used on in tauros2_internal_init()
257 * ARMv7 spec to contain fine-grained cache control bits). in tauros2_internal_init()
280 { .compatible = "marvell,tauros2-cache"},
294 pr_info("Not found marvell,tauros2-cache, disable it\n"); in tauros2_init()
296 ret = of_property_read_u32(node, "marvell,tauros2-cache-features", &f); in tauros2_init()
298 pr_info("Not found marvell,tauros-cache-features property, " in tauros2_init()