Accessing IMX6 spi in kernel space

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Accessing IMX6 spi in kernel space

1,192件の閲覧回数
kiruthikavarada
Contributor III

Hi All,

  Currently IMX6 spi master is working with spidev driver and user application.

  How can I access the driver in kernel space itself?? I want to send some commands for system halt through SPI.

  Where can I obtain spi_device pointer?? Can I use  to_spi_device(dev) with dev information from platform_data.

  Suggest me the way to get spi_device pointer in kernel.

Thanks,

0 件の賞賛
返信
1 返信

637件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi kiruthika

to access in kernel space one can write kernel test application (driver),

as for example described below

Making an Embedded Linux Kernel Device Driver | Tuomas Nylund

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信