UPSTREAM: mmc-utils: Add command to set the boot bus conditions
This was added because some eMMC devices had the boot bus conditions
set incorrectly causing them to hang on boot.
Signed-off-by: Al Cooper <acooperx@gmail.com>
Signed-off-by: Chris Ball <chris@printf.net>
(cherry picked from commit 64c2de8b1476c42ef9e9729b7ca0e436b5d90170)
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Conflicts:
mmc_cmds.c
BUG=none
TEST=Compiled, Installed on gnawty
Change-Id: I8177ac4f82562b6895ea2858db2973c82f88657b
Reviewed-on: https://chromium-review.googlesource.com/338081
Commit-Ready: Gwendal Grignou <gwendal@chromium.org>
Tested-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Grant Grundler <grundler@chromium.org>
diff --git a/mmc.c b/mmc.c
index fb23950..16fe02a 100644
--- a/mmc.c
+++ b/mmc.c
@@ -100,6 +100,14 @@
"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.",
NULL
},
+ { do_boot_bus_conditions_set, -4,
+ "bootbus set", "<boot_mode> " "<reset_boot_bus_conditions> " "<boot_bus_width> " "<device>\n"
+ "Set Boot Bus Conditions.\n"
+ "<boot_mode> must be \"single_backward|single_hs|dual\"\n"
+ "<reset_boot_bus_conditions> must be \"x1|retain\"\n"
+ "<boot_bus_width> must be \"x1|x4|x8\"",
+ NULL
+ },
{ do_write_bkops_en, -1,
"bkops enable", "<device>\n"
"Enable the eMMC BKOPS feature on <device>.\nNOTE! This is a one-time programmable (unreversible) change.",