spmi: pmic-arb: add support for HW version 5
authorDavid Collins <collinsd@codeaurora.org>
Fri, 28 Jul 2017 07:10:46 +0000 (12:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 11:51:19 +0000 (13:51 +0200)
commit40f318f0ed674e0cd12e2dfcb5af71577ea58b4e
tree03643e066a9a6f20558f3def6f62a630e9d2c1f1
parent000e1a43d3d2d4541f10be997c1609b69beb22d5
spmi: pmic-arb: add support for HW version 5

Add support for version 5 of the SPMI PMIC arbiter.  It utilizes
different offsets for registers than those found on version 3.
Also, the procedure to determine if writing and IRQ access is
allowed for a given PPID changes for version 5.

Signed-off-by: David Collins <collinsd@codeaurora.org>
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spmi/spmi-pmic-arb.c