How to expose /sys/class/gpio/gpioX/power/wakeup file


I am trying to enable GPIO interrupt wakeups from standby mode using linux 3.12.10 (sitara 7.0 sdk) on the beagle bone black. I can get the GPIOs to interrupt just fine, but when I try to enable wakeup by doing:

echo enabled > /sys/class/gpio/gpioX/power/wakeup [where X is any GPIO number] I discover that wakeup is not exposed/supported.

I know the GPIO driver for am335x supports this, so I am either thinking that my .config file or .dts file is missing something.

Any insight is much appreciated.