Commit a5f3bac3 authored by Soren Brinkmann's avatar Soren Brinkmann Committed by Michal Simek
Browse files

ARM: zynq: Implement better check for DDR idle



In suspend DRAM is put in self-refresh and clocks are stopped. Though,
before the clocks can be stopped the DDRC must be idle. Zynq does not
provide a reliable way to query the activity state of the DRAM. The
recommened way is to poll the CAM queues and wait for ~40 DDR cycles
once they are idle to allow the queues and pipelines to be drained.

If something causes new DDR transactions in the gap between finish
polling and turning DDR off, things will go sideways...

Tested-by: default avatarChandramohan Pujari <cpujari@xilinx.com>
Signed-off-by: default avatarSoren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent f9d39137
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment