powerpc/powernv: Add support for indirect XSCOM via debugfs
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 10 Oct 2013 08:19:15 +0000 (19:19 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 6 Nov 2013 03:13:51 +0000 (14:13 +1100)
commit80546ac51396bd1d2e37cc78c7bed44c08f90352
tree07856dfa9e0381fca1495bb866775728ed6ec99c
parentcda13552d5055a87dd39334dabf47249b01fc5aa
powerpc/powernv: Add support for indirect XSCOM via debugfs

Indirect XSCOM addresses normally have the top bit set (of the 64-bit
address). This doesn't work via the normal debugfs interface, so we use
a different encoding, which we need to convert before calling OPAL.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/opal-xscom.c