]> git.baikalelectronics.ru Git - arm-tf.git/commit
Tegra: Fix the delay loop used during SC7 exit
authorVarun Wadekar <vwadekar@nvidia.com>
Wed, 8 Jul 2015 08:16:42 +0000 (13:46 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Fri, 17 Jul 2015 13:36:47 +0000 (19:06 +0530)
commit6a367fd1efb37a02df22b5f8b61a7b3d5c5a12a6
treeed4b62763d50ea4119abd9c1979740518e080c3b
parentc896132679440481cfca0324255dbdfb689ed203
Tegra: Fix the delay loop used during SC7 exit

This patch fixes the delay loop used to wake up the BPMP during SC7 exit.
The earlier loop would fail just when the timer was about to wrap-around
(e.g. when TEGRA_TMRUS_BASE is 0xfffffffe, the target value becomes 0,
which would cause the loop to exit before it's expiry).

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/common/drivers/flowctrl/flowctrl.c