diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2022-06-17 11:58:41 +0200 |
---|---|---|
committer | Matthias Brugger <matthias.bgg@gmail.com> | 2022-06-17 13:49:37 +0200 |
commit | 72be1e7a447add1536653592b317e93aed46588d (patch) | |
tree | e808e956bbcbe81d76d40af8eb8cd7b82701b6c4 /drivers/soc/mediatek/mtk-pm-domains.h | |
parent | soc: mediatek: mt8365-mmsys: add DPI/HDMI display path (diff) | |
download | linux-72be1e7a447add1536653592b317e93aed46588d.tar.xz linux-72be1e7a447add1536653592b317e93aed46588d.zip |
soc: mediatek: pm-domains: Add support always on flag
There is a t-phy shared by PCIe and USB3 on mt8195, if the t-phy is
used by PCIe, when power off its mtcmos, need software reset it
(workaround way, usually hardware do it, but has an issue on mt8195),
but it has side effect to USB2 phy(works with USB3 phy to support
USB3.2 Gen1), so add support GENPD_FLAG_ALWAYS_ON flag, and make its
power always on.
Another reason is that USB3.2 Gen1/2 need keep power always on when
support runtime-pm due to hardware limitation until now.
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220617095841.23031-1-chunfeng.yun@mediatek.com
[mb: smaller nit fixes on commit message]
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to 'drivers/soc/mediatek/mtk-pm-domains.h')
-rw-r--r-- | drivers/soc/mediatek/mtk-pm-domains.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/soc/mediatek/mtk-pm-domains.h b/drivers/soc/mediatek/mtk-pm-domains.h index daa24e890dd4..7d3c0c36316c 100644 --- a/drivers/soc/mediatek/mtk-pm-domains.h +++ b/drivers/soc/mediatek/mtk-pm-domains.h @@ -8,6 +8,8 @@ #define MTK_SCPD_SRAM_ISO BIT(2) #define MTK_SCPD_KEEP_DEFAULT_OFF BIT(3) #define MTK_SCPD_DOMAIN_SUPPLY BIT(4) +/* can't set MTK_SCPD_KEEP_DEFAULT_OFF at the same time */ +#define MTK_SCPD_ALWAYS_ON BIT(5) #define MTK_SCPD_CAPS(_scpd, _x) ((_scpd)->data->caps & (_x)) #define SPM_VDE_PWR_CON 0x0210 |