MA-14916-8 [iot] Set power-on write protection for boot1 partition
authorLuo Ji <ji.luo@nxp.com>
Wed, 3 Jul 2019 06:38:16 +0000 (14:38 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:17 +0000 (09:49 +0800)
commit497e787103dffc5d56968095683323d51375688a
tree791385644b40e1075c4ad063de1d633196828a28
parent3f838335e14898781cae03f0b318e4849713e052
MA-14916-8 [iot] Set power-on write protection for boot1 partition

The RPMB keyslot is stored in last block of boot1 partition which
is easily erased or tampered, set power-on write protection for this
partition to prevent corruption.

Test: Power-on write protection works as expected on imx8m.

Change-Id: Ib7e1094b979f7d94c0a2817391c5b3b5f3205d76
Signed-off-by: Luo Ji <ji.luo@nxp.com>
(cherry picked from commit c7e207fbbcd8618d29b1192829c630777fea5220)
(cherry picked from commit 1bbf98ec8a550e4027f399f18781245c9faefc8e)
include/mmc.h