aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2016-06-18 21:09:29 -0400
committerShawn Guo <shawnguo@kernel.org>2016-06-21 08:40:25 -0400
commitb829037136766abf34456e2406bab67d689b3538 (patch)
tree10401c3bcdbb921ab419db0b4bc248104739bcdd /arch/arm/mach-imx
parentcf30056384dfb2e3efc0cf0404979a24a1f5c194 (diff)
ARM: i.MX: system.c: Replace magic numbers
Replace magic numbers used to form L310 Prefetch Control Register value. Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/system.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/system.c b/arch/arm/mach-imx/system.c
index b1533768adb0..76d7ebe883d7 100644
--- a/arch/arm/mach-imx/system.c
+++ b/arch/arm/mach-imx/system.c
@@ -109,7 +109,10 @@ void __init imx_init_l2cache(void)
109 if (!(readl_relaxed(l2x0_base + L2X0_CTRL) & L2X0_CTRL_EN)) { 109 if (!(readl_relaxed(l2x0_base + L2X0_CTRL) & L2X0_CTRL_EN)) {
110 /* Configure the L2 PREFETCH and POWER registers */ 110 /* Configure the L2 PREFETCH and POWER registers */
111 val = readl_relaxed(l2x0_base + L310_PREFETCH_CTRL); 111 val = readl_relaxed(l2x0_base + L310_PREFETCH_CTRL);
112 val |= 0x70800000; 112 val |= L310_PREFETCH_CTRL_DBL_LINEFILL |
113 L310_PREFETCH_CTRL_INSTR_PREFETCH |
114 L310_PREFETCH_CTRL_DATA_PREFETCH |
115 L310_PREFETCH_CTRL_DBL_LINEFILL_INCR;
113 writel_relaxed(val, l2x0_base + L310_PREFETCH_CTRL); 116 writel_relaxed(val, l2x0_base + L310_PREFETCH_CTRL);
114 } 117 }
115 118