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.

[参考译文] AM3352:SPI1在执行 DAM_Request_CHAN 时获取错误的 DMA CHAN_ID

Guru**** 2553360 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1054290/am3352-spi1-get-incorrect-dma-chan_id-when-doing-dam_request_chan

器件型号:AM3352

我使用内核4.4.32通过 DMA 实现 SPI 从模式。

我使用 dma_request_chan 获取 SPI1的 DMA、但对于 tx0和 rx0、我获得 cha_id = 40/41。

因此、我将 DMA 从42/43修改为20/21进行测试、并得到 CHAN_ID = 0/1。

我发现 spi0获得了正确的 cha_id、但 SPI1没有。

如何解决让 DMA 和 SPI 获得正确的 DMA 事件的各种问题?

SPI1SPI@481a0000
compatible ="ti、omap4-mcspi"
#address-cells =<1>
#size-cells =<0>
reg =<0x481a0000 0x400>
interrupts =<125>
tispi-num-cs =<2>
txtihwmds ="SPIma 1、



"r42"
;"rdma&dma 1、"r4;"rdma&4;txeDMA" 
状态="已禁用"
}; 
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    请注意、Linux 内核4.4太旧了、我们无法在 TI 论坛上提供支持。 您可以在论坛中搜索解决该发行版或类似发行版上 DMA 问题的旧版线程。 例如、我可能首先执行类似的 Google 站点搜索
    站点:e2e.ti.com AM335x SPI DMA

    此致、

    Nick