diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/ata.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 60b6a87488..40d3da2f98 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -1131,6 +1131,15 @@ int ata_init(void) | |||
1131 | or_b(0x02, &PAIORH); /* output for ATA reset */ | 1131 | or_b(0x02, &PAIORH); /* output for ATA reset */ |
1132 | or_b(0x02, &PADRH); /* release ATA reset */ | 1132 | or_b(0x02, &PADRH); /* release ATA reset */ |
1133 | PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */ | 1133 | PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */ |
1134 | |||
1135 | #ifdef HAVE_LCD_CHARCELLS | ||
1136 | if (read_rom_version() > 451) /* new player: power on the HD */ | ||
1137 | { | ||
1138 | PBCR2 &= ~0x0300; /* Set PB4 (IDE power) to GPIO */ | ||
1139 | or_b(0x10, &PBDRL); /* ... high */ | ||
1140 | or_b(0x10, &PBIORL); /* ... and output */ | ||
1141 | } | ||
1142 | #endif | ||
1134 | #elif defined HAVE_SCF5249 | 1143 | #elif defined HAVE_SCF5249 |
1135 | #endif | 1144 | #endif |
1136 | 1145 | ||