clk: qcom: Add lpass clock controller driver for SDM845
authorTaniya Das <tdas@codeaurora.org>
Fri, 30 Nov 2018 18:21:29 +0000 (23:51 +0530)
committerStephen Boyd <sboyd@kernel.org>
Mon, 3 Dec 2018 17:38:05 +0000 (09:38 -0800)
commit8d3e5b9c1f2cdb9c81073e1f51643617078076ed
tree85965b236707862f2ab9e4a61a5b6e332bf540c4
parent8ff1a156cb0b40a267fe7a2c69c06a6d566a7524
clk: qcom: Add lpass clock controller driver for SDM845

Add support for the lpass clock controller found on SDM845 based devices.
This would allow lpass peripheral loader drivers to control the clocks to
bring the subsystem out of reset.
LPASS clocks present on the global clock controller would be registered
with the clock framework based on the protected-clock flag. Also do not
gate these clocks if they are left unused, as the lpass clocks require
the global clock controller lpass clocks to be enabled before they are
accessed. Mark the GCC lpass clocks as CRITICAL, for the LPASS clock
access.

Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/Kconfig
drivers/clk/qcom/Makefile
drivers/clk/qcom/gcc-sdm845.c
drivers/clk/qcom/lpasscc-sdm845.c [new file with mode: 0644]