remoteproc: qcom: q6v5-mss: Add support for SDM630/636/660
authorAlexey Minnekhanov <alexeymin@postmarketos.org>
Wed, 21 Jun 2023 17:50:45 +0000 (20:50 +0300)
committerBjorn Andersson <andersson@kernel.org>
Sat, 15 Jul 2023 22:01:40 +0000 (15:01 -0700)
commit10b6fec2c8c99b5d1ccbcd070da1fc8e96da0046
tree1af186e4df950b92bb0cf716dd7895a430f66d12
parented50ac266f67829d4732c8ca61ef1953c2cc63d0
remoteproc: qcom: q6v5-mss: Add support for SDM630/636/660

Snapdragon 630/660 modem subsystem is similar to one in MSM8998
and can almost reuse it's reset sequence.

Downstream sources call this q6v5 version "qdsp6v62-1-5" and its
code path has additional checks for QDSP6v55_BHS_EN_REST_ACK
status [2].

Inspiration is taken from Konrad Dybcio's work in [1], but reworked
to use common code path with MSM8996/8998, instead of completely
separate "if" block for SDM660.

[1] https://github.com/SoMainline/linux/commit/7dd6dd9b936dc8d6c1f1abe299e5b065c33741e8
[2] https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/lavender-q-oss/drivers/soc/qcom/pil-q6v5.c#L393

Co-developed-by: Konrad Dybcio <konradybcio@gmail.com>
Signed-off-by: Konrad Dybcio <konradybcio@gmail.com>
Signed-off-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230621175046.61521-2-alexeymin@postmarketos.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/remoteproc/qcom_q6v5_mss.c