mobile ddr change frequency

This commit is contained in:
root
2010-07-16 18:07:44 +08:00
parent e1a1842321
commit c43801de18

View File

@@ -1208,6 +1208,28 @@ static void __tcmfunc SDRAM_BeforeUpdateFreq(uint32 SDRAMnewKHz, uint32 DDRnewKH
//WAIT_ME();
while(!(pDDR_Reg->CTRL_REG_03 & 0x100));
pDDR_Reg->CTRL_REG_10 &= ~(0x1);
if(memType == DDRII)
{
if(333000 < KHz)
{
pDDR_Reg->CTRL_REG_82 = 0x00885555;
}
else
{
pDDR_Reg->CTRL_REG_82 = 0x00685555;
}
}
else
{
if(133000 < KHz)
{
pDDR_Reg->CTRL_REG_82 = 0x00840000;
}
else
{
pDDR_Reg->CTRL_REG_82 = 0x00640000;
}
}
if(110000 > KHz)
{
DLLBypass(KHz);
@@ -1727,7 +1749,7 @@ static int __init update_frq(void)
#endif
return 0;
}
//core_initcall_sync(update_frq);
core_initcall_sync(update_frq);
#endif //endi of #ifdef DRIVERS_SDRAM