summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2021-02-26 16:07:18 +0900
committerPeng Fan <peng.fan@nxp.com>2021-04-06 18:08:14 +0800
commit8ae82c4b12e71b9f114aeb18e2211ce1260012ca (patch)
tree4290a2c22e155655375a5ea5beca2f18d8225c83 /cmd
parent90eba245a66aa20589404ba537215faf2012c1a3 (diff)
downloadu-boot-8ae82c4b12e71b9f114aeb18e2211ce1260012ca.tar.gz
u-boot-8ae82c4b12e71b9f114aeb18e2211ce1260012ca.tar.xz
u-boot-8ae82c4b12e71b9f114aeb18e2211ce1260012ca.zip
cmd: mmc: modify more readable about hwpartition usage
Modified more readable about hwpartition usage. Because it's difficult to understand how to use its command. The arguments didn't optional. mmc hwpartition needs to pass <USER> <GP> <MODE> as arguments. Description about each arguments what is required is the below: USER - <user> <enh> <start> <cnt> <wrrel> <{on|off}> GP - <{gp1|gp2|gp3|gp4}> <cnt> <enh> <wrrel> <{on|off}> MODE - <{check|set|complete}> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mmc.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/cmd/mmc.c b/cmd/mmc.c
index cb6b59f36a..c1c00d0f32 100644
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -1008,11 +1008,14 @@ U_BOOT_CMD(
"mmc list - lists available devices\n"
"mmc wp - power on write protect boot partitions\n"
#if CONFIG_IS_ENABLED(MMC_HW_PARTITIONING)
- "mmc hwpartition [args...] - does hardware partitioning\n"
+ "mmc hwpartition <USER> <GP> <MODE> - does hardware partitioning\n"
" arguments (sizes in 512-byte blocks):\n"
- " [user [enh start cnt] [wrrel {on|off}]] - sets user data area attributes\n"
- " [gp1|gp2|gp3|gp4 cnt [enh] [wrrel {on|off}]] - general purpose partition\n"
- " [check|set|complete] - mode, complete set partitioning completed\n"
+ " USER - <user> <enh> <start> <cnt> <wrrel> <{on|off}>\n"
+ " : sets user data area attributes\n"
+ " GP - <{gp1|gp2|gp3|gp4}> <cnt> <enh> <wrrel> <{on|off}>\n"
+ " : general purpose partition\n"
+ " MODE - <{check|set|complete}>\n"
+ " : mode, complete set partitioning completed\n"
" WARNING: Partitioning is a write-once setting once it is set to complete.\n"
" Power cycling is required to initialize partitions after set to complete.\n"
#endif