make unlaunch'd NANDs work
This commit is contained in:
parent
9fdc1de6fe
commit
af0a9e92c4
|
@ -778,6 +778,23 @@ void DSi_MMCStorage::SendCMD(u8 cmd, u32 param)
|
|||
Host->SendResponse(CSR, true);
|
||||
return;
|
||||
|
||||
case 1: // SEND_OP_COND
|
||||
// CHECKME!!
|
||||
// also TODO: it's different for the SD card
|
||||
if (Internal)
|
||||
{
|
||||
param &= ~(1<<30);
|
||||
OCR &= 0xBF000000;
|
||||
OCR |= (param & 0x40FFFFFF);
|
||||
Host->SendResponse(OCR, true);
|
||||
SetState(0x01);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("CMD1 on SD card!!\n");
|
||||
}
|
||||
return;
|
||||
|
||||
case 2:
|
||||
case 10: // get CID
|
||||
Host->SendResponse(*(u32*)&CID[12], false);
|
||||
|
@ -801,6 +818,11 @@ void DSi_MMCStorage::SendCMD(u8 cmd, u32 param)
|
|||
}
|
||||
return;
|
||||
|
||||
case 6: // MMC: 'SWITCH'
|
||||
// TODO!
|
||||
Host->SendResponse(CSR, true);
|
||||
return;
|
||||
|
||||
case 7: // select card (by RCA)
|
||||
Host->SendResponse(CSR, true);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue