]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00216010-3: spdc: Make clock enable/disable paired for PIX and AXI
authorRobby Cai <R63905@freescale.com>
Mon, 9 Jul 2012 06:05:59 +0000 (14:05 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:59 +0000 (08:34 +0200)
Really disable pix/axi clock when SPDC is idle.

Signed-off-by: Robby Cai <R63905@freescale.com>
drivers/video/mxc/mxc_spdc_fb.c

index 8226dc724e3ef6d724d718e6772de45fb0689d17..19cbcb571ce54c509faab05abbf318550248bd9c 100644 (file)
@@ -770,6 +770,9 @@ spdc_fb_fw_handler(const struct firmware *fw, void *context)
        }
 
        clk_set_rate(fb_data->spdc_clk_pix, rounded_pix_clk);
+       /* Disable clocks */
+       clk_disable(fb_data->spdc_clk_axi);
+       clk_disable(fb_data->spdc_clk_pix);
 
        if (!spdc_init_sequence(fb_data))
                return;