]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: mmc: zynq: Add support for CMD13 of SD
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Mon, 27 Aug 2012 18:59:44 +0000 (00:29 +0530)
committerJohn Linn <john.linn@xilinx.com>
Wed, 29 Aug 2012 23:11:07 +0000 (16:11 -0700)
This patch adds support for SEND_STATUS (CMD13) of SD.

Host may poll the status of the card with a CMD13 at
any time, and the card will respond with its status.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
drivers/mmc/zynq_mmc.c

index 6f2866533c5c4ddc9bf5c738c1b810dad5f5532f..8957798d8602c90c14d9cc96ab0c36356c6bb18e 100755 (executable)
@@ -118,6 +118,7 @@ static void init_port(void)
 #define CMD9   (9)                     /* SEND_CSD */
 #define CMD10  (10)            /* SEND_CID */
 #define CMD12  (12)            /* STOP_TRANSMISSION */
+#define CMD13  (13)            /* SEND_STATUS */
 #define ACMD13 (0x80+13)       /* SD_STATUS (SDC) */
 #define CMD16  (16)            /* SET_BLOCKLEN */
 #define CMD17  (17)            /* READ_SINGLE_BLOCK */
@@ -177,6 +178,7 @@ make_command (unsigned cmd)
                break;
        case CMD10:
        case CMD12:
+       case CMD13:
        case ACMD13:
        case CMD16:
        case CMD23: