Skip to content
Commit 7a1e6fb1 authored by Bjorn Andersson's avatar Bjorn Andersson
Browse files

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: default avatarBaolin Wang <baolin.wang7@gmail.com>
Reviewed-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20200622075956.171058-4-bjorn.andersson@linaro.org
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent d6a9f0c8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment