struct fsl_sai *sai = dev_get_drvdata(cpu_dai->dev);
unsigned char offset = sai->soc->reg_offset;
- /* Software Reset for both Tx and Rx */
- regmap_write(sai->regmap, FSL_SAI_TCSR(offset), FSL_SAI_CSR_SR);
- regmap_write(sai->regmap, FSL_SAI_RCSR(offset), FSL_SAI_CSR_SR);
- /* Clear SR bit to finish the reset */
- regmap_write(sai->regmap, FSL_SAI_TCSR(offset), 0);
- regmap_write(sai->regmap, FSL_SAI_RCSR(offset), 0);
-
regmap_update_bits(sai->regmap, FSL_SAI_TCR1(offset),
sai->soc->fifo_depth - 1,
sai->soc->fifo_depth - FSL_SAI_MAXBURST_TX);