clk: imx: scu: add suspend/resume support
authorDong Aisheng <aisheng.dong@nxp.com>
Wed, 29 Jul 2020 08:00:14 +0000 (16:00 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 26 Oct 2020 02:53:57 +0000 (10:53 +0800)
commitd0409631f466ae2e572a6a0ca684cced97fa1ade
treeb5042005c48aef34245e74e5809a444ab5c6cb82
parent78edeb080330ca2bc6c9b20d388c8ceb7a2ef8c0
clk: imx: scu: add suspend/resume support

Clock state will be lost when its power domain is completely off
during system suspend/resume. So we save and restore the state
accordingly in suspend/resume callback.

Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Michael Turquette <mturquette@baylibre.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-scu.c