clear wakeup enable bit upon resuming from suspend
The FVP specific code that gets called after a cpu has been physically
powered on after having been turned off or suspended earlier does not
clear the PWRC.PWKUPR.WEN bit. Not doing so causes problems if: a cpu
is suspended, woken from suspend, powered down through a cpu_off call
& receives a spurious interrupt. Since the WEN bit is not cleared
after the cpu woke up from suspend, the spurious wakeup will power the
cpu on. Since the cpu_off call clears the jump address in the mailbox
this spurious wakeup will cause the cpu to crash.

This patch fixes this issue by clearing the WEN bit whenever a cpu is
powered up.

Change-Id: Ic91f5dffe1ed01d76bc7fc807acf0ecd3e38ce5b
1 parent 4a826dd commit b127cdb879aed2ced388af3cd9481e80c68f3e8c
@Achin Gupta Achin Gupta authored on 12 Nov 2013
Dan Handley committed on 5 Dec 2013
Showing 4 changed files
View
docs/change-log.md
View
drivers/power/fvp_pwrc.c
View
drivers/power/fvp_pwrc.h
View
plat/fvp/fvp_pm.c