Skip to contentSkip to conversation

ATA: enable the sata init on bootup

PATCH New Dave Liu 1 participant 1 message Mar 16, 2008

lore
Share & tools
lore

Dave Liu

author
#0 lore raw

PATCH 4/5 ATA: enable the sata init on bootup

---
 lib_ppc/board.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
lib_ppc/board.c +8 -0
index fbf1c5d..dff88d5 100644
@@ -38,6 +38,9 @@
 #if defined(CONFIG_CMD_IDE)
 #include <ide.h>
 #endif
+#if defined(CONFIG_CMD_SATA)
+#include <libata.h>
+#endif
 #if defined(CONFIG_CMD_SCSI)
 #include <scsi.h>
 #endif
@@ -1091,6 +1094,11 @@ void board_init_r (gd_t *id, ulong dest_addr)
 #endif
 #endif
 
+#if defined(CONFIG_CMD_SATA)
+	puts ("SATA:  ");
+	sata_init ();
+#endif
+
 #ifdef CONFIG_LAST_STAGE_INIT
 	WATCHDOG_RESET ();
 	/*
Signature · 1 line
1.5.4.rc4