drm/msm/dsi: Allow 2 CTRLs on v2.5.0
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Fri, 20 Jan 2023 21:00:53 +0000 (22:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:39:24 +0000 (09:39 +0100)
[ Upstream commit 1ae654ded7c5a19dc13f57a4fe4434fef879b6f9 ]

v2.5.0 support was originally added for SC7280, but this hw is also
present on SM8350, which has one more DSI host. Bump up the dsi count
and fill in the register of the secondary host to allow it to probe.

This should not have any adverse effects on SC7280, as the secondary
CTRL will only be touched if it's defined, anyway.

Fixes: 65c391b31994 ("drm/msm/dsi: Add DSI support for SC7280")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/519513/
Link: https://lore.kernel.org/r/20230120210101.2146852-1-konrad.dybcio@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/dsi/dsi_cfg.c

index ce3901439c69ce109af4c6287f2b93e7484cf068..68a3f8fea9fe6282aa7be8001e375bc6445ec486 100644 (file)
@@ -209,8 +209,8 @@ static const struct msm_dsi_config sc7280_dsi_cfg = {
        },
        .bus_clk_names = dsi_sc7280_bus_clk_names,
        .num_bus_clks = ARRAY_SIZE(dsi_sc7280_bus_clk_names),
-       .io_start = { 0xae94000 },
-       .num_dsi = 1,
+       .io_start = { 0xae94000, 0xae96000 },
+       .num_dsi = 2,
 };
 
 static const struct msm_dsi_host_cfg_ops msm_dsi_v2_host_ops = {