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)
commit7a1e6fb1c606d414320b7498e7f8357d73c972e5
tree444f26e920979ad9d906df094c36d1a50e7150d9
parentd6a9f0c8f635a9177e39db6386575bd6cdd55931
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