Hi Pengyong_zhang.
Thanks.
First, since I was using the same Micron DDR3, I wrote the code according to the "i.MX7D DDR Controller Configuration Spreadsheet."
However, I was unable to access the DDR. At the time, I was unaware that initialization had not yet finished.
Next, I found the SABRE board settings in u-boot, changed it to this code and tried it.
However, this was also not accessible. I confirmed that initialization had not yet finished.
Below is the write code.
DDRC_MSTR : 0x01040001
DDRC_DFIUUPD0: 0x80400003
DDRC_DFIUUPD1: 0x00100020
DDRC_DFIUUPD2: 0x80400004
DDRC_RFSHTMG: 0x00400046
DDRC_MP_PCTRL_0: 0x00000001
DDRC_INIT0: 0x00020083
DDRC_INIT1: 0x00690000
DDRC_INIT3: 0x09300004
DDRC_INIT2: 0x00000000
DDRC_INIT4: 0x04080000
DDRC_INIT5: 0x00200004
DDRC_RANKCTL: 0x0000033F
DDRC_DRAMTMG0: 0x09081109
DDRC_DRAMTMG1: 0x0007020D
DDRC_DRAMTMG2: 0x03040407
DDRC_DRAMTMG3: 0x00002006
DDRC_DRAMTMG4: 0x04020205
DDRC_DRAMTMG5: 0x03030202
DDRC_DRAMTMG8: 0x00000803
DDRC_ZQCTL0: 0x00800020
DDRC_ZQCTL1: 0x02000100
DDRC_DFITMG0: 0x02098204
DDRC_DFITMG1: 0x00030303
DDRC_ADDRMAP0: 0x0000001F
DDRC_ADDRMAP1: 0x00080808
DDRC_ADDRMAP5: 0x04040404
DDRC_ADDRMAP6: 0x0F040404
DDRC_ODTCFG: 0x06000604
DDRC_ODTMAP: 0x00000001
SRC_DDRC_RCR: 0x00000000
I read DDRC_STAT here, but it was not set to Normal.
Best regards.