LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   BSP confusion (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/bsp-confusion-4175447846/)

waqas_shafique 01-30-2013 08:51 AM

BSP confusion
 
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?

Ztcoracat 02-07-2013 11:10 PM

Hi:

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.

http://www.jumpnowtek.com/index.php?...d=57&Itemid=62

Creating drivers for BSD is at the bottom of the page:
http://www.adeneo-embedded.com/Servi...er-Development

I would go with a driver for SPI and if that isn't efficient than consider the webpage for BSD-
Hope this helps

waqas_shafique 02-07-2013 11:28 PM

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?

Regards
Waqas

Ztcoracat 02-08-2013 12:13 AM

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.
http://www.friendlyarm.net/forum/topic/4801


All times are GMT -5. The time now is 11:25 AM.