summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 3c58d1f27c..3f266f2c0b 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -795,6 +795,12 @@ int ata_init(void)
795 ata_enable(true); 795 ata_enable(true);
796 796
797 if ( !initialized ) { 797 if ( !initialized ) {
798 if (!ide_powered()) /* somebody has switched it off */
799 {
800 ide_power_enable(true);
801 sleep(HZ); /* allow voltage to build up */
802 }
803
798 if (coldstart) 804 if (coldstart)
799 { 805 {
800 /* Reset both master and slave, we don't yet know what's in */ 806 /* Reset both master and slave, we don't yet know what's in */