On Fri, 2009-05-08 at 17:41 +0100, Kieran Bingham wrote: > Hi guys, > > I'm using the Montavista kernel for 2.6.18_pro500, but this is more of > a generic SPI question. > > I'm trying to write a peripheral driver which uses the SPI. > I have set up the SPI bus on SPI1, and I can initiate transfers over > the wires (Logic analyser shows me line states) > > However, the device I'm talking to works in 16bit transactions where > the first 8 bits are the address/register to read > The following 8bits will clock the value of the register back to the master > i.e.: to read the value 0x02 from register 0x03 the following > transaction would occur > > MOSI: > 0x03## > MISO > 0x##02 > > where ## are "don't cares" > > > I can't seem to get this to happen using spi_write / spi_read. > Does anyone know where some good pointers on using SPI are, or good > examples are ?
I did use SPI to talk to AK4588 on DA830/OMAP-l137. The code is at sound/soc/codecs/ak4*.c. Hopefully, it would be some help for you. Regards, Steve _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
