ARM: 8602/1: factor out CSSELR/CCSIDR operations that use cp15 directly
authorJonathan Austin <jonathan.austin@arm.com>
Tue, 30 Aug 2016 16:24:34 +0000 (17:24 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 6 Sep 2016 14:51:06 +0000 (15:51 +0100)
commit26150aa96d60298de669e3d81a5b7e132b653ce7
treecf449a3d4eb97dec8a3a4d6ca49bda0f561ea74d
parent5a0e0691147a7f841ddb54d067b165071dff592f
ARM: 8602/1: factor out CSSELR/CCSIDR operations that use cp15 directly

Currently we use raw cp15 operations to access the cache setup data.

This patch abstracts the CSSELR and CCSIDR accessors out to a header so
that the implementation for them can be switched out as we do with other
cpu/cachetype operations.

Signed-off-by: Jonathan Austin <jonathan.austin@arm.com>
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Tested-by: Andras Szemzo <sza@esh.hu>
Tested-by: Joachim Eastwood <manabian@gmail.com>
Tested-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/cachetype.h
arch/arm/kernel/setup.c