Commit af82f9a8 authored by Jouni Hogander's avatar Jouni Hogander Committed by Tony Lindgren

OMAP: DISPC: Fix to disable also interface clocks. 2nd.

Leaving interface clocks enabled causes dss pwrdm to stay in active
state when mpu is in active state. This fix puts dss to sleep state
when it is not needed.
Signed-off-by: default avatarJouni Hogander <jouni.hogander@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent f0322c2c
...@@ -914,18 +914,13 @@ static void put_dss_clocks(void) ...@@ -914,18 +914,13 @@ static void put_dss_clocks(void)
static void enable_lcd_clocks(int enable) static void enable_lcd_clocks(int enable)
{ {
if (enable) if (enable) {
clk_enable(dispc.dss_ick);
clk_enable(dispc.dss1_fck); clk_enable(dispc.dss1_fck);
else } else {
clk_disable(dispc.dss1_fck); clk_disable(dispc.dss1_fck);
}
static void enable_interface_clocks(int enable)
{
if (enable)
clk_enable(dispc.dss_ick);
else
clk_disable(dispc.dss_ick); clk_disable(dispc.dss_ick);
}
} }
static void enable_digit_clocks(int enable) static void enable_digit_clocks(int enable)
...@@ -1361,7 +1356,6 @@ static int omap_dispc_init(struct omapfb_device *fbdev, int ext_mode, ...@@ -1361,7 +1356,6 @@ static int omap_dispc_init(struct omapfb_device *fbdev, int ext_mode,
if ((r = get_dss_clocks()) < 0) if ((r = get_dss_clocks()) < 0)
return r; return r;
enable_interface_clocks(1);
enable_lcd_clocks(1); enable_lcd_clocks(1);
#ifdef CONFIG_FB_OMAP_BOOTLOADER_INIT #ifdef CONFIG_FB_OMAP_BOOTLOADER_INIT
...@@ -1465,7 +1459,6 @@ fail2: ...@@ -1465,7 +1459,6 @@ fail2:
free_irq(INT_24XX_DSS_IRQ, fbdev); free_irq(INT_24XX_DSS_IRQ, fbdev);
fail1: fail1:
enable_lcd_clocks(0); enable_lcd_clocks(0);
enable_interface_clocks(0);
put_dss_clocks(); put_dss_clocks();
return r; return r;
...@@ -1482,7 +1475,6 @@ static void omap_dispc_cleanup(void) ...@@ -1482,7 +1475,6 @@ static void omap_dispc_cleanup(void)
cleanup_fbmem(); cleanup_fbmem();
free_palette_ram(); free_palette_ram();
free_irq(INT_24XX_DSS_IRQ, dispc.fbdev); free_irq(INT_24XX_DSS_IRQ, dispc.fbdev);
enable_interface_clocks(0);
put_dss_clocks(); put_dss_clocks();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment