/* If module is marked as SWSUP_SIDLE, force the module into slave idle; otherwise, configure it for smart-idle. If module is marked as SWSUP_MSUSPEND, force the module into master standby; otherwise, configure it for smart-standby. No return value.  */
static void _sysc_idle(struct omap_hwmod *oh)
/* If module is marked as SWSUP_SIDLE, force the module into slave idle; otherwise, configure it for smart-idle. If module is marked as SWSUP_MSUSPEND, force the module into master standby; otherwise, configure it for smart-standby. No return value.  */
static void _sysc_idle(struct omap_hwmod *oh)
{
	u8 idlemode;
	u32 v;
	if (!oh->sysconfig)
		return;
	v = oh->_sysc_cache;
	if (oh->sysconfig->sysc_flags & SYSC_HAS_SIDLEMODE) {
		idlemode = (oh->flags & HWMOD_SWSUP_SIDLE) ?
			HWMOD_IDLEMODE_FORCE : HWMOD_IDLEMODE_SMART;
		_set_slave_idlemode(oh, idlemode, &v);
	}
	if (oh->sysconfig->sysc_flags & SYSC_HAS_MIDLEMODE) {
		idlemode = (oh->flags & HWMOD_SWSUP_MSTANDBY) ?
			HWMOD_IDLEMODE_FORCE : HWMOD_IDLEMODE_SMART;
		_set_master_standbymode(oh, idlemode, &v);
	}
	_write_sysconfig(v, oh);
}