Skip to content

Commit

Permalink
scdssdhc2: send CMD16 at the end of init
Browse files Browse the repository at this point in the history
  • Loading branch information
lifehackerhansol committed Nov 1, 2024
1 parent d2f9b8f commit 2ff43ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/scdssdhc2/source/scdssdhc.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ bool SCDS_SDInitialize(void)
SCDS_SDSendR1Command(55, sdio_rca, SCDS_CTRL_SD_LOW_CLK_LATENCY);
SCDS_SDSendR1Command(6, 2, SCDS_CTRL_SD_LOW_CLK_LATENCY);

// CMD16
SCDS_SDSendR1Command(16, 512, SCDS_CTRL_SD_LOW_CLK_LATENCY);

SCDS_SDSetHostRegister(0);
SCDS_SDSetHostRegister(SCDS_SD_HOST_REG_RESET | SCDS_SD_HOST_REG_CLEAN_ROM_MODE);
if(isSDHC)
Expand Down

0 comments on commit 2ff43ce

Please sign in to comment.