]> git.ipfire.org Git - people/ms/u-boot.git/commit
mmc: update MMC_ERASE argument to match Linux kernel.
authorEric Nelson <eric@nelint.com>
Mon, 7 Dec 2015 14:50:01 +0000 (07:50 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 4 Jan 2016 16:17:43 +0000 (11:17 -0500)
commit1aa2d074a7acda61eb43e654ced21c139703633c
treec9e5751b43d4234b24b484d9867a9ec137527ee1
parentf8a3df0fbc31e7f0f0a5359d505c07fd99b2dab3
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>
drivers/mmc/mmc_write.c
include/mmc.h