imx: Check the PL310 version for applying errata
authorYe Li <ye.li@nxp.com>
Mon, 7 Jan 2019 09:29:21 +0000 (09:29 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 28 Jan 2019 19:55:46 +0000 (20:55 +0100)
commitd8bbf362f3dc87326597217b8bab083516cf534f
tree7e3d30d31af9b491374bbf9bcab02222d73bd491
parent56ac8104e3aed2afd9f164186beefc49ef4fdcc6
imx: 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>
Signed-off-by: Ye Li <ye.li@nxp.com>
arch/arm/include/asm/pl310.h
arch/arm/mach-imx/cache.c