mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
mobile ddr change frequency
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user