[U-Boot] [PATCH 3/5] OMAP5+: sata/scsi: implement scsi_bus_reset()

Dmitry Lifshitz lifshitz at compulab.co.il
Mon Dec 15 15:02:57 CET 2014


Implement missing scsi_bus_reset() for SCSI subsystem commands
on OMAP platforms.

Signed-off-by: Dmitry Lifshitz <lifshitz at compulab.co.il>
---
 arch/arm/cpu/armv7/omap-common/sata.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/arch/arm/cpu/armv7/omap-common/sata.c b/arch/arm/cpu/armv7/omap-common/sata.c
index a24baa1..d18bc50 100644
--- a/arch/arm/cpu/armv7/omap-common/sata.c
+++ b/arch/arm/cpu/armv7/omap-common/sata.c
@@ -85,3 +85,9 @@ void scsi_init(void)
 	init_sata(0);
 	scsi_scan(1);
 }
+
+void scsi_bus_reset(void)
+{
+	ahci_reset(DWC_AHSATA_BASE);
+	ahci_init(DWC_AHSATA_BASE);
+}
-- 
1.7.5.4



More information about the U-Boot mailing list