To take Stephen's question a bit further. I'm trying to write a library that uses the spi driver on the dm355. I was under the assumption that I'd be able to access it much like the i2c is used, namely that there was a /dev/spi node that I could open. I'm pretty sure that I have to write my own driver using the functions available in dm355_spi_master but I'm sort of at a loss how I can begin to do so. I have a small kernel module written that I can insert and remove into the kernel at runtime but the details of how to actually get it to use the spi bus are escaping me.
Has anybody written their own driver/library that uses the dm355 spi bus? If so, could you point me in the right direction toward gettign mine up and running. I looked at the code for the at25xxfl_eeprom, but that's more of an mtd and I would think that my device (a controller for an optrex lcd) would fit more as a character device since the read/writes don't operate in block sizes. As you can see I'm a bit confused here and would really appreciate some help. Thanks BJ Viet Hoang wrote: > Hi Steve, > Boot the board, login, then use this command: cat /dev/mtdblock5. > Put the scope at SCK(pin 6) , SI (pin 5) or SO (pin 2) (That EEPROM is > U65), you can see the signal. > Does this help? > Regards, > Viet Hoang. > > */Stephen Berry <[EMAIL PROTECTED]>/* wrote: > > > Does anyone have any experience in getting the SPI interface > running on the 355? > > It looks to me that the SPI framework as shipped with the 355 > doesn't work. To prove this I put a scope on the SPI eeprom on the > EVM board - and the part isn't used during boot. I have made an > assumption that the onboard eeprom was there for things like MAC > addresses and other important numbers... > > My driver does the same thing on my hardware - no hardware > response when I issue spi transactions (the software returns zeros). > > I do have Joshua Hintze's SPI code - but I would rather have my > driver fit into an existing, working framework (if it exists). > > Does anyone have any patches for the original MVL 2.6.10 SPI code > (1.3beta) - or anything else that may help? > > Thanks, > > Steve Berry > ID2 > > _______________________________________________ > Davinci-linux-open-source mailing list > [email protected] > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source > > > Send instant messages to your online friends > http://uk.messenger.yahoo.com > -- Integral Design and Development 312 Great Rd, Littleton MA 01460 voice: 978 501 7658 fax: 603-679-3988 This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this e-mail in error please notify the originator immediately. The addressee is formally notified hereby that this e-mail and any attachments are to be treated as confidential. _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
