From: Andrey Smirnov Date: Sun, 19 Jun 2016 01:09:29 +0000 (-0700) Subject: ARM: i.MX: system.c: Replace magic numbers X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=b829037136766abf34456e2406bab67d689b3538;p=deliverable%2Flinux.git ARM: i.MX: system.c: Replace magic numbers Replace magic numbers used to form L310 Prefetch Control Register value. Acked-by: Arnd Bergmann Signed-off-by: Andrey Smirnov Signed-off-by: Shawn Guo --- 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) if (!(readl_relaxed(l2x0_base + L2X0_CTRL) & L2X0_CTRL_EN)) { /* Configure the L2 PREFETCH and POWER registers */ val = readl_relaxed(l2x0_base + L310_PREFETCH_CTRL); - val |= 0x70800000; + val |= L310_PREFETCH_CTRL_DBL_LINEFILL | + L310_PREFETCH_CTRL_INSTR_PREFETCH | + L310_PREFETCH_CTRL_DATA_PREFETCH | + L310_PREFETCH_CTRL_DBL_LINEFILL_INCR; writel_relaxed(val, l2x0_base + L310_PREFETCH_CTRL); }