drivers: soc: qcom: handle system sleep activities

When all the CPUs in the Apps processor subsystem are powered off, the
system may also reduce its bandwidth and shared resource requirements.

The resource requests are sent through the TCS mailbox controller in the
RSC of the APSS subsystem. When notified, the next wakeup timer value is
written to the RSC to be setup in the always-on domain timer. The
sleep/wake requests also need to be written to the TCS mailbox
controller in the RSC inorder to save power. This driver handles the
last few steps when entering system sleep.

Change-Id: I0135a5bae47e228f15fdd1993ddbe8b74ce6e2bb
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
5 files changed