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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,727 次查看
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

标签 (1)
0 项奖励
回复
2 回复数

701 次查看
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 项奖励
回复

701 次查看
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 项奖励
回复