mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 05:35:20 -05:00
imx233: two minor fixes for sd/mmc
Always enable support for SET_BLOCK_COUNT on mmc: it is mandatory. For some reason (probably a mistake) it was disabled unconditionaly on mmc. Also deselect sd card after init. Although it is unlikely to make a difference, it is already done for mmc so stay consistent. Change-Id: I276f0d95f5bb6a0bf431c2fff4589d3dfb15f8c7
This commit is contained in:
parent
85ad99ee3d
commit
633c8edf47
1 changed files with 5 additions and 2 deletions
|
|
@ -476,7 +476,10 @@ static int init_sd_card(int drive)
|
|||
imx233_ssp_set_timings(ssp, 2, 0, 0xffff);
|
||||
else
|
||||
imx233_ssp_set_timings(ssp, 4, 0, 0xffff);
|
||||
|
||||
/* deselect card */
|
||||
if(!send_cmd(drive, SD_DESELECT_CARD, 0, MCI_NO_RESP, NULL))
|
||||
return -13;
|
||||
/* successfully initialised */
|
||||
SDMMC_INFO(drive).initialized = 1;
|
||||
|
||||
return 0;
|
||||
|
|
@ -566,7 +569,7 @@ static int init_mmc_drive(int drive)
|
|||
return -13;
|
||||
|
||||
/* MMC always support CMD23 */
|
||||
SDMMC_STATUS(drive).has_sbc = false;
|
||||
SDMMC_STATUS(drive).has_sbc = true;
|
||||
SDMMC_INFO(drive).initialized = 1;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue