Skip to content

Commit 002c3fb

Browse files
konradybcioandersson
authored andcommitted
clk: qcom: dispcc-qcm2290: Add MDSS_CORE reset
Add the MDSS_CORE reset which can be asserted to reset the state of the entire MDSS. Signed-off-by: Konrad Dybcio <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 25dac40 commit 002c3fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/clk/qcom/dispcc-qcm2290.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "clk-regmap-divider.h"
2121
#include "common.h"
2222
#include "gdsc.h"
23+
#include "reset.h"
2324

2425
enum {
2526
P_BI_TCXO,
@@ -445,6 +446,10 @@ static struct clk_branch disp_cc_sleep_clk = {
445446
},
446447
};
447448

449+
static const struct qcom_reset_map disp_cc_qcm2290_resets[] = {
450+
[DISP_CC_MDSS_CORE_BCR] = { 0x2000 },
451+
};
452+
448453
static struct gdsc mdss_gdsc = {
449454
.gdscr = 0x3000,
450455
.pd = {
@@ -494,6 +499,8 @@ static const struct qcom_cc_desc disp_cc_qcm2290_desc = {
494499
.num_clks = ARRAY_SIZE(disp_cc_qcm2290_clocks),
495500
.gdscs = disp_cc_qcm2290_gdscs,
496501
.num_gdscs = ARRAY_SIZE(disp_cc_qcm2290_gdscs),
502+
.resets = disp_cc_qcm2290_resets,
503+
.num_resets = ARRAY_SIZE(disp_cc_qcm2290_resets),
497504
};
498505

499506
static const struct of_device_id disp_cc_qcm2290_match_table[] = {

0 commit comments

Comments
 (0)