*** ../linux/arch/arm/mach-pxa/sharpsl_power.c Sun Nov 23 21:23:29 2003 --- linux/arch/arm/mach-pxa/sharpsl_power.c Mon Nov 24 00:14:02 2003 *************** *** 163,168 **** --- 163,173 ---- static int sharpsl_alarm_flag; #endif + #if defined(CONFIG_SL_CCCR_CHANGE) + extern unsigned int cccr_clkparam; + extern unsigned int cccr_change_reg; + #endif + void PrintParamTable(void); #ifdef CONFIG_SABINAL_DISCOVERY *************** *** 473,478 **** --- 478,491 ---- cccr_reg = CCCR; break; #endif + #if defined(CONFIG_SL_CCCR_CHANGE) + default: + if ( CCCR == cccr_change_reg ) break; + cccr_clkparam = cccr_change_reg; + cpu_xscale_sl_change_speed_num(); + cccr_reg = CCCR; + break; + #endif } sharpsl_chg_freq &= 0x0000ffff; mdelay(500); *************** *** 910,915 **** --- 923,934 ---- #if defined(CONFIG_ARCH_PXA_SHEPHERD) else if ( sharpsl_chg_freq == 0x0161 ) { cpu_xscale_sl_change_speed_161(); + } + #endif + #if defined(CONFIG_SL_CCCR_CHANGE) + else { + cccr_clkparam = sharpsl_chg_freq; + cpu_xscale_sl_change_speed_num(); } #endif cccr_reg = CCCR;