Skip to content

Commit 502099e

Browse files
lweiss-fairphoneandersson
authored andcommitted
clk: qcom: dispcc-sm6350: Add MDSS_CORE & MDSS_RSCC resets
Add the offsets for two resets inside the dispcc on SM6350 SoC. Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Link: https://lore.kernel.org/r/20250919-sm6350-mdss-reset-v1-2-48dcac917c73@fairphone.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent ff71d2d commit 502099e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/clk/qcom/dispcc-sm6350.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,11 @@ static struct clk_branch disp_cc_xo_clk = {
679679
},
680680
};
681681

682+
static const struct qcom_reset_map disp_cc_sm6350_resets[] = {
683+
[DISP_CC_MDSS_CORE_BCR] = { 0x1000 },
684+
[DISP_CC_MDSS_RSCC_BCR] = { 0x2000 },
685+
};
686+
682687
static struct gdsc mdss_gdsc = {
683688
.gdscr = 0x1004,
684689
.en_rest_wait_val = 0x2,
@@ -746,6 +751,8 @@ static const struct qcom_cc_desc disp_cc_sm6350_desc = {
746751
.num_clks = ARRAY_SIZE(disp_cc_sm6350_clocks),
747752
.gdscs = disp_cc_sm6350_gdscs,
748753
.num_gdscs = ARRAY_SIZE(disp_cc_sm6350_gdscs),
754+
.resets = disp_cc_sm6350_resets,
755+
.num_resets = ARRAY_SIZE(disp_cc_sm6350_resets),
749756
};
750757

751758
static const struct of_device_id disp_cc_sm6350_match_table[] = {

0 commit comments

Comments
 (0)