spigen problem
Mori Hiroki
yamori813 at yahoo.co.jp
Mon Apr 29 17:20:58 UTC 2019
Hi
I add small spi lcd on RT3050. This lcd controller is S6D0151.
S6D0151 transfer is tree byte command then tree byte data.
I use spigen mruby rapper. This rapper use SPIGENIOC_TRANSFER.
I try to send tree byte command. But spi transfer is six byte.
This is reason.
sys/dev/spibus/spigen.c
error = copyin(st->st_command.iov_base, transfer.tx_cmd,
transfer.tx_cmd_sz = transfer.rx_cmd_sz = st->st_command.iov_len);
This lcd not work six byte transfer.
How do I fix this ?
Regards
Hiroki Mori
More information about the freebsd-mips
mailing list