]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: i.MX6: add i.MX6 specific L2 cache configuration
authorDirk Behme <dirk.behme@de.bosch.com>
Fri, 26 Apr 2013 08:13:56 +0000 (10:13 +0200)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:53:42 +0000 (09:53 +0800)
commitf9ff27b09f3debe42ac428da9b0875b4d30a1004
treeeb442dc6971b59a6b833ffc5446c2e2fa27f7db4
parentff62146b72ece42a1a7906a09a9c3bdb619728ae
ARM: i.MX6: add i.MX6 specific L2 cache configuration

Commit b3a9c315378ff811bf34393f2f0a6e8b9ffced3b upstream.

To improve the performance and power consumption add an i.MX6
specific L2 cache initialization.

This configuration is taken from Freescale's kernel patch

"ENGR00153601 [MX6]Adjust L2 cache parameter" [1]

with two additional improvements:

a) The L2X0_POWER_CTRL has only the two bits we set. So no need
   to read the register before. Remove the register read done
   in Freescale's patch.

b) In the L2X0_PREFETCH_CTRL register, besides the double linefill (bit[30]),
   additionally enable the instruction and data prefetch (bit[29-28]).

Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
[1] http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/arch/arm/mach-mx6/mm.c?h=imx_3.0.35_12.09.01&id=814656410b40c67a10b25300e51b0477b2bb96d1
arch/arm/mach-imx/mach-imx6q.c