]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soc: qcom: llcc: Add regmap for Broadcast_AND region
authorUnnathi Chalicheemala <quic_uchalich@quicinc.com>
Fri, 31 May 2024 16:45:25 +0000 (09:45 -0700)
committerBjorn Andersson <andersson@kernel.org>
Fri, 31 May 2024 22:43:57 +0000 (17:43 -0500)
commit055afc34fd219c8e2290d736ad186edd58870a9e
treeb7dc696c9a54f63ce9e4e6fa7fa05e9ed8f59f1a
parentc190f390a852a2b892dbc8a70fed08118ef056ff
soc: qcom: llcc: Add regmap for Broadcast_AND region

Until SM8450, there was only one broadcast region (Broadcast_OR)
used to broadcast write and check for status bit 0.
>From SM8450 onwards another broadcast region (Broadcast_AND) has been
added which checks for status bit 1. This hasn't been updated and
Broadcast_OR region was wrongly being used to check for status bit 1 all
along.

Hence define new regmap structure for Broadcast_AND region and initialize
this regmap when HW block version is greater than 4.1, otherwise
initialize as a NULL pointer for backwards compatibility.
Switch from broadcast_OR to broadcast_AND region (when defined in DT)
for checking status bit 1 as Broadcast_OR region checks only for bit 0.

Signed-off-by: Unnathi Chalicheemala <quic_uchalich@quicinc.com>
Reviewed-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Link: https://lore.kernel.org/r/9cf19928a67eaa577ae0f02de5bf86276be34ea2.1717014052.git.quic_uchalich@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/llcc-qcom.c
include/linux/soc/qcom/llcc-qcom.h