This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to remove RTC Alarm from PM Wakeup sources

Other Parts Discussed in Thread: AM3352

I'm runnkng linux 3.12 on a AM3352 SoC (CM-T335 from Compulab). on This board the SoC RTC is disabled. An external RTC is mounted on I2C bus instead.

When I put the system in standby state it wakes up immediately due to "RTC Alarm":

root@localhost:~# echo standby > /sys/power/state
[ 151.471294] PM: Syncing filesystems ... done.
[ 151.531795] Freezing user space processes ... (elapsed 0.002 seconds) done.
[ 151.542653] Freezing remaining freezable tasks ... (elapsed 0.003 seconds) done.
[ 151.555070] Suspending console(s) (use no_console_suspend to debug)
[ 151.595016] PM: suspend of devices complete after 23.540 msecs
[ 151.605885] PM: late suspend of devices complete after 10.819 msecs
[ 151.617079] PM: noirq suspend of devices complete after 11.148 msecs
[ 151.617206] Disabling non-boot CPUs ...
[ 151.617426] PM: Successfully put all powerdomains to target state
[ 151.617426] PM: Wakeup source RTC Alarm
[ 151.638734] PM: noirq resume of devices complete after 21.167 msecs
[ 151.648312] PM: early resume of devices complete after 7.647 msecs
[ 151.664211] PM: resume of devices complete after 15.837 msecs
[ 151.731698] Restarting tasks ... done.

 

As I said, SoC RTC is expected to be disable, as described in this page in the "RTC feature disabled" column:

http://processors.wiki.ti.com/index.php/AM335x_Schematic_Checklist#RTC

Is there any way to completely remove "RTC Alarm" from PM wakeup sources?

Thanks in advance

Carlo