[U-Boot] Adding SPI slave devices To DM

Simon Glass sjg at chromium.org
Sat May 14 21:34:03 CEST 2016


Hi,

On 13 May 2016 at 10:58, Lad, Prabhakar <prabhakar.csengg at gmail.com> 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
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

Regards,
Simon


More information about the U-Boot mailing list