]> git.sur5r.net Git - u-boot/commitdiff
ahci-plat: Provide a weak scsi_init hook
authorIan Campbell <ijc@hellion.org.uk>
Fri, 7 Mar 2014 01:20:56 +0000 (01:20 +0000)
committerTom Rini <trini@ti.com>
Mon, 10 Mar 2014 17:50:31 +0000 (13:50 -0400)
This allow the platform to register the platform ahci device.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/lib/board.c
drivers/block/ahci.c

index e9a7708ce8d0ceb95af26329e2202c7cc520761a..92e85c4db5152cf1f4d68671b1e76d68dcba1bcd 100644 (file)
@@ -33,6 +33,7 @@
 #include <nand.h>
 #include <onenand_uboot.h>
 #include <mmc.h>
+#include <scsi.h>
 #include <libfdt.h>
 #include <fdtdec.h>
 #include <post.h>
@@ -593,6 +594,11 @@ void board_init_r(gd_t *id, ulong dest_addr)
        mmc_initialize(gd->bd);
 #endif
 
+#ifdef CONFIG_CMD_SCSI
+       puts("SCSI:  ");
+       scsi_init();
+#endif
+
 #ifdef CONFIG_HAS_DATAFLASH
        AT91F_DataflashInit();
        dataflash_print_info();
index e64df4f98d6220acca20fb255115de756adf28f4..22621bfb77dbb25ca227219e1d7f57ce968a0520 100644 (file)
@@ -930,6 +930,11 @@ int ahci_init(u32 base)
 err_out:
        return rc;
 }
+
+void __weak scsi_init(void)
+{
+}
+
 #endif
 
 /*