clk: imx: vf610: Disable automatic clock gating for lpuart in LPSTOP mode
authorStefan Agner <stefan@agner.ch>
Tue, 28 Jun 2016 05:32:28 +0000 (11:02 +0530)
committerMichael Turquette <mturquette@baylibre.com>
Fri, 8 Jul 2016 18:38:17 +0000 (11:38 -0700)
commita06498297d233fd5074da14f25e72c2f104561d3
tree2bfa2d43fb3d2247797a4e2cb105647fb0194ca1
parentc200c39b2d3906dfd5c7d6b3918befda5b5d7ea2
clk: imx: vf610: Disable automatic clock gating for lpuart in LPSTOP mode

In order to allow wake support in STOP sleep mode, clocks are needed. Use
imx_clk_gate2_cgr to disable automatic clock gating in low power mode STOP.
This allows to enable wake by UART using:
echo enabled > /sys/class/tty/ttyLP0/power/wakeup

However, if wake is not enabled, the driver should disable the clocks explicitly
to save power.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/20160628053235.5114-3-bhuvanchandra.dv@toradex.com
drivers/clk/imx/clk-vf610.c