MLK-10496: Check the PL310 version for applying errata
authorNitin Garg <nitin.garg@freescale.com>
Fri, 27 Mar 2015 19:45:43 +0000 (14:45 -0500)
committerYe Li <ye.li@nxp.com>
Wed, 5 Apr 2017 06:04:34 +0000 (14:04 +0800)
commit4fbf9514fd56ea622fb696925b6cdfe3d78a6ba2
tree1da55c44402cd8676c141bfa78e5feac399d19d2
parent4b8cd55c465fb231ad64d4df704510d8eb8b6863
MLK-10496: Check the PL310 version for applying errata

Apply errata based on PL310 version instead of compile
time. Also set Prefetch offset to 15, since it improves
memcpy performance by 35%. Don't enable Incr double
Linefill enable since it adversely affects memcpy
performance by about 32MB/s and reads by 90MB/s. Tested
with 4K to 16MB sized src and dst aligned buffer.

Signed-off-by: Nitin Garg <nitin.garg@freescale.com>
(cherry picked from commit 31751fa9cf29ef4056f49fe06a54700a89c9bdc5)
arch/arm/imx-common/cache.c
arch/arm/include/asm/pl310.h