From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Enabling L2 cache on mx53
Date: Tue, 20 Aug 2013 09:21:46 +0200 [thread overview]
Message-ID: <5213190A.2020807@denx.de> (raw)
In-Reply-To: <201308192231.28535.marex@denx.de>
Hi Marek,
On 19/08/2013 22:31, Marek Vasut wrote:
> Dear Fabio Estevam,
>
>> Hi Marek,
>>
>> On Mon, Aug 19, 2013 at 4:51 PM, Marek Vasut <marex@denx.de> wrote:
>>> L2CC on MX53 is enabled by setting just the L2ON and C bits in CP15,
>>> there's no configuration. Not even Linux enables the L2CC on MX53, so if
>>> it's not on in U- Boot, then it's not on at all (and that sucks).
>>
>> This is what I have done:
>>
>> --- a/arch/arm/cpu/armv7/mx5/
>> lowlevel_init.S
>> +++ b/arch/arm/cpu/armv7/mx5/lowlevel_init.S
>> @@ -45,6 +45,11 @@
>> #endif
>>
>> mcr 15, 1, r0, c9, c0, 2
>> +
>> + /* enable L2 cache */
>> + mrc 15, 0, r0, c1, c0, 1
>> + orr r0, r0, #(1 << 1) /* enable l2 cache */
>> + mcr 15, 0, r0, c1, c0, 1
>> .endm /* init_l2cc */
>>
>> /* AIPS setup - Only setup MPROTx registers.
>>
>> Anything else I am missing?
>
> Try profiling the RX routine, maybe it's looping somewhere there for too long.
>
But the RX routine belongs to the FEC driver that it is used by all
i.MXes. Is there maybe a problem with the phy and the negotiated speed
is less than expected ?
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
prev parent reply other threads:[~2013-08-20 7:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-19 13:55 [U-Boot] Enabling L2 cache on mx53 Fabio Estevam
2013-08-19 15:16 ` Dirk Behme
2013-08-19 15:22 ` Fabio Estevam
2013-08-19 19:51 ` Marek Vasut
2013-08-19 20:26 ` Fabio Estevam
2013-08-19 20:31 ` Marek Vasut
2013-08-20 7:21 ` Stefano Babic [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=5213190A.2020807@denx.de \
--to=sbabic@denx.de \
--cc=u-boot@lists.denx.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