cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jazloh
Visitor
Visitor
5,852 Views
Registered: ‎08-12-2014

Need help with Xilinx Linux SPI Driver

Hi,

 

I have a problem with using Linux SPI Driver. The issue I am facing is that the driver will go into wait_for_completion state (reside in xspips_start_transfer in the device driver in the spi-xilinx-ps.c) after a few successful test. The kernel I am using is linux-xlnx, Xilinx-v14.4, with XPS 14.6.

I am currently using Zedboard version C for the development.

Tags (2)
0 Kudos
2 Replies
jazloh
Visitor
Visitor
5,839 Views
Registered: ‎08-12-2014

Hi,

 

For further reference, the current fix i use to stop getting into the issue above,

is to change the Driver from manual start to auto start enable.

 

Originally,

 

xspips_write(regs_base + XSPIPS_CR_OFFSET, 0x0000FC01);

 

to

 

xspips_write(regs_base + XSPIPS_CR_OFFSET, 0x00007C01);

 

 

It seems there is a premature of manual enable the device before it is ready at certain a point in the driver, which cause the random hang at wait_for_completion.

 

regards,

Jazloh

0 Kudos
trenz-al
Scholar
Scholar
5,827 Views
Registered: ‎11-09-2013

make sure SS_I input is tied HIGH in your logic

0 Kudos