Skip to content
Snippets Groups Projects
Commit ceef5840 authored by Nicola Sparnacci's avatar Nicola Sparnacci
Browse files

[iMX6][SPL] Improve definition of CONFIG_SUPPORT_EMMC_BOOT to select boot mode


The definition of `CONFIG_SUPPORT_EMMC_BOOT` in `mx6_common.h` has been
updated adding the value 1 to it. Mostly, this config is processed
only checking if it's defined and for these cases the former
definition was enough.

For iMX6, in `arch/arm/mach-imx/spl.c`, the config is checked with
`IS_ENABLED()` and it needs to have a value in order to pass the check.

This caused the boot mode always to `MMCSD_MODE_RAW` with the former
definition.

Signed-off-by: default avatarNicola Sparnacci <nicola.sparnacci@seco.com>
parent 272027ac
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@
#define PHY_ANEG_TIMEOUT 20000
/* MMC */
#define CONFIG_SUPPORT_EMMC_BOOT
#define CONFIG_SUPPORT_EMMC_BOOT 1
#ifdef CONFIG_SPL_BUILD
#define CONFIG_SPL_DRIVERS_MISC_SUPPORT
......
......@@ -3,13 +3,6 @@
#include "seco_mx6_common.h"
// Override CONFIG_SUPPORT_EMMC_BOOT defined in mx6_common.h to enable booting
// from mmcblkXbootY partitions. In the file mx6_common.h the macro is defined
// without any value so that IS_ENABLED() macros in arch/arm/mach-imx/spl.c
// erroneously fail.
#define CONFIG_SUPPORT_EMMC_BOOT 1
/* ____________________________________________________________________________
| |
| UART |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment