public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Enabling L2 cache on mx53
@ 2013-08-19 13:55 Fabio Estevam
  2013-08-19 15:16 ` Dirk Behme
  0 siblings, 1 reply; 7+ messages in thread
From: Fabio Estevam @ 2013-08-19 13:55 UTC (permalink / raw)
  To: u-boot

Hi,

I notice slow tftp transfer on mx53qsb and I suspected it could be due
to L2 cache being disabled.

Tried enabling with:

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


,but still see the same low tftp throughput (720 kB/s - on mx28 I see
the double rate).

Any suggestions as to how properly enable L2 cache on mx53?

Thanks,

Fabio Estevam

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

end of thread, other threads:[~2013-08-20  7:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox