From: festevam@gmail.com (Fabio Estevam)
To: linux-arm-kernel@lists.infradead.org
Subject: L2 Cache enable on i.MX5
Date: Thu, 25 Jun 2015 18:29:13 -0300 [thread overview]
Message-ID: <CAOMZO5A6B+m_HXZXeyWOWs2GAOXmhLunTgaOsQQL-OwSC8597w@mail.gmail.com> (raw)
In-Reply-To: <DBXPR06MB58911B5FD193722EC5BD34185AF0@DBXPR06MB589.eurprd06.prod.outlook.com>
On Wed, Jun 24, 2015 at 7:53 PM, Robert Daniels
<robert.daniels@vantagecontrols.com> wrote:
> I see - so the boot loader is not supposed to enable the L2 cache and it should
> not be enabled until after the decompressor runs.
>
> In that case, where should the kernel be enabling the L2 cache? I'm using the
> 3.14 kernel for this i.MX53 product and the L2 cache is definitely not enabled.
>
> I see that there is a imx_init_l2cache defined which is being called by the imx6
> and imx35 platform code but it is not being called for the i.mx5... should it?
Should we enable the L2 cache like it is done in Barebox?
--- a/arch/arm/mach-imx/mach-imx53.c
+++ b/arch/arm/mach-imx/mach-imx53.c
@@ -25,7 +25,13 @@
static void __init imx53_init_early(void)
{
+ unsigned int r;
+
mxc_set_cpu_type(MXC_CPU_MX53);
+
+ __asm__ __volatile__("mrc 15, 0, %0, c1, c0, 1":"=r"(r));
+ r |= 1 << 1; /* enable L2 cache */
+ __asm__ __volatile__("mcr 15, 0, %0, c1, c0, 1" : : "r"(r));
}
static void __init imx53_dt_init(void)
Regards,
Fabio Estevam
prev parent reply other threads:[~2015-06-25 21:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-24 17:10 L2 Cache enable on i.MX5 Robert Daniels
2015-06-24 17:29 ` Russell King - ARM Linux
2015-06-24 22:53 ` Robert Daniels
2015-06-24 23:13 ` Russell King - ARM Linux
2015-06-25 8:37 ` Enrico Weigelt, metux IT consult
2015-06-25 16:15 ` Robert Daniels
2015-06-25 21:29 ` Fabio Estevam [this message]
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=CAOMZO5A6B+m_HXZXeyWOWs2GAOXmhLunTgaOsQQL-OwSC8597w@mail.gmail.com \
--to=festevam@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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).