mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
clk: qcom: camcc-sm6350: Specify Titan GDSC power domain as a parent to other
When a consumer turns on/off a power domain dependent on another power
domain in hardware, the parent power domain shall be turned on/off by
the power domain provider as well, and to get it the power domain hardware
hierarchy shall be described in the CAMCC driver.
Establish the power domain hierarchy with a Titan GDSC set as a parent of
all other GDSC power domains provided by the SM6350 camera clock controller
to enforce a correct sequence of enabling and disabling power domains by
the consumers, this fixes the CAMCC as a supplier of power domains to CAMSS
IP and its driver.
Fixes: 80f5451d9a ("clk: qcom: Add camera clock controller driver for SM6350")
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Link: https://lore.kernel.org/r/20251021234450.2271279-3-vladimir.zapolskiy@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
parent
d8f1121ebf
commit
a76ce61d72
|
|
@ -1693,6 +1693,8 @@ static struct clk_branch camcc_sys_tmr_clk = {
|
|||
},
|
||||
};
|
||||
|
||||
static struct gdsc titan_top_gdsc;
|
||||
|
||||
static struct gdsc bps_gdsc = {
|
||||
.gdscr = 0x6004,
|
||||
.en_rest_wait_val = 0x2,
|
||||
|
|
@ -1702,6 +1704,7 @@ static struct gdsc bps_gdsc = {
|
|||
.name = "bps_gdsc",
|
||||
},
|
||||
.pwrsts = PWRSTS_OFF_ON,
|
||||
.parent = &titan_top_gdsc.pd,
|
||||
.flags = VOTABLE,
|
||||
};
|
||||
|
||||
|
|
@ -1714,6 +1717,7 @@ static struct gdsc ipe_0_gdsc = {
|
|||
.name = "ipe_0_gdsc",
|
||||
},
|
||||
.pwrsts = PWRSTS_OFF_ON,
|
||||
.parent = &titan_top_gdsc.pd,
|
||||
.flags = VOTABLE,
|
||||
};
|
||||
|
||||
|
|
@ -1726,6 +1730,7 @@ static struct gdsc ife_0_gdsc = {
|
|||
.name = "ife_0_gdsc",
|
||||
},
|
||||
.pwrsts = PWRSTS_OFF_ON,
|
||||
.parent = &titan_top_gdsc.pd,
|
||||
};
|
||||
|
||||
static struct gdsc ife_1_gdsc = {
|
||||
|
|
@ -1737,6 +1742,7 @@ static struct gdsc ife_1_gdsc = {
|
|||
.name = "ife_1_gdsc",
|
||||
},
|
||||
.pwrsts = PWRSTS_OFF_ON,
|
||||
.parent = &titan_top_gdsc.pd,
|
||||
};
|
||||
|
||||
static struct gdsc ife_2_gdsc = {
|
||||
|
|
@ -1748,6 +1754,7 @@ static struct gdsc ife_2_gdsc = {
|
|||
.name = "ife_2_gdsc",
|
||||
},
|
||||
.pwrsts = PWRSTS_OFF_ON,
|
||||
.parent = &titan_top_gdsc.pd,
|
||||
};
|
||||
|
||||
static struct gdsc titan_top_gdsc = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user