LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 01-30-2013, 08:51 AM   #1
waqas_shafique
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Rep: Reputation: Disabled
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?
 
Old 02-07-2013, 11:10 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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
 
Old 02-07-2013, 11:28 PM   #3
waqas_shafique
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-08-2013, 12:13 AM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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

Last edited by Ztcoracat; 02-08-2013 at 12:23 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu10.4 BSP ShivMangal Linux - Kernel 3 12-07-2010 02:26 AM
Linux BSP Architecture... sumeet4linux Linux - Kernel 0 01-20-2009 02:09 PM
Pxa320 Bsp belcor Linux - Embedded & Single-board computer 0 12-09-2007 10:01 PM
LXer: BSP Marathon / BSP in Berlin (Germany) September 22-24 LXer Syndicated Linux News 0 09-06-2006 07:54 PM
LXer: BSP Marathon / BSP in =?iso-8859-1?Q?ich?= (Germany) 15.-17. September LXer Syndicated Linux News 0 08-23-2006 08:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration