Anyone used the sspi command in a recent version of uboot?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Anyone used the sspi command in a recent version of uboot?

1,581 Views
EdSutter
Senior Contributor II

Context: iMX6D custom hardware, derived from SABRESD evaluation board.

I have an SPI peripheral device that I was hoping I could test out with the 'spi' command in uboot.

In looking at that code (cmd_spi.c) and it appears that there is no option to just do a write to

a device (without a followup read).  The call to spi_xfer passes dout and din, both of which are always real

pointers (as opposed to NULL).  Below that, the spi_xchg_single() function checks dout & din for NULL to determine if

the access is a read and/or a write.  Since I can't set din to null in the cmd_spi.c code, it appears that I don't

have that option.

Has anyone used this command?

Is this a valid approach to testing out an SPI peripheral?

One nit... why is it called 'sspi' instead of just 'spi'?

Ed

Labels (1)
0 Kudos
2 Replies

555 Views
YixingKong
Senior Contributor IV

Ed


We are sorry for getting back to you so late. Are you still stuck with the issue? If you have somehow to resolved the

issue, can we close the discussion? If you still need help, please feel free to reply with an update to this discussion.

Thanks,
Yixing

0 Kudos

555 Views
EdSutter
Senior Contributor II

Yixing,

Apparently nobody uses this command, so I guess you can close it.

It has not been answered/resolved.

Ed

0 Kudos