From: Andrey Smirnov <andrew.smirnov@gmail.com>
To: linux-arm-kernel@lists.infradead.org
Cc: "Andrey Smirnov" <andrew.smirnov@gmail.com>,
"Russell King" <linux@arm.linux.org.uk>,
"Shawn Guo" <shawnguo@kernel.org>,
"Sascha Hauer" <kernel@pengutronix.de>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Arnd Bergmann" <arnd@arndb.de>,
linux-kernel@vger.kernel.org
Subject: [PATCH v4 3/5] i.MX: system.c: Replace magic numbers
Date: Sat, 18 Jun 2016 18:09:29 -0700 [thread overview]
Message-ID: <1466298571-7888-4-git-send-email-andrew.smirnov@gmail.com> (raw)
In-Reply-To: <1466298571-7888-1-git-send-email-andrew.smirnov@gmail.com>
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
next prev parent reply other threads:[~2016-06-19 1:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-19 1:09 [PATCH v4 0/5] i.MX L2-cache code cleanups and performance tweaks Andrey Smirnov
2016-06-19 1:09 ` [PATCH v4 1/5] i.MX: system.c: Convert goto to if statement Andrey Smirnov
2016-06-19 1:09 ` [PATCH v4 2/5] i.MX: system.c: Remove redundant errata 752271 code Andrey Smirnov
2016-06-19 1:09 ` Andrey Smirnov [this message]
2016-06-19 1:09 ` [PATCH v4 4/5] i.MX: system.c: Tweak prefetch settings for performance Andrey Smirnov
2016-06-19 1:09 ` [PATCH v4 5/5] i.MX: Do not explicitly call l2x0_of_init() Andrey Smirnov
2016-06-21 13:41 ` [PATCH v4 0/5] i.MX L2-cache code cleanups and performance tweaks Shawn Guo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1466298571-7888-4-git-send-email-andrew.smirnov@gmail.com \
--to=andrew.smirnov@gmail.com \
--cc=arnd@arndb.de \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=shawnguo@kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).