diff options
author | Namhoon Kim <namhoonk@cs.unc.edu> | 2014-11-03 21:53:47 -0500 |
---|---|---|
committer | Namhoon Kim <namhoonk@cs.unc.edu> | 2014-11-03 21:53:47 -0500 |
commit | d0cc5b0897b74201fe1ca363ce1d980b5dbefff5 (patch) | |
tree | 870373a54076eb7ac8b9e246ea3bec004c0c7e87 /arch/arm/mm/cache-l2x0.c | |
parent | 5c2112a210e8654d96e3f4c0395f1a326f28666f (diff) |
Added cache /proc
Diffstat (limited to 'arch/arm/mm/cache-l2x0.c')
-rw-r--r-- | arch/arm/mm/cache-l2x0.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index c465faca51b0..5efe6b6e9d53 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c | |||
@@ -27,6 +27,8 @@ | |||
27 | #include <asm/hardware/cache-l2x0.h> | 27 | #include <asm/hardware/cache-l2x0.h> |
28 | #include "cache-aurora-l2.h" | 28 | #include "cache-aurora-l2.h" |
29 | 29 | ||
30 | #include <litmus/cache_proc.h> | ||
31 | |||
30 | #define CACHE_LINE_SIZE 32 | 32 | #define CACHE_LINE_SIZE 32 |
31 | 33 | ||
32 | static void __iomem *l2x0_base; | 34 | static void __iomem *l2x0_base; |
@@ -393,6 +395,8 @@ void __init l2x0_init(void __iomem *base, u32 aux_val, u32 aux_mask) | |||
393 | l2x0_unlock(cache_id); | 395 | l2x0_unlock(cache_id); |
394 | 396 | ||
395 | /* l2x0 controller is disabled */ | 397 | /* l2x0 controller is disabled */ |
398 | //aux |= (1 << 12); | ||
399 | //printk("AUX BIT = %08x\n", aux); | ||
396 | writel_relaxed(aux, l2x0_base + L2X0_AUX_CTRL); | 400 | writel_relaxed(aux, l2x0_base + L2X0_AUX_CTRL); |
397 | 401 | ||
398 | l2x0_inv_all(); | 402 | l2x0_inv_all(); |
@@ -420,6 +424,8 @@ void __init l2x0_init(void __iomem *base, u32 aux_val, u32 aux_mask) | |||
420 | printk(KERN_INFO "%s cache controller enabled\n", type); | 424 | printk(KERN_INFO "%s cache controller enabled\n", type); |
421 | printk(KERN_INFO "l2x0: %d ways, CACHE_ID 0x%08x, AUX_CTRL 0x%08x, Cache size: %d B\n", | 425 | printk(KERN_INFO "l2x0: %d ways, CACHE_ID 0x%08x, AUX_CTRL 0x%08x, Cache size: %d B\n", |
422 | ways, cache_id, aux, l2x0_size); | 426 | ways, cache_id, aux, l2x0_size); |
427 | |||
428 | litmus_setup_lockdown(l2x0_base, cache_id); | ||
423 | } | 429 | } |
424 | 430 | ||
425 | #ifdef CONFIG_OF | 431 | #ifdef CONFIG_OF |