ahci-plat: Provide a weak scsi_init hook

This allow the platform to register the platform ahci device.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
This commit is contained in:
Ian Campbell
2014-03-07 01:20:56 +00:00
committed by Tom Rini
parent ba650e9b52
commit c6f3d50b9b
2 changed files with 11 additions and 0 deletions

View File

@@ -33,6 +33,7 @@
#include <nand.h> #include <nand.h>
#include <onenand_uboot.h> #include <onenand_uboot.h>
#include <mmc.h> #include <mmc.h>
#include <scsi.h>
#include <libfdt.h> #include <libfdt.h>
#include <fdtdec.h> #include <fdtdec.h>
#include <post.h> #include <post.h>
@@ -593,6 +594,11 @@ void board_init_r(gd_t *id, ulong dest_addr)
mmc_initialize(gd->bd); mmc_initialize(gd->bd);
#endif #endif
#ifdef CONFIG_CMD_SCSI
puts("SCSI: ");
scsi_init();
#endif
#ifdef CONFIG_HAS_DATAFLASH #ifdef CONFIG_HAS_DATAFLASH
AT91F_DataflashInit(); AT91F_DataflashInit();
dataflash_print_info(); dataflash_print_info();

View File

@@ -930,6 +930,11 @@ int ahci_init(u32 base)
err_out: err_out:
return rc; return rc;
} }
void __weak scsi_init(void)
{
}
#endif #endif
/* /*