Suspend-to-RAM

From linux-sunxi.org
Jump to navigation Jump to search

On Allwinner A20

For the Suspend-to-RAM implementation, the DRAM chips are put into the self-refresh mode and the SoC is powered off. Waking up means that the system is booting normally from the SD card or from the other default boot locations. This means that the U-Boot bootloader is getting started as part of the resume process. And right now it just discards the data from the DRAM and boots the system normally.

Also see:

Mainline kernel status

Currently unsupported.

ToDo:

  • Have a look at the existing implementations of something similar (maybe the Tegra warmboot?)
  • Check if PSCI is a good fit for the job or not.

Android kernel status

The existing resume implementation can be found in the boot0 bootloader: https://github.com/allwinner-zh/bootloader/tree/master/basic_loader/bsp/bsp_for_a20/init_dram