diff options
author | Manivannan Sadhasivam | 2022-08-25 10:08:55 +0530 |
---|---|---|
committer | Bjorn Andersson | 2022-08-29 21:20:20 -0500 |
commit | 5365cea199c70d6abedc2e1be850c03e990f1829 (patch) | |
tree | 462fc5d79161dc5758cf3b3a8ed2d1e34419222c /include/linux/soc/qcom/llcc-qcom.h | |
parent | 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 (diff) |
soc: qcom: llcc: Rename reg_offset structs to reflect LLCC version
The register offsets used by the LLCC block retains its layout for multiple
versions. For instance, starting from version v1.0.0 to v2.0.1 the offsets
are same. And starting from v2.1.0, the offsets changed.
But the current reg_offset naming convention is confusing. So to reflect
this change correctly in driver, let's encode the start version from which
the offsets got changed in reg_offset struct name. This will be
llcc_v1_reg_offset for v1.0.0 and llcc_v2_1_reg_offset for v2.1.0.
This will allow multiple SoCs to use the same reg_offset clearly.
And in the future if the offsets got changed again, then that specific
version could be encoded in the struct name.
Suggested-by: Sai Prakash Ranjan <quic_saipraka@quicinc.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Sai Prakash Ranjan <quic_saipraka@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220825043859.30066-2-manivannan.sadhasivam@linaro.org
Diffstat (limited to 'include/linux/soc/qcom/llcc-qcom.h')
0 files changed, 0 insertions, 0 deletions