Support SEND_STATUS command
mmc status get </path/to/mmcblkX>
Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Chris Ball <cjb@laptop.org>
diff --git a/mmc.c b/mmc.c
index a757c8f..dcbab18 100644
--- a/mmc.c
+++ b/mmc.c
@@ -70,6 +70,11 @@
"Set the eMMC data sector size to 4KB by disabling emulation on\n<device>.",
NULL
},
+ { do_status_get, -1,
+ "status get", "<device>\n"
+ "Print the response to STATUS_SEND (CMD13).",
+ NULL
+ },
{ do_write_boot_en, -3,
"bootpart enable", "<boot_partition> " "<send_ack> " "<device>\n"
"Enable the boot partition for the <device>.\nTo receive acknowledgment of boot from the card set <send_ack>\nto 1, else set it to 0.",