Config issue of LPDDR2

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

Config issue of LPDDR2

跳至解决方案
759 次查看
david5icp
Contributor III

Hello,

We have a customer board use 32 bit LPDDR2 and use 2 chip select. We can get config by DDR calibration tool and run  "DDR Stess test" more than 2 hours. Verey things seems ok.

It's fail to use the table on my android project. But if I ignor "CS1" setting as below, the board can boot up to android.

How to config 32 bit lpddr2 and use 2 chip select ? Thanks!

// Channel0 : Configure DDR device:         

//CS0   

setmem /32 0x021b001c = 0x003F8030 // MRW: BA=0 CS=0 MR_ADDR=63 MR_OP=0

setmem /32 0x021b001c = 0xFF0A8030 // MRW: BA=0 CS=0 MR_ADDR=10 MR_OP=ff

setmem /32 0x021b001c = 0x82018030 // MRW: BA=0 CS=0 MR_ADDR=1  MR_OP=c2

setmem /32 0x021b001c = 0x06028030 // MRW: BA=0 CS=0 MR_ADDR=2  MR_OP=6. tcl=8, tcwl=4

setmem /32 0x021b001c = 0x01038030 // MRW: BA=0 CS=0 MR_ADDR=3  MR_OP=2.drive=240/6

//CS1   

//setmem /32 0x021b001c = 0x003F8038 // MRW: BA=0 CS=1 MR_ADDR=63 MR_OP=0

//setmem /32 0x021b001c = 0xFF0A8038 // MRW: BA=0 CS=1 MR_ADDR=10 MR_OP=ff

//setmem /32 0x021b001c = 0x82018038 // MRW: BA=0 CS=1 MR_ADDR=1  MR_OP=c2

//setmem /32 0x021b001c = 0x06028038 // MRW: BA=0 CS=1 MR_ADDR=2  MR_OP=6. tcl=8, tcwl=4

//setmem /32 0x021b001c = 0x01038038 // MRW: BA=0 CS=1 MR_ADDR=3  MR_OP=2.drive=240/6

BR.

David Wu

标签 (3)
0 项奖励
回复
1 解答
589 次查看
david5icp
Contributor III

Hello ~

It's working now. The problem caused by dcd_hdr and write_dcd_cmd. Please refer below:

dcd_hdr:               .word 0x404802D2 /* Tag=0xD2, Len=72*8 + 4 + 4 = 0x0248, Ver=0x40 */

write_dcd_cmd:    .word 0x044402CC /* Tag=0xCC, Len=72*8 + 4 = 0x0244, Param=0x04 */

BR.

David Wu

在原帖中查看解决方案

1 回复
590 次查看
david5icp
Contributor III

Hello ~

It's working now. The problem caused by dcd_hdr and write_dcd_cmd. Please refer below:

dcd_hdr:               .word 0x404802D2 /* Tag=0xD2, Len=72*8 + 4 + 4 = 0x0248, Ver=0x40 */

write_dcd_cmd:    .word 0x044402CC /* Tag=0xCC, Len=72*8 + 4 = 0x0244, Param=0x04 */

BR.

David Wu