MLK-16823-2: mipi_csi: Add runtime suspend/resume
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Wed, 15 Nov 2017 12:13:30 +0000 (20:13 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Add runtime suspend/resume support for ISI. For saving
power, the ISI turn off it's power domain after probe.

Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit d0cf6f32660c5b03fda5083fee578579f22c4d3b)

drivers/media/platform/imx8/mxc-isi-core.h

index 60a379b..1a6eda7 100644 (file)
@@ -158,6 +158,7 @@ enum mxc_isi_m2m_in_fmt {
 enum mxc_isi_power_state {
        MXC_ISI_PM_SUSPENDED = 0x01,
        MXC_ISI_PM_POWERED = 0x02,
+       MXC_ISI_RUNTIME_SUSPEND = 0x04,
 };
 
 struct mxc_isi_fmt {