Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1425904
| From | Andrey Smirnov <andrew.smirnov@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v4 3/5] i.MX: system.c: Replace magic numbers |
| Date | 2016-06-19 03:20 +0200 |
| Message-ID | <rLzz4-3qF-7@gated-at.bofh.it> (permalink) |
| References | <rLzpn-3nt-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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>
---
arch/arm/mach-imx/system.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-imx/system.c b/arch/arm/mach-imx/system.c
index b153376..76d7ebe 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);
}
--
2.5.5
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v4 0/5] i.MX L2-cache code cleanups and performance tweaks Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-06-19 03:10 +0200 [PATCH v4 2/5] i.MX: system.c: Remove redundant errata 752271 code Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-06-19 03:20 +0200 [PATCH v4 4/5] i.MX: system.c: Tweak prefetch settings for performance Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-06-19 03:20 +0200 [PATCH v4 1/5] i.MX: system.c: Convert goto to if statement Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-06-19 03:20 +0200 [PATCH v4 3/5] i.MX: system.c: Replace magic numbers Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-06-19 03:20 +0200 [PATCH v4 5/5] i.MX: Do not explicitly call l2x0_of_init() Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-06-19 03:20 +0200 Re: [PATCH v4 0/5] i.MX L2-cache code cleanups and performance tweaks Shawn Guo <shawnguo@kernel.org> - 2016-06-21 15:50 +0200
csiph-web