From 942e31437d2ba34acab259901b929532ba77390a Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Wed, 6 Jul 2011 16:13:36 +0000 Subject: scsi/ahci: add support for non-PCI controllers Add support for AHCI controllers that are not PCI based. Signed-off-by: Rob Herring Cc: Wolfgang Denk --- common/cmd_scsi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/cmd_scsi.c') diff --git a/common/cmd_scsi.c b/common/cmd_scsi.c index 8019adabfc..8e8e930869 100644 --- a/common/cmd_scsi.c +++ b/common/cmd_scsi.c @@ -46,7 +46,7 @@ #define SCSI_VEND_ID 0x10b9 #define SCSI_DEV_ID 0x5288 -#else +#elif !defined(CONFIG_SCSI_AHCI_PLAT) #error no scsi device defined #endif @@ -174,7 +174,7 @@ removable: scsi_curr_dev = -1; } - +#ifdef CONFIG_PCI void scsi_init(void) { int busdevfunc; @@ -192,6 +192,7 @@ void scsi_init(void) scsi_low_level_init(busdevfunc); scsi_scan(1); } +#endif block_dev_desc_t * scsi_get_dev(int dev) { -- cgit