sandbox: spi: Add new SPI flash driver
authorMike Frysinger <vapier@gentoo.org>
Tue, 3 Dec 2013 23:43:27 +0000 (16:43 -0700)
committerSimon Glass <sjg@chromium.org>
Mon, 9 Dec 2013 19:22:39 +0000 (12:22 -0700)
commitffdb20bea16e00a326cc3d106f275e58bf302a0c
tree468e8f02d9b56089d8e12b4ab873e0d2fb455342
parent6122813fa2cb9eef4a211bd47292322096db9fa8
sandbox: spi: Add new SPI flash driver

This adds a SPI flash driver which simulates SPI flash clients.
Currently supports the bare min that U-Boot requires: you can
probe, read, erase, and write.  Should be easy to extend to make
it behave more exactly like a real SPI flash, but this is good
enough to merge now.

sjg@chromium.org added a README and tidied up code a little.
Added a required map_sysmem() for sandbox.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
board/sandbox/sandbox/README.sandbox
doc/SPI/README.sandbox-spi [new file with mode: 0644]
drivers/mtd/spi/Makefile
drivers/mtd/spi/sandbox.c [new file with mode: 0644]
drivers/mtd/spi/sf_internal.h
drivers/mtd/spi/sf_probe.c