提交 27da533a 编写于 作者: J Johan Hovold 提交者: Bjorn Andersson

clk: qcom: gcc-sc8280xp: use retention for USB power domains

Since commit d3997239 ("clk: qcom: gdsc: Fix the handling of
PWRSTS_RET support) retention mode can be used on sc8280xp to maintain
state during suspend instead of leaving the domain always on.

This is needed to eventually allow the parent CX domain to be powered
down during suspend.
Signed-off-by: NJohan Hovold <johan+linaro@kernel.org>
Signed-off-by: NBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220929161124.18138-1-johan+linaro@kernel.org
上级 eab4c1eb
......@@ -6843,17 +6843,12 @@ static struct gdsc ufs_phy_gdsc = {
.pwrsts = PWRSTS_OFF_ON,
};
/*
* The Qualcomm DWC3 driver suspend implementation appears to be incomplete
* for sc8280xp so keep the USB power domains always-on for now.
*/
static struct gdsc usb30_mp_gdsc = {
.gdscr = 0xab004,
.pd = {
.name = "usb30_mp_gdsc",
},
.pwrsts = PWRSTS_OFF_ON,
.flags = ALWAYS_ON,
.pwrsts = PWRSTS_RET_ON,
};
static struct gdsc usb30_prim_gdsc = {
......@@ -6861,8 +6856,7 @@ static struct gdsc usb30_prim_gdsc = {
.pd = {
.name = "usb30_prim_gdsc",
},
.pwrsts = PWRSTS_OFF_ON,
.flags = ALWAYS_ON,
.pwrsts = PWRSTS_RET_ON,
};
static struct gdsc usb30_sec_gdsc = {
......@@ -6870,8 +6864,7 @@ static struct gdsc usb30_sec_gdsc = {
.pd = {
.name = "usb30_sec_gdsc",
},
.pwrsts = PWRSTS_OFF_ON,
.flags = ALWAYS_ON,
.pwrsts = PWRSTS_RET_ON,
};
static struct clk_regmap *gcc_sc8280xp_clocks[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册