Skip to content
Commit 1ddb8f6d authored by Petlozu Pravareshwar's avatar Petlozu Pravareshwar Committed by Thierry Reding
Browse files

soc/tegra: pmc: Fix dual edge triggered wakes



When a wake event is defined to be triggered on both positive and
negative edge of the input wake signal, it is crucial to know the
current state of the signal when going into suspend. The intended way to
obtain the current state of the wake signals is to read the
WAKE_AOWAKE_SW_STATUS register, which should contains the raw state of
the wake signals.

However, this register is edge triggered, an edge will not be generated
for signals that are already asserted prior to the assertion of
WAKE_LATCH_SW.

To workaround this, change the polarity of the wake level from '0' to
'1' while latching the signals, as this will generate an edge for
signals that are set to '1'.

Signed-off-by: default avatarStefan Kristiansson <stefank@nvidia.com>
Signed-off-by: default avatarPetlozu Pravareshwar <petlozup@nvidia.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent c9c4ddb2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment