diff options
Diffstat (limited to 'firmware/drivers/power.c')
-rw-r--r-- | firmware/drivers/power.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c index 5c7b6ef514..c67dd8be05 100644 --- a/firmware/drivers/power.c +++ b/firmware/drivers/power.c | |||
@@ -119,7 +119,7 @@ void ide_power_enable(bool on) | |||
119 | if(on) | 119 | if(on) |
120 | { | 120 | { |
121 | #ifdef ATA_POWER_PLAYERSTYLE | 121 | #ifdef ATA_POWER_PLAYERSTYLE |
122 | if (read_rom_version() > 451) /* new players only */ | 122 | if (has_ata_power_control()) |
123 | { | 123 | { |
124 | or_b(0x10, &PBDRL); | 124 | or_b(0x10, &PBDRL); |
125 | touched = true; | 125 | touched = true; |
@@ -134,7 +134,7 @@ void ide_power_enable(bool on) | |||
134 | if(!on) | 134 | if(!on) |
135 | { | 135 | { |
136 | #ifdef ATA_POWER_PLAYERSTYLE | 136 | #ifdef ATA_POWER_PLAYERSTYLE |
137 | if (read_rom_version() > 451) /* new players only */ | 137 | if (has_ata_power_control()) |
138 | { | 138 | { |
139 | and_b(~0x10, &PBDRL); | 139 | and_b(~0x10, &PBDRL); |
140 | touched = true; | 140 | touched = true; |
@@ -166,7 +166,7 @@ bool ide_powered(void) | |||
166 | { | 166 | { |
167 | #if defined(NEEDS_ATA_POWER_ON) || defined(HAVE_ATA_POWER_OFF) | 167 | #if defined(NEEDS_ATA_POWER_ON) || defined(HAVE_ATA_POWER_OFF) |
168 | #ifdef ATA_POWER_PLAYERSTYLE | 168 | #ifdef ATA_POWER_PLAYERSTYLE |
169 | if (read_rom_version() > 451) /* new players only */ | 169 | if (has_ata_power_control()) |
170 | { | 170 | { |
171 | if ((PBCR2 & 0x0300) || !(PBIOR & 0x0010)) /* not configured for output */ | 171 | if ((PBCR2 & 0x0300) || !(PBIOR & 0x0010)) /* not configured for output */ |
172 | return false; /* would be floating low, disk off */ | 172 | return false; /* would be floating low, disk off */ |