a22 and rk29 phonesdk:32K Frequency switch time cut short
author张晴 <zhangqing@rock-chips.com>
Fri, 22 Jul 2011 08:55:58 +0000 (01:55 -0700)
committer张晴 <zhangqing@rock-chips.com>
Fri, 22 Jul 2011 08:55:58 +0000 (01:55 -0700)
arch/arm/mach-rk29/spi_sram.c

index 64246c8ec03c6f05e97cefe135dc02034003f7fa..9cb8299f60ff4b4d2f69f893a08f39b1da17325e 100755 (executable)
@@ -588,13 +588,13 @@ void __sramfunc pm_clk_switch_32k(void)
        asm("wfi");
        
        pm_gpio_out_low(RK29_PIN4_PC5);//enable 24M 
-       sram_udelay(1000,24);
+       sram_udelay(20,24);             //the system clock is 32.768K 
        cru_writel(crumode, CRU_MODE_CON); //externel clk 24M
 
        #ifndef CONFIG_MACH_RK29_A22
        pm_gpio_out_low(RK29_PIN4_PC0); //enable 27M
        #endif
-       sram_udelay(1000,27);
+       //sram_udelay(1000,27);
        sram_printch('7');