Thanks Gerhard, good idea, it's working fine for me:) Best Regards, Kol 2014-04-07 15:53 GMT+03:00 Gerhard Sittig <gsi@xxxxxxx>: > On Sat, 2014-04-05 at 16:05 +0300, maxim maxim wrote: >> >> I'm working with omap 3 spi driver, in the base I have mcspi driver >> for tach device(http://processors.wiki.ti.com/index.php/AM335x_McSPI_Driver's_Guide), >> I want to add my insmod driver for ublox 6(gps device). From ublox6 >> datasheet I saw what I need some initial delay between chip select >> activation and data sending, I didn't find a way how to do it from >> Linux SPI Framework, because of this I tried to write directly to some >> registers what mapped in mcspi driver I can accept their mapped >> address from contoller_data , but unfortunately it didn't work, may be >> here you could give me some avices how I can do it. > > You might create an SPI message from multiple transfers, where > the first has no data (length zero) but specifies a delay. If > the SPI controller's driver is implemented correctly, or if it > uses the SPI subsystem's common logic, this should result in the > desired pause between CS assertion and data transfer. > > If it doesn't work out for you (when the driver cuts corners, > violates the API semantics, or tries to outsmart you), you may > want to fix that and provide patches. :) > > > virtually yours > Gerhard Sittig > -- > DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel > HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany > Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@xxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html