/* Return: 0 on success, -1 if the module can't be powered up, or if there is a timeout waiting for the transition.  */
int psc_enable_module(u32 mod_num)
/* Return: 0 on success, -1 if the module can't be powered up, or if there is a timeout waiting for the transition.  */
int psc_enable_module(u32 mod_num)
{
	u32 mdctl;
	mdctl = __raw_readl(KS2_PSC_BASE + PSC_REG_MDCTL(mod_num));
	if ((mdctl & 0x3f) == PSC_REG_VAL_MDSTAT_STATE_ON)
		return 0;
	return psc_set_state(mod_num, PSC_REG_VAL_MDCTL_NEXT_ON);
}