Tegra: Enable irq as wake-up event for cpu_standby
authorVignesh Radhakrishnan <vigneshr@nvidia.com>
Fri, 20 Apr 2018 21:31:41 +0000 (14:31 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Tue, 5 Feb 2019 16:27:43 +0000 (08:27 -0800)
commit07faf4d8c5823700bb2e87606ad365a26512c3cd
tree5cb03d3f68b6441eb50381bc1f9cc17f9531beca
parentb695af1dfcd01bcca91c3bfc9c9a47fb62e3b27b
Tegra: Enable irq as wake-up event for cpu_standby

As per ARM ARM D1.17.2, any physical IRQ interrupt received by the PE
will be treated as a wake-up event, if SCR_EL3.IRQ is set to '1',
irrespective of the value of the PSTATE.I bit value.

This patch programs the SCR_EL3.IRQ bit before entering CPU standby
state, to allow an IRQ to wake the PE. On waking up, the previous
SCR_EL3 value is restored.

Change-Id: Ie81cf3a7668f5ac35f4bf2ecc461b91b9b60650c
Signed-off-by: Vignesh Radhakrishnan <vigneshr@nvidia.com>
plat/nvidia/tegra/common/tegra_pm.c