"i.MX 6 Series DDR Calibration" document typo?

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

"i.MX 6 Series DDR Calibration" document typo?

跳至解决方案
973 次查看
norishinozaki
Contributor V

Hello,

In the "i.MX 6 Series DDR Calibration" document page 34,

the sample code enables power mode at the end of the calibration.

// enable Adopt power down timer:

reg32_write((MMDC_P0_IPS_BASE_ADDR + MAPSR_OFFSET),

reg32_read((MMDC_P0_IPS_BASE_ADDR + MAPSR_OFFSET)) & 0xfffffff7)

This code is trying to unmask bit 3 in MMDC0_MAPSR, however in the RM page 3927, the bit 3 is a reserved bit.

Is it actually 0xfffffffe to set 0 in the bit 0?

pastedImage_1.png

pastedImage_2.png

Best regards,

Nori Shinozaki

标签 (1)
0 项奖励
回复
1 解答
880 次查看
Yuri
NXP Employee
NXP Employee

Yes, the bit 0 is functional and it may be set / cleared, so mask 0xfffffffe

is correct for it.

Regards,

Yuri.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
880 次查看
Yuri
NXP Employee
NXP Employee

Hello,

   Looks like the document  "i.MX 6 Series DDR Calibration" and calibration

codes are based on preliminary i.MX6 specs, where bit field MAPSR[3-1] was

defined. Striclty speaking, this field should not be used by applications.


Have a great day,
Yuri

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

0 项奖励
回复
880 次查看
norishinozaki
Contributor V

Hello Yuri,

Thanks, so you mean that setting 0 in the bit 0 is the correct code?

// enable Adopt power down timer:

reg32_write((MMDC_P0_IPS_BASE_ADDR + MAPSR_OFFSET),

reg32_read((MMDC_P0_IPS_BASE_ADDR + MAPSR_OFFSET)) & 0xfffffffe)

Best regards,

Nori Shinozaki

0 项奖励
回复
881 次查看
Yuri
NXP Employee
NXP Employee

Yes, the bit 0 is functional and it may be set / cleared, so mask 0xfffffffe

is correct for it.

Regards,

Yuri.

0 项奖励
回复
880 次查看
norishinozaki
Contributor V

Yuri,

Thanks always!

N.Shinozaki

0 项奖励
回复