]> asedeno.scripts.mit.edu Git - linux.git/commit
firmware: qcom: scm: Refactor clock handling
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 29 Aug 2018 23:15:04 +0000 (16:15 -0700)
committerAndy Gross <andy.gross@linaro.org>
Fri, 14 Sep 2018 05:31:52 +0000 (00:31 -0500)
commit60cd420c91e28c2c10b3cde988466631bfcd35a3
tree65d4585f0ca4cad0f9abd3fcbcd229d5c8b85018
parent8a07855e66e6b8ddf452d81c6aac0b1ff3665e86
firmware: qcom: scm: Refactor clock handling

At one point in time all "future" platforms required three clocks, so
the binding and driver was written to treat this as the default case.
But new platforms has no clock requirements, which currently makes them
all a special case, causing the need for a patch in the binding and
driver for each new platform added.

This patch reworks the driver logic so that it will attempt to acquire
all three clocks and fail based on the given compatible. This allow us
to drop the clock requirement from "qcom,scm", in a way that will remain
backwards compatible with existing DT files.

Specific compatibles are added for apq8084, msm8916 and msm8974 to match
the updated binding and although equivalent to qcom,scm both ipq4019 and
msm8996 are kept as these have been used without fallback to qcom,scm.

The result of this patch is that new platforms, that require no clocks,
can be use the fallback compatible of "qcom,scm".

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/firmware/qcom_scm.c