diff options
author | Miao Yu <r65093@freescale.com> | 2009-04-22 12:40:24 +0800 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2009-10-13 11:02:56 -0400 |
commit | 6cb3f47f1439623a56ab6241f95f2a50a1060bef (patch) | |
tree | c6b66607e875c7c302c4605111abe9a409ba78c1 /drivers/mxc/ipu | |
parent | 454cae78be711cf587bc42db7831de75b154ba28 (diff) |
ENGR00109080 MX35: Add TVIN power-saving mode
1. Support TVIN power-saving mode when system enter suspend/resume.
2. Revise SENS_FRM_HEIGHT and SENS_FRM_WIDTH register value,
(SENS_FRM_HEIGHT is equal to the sensor frame height - 1)
otherwise there will be a white dotted line at the top sometimes.
Signed-off-by: Miao Yu <r65093@freescale.com>
Diffstat (limited to 'drivers/mxc/ipu')
-rw-r--r-- | drivers/mxc/ipu/ipu_common.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/mxc/ipu/ipu_common.c b/drivers/mxc/ipu/ipu_common.c index 13e7493c61b6..ca3bf855187a 100644 --- a/drivers/mxc/ipu/ipu_common.c +++ b/drivers/mxc/ipu/ipu_common.c @@ -1765,7 +1765,13 @@ static int ipu_suspend(struct platform_device *pdev, pm_message_t state) g_channel_init_mask_backup = g_channel_init_mask; g_channel_init_mask |= 2; } + } else if (cpu_is_mx35()) { + g_ipu_config = __raw_readl(IPU_CONF); + /* Disable the clock of display otherwise the backlight cannot + * be close after camera/tvin related test */ + __raw_writel(g_ipu_config & 0xfbf, IPU_CONF); } + return 0; } @@ -1778,7 +1784,10 @@ static int ipu_resume(struct platform_device *pdev) clk_disable(g_ipu_csi_clk); g_channel_init_mask = g_channel_init_mask_backup; } - } + } else if (cpu_is_mx35()) { + __raw_writel(g_ipu_config, IPU_CONF); + } + return 0; } |