Skip to content

Commit 1647212

Browse files
quic-kdybciogregkh
authored andcommitted
clk: qcom: dispcc-sc7180: Add missing MDSS resets
[ Upstream commit b0bc601 ] The MDSS resets have so far been left undescribed. Fix that. Fixes: dd3d066 ("clk: qcom: Add display clock controller driver for SC7180") Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com> Tested-by: Val Packett <val@packett.cool> # sc7180-ecs-liva-qc710 Link: https://lore.kernel.org/r/20260120-topic-7180_dispcc_bcr-v1-2-0b1b442156c3@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 28e796a commit 1647212

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/clk/qcom/dispcc-sc7180.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "clk-regmap-divider.h"
1818
#include "common.h"
1919
#include "gdsc.h"
20+
#include "reset.h"
2021

2122
enum {
2223
P_BI_TCXO,
@@ -636,6 +637,11 @@ static struct gdsc mdss_gdsc = {
636637
.flags = HW_CTRL,
637638
};
638639

640+
static const struct qcom_reset_map disp_cc_sc7180_resets[] = {
641+
[DISP_CC_MDSS_CORE_BCR] = { 0x2000 },
642+
[DISP_CC_MDSS_RSCC_BCR] = { 0x4000 },
643+
};
644+
639645
static struct gdsc *disp_cc_sc7180_gdscs[] = {
640646
[MDSS_GDSC] = &mdss_gdsc,
641647
};
@@ -687,6 +693,8 @@ static const struct qcom_cc_desc disp_cc_sc7180_desc = {
687693
.config = &disp_cc_sc7180_regmap_config,
688694
.clks = disp_cc_sc7180_clocks,
689695
.num_clks = ARRAY_SIZE(disp_cc_sc7180_clocks),
696+
.resets = disp_cc_sc7180_resets,
697+
.num_resets = ARRAY_SIZE(disp_cc_sc7180_resets),
690698
.gdscs = disp_cc_sc7180_gdscs,
691699
.num_gdscs = ARRAY_SIZE(disp_cc_sc7180_gdscs),
692700
};

0 commit comments

Comments
 (0)