Dear All, I've arm board equipped with Samsung S3C2410A chipset. And at the moment we are using 2.4.18-rmk7-pxa1 linux kernel. Now we need to have SPI support for our product but through my search i have come to know that there is no SPI driver for 2.6.x backward builds, my conclusion is based on this [ http://www.gelato.unsw.edu.au/lxr/source/drivers/spi/Kconfig?a=arm ] source. Now it would be great if some one can clarify following points: 0) Should i upgrade to 2.6.x version? are there in porting issues involved? 1) Can i write my own SPI driver for our existing version (2.4.18) ? 2) I have done driver development for windows but never did this in linux world! any good pointers or tutorials for writing/compiling the driver and interface will be appreciated. I hate cross posting but just gonna post it to linux and embedded. Just 2 NGs;-) ali
SPI driver for arm running linux
Started by ●March 18, 2007
Reply by ●March 18, 20072007-03-18
On Mar 17, 11:31 pm, "Ali" <abdulra...@gmail.com> wrote:> Dear All, > > I've arm board equipped with Samsung S3C2410A chipset. And > at the moment we are using 2.4.18-rmk7-pxa1 linux kernel. Now we need > to have SPI support for our product but through my search i have come > to know that there is no SPI driver for 2.6.x backward builds, my > conclusion is based on this [http://www.gelato.unsw.edu.au/lxr/source/drivers/spi/Kconfig?a=arm > ] source. > > Now it would be great if some one can clarify following points: > > 0) Should i upgrade to 2.6.x version?Yes.> are there in porting issues involved?But of course.> 1) Can i write my own SPI driver for our existing version (2.4.18) ?May be or may be not.> 2) I have done driver development for windows but never did this in > linux world! any good pointers or tutorials for writing/compiling the > driver and interface will be appreciated.Starting reading the kernel sources and see how much you can understand.> > I hate cross posting but just gonna post it to linux and embedded. > Just 2 NGs;-) > ali
Reply by ●March 18, 20072007-03-18
Ali wrote:> Dear All, > > I've arm board equipped with Samsung S3C2410A chipset. And > at the moment we are using 2.4.18-rmk7-pxa1 linux kernel. Now we need > to have SPI support for our product but through my search i have come > to know that there is no SPI driver for 2.6.x backward builds, my > conclusion is based on this [ http://www.gelato.unsw.edu.au/lxr/source/drivers/spi/Kconfig?a=arm > ] source. > > Now it would be great if some one can clarify following points: > > 0) Should i upgrade to 2.6.x version? are there in porting issues > involved? > 1) Can i write my own SPI driver for our existing version (2.4.18) ? > 2) I have done driver development for windows but never did this in > linux world! any good pointers or tutorials for writing/compiling the > driver and interface will be appreciated. > > > I hate cross posting but just gonna post it to linux and embedded. > Just 2 NGs;-) > ali >there is a free online book on Linux device drivers at http://lwn.net/Kernel/LDD3/. Although latest 3rd edition will be covering Kernel 2.6.x, so try finding previous revisions of the book for Kernel 2.4.x Remis
Reply by ●March 19, 20072007-03-19
On Mar 19, 5:24 am, Remis Norvilis <remis4...@yahoo.com.extra> wrote:> Ali wrote: > > Dear All, > > > I've arm board equipped with Samsung S3C2410A chipset. And > > at the moment we are using 2.4.18-rmk7-pxa1 linux kernel. Now we need > > to have SPI support for our product but through my search i have come > > to know that there is no SPI driver for 2.6.x backward builds, my > > conclusion is based on this [http://www.gelato.unsw.edu.au/lxr/source/drivers/spi/Kconfig?a=arm > > ] source. > > > Now it would be great if some one can clarify following points: > > > 0) Should i upgrade to 2.6.x version? are there in porting issues > > involved? > > 1) Can i write my own SPI driver for our existing version (2.4.18) ? > > 2) I have done driver development for windows but never did this in > > linux world! any good pointers or tutorials for writing/compiling the > > driver and interface will be appreciated. > > > I hate cross posting but just gonna post it to linux and embedded. > > Just 2 NGs;-) > > ali > > there is a free online book on Linux device drivers athttp://lwn.net/Kernel/LDD3/. Although latest 3rd edition will be > covering Kernel 2.6.x, so try finding previous revisions of the book for > Kernel 2.4.x > > RemisSecond edition is here http://www.xml.com/ldd/chapter/book/ , but nothing for SPI named thing;-) i guess its architecture should be more or less char driver. ali