TI中文支持网
TI专业的中文技术问题搜集分享网站

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);
}
}

Shine:

请问具体怎么不工作?mcasp时序是怎么样的?

,

he lomhjun:

mcasp时序和正常的一样,但是数据输出线,没有数据输出

,

Shine:

方便发一下时序图吗?代码是基于RTOS还是Linux的?代码修改之前mcasp是能正常工作的是么?

,

he lomhjun:

1464.Desktop.zip代码是基于Linux的,修改之前mcasp是能正常工作的

,

Shine:

我发到e2e上问产品线工程师,请关注下面的帖子。https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1030345/dra744-how-to-set-the-dra74x-mcasp1_aclkx-and-mcasp1_fsx-clock-output-always-on

赞(0)
未经允许不得转载:TI中文支持网 » DRA744: how to set the DRA74X mcasp1 interface mcasp1_ACLKX and mcasp1_FSX clock output Always keep
分享到: 更多 (0)