]> git.baikalelectronics.ru Git - kernel.git/commit
hwspinlock: qcom: Allow mmio usage in addition to syscon
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 22 Jun 2020 07:59:55 +0000 (00:59 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 14 Jul 2020 05:29:28 +0000 (22:29 -0700)
commit3c46db441afd6f169588a6c8e23b1c391563422f
tree444f26e920979ad9d906df094c36d1a50e7150d9
parent91306739e69a43886b71994470ae3b6f6723ad1a
hwspinlock: qcom: Allow mmio usage in addition to syscon

In modern Qualcomm platforms the mutex region of the TCSR is forked off
into its own block, all with a offset of 0 and stride of 4096, and in
some of these platforms no other registers in this region is accessed
from Linux.

So add support for directly memory mapping this register space, to avoid
the need to represent this block using a syscon.

Reviewed-by: Baolin Wang <baolin.wang7@gmail.com>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20200622075956.171058-4-bjorn.andersson@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/hwspinlock/qcom_hwspinlock.c