ata: enable the sata initialize on boot up
authorDave Liu <r63238@freescale.com>
Wed, 26 Mar 2008 14:53:24 +0000 (22:53 +0800)
committerWolfgang Denk <wd@denx.de>
Wed, 26 Mar 2008 22:38:54 +0000 (23:38 +0100)
Signed-off-by: Dave Liu <daveliu@freescale.com>
lib_ppc/board.c

index 3ab22f809ed6b934917762b90eff7213bec81604..30383027c78d33d310c9468340ec635d7c4aed4a 100644 (file)
@@ -38,6 +38,9 @@
 #if defined(CONFIG_CMD_IDE)
 #include <ide.h>
 #endif
+#if defined(CONFIG_CMD_SATA)
+#include <sata.h>
+#endif
 #if defined(CONFIG_CMD_SCSI)
 #include <scsi.h>
 #endif
@@ -1104,6 +1107,11 @@ void board_init_r (gd_t *id, ulong dest_addr)
 #endif
 #endif
 
+#if defined(CONFIG_CMD_SATA)
+       puts ("SATA:  ");
+       sata_initialize ();
+#endif
+
 #ifdef CONFIG_LAST_STAGE_INIT
        WATCHDOG_RESET ();
        /*