Skip to content
Commit b58ab56d authored by Marek Vasut's avatar Marek Vasut Committed by Patrice Chotard
Browse files

ARM: stm32: Inhibit PDDS because CSTBYDIS is set



The PWR_MPUCR CSTBYDIS bit is set, therefore the CA cores can never
enter CStandby state and would always end up in CStop state. Clear
the PDDS bit, which indicates the CA cores can enter CStandby state
as it makes little sense to keep it set with CSTBYDIS also set.

This does however fix a problem too. When both PWR_MPUCR and PWR_MCUCR
PDDS bits are set, then the chip enters CStandby state even though the
PWR_MCUCR CSTBYDIS is set. Clearing the PWR_MPUCR PDDS prevents that
from happening.

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Reviewed-by: default avatarPatrick Delaunay <patrick.delaunay@foss.st.com>
parent fc7bd99f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment