]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: mmc: Support mmc hwpartition user enh start -
authorMarek Vasut <marex@denx.de>
Wed, 15 Sep 2021 09:43:13 +0000 (11:43 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 29 Oct 2021 09:22:32 +0000 (18:22 +0900)
commit68b4a74ffeafae9109b582a376e7b21c399e9fdd
tree2d853b51f07a61deb74ad0631fda0486963dadca
parentbc82fd7c3366feba7107ebaea2f9204ef3c7f18b
cmd: mmc: Support mmc hwpartition user enh start -

Add option to extend the hardware partition to the maximum size by
using the '-' dash sign instead of $cnt parameter. This is useful
in case we want to switch the entire eMMC user area into pSLC mode,
especially in case the device may be populated with different size
eMMCs. With this change, we do not have to calculate the number of
blocks of the user area manually.

To switch the pSLC mode for user area, use e.g. the following.
WARNING: This is a one-time irreversible change.
=> mmc hwpartition user enh 0 - wrrel on complete

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
cmd/mmc.c