dm: mmc: sandbox: Update SD card emulation
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Thu, 14 Dec 2017 10:47:14 +0000 (11:47 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 12 Jan 2018 09:11:04 +0000 (18:11 +0900)
commit49f89252ed4abf7f3899731f914f6b67462ea690
treef2ad0d2643d235589094160a05d2a8420c767ff1
parentc9d3f34e77dc53798f9757d31aeb020b8fee460c
dm: mmc: sandbox: Update SD card emulation

The SDcard initialization procedure does a few more things than it did earlier:
* switch the bus width even for 1-bit bus width
* check that speed has been properly set (in resp[4] of SD_CMD_SWITCH_FUNC)

Update the SD simulator to handle those requests gracefully.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/sandbox_mmc.c