]> code.ossystems Code Review - meta-freescale.git/blob
0fc04f6c9a9dc576830c1a1b4e1a602add3f0a7f
[meta-freescale.git] /
1 From 3d739cd79c28ea5d633a3f64758570b16260df69 Mon Sep 17 00:00:00 2001
2 From: Liu Ying <Ying.Liu@freescale.com>
3 Date: Sat, 8 Oct 2011 13:30:15 +0800
4 Subject: [PATCH] ENGR00159010 IPUv3:Restore IDMAC_CH_LOCK_EN_1 for resume
5
6 This patch restores IDMAC_CH_LOCK_EN_1 register when IPUv3
7 driver resumes. This avoid the relative issue if setting
8 IDMAC_CH_LOCK_EN_1 to be zero.
9
10 Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
11 (cherry picked from commit fce84cf35dcb338886df8e58f66a7ad1048d2abe)
12 ---
13  drivers/mxc/ipu3/ipu_common.c |    3 +++
14  1 files changed, 3 insertions(+), 0 deletions(-)
15
16 diff --git a/drivers/mxc/ipu3/ipu_common.c b/drivers/mxc/ipu3/ipu_common.c
17 index 4b12905..1f5ed8b 100644
18 --- a/drivers/mxc/ipu3/ipu_common.c
19 +++ b/drivers/mxc/ipu3/ipu_common.c
20 @@ -2780,6 +2780,9 @@ static int ipu_resume(struct platform_device *pdev)
21  
22                 /* Set sync refresh channels as high priority */
23                 __raw_writel(0x18800001L, IDMAC_CHA_PRI(0));
24 +
25 +               /* AXI burst setting for sync refresh channels */
26 +               __raw_writel(0x003F0000, IDMAC_CH_LOCK_EN_1);
27                 clk_disable(g_ipu_clk);
28         }
29         mutex_unlock(&ipu_clk_lock);
30 -- 
31 1.5.4.4
32