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: how to control SPI0 input and output port in linux uboot, because SPI0_D0 and SPI0_D1 are connected reversely

Part Number: TDA4VL-Q1

Hi,experts:

    In the recent TDA4 project, our hardware SPI0_D0 and SPI_D1 are connected reversely.

    how to control SPI0 input and output port in linux uboot?

from the TDA4 datasheet, SPI0_D1 and SPI0_D1 can be flexible configure, 

 

And I try to apply this to the uboot code as below:

but spi_xfer still fail, the rx data are all 0.

How to achieve spi_xfer successful when SPI0_D0 and SPI0_D1 are connected reversely?