diff options
author | Dong Aisheng <aisheng.dong@nxp.com> | 2020-07-29 16:00:18 +0800 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2020-10-26 10:54:08 +0800 |
commit | ea0c5cbaf8b70fd6fe0269fb0b951965c82229cc (patch) | |
tree | 953aedf29b8a909cf2898804932967c6e287bf1e /drivers/clk/imx/clk-imx8qxp-lpcg.c | |
parent | clk: imx: clk-imx8qxp-lpcg: add runtime pm support (diff) | |
download | linux-dev-ea0c5cbaf8b70fd6fe0269fb0b951965c82229cc.tar.xz linux-dev-ea0c5cbaf8b70fd6fe0269fb0b951965c82229cc.zip |
clk: imx: lpcg: add suspend/resume support
LPCG clock state may be lost when it's power domain is completely
off during system suspend/resume and we need save and restore the
state properly.
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/clk/imx/clk-imx8qxp-lpcg.c')
-rw-r--r-- | drivers/clk/imx/clk-imx8qxp-lpcg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk-imx8qxp-lpcg.c b/drivers/clk/imx/clk-imx8qxp-lpcg.c index 50ab66028f0b..d3e905cf867d 100644 --- a/drivers/clk/imx/clk-imx8qxp-lpcg.c +++ b/drivers/clk/imx/clk-imx8qxp-lpcg.c @@ -364,6 +364,7 @@ static struct platform_driver imx8qxp_lpcg_clk_driver = { .driver = { .name = "imx8qxp-lpcg-clk", .of_match_table = imx8qxp_lpcg_match, + .pm = &imx_clk_lpcg_scu_pm_ops, .suppress_bind_attrs = true, }, .probe = imx8qxp_lpcg_clk_probe, |