hw/sd: sd: Support CMD59 for SPI mode
commitdec6d33849f3589426c5a14dce264d5c6f86e85b
authorBin Meng <bin.meng@windriver.com>
Sat, 23 Jan 2021 10:39:55 +0000 (23 18:39 +0800)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 24 Jan 2021 17:53:25 +0000 (24 18:53 +0100)
treedf1af711b971a8d4615ec3ca0590c55de7e1bf78
parent281c5c95b259a0d9809977c9f407d4654c3a79aa
hw/sd: sd: Support CMD59 for SPI mode

After the card is put into SPI mode, CRC check for all commands
including CMD0 will be done according to CMD59 setting. But this
command is currently unimplemented. Simply allow the decoding of
CMD59, but the CRC remains unchecked.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Tested-by: Pragnesh Patel <pragnesh.patel@sifive.com>
Reviewed-by: Pragnesh Patel <pragnesh.patel@sifive.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210123104016.17485-5-bmeng.cn@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/sd/sd.c