Re: [Patch] ARM/MXS/i.MX28: distinguish POR and wake-up event correctly

2012-12-03 Thread Sascha Hauer
On Fri, Nov 30, 2012 at 12:14:04PM +0100, Juergen Beisert wrote: > When the built-in RTC in the i.MX28 is programmed to wake-up the SoC, the RTC > reports two events: RST and WAKE. RST is okay in this case, because the PMIC > was really powered down. But the real event is the WAKE from the RTC and

[Patch] ARM/MXS/i.MX28: distinguish POR and wake-up event correctly

2012-11-30 Thread Juergen Beisert
When the built-in RTC in the i.MX28 is programmed to wake-up the SoC, the RTC reports two events: RST and WAKE. RST is okay in this case, because the PMIC was really powered down. But the real event is the WAKE from the RTC and should have precedence over the RST event. So, report the WAKE event fo