public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Initilize IDE prior environment
@ 2017-06-19 14:56 Otavio Salvador
  2017-06-20 17:42 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 7+ messages in thread
From: Otavio Salvador @ 2017-06-19 14:56 UTC (permalink / raw)
  To: u-boot

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 <otavio@ossystems.com.br>
---

 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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-06-23  4:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-19 14:56 [U-Boot] [PATCH] Initilize IDE prior environment Otavio Salvador
2017-06-20 17:42 ` [U-Boot] " Tom Rini
2017-06-20 20:08   ` Otavio Salvador
2017-06-20 23:19     ` Bin Meng
2017-06-22 16:05       ` Simon Glass
2017-06-22 23:49         ` Tom Rini
2017-06-23  4:10           ` Heiko Schocher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox