[U-Boot] sf: About sandbox flash driver

Simon Glass sjg at chromium.org
Thu Jan 7 20:49:01 CET 2016


Hi Jagan,

On 30 December 2015 at 10:03, Jagan Teki <jteki at openedev.com> wrote:
> Hi Simon,
>
> Few question wrt sandbox flash driver - drivers/mtd/spi/sandbox.c
>
> 1) Does this driver used for creating flash emulation environment? or
> something else?

It is an emulation driver, meant to emulate a SPI flash device. See
sandbox_sf_emul_ops - the sandbox_sf_xfer() receives a SPI message
from U-Boot and produces a reply.

> 2) Can't it use spi_flash.c core for all spi flash operations, how
> different is this?

That is for talking to SPI flash devices I think, rather than emulating one.

>
> Please let me know your inputs.
>
> thanks!
> --
> Jagan.

Regards,
Simon


More information about the U-Boot mailing list