MA-17916-1 Clean Up: Guard codes with correct configs
authorJi Luo <ji.luo@nxp.com>
Mon, 21 Sep 2020 08:22:21 +0000 (16:22 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:19 +0000 (09:49 +0800)
commitb89b45f60d56b5fe7c138b67792e84cd356bab53
tree770e9aafb745ce09818c413eb33a07874909cc94
parentfbd21482417c4dc3de16d1689fe899ad11764f71
MA-17916-1 Clean Up: Guard codes with correct configs

This commit does some clean-up to guard the codes/configs with
correct configs, so we can enable/disable the feature without
modifying the codes.

Test: builds and boots on imx8qm.

Signed-off-by: Ji Luo <ji.luo@nxp.com>
Change-Id: Ic4cf4d9f47bd5a4317b2621a5378cb4b192e52fb
(cherry picked from commit 2c2363e47b858bd178c44869328eca211b2c3f62)
(cherry picked from commit cdf01e8a0fbf29df6230344889d1ec5035b6c978)
board/freescale/imx8qm_mek/spl.c
board/freescale/imx8qxp_mek/spl.c