UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor jazloh
Visitor
5,641 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
Visitor jazloh
Visitor
5,628 Views
Registered: ‎08-12-2014

Re: Need help with Xilinx Linux SPI Driver

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
Highlighted
Scholar trenz-al
Scholar
5,616 Views
Registered: ‎11-09-2013

Re: Need help with Xilinx Linux SPI Driver

make sure SS_I input is tied HIGH in your logic

0 Kudos