Commit fc147310 authored by Andrey Smirnov's avatar Andrey Smirnov Committed by Russell King

ARM: 8592/1: cache-l2x0.c: Replace magic numbers

Replace magic numbers used for L310 Prefetch Control Register
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarAndrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 7d281b62
...@@ -710,8 +710,10 @@ static void __init l2c310_fixup(void __iomem *base, u32 cache_id, ...@@ -710,8 +710,10 @@ static void __init l2c310_fixup(void __iomem *base, u32 cache_id,
revision < L310_CACHE_ID_RTL_R3P2) { revision < L310_CACHE_ID_RTL_R3P2) {
u32 val = l2x0_saved_regs.prefetch_ctrl; u32 val = l2x0_saved_regs.prefetch_ctrl;
/* I don't think bit23 is required here... but iMX6 does so */ /* I don't think bit23 is required here... but iMX6 does so */
if (val & (BIT(30) | BIT(23))) { if (val & (L310_PREFETCH_CTRL_DBL_LINEFILL |
val &= ~(BIT(30) | BIT(23)); L310_PREFETCH_CTRL_DBL_LINEFILL_INCR)) {
val &= ~(L310_PREFETCH_CTRL_DBL_LINEFILL |
L310_PREFETCH_CTRL_DBL_LINEFILL_INCR);
l2x0_saved_regs.prefetch_ctrl = val; l2x0_saved_regs.prefetch_ctrl = val;
errata[n++] = "752271"; errata[n++] = "752271";
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment