mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
cmd: mmc: Expand bkops handling
Add more capable "bkops" command which allows enabling and disabling both manual and automatic bkops. The existing 'mmc bkops-enable' subcommand is poorly named to cover all the possibilities, hence the new-ish subcommand. Note that both commands are wrappers around the same common code. Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
This commit is contained in:
committed by
Jaehoon Chung
parent
30db474704
commit
cf1f7355ae
@@ -892,9 +892,17 @@ int mmc_rpmb_write(struct mmc *mmc, void *addr, unsigned short blk,
|
||||
int mmc_rpmb_route_frames(struct mmc *mmc, void *req, unsigned long reqlen,
|
||||
void *rsp, unsigned long rsplen);
|
||||
|
||||
#ifdef CONFIG_CMD_BKOPS_ENABLE
|
||||
int mmc_set_bkops_enable(struct mmc *mmc);
|
||||
#endif
|
||||
/**
|
||||
* mmc_set_bkops_enable() - enable background operations
|
||||
* @param mmc Pointer to a MMC device struct
|
||||
* @param autobkops Enable automatic bkops, not manual bkops
|
||||
* @param enable Enable bkops, not disable
|
||||
*
|
||||
* Enable or disable automatic or manual background operation of the eMMC.
|
||||
*
|
||||
* Return: 0 on success, <0 on error.
|
||||
*/
|
||||
int mmc_set_bkops_enable(struct mmc *mmc, bool autobkops, bool enable);
|
||||
|
||||
/**
|
||||
* Start device initialization and return immediately; it does not block on
|
||||
|
Reference in New Issue
Block a user