Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8290371 authored by Andrey Smirnov's avatar Andrey Smirnov Committed by Shawn Guo
Browse files

ARM: i.MX: system.c: Replace magic numbers



Replace magic numbers used to form L310 Prefetch Control Register value.

Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarAndrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent cf300563
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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);
	}