Set the Self Refresh Request bit in the Master Control register, ddrc_ctrl. The DDRC puts the DRAM into self refresh as soon as the transaction buffers are empty.
Software must ensure that no transactions arrive. If transactions keep arriving the DDRC never puts the DRAM into self refresh.
The first valid transaction brings the DRAM out of self refresh.