From: Otavio Salvador Date: Mon, 19 Jun 2017 11:56:04 -0300 Subject: [U-Boot] [PATCH] Initilize IDE prior environment Message-ID: <20170619145604.31628-1-otavio@ossystems.com.br> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 adc1f1937e..247a6668fc 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -806,6 +806,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 @@ -878,9 +881,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.13.1