MA-15208 Remap mmc device id in spl
authorJi Luo <ji.luo@nxp.com>
Wed, 24 Jul 2019 03:52:18 +0000 (11:52 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 25 Jul 2019 09:06:00 +0000 (17:06 +0800)
commitc079188d06b3669df7836e1b8c6126558b1fa39e
tree71470f9ae16685df61d3b498ba8085b1e4c543dc
parent46cc755cf3f42422ee1d7783394e14e8125df2b6
MA-15208 Remap mmc device id in spl

MMC device id remap function "board_mmc_get_env_dev()" was
removed in u-boot v2019 because we add the mmc device aliases
in dts file. But we still need to remap the mmc device id in
spl or read/write rpmb keyslot package will fail.

This patch adds mmc device id remap function in spl to get the
correct device id.

Test: boot on imx8mm with trusty enabled.

Change-Id: I41c46494326d9eb2658d2cda692968fb895d0292
Signed-off-by: Ji Luo <ji.luo@nxp.com>
configs/imx8mm_evk_4g_android_trusty_defconfig
configs/imx8mm_evk_android_trusty_defconfig
configs/imx8mn_ddr4_evk_android_trusty_defconfig
configs/imx8mq_aiy_android_trusty_defconfig
configs/imx8qm_mek_androidauto2_trusty_defconfig
configs/imx8qm_mek_androidauto_trusty_defconfig
configs/imx8qxp_mek_androidauto2_trusty_defconfig
configs/imx8qxp_mek_androidauto_trusty_defconfig
include/configs/imx8mm_evk_android.h
include/configs/imx8mn_evk_android.h
lib/avb/fsl/fsl_avbkey.c