mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 20:32:22 +00:00
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>
This commit is contained in:
parent
cf30056384
commit
b829037136
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user