LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 09:51 AM   #1
waqas_shafique
LQ Newbie
 
Registered: Oct 2012
Posts: 5

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-08-2013, 12:10 AM   #2
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: CentOS & Linux Mint
Posts: 3,402
Blog Entries: 1

Rep: Reputation: Disabled
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-08-2013, 12:28 AM   #3
waqas_shafique
LQ Newbie
 
Registered: Oct 2012
Posts: 5

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, 01:13 AM   #4
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: CentOS & Linux Mint
Posts: 3,402
Blog Entries: 1

Rep: Reputation: Disabled
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 01:23 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:26 AM
Linux BSP Architecture... sumeet4linux Linux - Kernel 0 01-20-2009 03:09 PM
Pxa320 Bsp belcor Linux - Embedded & Single-board computer 0 12-09-2007 11:01 PM
LXer: BSP Marathon / BSP in Berlin (Germany) September 22-24 LXer Syndicated Linux News 0 09-06-2006 08:54 PM
LXer: BSP Marathon / BSP in =?iso-8859-1?Q?ich?= (Germany) 15.-17. September LXer Syndicated Linux News 0 08-23-2006 09:54 PM


All times are GMT -5. The time now is 08:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration