i.MX6 u-boot: how to change DRAM cfg to adapt different DRAM frequencies in runtime

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MX6 u-boot: how to change DRAM cfg to adapt different DRAM frequencies in runtime

跳至解决方案
1,489 次查看
mmj
Contributor III

Dear All,

In u-boot, I have a i.MX6DL DRAM script for DDR frequency at 400MHz. For the DRAM to run at 100MHz, several MMDC parameters from the 400MHz script have to be updated. Thus it is not possible to use a single DRAM script for both DDR=400MHz and DDR=100MHz.

Is it possible for u-boot.imx to determine the current DRAM frequency and update the DRAM script in runtime? The scenario is if the fuse LPB_BOOT=11b is blown, the DRAM frequency will be become 132MHz and the u-boot.imx for DDR=400MHz will not boot. If I update the u-boot.imx for DDR=100MHz, the devices without blowing the LPB_BOOT=11b fuse will have DDR frequency running at 400MHz and the new u-boot.imx will not boot. So, I am looking for a method to update the MMDC parameters in u-boot.imx for different DRAM frequencies when boot up.

Thank you for your attention.

Regards,

mmj

标签 (2)
标记 (3)
0 项奖励
回复
1 解答
1,231 次查看
igorpadykov
NXP Employee
NXP Employee

Hi mmj

one can use plugin method (file plugin.S in uboot) to initialize the MMDC,

in plugin one can write simple asm routine and read fuses. In runtime

one will have to jump to iRAM, then reinitialize MMDC, this is not supported in

uboot so one will have to add codes for such procedure.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,232 次查看
igorpadykov
NXP Employee
NXP Employee

Hi mmj

one can use plugin method (file plugin.S in uboot) to initialize the MMDC,

in plugin one can write simple asm routine and read fuses. In runtime

one will have to jump to iRAM, then reinitialize MMDC, this is not supported in

uboot so one will have to add codes for such procedure.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复