Lines Matching refs:ssi
347 static bool fsl_ssi_is_ac97(struct fsl_ssi *ssi) in fsl_ssi_is_ac97() argument
349 return (ssi->dai_fmt & SND_SOC_DAIFMT_FORMAT_MASK) == in fsl_ssi_is_ac97()
353 static bool fsl_ssi_is_i2s_master(struct fsl_ssi *ssi) in fsl_ssi_is_i2s_master() argument
355 return (ssi->dai_fmt & SND_SOC_DAIFMT_MASTER_MASK) == in fsl_ssi_is_i2s_master()
359 static bool fsl_ssi_is_i2s_cbm_cfs(struct fsl_ssi *ssi) in fsl_ssi_is_i2s_cbm_cfs() argument
361 return (ssi->dai_fmt & SND_SOC_DAIFMT_MASTER_MASK) == in fsl_ssi_is_i2s_cbm_cfs()
372 struct fsl_ssi *ssi = dev_id; in fsl_ssi_isr() local
373 struct regmap *regs = ssi->regs; in fsl_ssi_isr()
378 sisr2 = sisr & ssi->soc->sisr_write_mask; in fsl_ssi_isr()
383 fsl_ssi_dbg_isr(&ssi->dbg_stats, sisr); in fsl_ssi_isr()
399 static void fsl_ssi_config_enable(struct fsl_ssi *ssi, bool tx) in fsl_ssi_config_enable() argument
401 struct fsl_ssi_regvals *vals = ssi->regvals; in fsl_ssi_config_enable()
406 regmap_update_bits(ssi->regs, REG_SSI_SOR, in fsl_ssi_config_enable()
414 if (ssi->soc->offline_config && ssi->streams) in fsl_ssi_config_enable()
417 if (ssi->soc->offline_config) { in fsl_ssi_config_enable()
433 regmap_update_bits(ssi->regs, REG_SSI_SRCR, srcr, srcr); in fsl_ssi_config_enable()
434 regmap_update_bits(ssi->regs, REG_SSI_STCR, stcr, stcr); in fsl_ssi_config_enable()
435 regmap_update_bits(ssi->regs, REG_SSI_SIER, sier, sier); in fsl_ssi_config_enable()
444 if (ssi->use_dma && tx) { in fsl_ssi_config_enable()
449 regmap_update_bits(ssi->regs, REG_SSI_SCR, in fsl_ssi_config_enable()
454 regmap_read(ssi->regs, REG_SSI_SFCSR, &sfcsr); in fsl_ssi_config_enable()
461 dev_warn(ssi->dev, "Timeout waiting TX FIFO filling\n"); in fsl_ssi_config_enable()
464 regmap_update_bits(ssi->regs, REG_SSI_SCR, in fsl_ssi_config_enable()
468 ssi->streams |= BIT(dir); in fsl_ssi_config_enable()
502 static void fsl_ssi_config_disable(struct fsl_ssi *ssi, bool tx) in fsl_ssi_config_disable() argument
511 aactive = ssi->streams & BIT(adir); in fsl_ssi_config_disable()
513 vals = &ssi->regvals[dir]; in fsl_ssi_config_disable()
516 avals = &ssi->regvals[adir]; in fsl_ssi_config_disable()
525 regmap_update_bits(ssi->regs, REG_SSI_SCR, scr, 0); in fsl_ssi_config_disable()
528 ssi->streams &= ~BIT(dir); in fsl_ssi_config_disable()
534 if (ssi->soc->offline_config && aactive) in fsl_ssi_config_disable()
537 if (ssi->soc->offline_config) { in fsl_ssi_config_disable()
553 regmap_update_bits(ssi->regs, REG_SSI_SRCR, srcr, 0); in fsl_ssi_config_disable()
554 regmap_update_bits(ssi->regs, REG_SSI_STCR, stcr, 0); in fsl_ssi_config_disable()
555 regmap_update_bits(ssi->regs, REG_SSI_SIER, sier, 0); in fsl_ssi_config_disable()
559 regmap_update_bits(ssi->regs, REG_SSI_SOR, in fsl_ssi_config_disable()
563 static void fsl_ssi_tx_ac97_saccst_setup(struct fsl_ssi *ssi) in fsl_ssi_tx_ac97_saccst_setup() argument
565 struct regmap *regs = ssi->regs; in fsl_ssi_tx_ac97_saccst_setup()
568 if (!ssi->soc->imx21regs) { in fsl_ssi_tx_ac97_saccst_setup()
581 static void fsl_ssi_setup_regvals(struct fsl_ssi *ssi) in fsl_ssi_setup_regvals() argument
583 struct fsl_ssi_regvals *vals = ssi->regvals; in fsl_ssi_setup_regvals()
593 if (fsl_ssi_is_ac97(ssi)) in fsl_ssi_setup_regvals()
596 if (ssi->use_dual_fifo) { in fsl_ssi_setup_regvals()
601 if (ssi->use_dma) { in fsl_ssi_setup_regvals()
610 static void fsl_ssi_setup_ac97(struct fsl_ssi *ssi) in fsl_ssi_setup_ac97() argument
612 struct regmap *regs = ssi->regs; in fsl_ssi_setup_ac97()
633 struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(asoc_rtd_to_cpu(rtd, 0)); in fsl_ssi_startup() local
636 ret = clk_prepare_enable(ssi->clk); in fsl_ssi_startup()
646 if (ssi->use_dual_fifo) in fsl_ssi_startup()
657 struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(asoc_rtd_to_cpu(rtd, 0)); in fsl_ssi_shutdown() local
659 clk_disable_unprepare(ssi->clk); in fsl_ssi_shutdown()
679 struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(dai); in fsl_ssi_set_bclk() local
680 struct regmap *regs = ssi->regs; in fsl_ssi_set_bclk()
692 if (ssi->slots) in fsl_ssi_set_bclk()
693 slots = ssi->slots; in fsl_ssi_set_bclk()
694 if (ssi->slot_width) in fsl_ssi_set_bclk()
695 slot_width = ssi->slot_width; in fsl_ssi_set_bclk()
699 (ssi->i2s_net & SSI_SCR_I2S_MODE_MASK) == SSI_SCR_I2S_MODE_MASTER) in fsl_ssi_set_bclk()
706 if (IS_ERR(ssi->baudclk)) in fsl_ssi_set_bclk()
713 if (freq * 5 > clk_get_rate(ssi->clk)) { in fsl_ssi_set_bclk()
718 baudclk_is_used = ssi->baudclk_streams & ~(BIT(substream->stream)); in fsl_ssi_set_bclk()
730 clkrate = clk_get_rate(ssi->baudclk); in fsl_ssi_set_bclk()
732 clkrate = clk_round_rate(ssi->baudclk, tmprate); in fsl_ssi_set_bclk()
772 tx2 = tx || ssi->synchronous; in fsl_ssi_set_bclk()
776 ret = clk_set_rate(ssi->baudclk, baudrate); in fsl_ssi_set_bclk()
805 struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(dai); in fsl_ssi_hw_params() local
806 struct regmap *regs = ssi->regs; in fsl_ssi_hw_params()
812 if (fsl_ssi_is_i2s_master(ssi)) { in fsl_ssi_hw_params()
818 if (!(ssi->baudclk_streams & BIT(substream->stream))) { in fsl_ssi_hw_params()
819 ret = clk_prepare_enable(ssi->baudclk); in fsl_ssi_hw_params()
823 ssi->baudclk_streams |= BIT(substream->stream); in fsl_ssi_hw_params()
833 if (ssi->streams && ssi->synchronous) in fsl_ssi_hw_params()
836 if (!fsl_ssi_is_ac97(ssi)) { in fsl_ssi_hw_params()
842 u8 i2s_net = ssi->i2s_net; in fsl_ssi_hw_params()
845 if (fsl_ssi_is_i2s_cbm_cfs(ssi) && sample_size == 16) in fsl_ssi_hw_params()
857 tx2 = tx || ssi->synchronous; in fsl_ssi_hw_params()
867 struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(asoc_rtd_to_cpu(rtd, 0)); in fsl_ssi_hw_free() local
869 if (fsl_ssi_is_i2s_master(ssi) && in fsl_ssi_hw_free()
870 ssi->baudclk_streams & BIT(substream->stream)) { in fsl_ssi_hw_free()
871 clk_disable_unprepare(ssi->baudclk); in fsl_ssi_hw_free()
872 ssi->baudclk_streams &= ~BIT(substream->stream); in fsl_ssi_hw_free()
878 static int _fsl_ssi_set_dai_fmt(struct fsl_ssi *ssi, unsigned int fmt) in _fsl_ssi_set_dai_fmt() argument
882 ssi->dai_fmt = fmt; in _fsl_ssi_set_dai_fmt()
891 ssi->i2s_net = SSI_SCR_NET; in _fsl_ssi_set_dai_fmt()
896 if (IS_ERR(ssi->baudclk)) { in _fsl_ssi_set_dai_fmt()
897 dev_err(ssi->dev, in _fsl_ssi_set_dai_fmt()
903 ssi->i2s_net |= SSI_SCR_I2S_MODE_MASTER; in _fsl_ssi_set_dai_fmt()
906 ssi->i2s_net |= SSI_SCR_I2S_MODE_SLAVE; in _fsl_ssi_set_dai_fmt()
912 regmap_update_bits(ssi->regs, REG_SSI_STCCR, in _fsl_ssi_set_dai_fmt()
914 regmap_update_bits(ssi->regs, REG_SSI_SRCCR, in _fsl_ssi_set_dai_fmt()
940 scr |= ssi->i2s_net; in _fsl_ssi_set_dai_fmt()
986 if (ssi->synchronous || fsl_ssi_is_ac97(ssi)) { in _fsl_ssi_set_dai_fmt()
994 regmap_update_bits(ssi->regs, REG_SSI_STCR, mask, stcr); in _fsl_ssi_set_dai_fmt()
995 regmap_update_bits(ssi->regs, REG_SSI_SRCR, mask, srcr); in _fsl_ssi_set_dai_fmt()
999 regmap_update_bits(ssi->regs, REG_SSI_SCR, mask, scr); in _fsl_ssi_set_dai_fmt()
1011 struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(dai); in fsl_ssi_set_dai_fmt() local
1014 if (fsl_ssi_is_ac97(ssi)) in fsl_ssi_set_dai_fmt()
1017 return _fsl_ssi_set_dai_fmt(ssi, fmt); in fsl_ssi_set_dai_fmt()
1031 struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(dai); in fsl_ssi_set_dai_tdm_slot() local
1032 struct regmap *regs = ssi->regs; in fsl_ssi_set_dai_tdm_slot()
1042 if (ssi->i2s_net && slots < 2) { in fsl_ssi_set_dai_tdm_slot()
1063 ssi->slot_width = slot_width; in fsl_ssi_set_dai_tdm_slot()
1064 ssi->slots = slots; in fsl_ssi_set_dai_tdm_slot()
1082 struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(asoc_rtd_to_cpu(rtd, 0)); in fsl_ssi_trigger() local
1096 if (tx && fsl_ssi_is_ac97(ssi)) in fsl_ssi_trigger()
1097 fsl_ssi_tx_ac97_saccst_setup(ssi); in fsl_ssi_trigger()
1098 fsl_ssi_config_enable(ssi, tx); in fsl_ssi_trigger()
1104 fsl_ssi_config_disable(ssi, tx); in fsl_ssi_trigger()
1116 struct fsl_ssi *ssi = snd_soc_dai_get_drvdata(dai); in fsl_ssi_dai_probe() local
1118 if (ssi->soc->imx && ssi->use_dma) in fsl_ssi_dai_probe()
1119 snd_soc_dai_init_dma_data(dai, &ssi->dma_params_tx, in fsl_ssi_dai_probe()
1120 &ssi->dma_params_rx); in fsl_ssi_dai_probe()
1260 static int fsl_ssi_hw_init(struct fsl_ssi *ssi) in fsl_ssi_hw_init() argument
1262 u32 wm = ssi->fifo_watermark; in fsl_ssi_hw_init()
1265 fsl_ssi_setup_regvals(ssi); in fsl_ssi_hw_init()
1268 regmap_write(ssi->regs, REG_SSI_SFCSR, in fsl_ssi_hw_init()
1273 if (ssi->use_dual_fifo) in fsl_ssi_hw_init()
1274 regmap_update_bits(ssi->regs, REG_SSI_SCR, in fsl_ssi_hw_init()
1278 if (fsl_ssi_is_ac97(ssi)) { in fsl_ssi_hw_init()
1279 _fsl_ssi_set_dai_fmt(ssi, ssi->dai_fmt); in fsl_ssi_hw_init()
1280 fsl_ssi_setup_ac97(ssi); in fsl_ssi_hw_init()
1290 static void fsl_ssi_hw_clean(struct fsl_ssi *ssi) in fsl_ssi_hw_clean() argument
1293 if (fsl_ssi_is_ac97(ssi)) { in fsl_ssi_hw_clean()
1295 regmap_update_bits(ssi->regs, REG_SSI_SCR, in fsl_ssi_hw_clean()
1298 regmap_write(ssi->regs, REG_SSI_SACNT, 0); in fsl_ssi_hw_clean()
1300 regmap_write(ssi->regs, REG_SSI_SOR, 0); in fsl_ssi_hw_clean()
1302 regmap_update_bits(ssi->regs, REG_SSI_SCR, SSI_SCR_SSIEN, 0); in fsl_ssi_hw_clean()
1318 struct fsl_ssi *ssi, void __iomem *iomem) in fsl_ssi_imx_probe() argument
1324 if (ssi->has_ipg_clk_name) in fsl_ssi_imx_probe()
1325 ssi->clk = devm_clk_get(dev, "ipg"); in fsl_ssi_imx_probe()
1327 ssi->clk = devm_clk_get(dev, NULL); in fsl_ssi_imx_probe()
1328 if (IS_ERR(ssi->clk)) { in fsl_ssi_imx_probe()
1329 ret = PTR_ERR(ssi->clk); in fsl_ssi_imx_probe()
1335 if (!ssi->has_ipg_clk_name) { in fsl_ssi_imx_probe()
1336 ret = clk_prepare_enable(ssi->clk); in fsl_ssi_imx_probe()
1344 ssi->baudclk = devm_clk_get(dev, "baud"); in fsl_ssi_imx_probe()
1345 if (IS_ERR(ssi->baudclk)) in fsl_ssi_imx_probe()
1347 PTR_ERR(ssi->baudclk)); in fsl_ssi_imx_probe()
1349 ssi->dma_params_tx.maxburst = ssi->dma_maxburst; in fsl_ssi_imx_probe()
1350 ssi->dma_params_rx.maxburst = ssi->dma_maxburst; in fsl_ssi_imx_probe()
1351 ssi->dma_params_tx.addr = ssi->ssi_phys + REG_SSI_STX0; in fsl_ssi_imx_probe()
1352 ssi->dma_params_rx.addr = ssi->ssi_phys + REG_SSI_SRX0; in fsl_ssi_imx_probe()
1355 if (ssi->use_dual_fifo) { in fsl_ssi_imx_probe()
1356 ssi->dma_params_tx.maxburst &= ~0x1; in fsl_ssi_imx_probe()
1357 ssi->dma_params_rx.maxburst &= ~0x1; in fsl_ssi_imx_probe()
1360 if (!ssi->use_dma) { in fsl_ssi_imx_probe()
1365 ssi->fiq_params.irq = ssi->irq; in fsl_ssi_imx_probe()
1366 ssi->fiq_params.base = iomem; in fsl_ssi_imx_probe()
1367 ssi->fiq_params.dma_params_rx = &ssi->dma_params_rx; in fsl_ssi_imx_probe()
1368 ssi->fiq_params.dma_params_tx = &ssi->dma_params_tx; in fsl_ssi_imx_probe()
1370 ret = imx_pcm_fiq_init(pdev, &ssi->fiq_params); in fsl_ssi_imx_probe()
1382 if (!ssi->has_ipg_clk_name) in fsl_ssi_imx_probe()
1383 clk_disable_unprepare(ssi->clk); in fsl_ssi_imx_probe()
1388 static void fsl_ssi_imx_clean(struct platform_device *pdev, struct fsl_ssi *ssi) in fsl_ssi_imx_clean() argument
1390 if (!ssi->use_dma) in fsl_ssi_imx_clean()
1392 if (!ssi->has_ipg_clk_name) in fsl_ssi_imx_clean()
1393 clk_disable_unprepare(ssi->clk); in fsl_ssi_imx_clean()
1396 static int fsl_ssi_probe_from_dt(struct fsl_ssi *ssi) in fsl_ssi_probe_from_dt() argument
1398 struct device *dev = ssi->dev; in fsl_ssi_probe_from_dt()
1410 ssi->soc = of_id->data; in fsl_ssi_probe_from_dt()
1414 ssi->has_ipg_clk_name = ret >= 0; in fsl_ssi_probe_from_dt()
1419 ssi->dai_fmt = FSLSSI_AC97_DAIFMT; in fsl_ssi_probe_from_dt()
1421 ret = of_property_read_u32(np, "cell-index", &ssi->card_idx); in fsl_ssi_probe_from_dt()
1426 strcpy(ssi->card_name, "ac97-codec"); in fsl_ssi_probe_from_dt()
1437 ssi->synchronous = true; in fsl_ssi_probe_from_dt()
1441 ssi->use_dma = !of_property_read_bool(np, "fsl,fiq-stream-filter"); in fsl_ssi_probe_from_dt()
1446 ssi->fifo_depth = be32_to_cpup(iprop); in fsl_ssi_probe_from_dt()
1448 ssi->fifo_depth = 8; in fsl_ssi_probe_from_dt()
1452 if (ssi->use_dma && !ret && dmas[2] == IMX_DMATYPE_SSI_DUAL) in fsl_ssi_probe_from_dt()
1453 ssi->use_dual_fifo = true; in fsl_ssi_probe_from_dt()
1463 if (!ssi->card_name[0] && of_get_property(np, "codec-handle", NULL)) { in fsl_ssi_probe_from_dt()
1472 snprintf(ssi->card_name, sizeof(ssi->card_name), in fsl_ssi_probe_from_dt()
1474 make_lowercase(ssi->card_name); in fsl_ssi_probe_from_dt()
1475 ssi->card_idx = 0; in fsl_ssi_probe_from_dt()
1485 struct fsl_ssi *ssi; in fsl_ssi_probe() local
1490 ssi = devm_kzalloc(dev, sizeof(*ssi), GFP_KERNEL); in fsl_ssi_probe()
1491 if (!ssi) in fsl_ssi_probe()
1494 ssi->dev = dev; in fsl_ssi_probe()
1497 ret = fsl_ssi_probe_from_dt(ssi); in fsl_ssi_probe()
1501 if (fsl_ssi_is_ac97(ssi)) { in fsl_ssi_probe()
1502 memcpy(&ssi->cpu_dai_drv, &fsl_ssi_ac97_dai, in fsl_ssi_probe()
1504 fsl_ac97_data = ssi; in fsl_ssi_probe()
1506 memcpy(&ssi->cpu_dai_drv, &fsl_ssi_dai_template, in fsl_ssi_probe()
1509 ssi->cpu_dai_drv.name = dev_name(dev); in fsl_ssi_probe()
1515 ssi->ssi_phys = res->start; in fsl_ssi_probe()
1517 if (ssi->soc->imx21regs) { in fsl_ssi_probe()
1524 if (ssi->has_ipg_clk_name) in fsl_ssi_probe()
1525 ssi->regs = devm_regmap_init_mmio_clk(dev, "ipg", iomem, in fsl_ssi_probe()
1528 ssi->regs = devm_regmap_init_mmio(dev, iomem, ®config); in fsl_ssi_probe()
1529 if (IS_ERR(ssi->regs)) { in fsl_ssi_probe()
1531 return PTR_ERR(ssi->regs); in fsl_ssi_probe()
1534 ssi->irq = platform_get_irq(pdev, 0); in fsl_ssi_probe()
1535 if (ssi->irq < 0) in fsl_ssi_probe()
1536 return ssi->irq; in fsl_ssi_probe()
1539 if (ssi->synchronous && !fsl_ssi_is_ac97(ssi)) { in fsl_ssi_probe()
1540 ssi->cpu_dai_drv.symmetric_rates = 1; in fsl_ssi_probe()
1541 ssi->cpu_dai_drv.symmetric_channels = 1; in fsl_ssi_probe()
1542 ssi->cpu_dai_drv.symmetric_samplebits = 1; in fsl_ssi_probe()
1551 switch (ssi->fifo_depth) { in fsl_ssi_probe()
1561 ssi->fifo_watermark = 8; in fsl_ssi_probe()
1562 ssi->dma_maxburst = 8; in fsl_ssi_probe()
1567 ssi->fifo_watermark = ssi->fifo_depth - 2; in fsl_ssi_probe()
1568 ssi->dma_maxburst = ssi->fifo_depth - 2; in fsl_ssi_probe()
1572 dev_set_drvdata(dev, ssi); in fsl_ssi_probe()
1574 if (ssi->soc->imx) { in fsl_ssi_probe()
1575 ret = fsl_ssi_imx_probe(pdev, ssi, iomem); in fsl_ssi_probe()
1580 if (fsl_ssi_is_ac97(ssi)) { in fsl_ssi_probe()
1581 mutex_init(&ssi->ac97_reg_lock); in fsl_ssi_probe()
1590 &ssi->cpu_dai_drv, 1); in fsl_ssi_probe()
1596 if (ssi->use_dma) { in fsl_ssi_probe()
1597 ret = devm_request_irq(dev, ssi->irq, fsl_ssi_isr, 0, in fsl_ssi_probe()
1598 dev_name(dev), ssi); in fsl_ssi_probe()
1600 dev_err(dev, "failed to claim irq %u\n", ssi->irq); in fsl_ssi_probe()
1605 fsl_ssi_debugfs_create(&ssi->dbg_stats, dev); in fsl_ssi_probe()
1608 fsl_ssi_hw_init(ssi); in fsl_ssi_probe()
1611 if (ssi->card_name[0]) { in fsl_ssi_probe()
1619 if (fsl_ssi_is_ac97(ssi)) in fsl_ssi_probe()
1622 ssi->card_pdev = platform_device_register_data(parent, in fsl_ssi_probe()
1623 ssi->card_name, ssi->card_idx, NULL, 0); in fsl_ssi_probe()
1624 if (IS_ERR(ssi->card_pdev)) { in fsl_ssi_probe()
1625 ret = PTR_ERR(ssi->card_pdev); in fsl_ssi_probe()
1627 ssi->card_name, ret); in fsl_ssi_probe()
1635 fsl_ssi_debugfs_remove(&ssi->dbg_stats); in fsl_ssi_probe()
1637 if (fsl_ssi_is_ac97(ssi)) in fsl_ssi_probe()
1640 if (fsl_ssi_is_ac97(ssi)) in fsl_ssi_probe()
1641 mutex_destroy(&ssi->ac97_reg_lock); in fsl_ssi_probe()
1643 if (ssi->soc->imx) in fsl_ssi_probe()
1644 fsl_ssi_imx_clean(pdev, ssi); in fsl_ssi_probe()
1651 struct fsl_ssi *ssi = dev_get_drvdata(&pdev->dev); in fsl_ssi_remove() local
1653 fsl_ssi_debugfs_remove(&ssi->dbg_stats); in fsl_ssi_remove()
1655 if (ssi->card_pdev) in fsl_ssi_remove()
1656 platform_device_unregister(ssi->card_pdev); in fsl_ssi_remove()
1659 fsl_ssi_hw_clean(ssi); in fsl_ssi_remove()
1661 if (ssi->soc->imx) in fsl_ssi_remove()
1662 fsl_ssi_imx_clean(pdev, ssi); in fsl_ssi_remove()
1664 if (fsl_ssi_is_ac97(ssi)) { in fsl_ssi_remove()
1666 mutex_destroy(&ssi->ac97_reg_lock); in fsl_ssi_remove()
1675 struct fsl_ssi *ssi = dev_get_drvdata(dev); in fsl_ssi_suspend() local
1676 struct regmap *regs = ssi->regs; in fsl_ssi_suspend()
1678 regmap_read(regs, REG_SSI_SFCSR, &ssi->regcache_sfcsr); in fsl_ssi_suspend()
1679 regmap_read(regs, REG_SSI_SACNT, &ssi->regcache_sacnt); in fsl_ssi_suspend()
1689 struct fsl_ssi *ssi = dev_get_drvdata(dev); in fsl_ssi_resume() local
1690 struct regmap *regs = ssi->regs; in fsl_ssi_resume()
1697 ssi->regcache_sfcsr); in fsl_ssi_resume()
1698 regmap_write(regs, REG_SSI_SACNT, ssi->regcache_sacnt); in fsl_ssi_resume()