summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Cai <r63905@freescale.com>2009-10-10 16:37:03 +0800
committerRobby Cai <r63905@freescale.com>2009-10-10 16:37:03 +0800
commit17fd450f1e0ea6e6a9df4169833bd73c1d4dc02e (patch)
treec7500629f208656d54cb604e86857bbfb4652705
parent8a11c56d9d30fd239ef3413be45bc45d6b712e79 (diff)
ENGR00116416-2 Gate off clocks to LCDIF when it's inactive
Gate off clocks to LCDIF when it's inactive, Gate on otherwise. Signed-off-by: Robby Cai <r63905@freescale.com>
-rw-r--r--arch/arm/mach-stmp3xxx/stmp378x_lcdif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-stmp3xxx/stmp378x_lcdif.c b/arch/arm/mach-stmp3xxx/stmp378x_lcdif.c
index 808acbc0861c..54aeb455c8b4 100644
--- a/arch/arm/mach-stmp3xxx/stmp378x_lcdif.c
+++ b/arch/arm/mach-stmp3xxx/stmp378x_lcdif.c
@@ -35,6 +35,7 @@ static unsigned dma_chain_info_pos;
void stmp3xxx_init_lcdif(void)
{
+ HW_LCDIF_CTRL_CLR(BM_LCDIF_CTRL_CLKGATE);
/* Reset controller */
HW_LCDIF_CTRL_SET(BM_LCDIF_CTRL_SFTRST);
udelay(10);
@@ -144,6 +145,7 @@ void stmp3xxx_lcdif_stop(void)
BM_APBH_CHn_CMD_SEMAPHORE;
udelay(100);
}
+ HW_LCDIF_CTRL_SET(BM_LCDIF_CTRL_CLKGATE);
}
EXPORT_SYMBOL(stmp3xxx_lcdif_stop);