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.

[参考译文] TDA4VL-Q1:如何在 Linux uboot 中控制 SPI0输入和输出端口、因为 SPI0_D0和 SPI0_D1以反向方式连接

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1198948/tda4vl-q1-how-to-control-spi0-input-and-output-port-in-linux-uboot-because-spi0_d0-and-spi0_d1-are-connected-reversely

器件型号:TDA4VL-Q1

您好、专家:

  在最近的 TDA4项目中、我们的硬件 SPI0_D0和 SPI_D1以反向方式连接。

  如何在 Linux uboot 中控制 SPI0输入和输出端口?

根据 TDA4数据表、SPI0_D1和 SPI0_D1可以灵活配置、  

 

我尝试将其应用到 uboot 代码、如下所示:

但  SPI_xfer 仍然失败、Rx 数据全部为0。

 当 SPI0_D0和 SPI0_D1反向连接时、如何实现 SPI_xfer 成功?