diff options
author | Amaury Pouly <pamaury@rockbox.org> | 2011-12-22 12:10:49 +0000 |
---|---|---|
committer | Amaury Pouly <pamaury@rockbox.org> | 2011-12-22 12:10:49 +0000 |
commit | 452354a5b1699d857efdaa017309906cc32f4dad (patch) | |
tree | 255773435f218602d0a7717d9b588dda1ad2f52f | |
parent | f9a135a81f624f49748ddc2b44d99a6e1eda85db (diff) | |
download | rockbox-452354a5b1699d857efdaa017309906cc32f4dad.tar.gz rockbox-452354a5b1699d857efdaa017309906cc32f4dad.zip |
sd-imx233: fix a few parameters when calling send_cmd, thanks to Andrej Sinicyn for spotting this
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31401 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/imx233/sd-imx233.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/imx233/sd-imx233.c b/firmware/target/arm/imx233/sd-imx233.c index e979db10f9..b42d92dcef 100644 --- a/firmware/target/arm/imx233/sd-imx233.c +++ b/firmware/target/arm/imx233/sd-imx233.c | |||
@@ -121,7 +121,7 @@ static int sd_wait_for_tran_state(void) | |||
121 | 121 | ||
122 | while (1) | 122 | while (1) |
123 | { | 123 | { |
124 | while(!send_cmd(SD_SEND_STATUS, card_info.rca, SSP_SHORT_RESP, &response) && cmd_retry > 0) | 124 | while(!send_cmd(SD_SEND_STATUS, card_info.rca, MCI_RESP, &response) && cmd_retry > 0) |
125 | cmd_retry--; | 125 | cmd_retry--; |
126 | 126 | ||
127 | if(cmd_retry <= 0) | 127 | if(cmd_retry <= 0) |
@@ -335,7 +335,7 @@ static int transfer_sectors(IF_MD2(int drive,) unsigned long start, int count, v | |||
335 | goto Lend; | 335 | goto Lend; |
336 | } | 336 | } |
337 | 337 | ||
338 | if(!send_cmd(SD_SELECT_CARD, card_info.rca, SSP_NO_RESP, NULL)) | 338 | if(!send_cmd(SD_SELECT_CARD, card_info.rca, MCI_NO_RESP, NULL)) |
339 | { | 339 | { |
340 | ret = -20; | 340 | ret = -20; |
341 | goto Lend; | 341 | goto Lend; |
@@ -354,7 +354,7 @@ static int transfer_sectors(IF_MD2(int drive,) unsigned long start, int count, v | |||
354 | bank_start, SSP_SHORT_RESP, buf, this_count, false, read, &resp); | 354 | bank_start, SSP_SHORT_RESP, buf, this_count, false, read, &resp); |
355 | if(ret != SSP_SUCCESS) | 355 | if(ret != SSP_SUCCESS) |
356 | break; | 356 | break; |
357 | if(!send_cmd(SD_STOP_TRANSMISSION, 0, SSP_SHORT_RESP|MCI_BUSY, &resp)) | 357 | if(!send_cmd(SD_STOP_TRANSMISSION, 0, MCI_RESP|MCI_BUSY, &resp)) |
358 | { | 358 | { |
359 | ret = -15; | 359 | ret = -15; |
360 | break; | 360 | break; |
@@ -366,7 +366,7 @@ static int transfer_sectors(IF_MD2(int drive,) unsigned long start, int count, v | |||
366 | 366 | ||
367 | Ldeselect: | 367 | Ldeselect: |
368 | /* CMD7 w/rca =0 : deselects card & puts it in STBY state */ | 368 | /* CMD7 w/rca =0 : deselects card & puts it in STBY state */ |
369 | if(!send_cmd(SD_DESELECT_CARD, 0, SSP_NO_RESP, NULL)) | 369 | if(!send_cmd(SD_DESELECT_CARD, 0, MCI_NO_RESP, NULL)) |
370 | ret = -23; | 370 | ret = -23; |
371 | Lend: | 371 | Lend: |
372 | mutex_unlock(&sd_mutex); | 372 | mutex_unlock(&sd_mutex); |