/* Restore the SSP configuration saved previously by ssp_save_state.  */
void ssp_restore_state(struct ssp_dev *dev, struct ssp_state *state)
/* Restore the SSP configuration saved previously by ssp_save_state.  */
void ssp_restore_state(struct ssp_dev *dev, struct ssp_state *state)
{
	struct ssp_device *ssp = dev->ssp;
	uint32_t sssr = SSSR_ROR | SSSR_TUR | SSSR_BCE;
	__raw_writel(sssr, ssp->mmio_base + SSSR);
	__raw_writel(state->cr0 & ~SSCR0_SSE, ssp->mmio_base + SSCR0);
	__raw_writel(state->cr1, ssp->mmio_base + SSCR1);
	__raw_writel(state->to,  ssp->mmio_base + SSTO);
	__raw_writel(state->psp, ssp->mmio_base + SSPSP);
	__raw_writel(state->cr0, ssp->mmio_base + SSCR0);
}