Commit 404dada8 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Give a little extra grace to mechanical drives

Some mechanical drives don't reply until spin up after COMRESET. Give them 50% longer to complete.
Solves a missing Seagate ST250DM000 drive issue at power on as init was too fast.

Version 0.04. Tagged as 'SATADriver-0_04'
parent 17457e86
/* (0.03)
/* (0.04)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.03
#define Module_MajorVersion_CMHG 0.04
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 24 Mar 2016
#define Module_Date_CMHG 09 Dec 2016
#define Module_MajorVersion "0.03"
#define Module_Version 3
#define Module_MajorVersion "0.04"
#define Module_Version 4
#define Module_MinorVersion ""
#define Module_Date "24 Mar 2016"
#define Module_Date "09 Dec 2016"
#define Module_ApplicationDate "24-Mar-16"
#define Module_ApplicationDate "09-Dec-16"
#define Module_ComponentName "SATADriver"
#define Module_ComponentPath "cddl/RiscOS/Sources/HWSupport/ATA/SATADriver"
#define Module_FullVersion "0.03"
#define Module_HelpVersion "0.03 (24 Mar 2016)"
#define Module_LibraryVersionInfo "0:3"
#define Module_FullVersion "0.04"
#define Module_HelpVersion "0.04 (09 Dec 2016)"
#define Module_LibraryVersionInfo "0:4"
......@@ -43,7 +43,7 @@
/* Timeouts are in cs */
#define PORT_IDLE_TIMEOUT (50) // AHCI spec 10.1.2 advocates half-second wait for PxCMD.CR to clear after deasserting PxCMD.ST
#define COMRESET_ASSERT_TIME (5) // AHCI spec only advocates 1 millisecond, though
#define COMRESET_RECOVERY_TIME (50)
#define COMRESET_RECOVERY_TIME (75)
#define PM_PSCR_TIMEOUT (50)
#define DEVICE_CONTROL_OP_TIMEOUT (50)
#define SOFTWARE_RESET_ASSERT_TIME (1) /* really only needs 5us */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment