soc: qcom: Separate kryo l2 accessors from PMU driver
authorIlia Lin <ilialin@codeaurora.org>
Fri, 3 Jul 2020 08:49:41 +0000 (10:49 +0200)
committerStephen Boyd <sboyd@kernel.org>
Sat, 11 Jul 2020 00:08:55 +0000 (17:08 -0700)
commit6d0efeb14bbe2350a94ba07b403a686d731c5179
treed82c1673ed7872874839fef424b819e796b2ccf9
parentdbb988b4e7eb924ffceaa2a7da6e794c868cb2f3
soc: qcom: Separate kryo l2 accessors from PMU driver

The driver provides kernel level API for other drivers
to access the MSM8996 L2 cache registers.
Separating the L2 access code from the PMU driver and
making it public to allow other drivers use it.
The accesses must be separated with a single spinlock,
maintained in this driver.

Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Link: https://lore.kernel.org/r/1593766185-16346-2-git-send-email-loic.poulain@linaro.org
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/perf/Kconfig
drivers/perf/qcom_l2_pmu.c
drivers/soc/qcom/Kconfig
drivers/soc/qcom/Makefile
drivers/soc/qcom/kryo-l2-accessors.c [new file with mode: 0644]
include/soc/qcom/kryo-l2-accessors.h [new file with mode: 0644]