Skip to content

Commit

Permalink
clk: qcom: camcc-sm8250: Fix topology around titan_top power domain
Browse files Browse the repository at this point in the history
[ Upstream commit f8acf01 ]

On SM8250 two found VFE GDSC power domains shall not be operated, if
titan top is turned off, thus the former power domains will be set as
subdomains by a GDSC registration routine.

Fixes: 5d66ca7 ("clk: qcom: Add camera clock controller driver for SM8250")
Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220519214133.1728979-3-vladimir.zapolskiy@linaro.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Vladimir Zapolskiy authored and gregkh committed Aug 17, 2022
1 parent 123c76f commit 433a221
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/clk/qcom/camcc-sm8250.c
Original file line number Diff line number Diff line change
Expand Up @@ -2205,6 +2205,8 @@ static struct clk_branch cam_cc_sleep_clk = {
},
};

static struct gdsc titan_top_gdsc;

static struct gdsc bps_gdsc = {
.gdscr = 0x7004,
.pd = {
Expand Down Expand Up @@ -2238,6 +2240,7 @@ static struct gdsc ife_0_gdsc = {
.name = "ife_0_gdsc",
},
.flags = POLL_CFG_GDSCR,
.parent = &titan_top_gdsc.pd,
.pwrsts = PWRSTS_OFF_ON,
};

Expand All @@ -2247,6 +2250,7 @@ static struct gdsc ife_1_gdsc = {
.name = "ife_1_gdsc",
},
.flags = POLL_CFG_GDSCR,
.parent = &titan_top_gdsc.pd,
.pwrsts = PWRSTS_OFF_ON,
};

Expand Down

0 comments on commit 433a221

Please sign in to comment.