public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Enabling cache on ARM
Date: Mon, 31 Oct 2011 16:09:17 +0100	[thread overview]
Message-ID: <4EAEBA1D.6030901@denx.de> (raw)
In-Reply-To: <CAOMZO5DeX51==Jr7U537qLp7CwFpdPCxx0DicF64+Tg0Po2ciQ@mail.gmail.com>

On 10/31/2011 03:36 PM, Fabio Estevam wrote:
> Hi Stefano and Albert,
> 
> I would like to enable cache on some i.MX boards (ARM9, ARM11 and Cortex-A8).
> 
> Are there any boards I could use as a reference on how to properly
> implement this?
> 
> I thought I should simply do:
> 
> #undef CONFIG_SYS_ICACHE_OFF
> #undef CONFIG_SYS_DCACHE_OFF

This is not enough, at least for systems where cache is not yet supported.

> 
> ,but still I get a 'WARNING: Caches not enabled' message when I do this.

The reason is that enable_caches is missing for i.MX targets. You can
try to add enable_caches inside your board file, and implement it
calling dcache_enable().

However, i.MX drivers are actually proofed to be faulty when the cache
is enabled. At least the FEC driver and the MMC driver must be changed
to make them working when cache is on.

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-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

      reply	other threads:[~2011-10-31 15:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-31 14:36 [U-Boot] Enabling cache on ARM Fabio Estevam
2011-10-31 15:09 ` 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=4EAEBA1D.6030901@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