Hi, On 13 May 2016 at 10:58, Lad, Prabhakar <[email protected]> wrote: > > Hello All, > > It's quite a long time, since I touched u-boot code, I was working on > adding a slave SPI device to DM, can anyone point me to a sample > driver.
I think you mean a device that uses SPI, so you could try cro_ec_spi.c or tpm_tis_st33zp24_spi.c. There is also a patch to provide a DM interface - if you base your work on u-boot-dm/master then you will get this - dm_spi_xfer(), etc. > > Cheers, > --Prabhakar Lad > _______________________________________________ > U-Boot mailing list > [email protected] > http://lists.denx.de/mailman/listinfo/u-boot Regards, Simon _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

