w*s 发帖数: 7227 | 1 【 以下文字转载自 Linux 讨论区 】
发信人: wds (净洗前尘,从头再来), 信区: Linux
标 题: Can i register a ssc driver (a serial interface device) to be a spi driver ?
发信站: BBS 未名空间站 (Mon Mar 5 10:13:04 2012, 美东)
For normal spi devices, they call "spi_register_master".
atmel_spi.c
I have a ssc module in the Arm chip, want to use it to emulate spi device.
Plan to implement transfer() method as other spi device drivers.
If i register it using spi_register_master in probe(),
can i send spi IOCTLs from spidev.c to it ?
I know i need to fill in stuff in this ssc driver,
but hopefully all high level spi related stuff stays the same. Basically
emulates ssc as spi.
Any suggestions ? |
|