diff options
author | Elena Popa <elena.popa@nxp.com> | 2023-08-08 16:42:15 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-17 16:39:20 -0400 |
commit | 86b1aad5411c78f68af6b1d0b28b3c6d78b95ce1 (patch) | |
tree | 07c3414ba7c18fb8e57fb2442b54c82e1937643d | |
parent | 02660defdc8a5c6de9dd203c6f8082861475d5d4 (diff) | |
download | u-boot-86b1aad5411c78f68af6b1d0b28b3c6d78b95ce1.zip u-boot-86b1aad5411c78f68af6b1d0b28b3c6d78b95ce1.tar.gz u-boot-86b1aad5411c78f68af6b1d0b28b3c6d78b95ce1.tar.bz2 |
spl: mmc: Fix check of CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR
When Falcon Mode is enabled, SPL needs to check the value of
CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR. Unfortunately, it was using the
CONFIG_VAL(SYS_MMCSD_RAW_MODE_ARGS_SECTOR) which converts it into
CONFIG_SPL_SYS_MMCSD_RAW_MODE_ARGS_SECTOR when CONFIG_SPL_BUILD is
enabled. CONFIG_SPL_SYS_MMCSD_RAW_MODE_ARGS_SECTOR does not exist in
common/spl/Kconfig. Replaced with
defined(CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR).
Signed-off-by: Elena Popa <elena.popa@nxp.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | common/spl/spl_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index a665091..20f687e 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -229,7 +229,7 @@ static int mmc_load_image_raw_os(struct spl_image_info *spl_image, { int ret; -#if CONFIG_VAL(SYS_MMCSD_RAW_MODE_ARGS_SECTOR) +#if defined(CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR) unsigned long count; count = blk_dread(mmc_get_blk_desc(mmc), |