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)
committerColin Cross <ccross@android.com>
Tue, 20 Sep 2011 06:35:45 +0000 (23:35 -0700)
commit5ea3a7c6c63a2d9a5abc569696fb9d3e82a31c8d
tree1c29d3754514af5108017ba7ae4c97e8f5bab5cb
parent5cd52e05024319101e86e948f6c1983cb4d3c496
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