Commit c6f3d50b9bbe33541b3cd47a4f35efc4f4ae0fa7

Authored by Ian Campbell
Committed by Tom Rini
1 parent ba650e9b52

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>

Showing 2 changed files with 11 additions and 0 deletions Side-by-side Diff

arch/arm/lib/board.c
... ... @@ -33,6 +33,7 @@
33 33 #include <nand.h>
34 34 #include <onenand_uboot.h>
35 35 #include <mmc.h>
  36 +#include <scsi.h>
36 37 #include <libfdt.h>
37 38 #include <fdtdec.h>
38 39 #include <post.h>
... ... @@ -591,6 +592,11 @@
591 592 #ifdef CONFIG_GENERIC_MMC
592 593 puts("MMC: ");
593 594 mmc_initialize(gd->bd);
  595 +#endif
  596 +
  597 +#ifdef CONFIG_CMD_SCSI
  598 + puts("SCSI: ");
  599 + scsi_init();
594 600 #endif
595 601  
596 602 #ifdef CONFIG_HAS_DATAFLASH
drivers/block/ahci.c
... ... @@ -930,6 +930,11 @@
930 930 err_out:
931 931 return rc;
932 932 }
  933 +
  934 +void __weak scsi_init(void)
  935 +{
  936 +}
  937 +
933 938 #endif
934 939  
935 940 /*