]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Provide debugfs access to the LPC bus via OPAL
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 3 Jun 2014 10:07:39 +0000 (20:07 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Jun 2014 03:20:37 +0000 (13:20 +1000)
commitce934e6b362694a87dc5469c387a82eb244b4546
treeb732b892b56b9a1eb141b09827f8f104091c5e92
parent3e8566682a36716be926229b9f1fd36d3ddcf4fa
powerpc/powernv: Provide debugfs access to the LPC bus via OPAL

This provides debugfs files to access the LPC bus on Power8
non-virtualized using the appropriate OPAL firmware calls.

The usage is simple: one file per space (IO, MEM and FW),
lseek to the address and read/write the data. IO and MEM always
generate series of byte accesses. FW can generate word and dword
accesses if aligned properly.

Based on an original patch from Rob Lippert and reworked.

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