MA-19026 Add config to guard rpmb driver in SPL
authorJi Luo <ji.luo@nxp.com>
Tue, 11 May 2021 02:00:49 +0000 (10:00 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:19 +0000 (09:49 +0800)
commitb2b4cbadf378c1b72ce7da31457673d298a3584f
tree7817e2e21daae9222b76a1a3cfb5045aeffb7e9c
parent9a4f698436b44a8cd3e83733343efbd44e257fe7
MA-19026 Add config to guard rpmb driver in SPL

Android will need rpmb operation in SPL, below commit
guard the rpmb.c build with CONFIG_SPL_SUPPORT_EMMC_RPMB
but didn't add it in the Kconfig:
  commit 2448c34f9fc26d3c459e6e7b28c6357656bfa287
  Author: Heinrich Schuchardt <xypron.glpk@gmx.de>
  Date:   Wed Apr 15 18:28:09 2020 +0200

      drivers: mmc: rpmb: do not build for SPL

      RPMB support is used by the 'mmc rpmb' command and by the OP-TEE
      support.
      We do not need it in SPL.
This commit will add CONFIG_SPL_SUPPORT_EMMC_RPMB defination
and select it by default when trusty is enabled.

Change-Id: I8d3b4481d529828cb03328b826e0e7065104ba46
Signed-off-by: Ji Luo <ji.luo@nxp.com>
arch/arm/mach-imx/Kconfig
drivers/mmc/Kconfig