diff options
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.c')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index c3a5889d8ad..955861acc0c 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -777,12 +777,6 @@ static void _enable_sysc(struct omap_hwmod *oh) | |||
777 | _set_master_standbymode(oh, idlemode, &v); | 777 | _set_master_standbymode(oh, idlemode, &v); |
778 | } | 778 | } |
779 | 779 | ||
780 | if (sf & SYSC_HAS_AUTOIDLE) { | ||
781 | idlemode = (oh->flags & HWMOD_NO_OCP_AUTOIDLE) ? | ||
782 | 0 : 1; | ||
783 | _set_module_autoidle(oh, idlemode, &v); | ||
784 | } | ||
785 | |||
786 | /* | 780 | /* |
787 | * XXX The clock framework should handle this, by | 781 | * XXX The clock framework should handle this, by |
788 | * calling into this code. But this must wait until the | 782 | * calling into this code. But this must wait until the |
@@ -797,6 +791,17 @@ static void _enable_sysc(struct omap_hwmod *oh) | |||
797 | /* If slave is in SMARTIDLE, also enable wakeup */ | 791 | /* If slave is in SMARTIDLE, also enable wakeup */ |
798 | if ((sf & SYSC_HAS_SIDLEMODE) && !(oh->flags & HWMOD_SWSUP_SIDLE)) | 792 | if ((sf & SYSC_HAS_SIDLEMODE) && !(oh->flags & HWMOD_SWSUP_SIDLE)) |
799 | _enable_wakeup(oh); | 793 | _enable_wakeup(oh); |
794 | |||
795 | /* | ||
796 | * Set the autoidle bit only after setting the smartidle bit | ||
797 | * Setting this will not have any impact on the other modules. | ||
798 | */ | ||
799 | if (sf & SYSC_HAS_AUTOIDLE) { | ||
800 | idlemode = (oh->flags & HWMOD_NO_OCP_AUTOIDLE) ? | ||
801 | 0 : 1; | ||
802 | _set_module_autoidle(oh, idlemode, &v); | ||
803 | _write_sysconfig(v, oh); | ||
804 | } | ||
800 | } | 805 | } |
801 | 806 | ||
802 | /** | 807 | /** |