sd: Exhibit support for CMD23
PATCH v2 1/1 sd: Exhibit support for CMD23
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(-)
hw/sd/sd.c +1 -1
@@ -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 ;
Signature · 1 line
2.7.4
Hi Sai,
Quoted 16 lines · Sai Pavan Boddu
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 messagehw/sd/sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/sd/sd.c +0
-0
hw/sd/sd.c static void sd_set_scr(SDState *sd) · line 338
Quoted 5 lines
hw/sd/sd.c +1
-1@@ -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 */
You need to check:
- spec_version >= SD_PHY_SPECv3_01_VERS
- sd->size > SDSC_MAX_CAPACITY
Then you should also update the TRAN_SPEED value in sd_set_csd().
Quoted 4 lines
hw/sd/sd.c +0
-0/* reserved for manufacturer usage */ sd->scr[4 ] =0x00 ; sd->scr[5 ] =0x00 ;