public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Enabling cache on ARM
@ 2011-10-31 14:36 Fabio Estevam
  2011-10-31 15:09 ` Stefano Babic
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2011-10-31 14:36 UTC (permalink / raw)
  To: u-boot

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

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

Thanks,

Fabio Estevam

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] Enabling cache on ARM
  2011-10-31 14:36 [U-Boot] Enabling cache on ARM Fabio Estevam
@ 2011-10-31 15:09 ` Stefano Babic
  0 siblings, 0 replies; 2+ messages in thread
From: Stefano Babic @ 2011-10-31 15:09 UTC (permalink / raw)
  To: u-boot

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
=====================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-31 15:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-31 14:36 [U-Boot] Enabling cache on ARM Fabio Estevam
2011-10-31 15:09 ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox