ARM: OMAP2+: clockdomain: Reintroduce SW_SLEEP Support
authorDave Gerlach <d-gerlach@ti.com>
Fri, 28 Feb 2014 19:43:46 +0000 (12:43 -0700)
committerPaul Walmsley <paul@pwsan.com>
Fri, 28 Feb 2014 19:43:46 +0000 (12:43 -0700)
commitf67f04ba279a882677149e0b417970f75de923c6
tree7e290733f5d5e38daaa72f11aaa3f6f0f088b0e4
parenta7daf64a34cf9c48708aa8bcf0ce99abc7602cc2
ARM: OMAP2+: clockdomain: Reintroduce SW_SLEEP Support

Since commit 65aa94b204d (ARM: OMAP4: clockdomain/CM code: Update supported
transition modes), on OMAP4, all CLKDMs support HW_AUTO so this is used
instead of SW_SLEEP for the idling of clockdomains. However, additional
SoCs now leverage the OMAP4 clockdomain code so update it to use SW_SLEEP
if the clockdomain data specifies that the CLKDM has the
CLKDM_CAN_FORCE_SLEEP flag set rather than using HW_AUTO for both cases.

Without this patch, clockdomain handling is broken on AM43xx and no
clockdomains are actually being put into idle on this platform. Any
attempt to idle them results in the HW_AUTO value (0x3) being written
to them with no apparent effect.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
[paul@pwsan.com: added extra explanatory text from patch set intro]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/cminst44xx.c