SPRZ452I july 2018 – may 2023 AM6526 , AM6528 , AM6546 , AM6548
DDR: Issuing MRR/MRW commands in self-refresh state (LPDDR4 only)
PWRCTL.stay_in_selfref=1'b1 allows user to pause in self-refresh 1 or self-refresh 2 states for software to perform Mode Register Read (MRR) and Mode Register Write (MRW) commands. If controller-PHY hardware handshake occurs while in Self Refresh Power Down (SRPD), then PWRCTL.stay_in_selfref=1 will not pause in self-refresh states as expected. The MRR/MRW commands could be sent in normal mode. Depending on if the MRR/MRW commands being sent needs the DRAM to be in Self Refresh, this may violate JEDEC requirements for LPDDR4.
Use the following sequence to issue software initiated MRR/MRW commands during entering self-refresh:
1. Disable PHY master interface
2. Disable the following automatic self-refresh entry (if using)
3. Ensure that DDR is not in self-refresh or SR-Powerdown.
4. Enter self-refresh 1 state
5. Send MRR/MRW commands using MRCTRL0 and MRCTRL1 registers
6. Enter SR-Powerdown mode.
7. Exit self-refresh 2 state
8. Send MRR/MRW commands using MRCTRL0 and MRCTRL1 registers
9. Exit self-refresh mode
10. Enable PHY master interface