/* Perform a soft reset of ELM and return after reset is done.  */
void elm_reset(void)
/* Perform a soft reset of ELM and return after reset is done.  */
void elm_reset(void)
{
	writel((readl(&elm_cfg->sysconfig) | ELM_SYSCONFIG_SOFTRESET),
			&elm_cfg->sysconfig);
	while ((readl(&elm_cfg->sysstatus) & ELM_SYSSTATUS_RESETDONE) !=
		ELM_SYSSTATUS_RESETDONE)
		;
}