Tegra210: wait for 512 timer ticks before retention entry
authorVarun Wadekar <vwadekar@nvidia.com>
Fri, 21 Aug 2015 10:26:02 +0000 (15:56 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 24 Aug 2015 16:04:28 +0000 (21:34 +0530)
commitb42192bcbdbe9fab4aadca903cac2f928a1d7154
tree30a80744a1b68b1257cdbb8823eb98b2d64df598
parente0d913c78610c8214f19eb666c562b3ef66a8ca3
Tegra210: wait for 512 timer ticks before retention entry

This patch programs the CPUECTLR_EL1 and L2ECTLR_EL1 registers,
so that the core waits for 512 generic timer CNTVALUEB ticks before
entering retention state, after executing a WFI instruction.

This functionality is configurable and can be enabled for platforms
by setting the newly defined 'ENABLE_L2_DYNAMIC_RETENTION' and
'ENABLE_CPU_DYNAMIC_RETENTION' flag.

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/common/aarch64/tegra_helpers.S
plat/nvidia/tegra/soc/t210/platform_t210.mk