drivers: qcom: rpmh: add RPMH helper functions
authorLina Iyer <ilina@codeaurora.org>
Wed, 20 Jun 2018 13:27:01 +0000 (18:57 +0530)
committerAndy Gross <andy.gross@linaro.org>
Sat, 21 Jul 2018 18:32:40 +0000 (13:32 -0500)
commitc1038456b02b86cc4445441a8d33c5aca0ac103e
tree6f46aa9f6099d620b67b72c3faec2eafeb4a35cd
parentfc087fe5a45e7210be89fe015505e1bb3746395c
drivers: qcom: rpmh: add RPMH helper functions

Sending RPMH requests and waiting for response from the controller
through a callback is common functionality across all platform drivers.
To simplify drivers, add a library functions to create RPMH client and
send resource state requests.

rpmh_write() is a synchronous blocking call that can be used to send
active state requests.

Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/Makefile
drivers/soc/qcom/rpmh-internal.h
drivers/soc/qcom/rpmh-rsc.c
drivers/soc/qcom/rpmh.c [new file with mode: 0644]
include/soc/qcom/rpmh.h [new file with mode: 0644]