ARM: cache-l2x0: update workaround for PL310 errata 727915
authorColin Cross <ccross@android.com>
Wed, 14 Sep 2011 22:59:50 +0000 (15:59 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:34:59 +0000 (13:34 -0700)
commit019f791ddf8fcabad913aa66866ad9f891152c57
tree15f44ab6a00ba0c9a89e1ad96db3294fc55aa6e3
parentdf99953c42c67348f11cef42c420067e5f9a3239
ARM: cache-l2x0: update workaround for PL310 errata 727915

ARM errata 727915 for PL310 has been updated to include a new
workaround required for PL310 r2p0 for l2x0_flush_all, which also
affects l2x0_clean_all in my testing.  For r2p0, clean or flush
each set/way individually.  For r3p0 or greater, use the debug
register for cleaning and flushing.

Requires exporting the cache_id, sets and ways detected in the
init function for later use.

Change-Id: I215055cbe5dc7e4e8184fb2befc4aff672ef0a12
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/include/asm/hardware/cache-l2x0.h
arch/arm/mm/cache-l2x0.c