]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: sandbox: Add support for writing
authorSean Anderson <sean.anderson@seco.com>
Fri, 5 Feb 2021 14:38:53 +0000 (09:38 -0500)
committerMarek Vasut <marex@denx.de>
Fri, 26 Feb 2021 14:30:55 +0000 (15:30 +0100)
commit3f6fb771751e560931c05b845fcb305a9b8eb071
tree13732720004b7a387fc820dd108a99f3faaf0615
parentc28d5d704d3347fcbe5e49ab561973c00bf9337f
mmc: sandbox: Add support for writing

This adds support writing to the sandbox mmc backed by an in-memory
buffer. The unit test has been updated to test reading, writing, and
erasing. I'm not sure what MMCs erase to; I picked 0, but if it's 0xFF
then that can be easily changed.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/mmc/sandbox_mmc.c
test/dm/mmc.c