This page describes how to put PS SysMon in sleep mode during deep sleep. With default pmu-fw during deep sleep mode, PS SysMon is in normal operation mode. One can put PS SysMon in sleep mode during deep sleep to get lower power consumption by LPD, which may affect system performance.
(This is for 2017.1 or earlier release only. Starting from 2017.3 release, the PS SysMon is always in sleep mode during Deep Sleep.)
Change in PMU-FW to put PS SysMon in sleep mode during system deep sleep
- Create PMU-FW project in SDK.
Add following two functions in src/pm_power.c
Call PmPowerDownSysOsc() and PmPowerUpSysOsc() from PmPowerDown() and PmPowerUp() in src/pm_power.c respectively as shown below:
- After above changes are done, build pmu-fw.
- When this pmu-fw is used to put system into deep sleep, PS SysMon goes in sleep mode.
- Refer Deep Sleep example and Deep Sleep with Periodic Wake-up for more information on deep sleep steps.
Configuration Object file Generated by PetaLinux tool chain and Vivado is attached below.pm_cfg_obj.cSubsystems
-1) Linux SubsystemMaster -
2) R5-0 SubsystemMaster -
- L2 Cache
- OCM Bank 0, 1, 2 and 3
3) R5-1 SubsystemMaster -
- TCM Bank 0 - A
- TCM Bank 0 - B
- TCM Bank 1 - A
- TCM Bank 1 - B
- Keeping SYSOSC in low power mode reduces the frequency and brings in more variation in the output frequency.
- Since PMU is clocked by SYSOSC, it will run on a lower clock. So PITs(Timers) or timing calculations may not be accurate (if any).