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.

AM335X: Disable wake on uart0 in userspace

Hello,

I currently have a board using AM335X and I was wondering how to disable waking from suspend-to-ram via uart0 in userspace.

I have referred to AM335x_Linux_Power_Management_User_Guide#Wakeup_sources for an example on disabling wake up source, but my output for uart0 is already disabled:

/sys/devices/platform/omap/omap_uart.0/tty/ttyO0/power# cat wakeup
disabled

I can currently use mem_util and manually set WER for UART0 to all disabled to prevent UART0 from waking from suspend:

mem_util 0x44E0905C b 0

but I would like a more elegant solution to disable wake from UART0 in userspace (i.e. echoing to a file in /sys/...)

Thanks