mmc-utils: add ability to enable/disable optional eMMC cache
The MMC4.5 specification added an optional cache for eMMC devices.
This change will add the ability to enable/disable the cache.
Signed-off-by: Al Cooper <acooperx@gmail.com>
Signed-off-by: Chris Ball <chris@printf.net>
diff --git a/mmc.c b/mmc.c
index 2adf15c..a13d9ae 100644
--- a/mmc.c
+++ b/mmc.c
@@ -163,6 +163,18 @@
" mmc rpmb write-block /dev/mmcblk0rpmb 0x02 - -",
NULL
},
+ { do_cache_en, -1,
+ "cache enable", "<device>\n"
+ "Enable the eMMC cache feature on <device>.\n"
+ "NOTE! The cache is an optional feature on devices >= eMMC4.5.",
+ NULL
+ },
+ { do_cache_dis, -1,
+ "cache disable", "<device>\n"
+ "Disable the eMMC cache feature on <device>.\n"
+ "NOTE! The cache is an optional feature on devices >= eMMC4.5.",
+ NULL
+ },
{ 0, 0, 0, 0 }
};