spi: spi-qcom-qspi: Use OPP API to set clk/perf state
authorRajendra Nayak <rnayak@codeaurora.org>
Fri, 3 Jul 2020 09:41:31 +0000 (15:11 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 13 Jul 2020 23:15:53 +0000 (16:15 -0700)
commitf79a158d37c26015099f4a7fd7d6592bb2ad3054
tree52400c98c8a045019532f9fb3c49a1f4c5db248b
parent4bdc8c8d2815fe8ef5052c5a5ab51c04a4f0de7b
spi: spi-qcom-qspi: Use OPP API to set clk/perf state

QSPI needs to vote on a performance state of a power domain depending on
the clock rate. Add support for it by specifying the perf state/clock rate
as an OPP table in device tree.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Acked-by: Mark Brown <broonie@kernel.org>
Cc: Alok Chauhan <alokc@codeaurora.org>
Cc: Akash Asthana <akashast@codeaurora.org>
Cc: linux-spi@vger.kernel.org
Link: https://lore.kernel.org/r/1593769293-6354-2-git-send-email-rnayak@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/spi/spi-qcom-qspi.c