aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/hardware/cache-l2x0.h
diff options
context:
space:
mode:
authorSantosh Shilimkar <santosh.shilimkar@ti.com>2010-11-19 12:31:02 -0500
committerTony Lindgren <tony@atomide.com>2010-12-18 12:30:15 -0500
commit0aaa6f8f1da195ae1a993d3e9c80d600480cf947 (patch)
treede9432838c0c7fe88cfc89c391c37929082b3eae /arch/arm/include/asm/hardware/cache-l2x0.h
parentb0c3844d8af6b9f3f18f31e1b0502fbefa2166be (diff)
ARM: l2x0: Add aux control register bitfields
This patch adds the PL310 Auxiliary Control Register bitfields so that SOC's can use these bit fields to construct the AUXCTRL value to be passed/programmed instead of hardcoding it. Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/include/asm/hardware/cache-l2x0.h')
-rw-r--r--arch/arm/include/asm/hardware/cache-l2x0.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/include/asm/hardware/cache-l2x0.h b/arch/arm/include/asm/hardware/cache-l2x0.h
index cc42d5fdee17..5aeec1e1735c 100644
--- a/arch/arm/include/asm/hardware/cache-l2x0.h
+++ b/arch/arm/include/asm/hardware/cache-l2x0.h
@@ -59,7 +59,17 @@
59#define L2X0_CACHE_ID_PART_MASK (0xf << 6) 59#define L2X0_CACHE_ID_PART_MASK (0xf << 6)
60#define L2X0_CACHE_ID_PART_L210 (1 << 6) 60#define L2X0_CACHE_ID_PART_L210 (1 << 6)
61#define L2X0_CACHE_ID_PART_L310 (3 << 6) 61#define L2X0_CACHE_ID_PART_L310 (3 << 6)
62#define L2X0_AUX_CTRL_WAY_SIZE_MASK (0x3 << 17) 62
63#define L2X0_AUX_CTRL_MASK 0xc0000fff
64#define L2X0_AUX_CTRL_ASSOCIATIVITY_SHIFT 16
65#define L2X0_AUX_CTRL_WAY_SIZE_SHIFT 17
66#define L2X0_AUX_CTRL_WAY_SIZE_MASK (0x3 << 17)
67#define L2X0_AUX_CTRL_SHARE_OVERRIDE_SHIFT 22
68#define L2X0_AUX_CTRL_NS_LOCKDOWN_SHIFT 26
69#define L2X0_AUX_CTRL_NS_INT_CTRL_SHIFT 27
70#define L2X0_AUX_CTRL_DATA_PREFETCH_SHIFT 28
71#define L2X0_AUX_CTRL_INSTR_PREFETCH_SHIFT 29
72#define L2X0_AUX_CTRL_EARLY_BRESP_SHIFT 30
63 73
64#ifndef __ASSEMBLY__ 74#ifndef __ASSEMBLY__
65extern void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask); 75extern void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask);