arm: omap: clockdomain: add support for preventing domain transitions

Some clockdomains can't support manual domain transitions triggered by
clock framework, and must be prevented from doing so. Added clkdm flag
CLKDM_NO_MANUAL_TRANS for doing this.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: David Rodero <david@codiguiel.net>
arm: omap3: prevent per_clkdm from attempting manual domain transitions

Attempting this will cause problems especially with off-mode enabled.
Previously this issue was hidden by the fact that per_clkdm never
attempted manual idle by software, as the usecounts for the clockdomain
were broken.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: David Rodero <david@codiguiel.net>
Revert "mach: pm34xx: idle current optimization for latona"

It's not required since the values are not changed.

This reverts commit 2ab403ba760030391d553c3f35a44c86383b4e3b.

Signed-off-by: David Rodero <david@codiguiel.net>
OMAP3: abort suspend if omap2_gpio_prepare_for_idle() reports failure

Otherwise, since d40caba... ("ARM: omap4: gpio: abort suspend if a level
wake interrupt is pending") and 05647ea... ("OMAP3: PM: Fix compile
after gpio wakeup API change"), we end up going into suspend with GPIOs
in an inconsistent state.

Signed-off-by: David Rodero <david@codiguiel.net>
OMAP3: debug line for abort_gpio

Signed-off-by: David Rodero <david@codiguiel.net>