From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Wed, 02 Oct 2013 10:36:53 +0200 Subject: [U-Boot] [PATCH] ARM: mx5: Enable L2 cache In-Reply-To: <1380557812-1460-1-git-send-email-fabio.estevam@freescale.com> References: <1380557812-1460-1-git-send-email-fabio.estevam@freescale.com> Message-ID: <524BDB25.6080505@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Fabio, On 30/09/2013 18:16, Fabio Estevam wrote: > Enable L2 cache for improving the system performance. > > Signed-off-by: Fabio Estevam > --- > arch/arm/cpu/armv7/mx5/lowlevel_init.S | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/arm/cpu/armv7/mx5/lowlevel_init.S b/arch/arm/cpu/armv7/mx5/lowlevel_init.S > index fc7c767..e4cd85c 100644 > --- a/arch/arm/cpu/armv7/mx5/lowlevel_init.S > +++ b/arch/arm/cpu/armv7/mx5/lowlevel_init.S > @@ -45,6 +45,12 @@ > #endif > > mcr 15, 1, r0, c9, c0, 2 > + > + /* enable L2 cache */ > + mrc 15, 0, r0, c1, c0, 1 > + orr r0, r0, #2 > + mcr 15, 0, r0, c1, c0, 1 > + > .endm /* init_l2cc */ > > /* AIPS setup - Only setup MPROTx registers. > This is a repost from a your previous patch on August, 19th, where you report slow tftp transfer even with L2-cache enable. Was this issue solved or it is completeley unrelated to the cache ? Best regards, Stefano -- ===================================================================== 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 =====================================================================