Update 'SCR.CMD_SUPPORT' register with support of CMD23.
Signed-off-by: Sai Pavan Boddu <[email protected]>
Reported-by: Rahul Thati <[email protected]>
---
Changes for V2:
Fix commit message
hw/sd/sd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/sd/sd.c b/hw/sd/sd.c
index 0012882..16d1b61 100644
--- a/hw/sd/sd.c
+++ b/hw/sd/sd.c
@@ -335,7 +335,7 @@ static void sd_set_scr(SDState *sd)
if (sd->spec_version >= SD_PHY_SPECv3_01_VERS) {
sd->scr[2] |= 1 << 7; /* Spec Version 3.0X */
}
- sd->scr[3] = 0x00;
+ sd->scr[3] = 0x2; /* CMD23 supported */
/* reserved for manufacturer usage */
sd->scr[4] = 0x00;
sd->scr[5] = 0x00;
--
2.7.4