SD/MMC/SDIO Registers: Difference between revisions
| (3 intermediate revisions by the same user not shown) | |||
| Line 222: | Line 222: | ||
===4004802h/4004A02h - SD_CARD_PORT_SELECT=== | ===4004802h/4004A02h - SD_CARD_PORT_SELECT=== | ||
15-11 Unknown/unused (appears to be always zero) | 15-11 Unknown/unused (appears to be always zero) | ||
10 Unknown ( | 10 Unknown (should be set on writing) (reads as zero) (W) | ||
9 | 9-8 Unknown (Always 2 for SD/4004802h, always 1 for SDIO/4004A02h) (R) | ||
7-4 Unknown/unused (appears to be always zero) | 7-4 Unknown/unused (appears to be always zero) | ||
3-1 Unknown (R/W) | 3-1 Unknown (R/W) | ||
| Line 230: | Line 229: | ||
===4004828h/4004A28h - SD_CARD_OPTION - Card Option Setup=== | ===4004828h/4004A28h - SD_CARD_OPTION - Card Option Setup=== | ||
15 | 15 undoc Bus Width (0=4bit, 1=1bit) (R/W) | ||
14 | 14 undoc Unknown (usually set) (R?) | ||
13-9 | 13-9 0 Unknown/unused (appears to be always zero) | ||
8 | 8 undoc Unknown (firmware tries to toggle this after CLK change?) (W?) | ||
7-4 | 7-4 RTO Data start/busy timout (2000h SHL 0..14, or 15=100h SDCLK's) (R/W) | ||
0-3 | 0-3 TO? Unknown (another timeout, maybe for SDIO? in 32KHz units?) (R/W) | ||
Among others, this register should contain a 4bit timeout setting, "RTO[3:0] for SD (aka TO[3:0] for SDIO) timeout period for data start/busy bits, in the form of a multiple number of the SDCLK period." | Among others, this register should contain a 4bit timeout setting, "RTO[3:0] | ||
Unknown which "multiple numbers" that's referring to (probably some exponential/table values). | for SD (aka TO[3:0] for SDIO) timeout period for data start/busy bits, in the | ||
form of a multiple number of the SDCLK period." Unknown which "multiple | |||
numbers" that's referring to (probably some exponential/table values). | |||
Settings spotted on DSi are 40E0h,40EEh. | Settings spotted on DSi are 40E0h,40EEh. | ||
| Line 270: | Line 271: | ||
SD_RESPONSE0-7 = zerofilled | SD_RESPONSE0-7 = zerofilled | ||
SD_IRQ_STATUS0-1 = all IRQs flags acknowledged | SD_IRQ_STATUS0-1 = all IRQs flags acknowledged | ||
SD_ERROR_DETAIL_STATUS0-1 = all bits cleared (except bit13/always set) | |||
SD_CARD_CLK_CTL = bit 8 and 10 cleared | SD_CARD_CLK_CTL = bit 8 and 10 cleared | ||
SD_CARD_OPTION = 40EEh | SD_CARD_OPTION = 40EEh | ||
| Line 326: | Line 328: | ||
3-0 Unknown (0) | 3-0 Unknown (0) | ||
===40048FAh - Can be | ===40048FAh - Can be 0007h (nonzero, unlike SDIO) (RESERVED6)=== | ||
15-3 Unknown (0) | 15-3 Unknown (0) | ||
2 Unknown ( | 2 Unknown (1=normal, 0=data/read from card to fifo busy?) (R) | ||
1-0 Unknown (0..3) (R/W? or rather R?) | 1-0 Unknown (0..3) (R/W? or rather R?) | ||