diff options
author | Eric Nelson <eric@nelint.com> | 2015-12-07 07:50:01 -0700 |
---|---|---|
committer | Haoran Wang <Haoran.Wang@freescale.com> | 2016-08-09 21:13:32 +0800 |
commit | a340a894803a8e741da09e65c0a4fbfeb4d69bb1 (patch) | |
tree | 820fc441c6bd6ebbbfe2dc5cf797dca0804bc807 /drivers | |
parent | e46a38bac2036dc6b4a93cf5d547e667583270dc (diff) | |
download | u-boot-imx-a340a894803a8e741da09e65c0a4fbfeb4d69bb1.zip u-boot-imx-a340a894803a8e741da09e65c0a4fbfeb4d69bb1.tar.gz u-boot-imx-a340a894803a8e741da09e65c0a4fbfeb4d69bb1.tar.bz2 |
mmc: update MMC_ERASE argument to match Linux kernel.
Table 41 of the JEDEC standard for eMMC says that bit 31 of
the command argument is obsolete when issuing the ERASE
command (CMD38) on page 115 of this document:
http://www.jedec.org/sites/default/files/docs/jesd84-B45.pdf
The SD Card Association Physical Layer Simplified Specification also
makes no mention of the use of bit 31.
https://www.sdcard.org/downloads/pls/part1_410.pdf
The Linux kernel distinguishes between secure (bit 31 set) and
non-secure erase, and this patch copies the macro names from
include/linux/mmc/core.h.
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Eric Nelson <eric@nelint.com>
Tested-by: Hector Palacios <hector.palacios@digi.com>
(cherry picked from commit 1aa2d074a7acda61eb43e654ced21c139703633c)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/mmc_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mmc_write.c b/drivers/mmc/mmc_write.c index 3db9669..9edf214 100644 --- a/drivers/mmc/mmc_write.c +++ b/drivers/mmc/mmc_write.c @@ -49,7 +49,7 @@ static ulong mmc_erase_t(struct mmc *mmc, ulong start, lbaint_t blkcnt) goto err_out; cmd.cmdidx = MMC_CMD_ERASE; - cmd.cmdarg = SECURE_ERASE; + cmd.cmdarg = MMC_ERASE_ARG; cmd.resp_type = MMC_RSP_R1b; err = mmc_send_cmd(mmc, &cmd, NULL); |