From fc492d5707b8c246965be761313d6cc341c2ebc8 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Fri, 16 Jun 2017 14:41:31 -0300 Subject: [PATCH] Initilize IDE prior environment To allow the loading of environment from IDE (for example, using FAT) the initilization of IDE subsystem must come before the environment one. Successfully tested on QEMU x86. Signed-off-by: Otavio Salvador --- common/board_r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index 3341a528b0..3d3c75deea 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -803,6 +803,9 @@ static init_fnc_t init_sequence_r[] = { #ifdef CONFIG_MMC initr_mmc, #endif +#if defined(CONFIG_IDE) + initr_ide, +#endif #ifdef CONFIG_HAS_DATAFLASH initr_dataflash, #endif @@ -875,9 +878,6 @@ static init_fnc_t init_sequence_r[] = { #if defined(CONFIG_CMD_PCMCIA) && !defined(CONFIG_IDE) initr_pcmcia, #endif -#if defined(CONFIG_IDE) - initr_ide, -#endif #ifdef CONFIG_LAST_STAGE_INIT INIT_FUNC_WATCHDOG_RESET /* -- 2.40.1