tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state
authorRajendra Nayak <rnayak@codeaurora.org>
Mon, 15 Jun 2020 12:02:39 +0000 (17:32 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 25 Jun 2020 05:03:08 +0000 (22:03 -0700)
commita5819b548af0cc0fd0b84fa3e35723c4c36f157c
tree24482fdc90d165d97e1dc58d953e00e2131d24dd
parentcff80645d6d3134260d2ef007a7decb1edcfd4a6
tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state

geni serial needs to express a perforamnce state requirement on CX
powerdomain depending on the frequency of the clock rates.
Use OPP table from DT to register with OPP framework and use
dev_pm_opp_set_rate() to set the clk/perf state.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Akash Asthana <akashast@codeaurora.org>
Cc: linux-serial@vger.kernel.org
Link: https://lore.kernel.org/r/1592222564-13556-2-git-send-email-rnayak@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/tty/serial/qcom_geni_serial.c
include/linux/qcom-geni-se.h