I am developing a BSP (board Support Package) for a Linux board. The board contains a device which runs on SPI. I would likw your suggestions on weather I should provide a device specific driver with the BSP or should a SPI driver be sufficient.
Also if some device has user mode driver instead of kernel mode. Then this user mode driver will be part of BSP?
Until I read this article I didn't know that there was a 'SPI' protocol driver.
The kernel documentation for the SPI framework is a good place to start. You can find it in your kernel source documentation directory. Here is a link spi-summary.
Creating drivers for BSD is at the bottom of the page:
I would go with a driver for SPI and if that isn't efficient than consider the webpage for BSD-
Hope this helps
Thanks for the reply.
But my confusion is that my SDK comes with SPI generic driver i.e. this driver has no support for registers of the device attached to my board. So another driver needs to be developed for BSP using that driver which comes with SDK and adding device registers specific support in this?
I mean generic SPI driver is enough for BSP or not?
Yes,generic is enough for BSP.
SPI-is the protocol driver with a character device interface.
(I didn't know that) I'm learning too-
Unless the registration of the SPI Master driver and the attatched device is not right.
You could enable the SPI master driver in the kernel, but until someone
registers the corresponding devices at run-time nothing will happen.
|All times are GMT -5. The time now is 11:30 AM.|