This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRA744: how to set the DRA74X mcasp1 interface mcasp1_ACLKX and mcasp1_FSX clock output Always keep

Part Number: DRA744

how to  set the DRA74X mcasp1 interface  mcasp1_ACLKX and mcasp1_FSX clock  output  Always keep ?  my modfy oIn the following, clock  output  is Always keep ,but not work normal!!!

static int davinci_mcasp_probe(struct platform_device *pdev)
{

..........

if (ret) {
dev_err(&pdev->dev, "register PCM failed: %d\n", ret);
goto err;
}
mcasp_set_ctl_reg(mcasp, DAVINCI_MCASP_GBLCTLX_REG, TXHCLKRST);
mcasp_set_ctl_reg(mcasp, DAVINCI_MCASP_GBLCTLX_REG, TXCLKRST);

return 0;

err:
pm_runtime_disable(&pdev->dev);
return ret;
}

static void mcasp_stop_tx(struct davinci_mcasp *mcasp)
{
u32 val = 0;

/* disable IRQ sources */
mcasp_clr_bits(mcasp, DAVINCI_MCASP_EVTCTLX_REG,
mcasp->irq_request[SNDRV_PCM_STREAM_PLAYBACK]);

/*
* In synchronous mode keep TX clocks running if the capture stream is
* still running.
*/
/*if (mcasp_is_synchronous(mcasp) && mcasp->streams)
val = TXHCLKRST | TXCLKRST | TXFSRST;

mcasp_set_reg(mcasp, DAVINCI_MCASP_GBLCTLX_REG, val);
mcasp_set_reg(mcasp, DAVINCI_MCASP_TXSTAT_REG, 0xFFFFFFFF);*/

if (mcasp->txnumevt) { /* disable FIFO */
u32 reg = mcasp->fifo_base + MCASP_WFIFOCTL_OFFSET;

mcasp_clr_bits(mcasp, reg, FIFO_ENABLE);
}
}