diff options
Diffstat (limited to 'firmware/target/arm/ata-pp5020.c')
-rw-r--r-- | firmware/target/arm/ata-pp5020.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/ata-pp5020.c b/firmware/target/arm/ata-pp5020.c index f8ca773132..022d1654d6 100644 --- a/firmware/target/arm/ata-pp5020.c +++ b/firmware/target/arm/ata-pp5020.c | |||
@@ -43,9 +43,9 @@ bool ata_is_coldstart() | |||
43 | void ata_device_init() | 43 | void ata_device_init() |
44 | { | 44 | { |
45 | /* From ipod-ide.c:ipod_ide_register() */ | 45 | /* From ipod-ide.c:ipod_ide_register() */ |
46 | outl(inl(0xc3000028) | (1 << 5), 0xc3000028); | 46 | IDE0_CFG |= (1<<5); |
47 | outl(inl(0xc3000028) & ~0x10000000, 0xc3000028); | 47 | IDE0_CFG &=~(0x10000000); /* cpu < 65MHz */ |
48 | 48 | ||
49 | outl(0x10, 0xc3000000); | 49 | IDE0_PRI_TIMING0 = 0x10; |
50 | outl(0x80002150, 0xc3000004); | 50 | IDE0_PRI_TIMING1 = 0x80002150; |
51 | } | 51 | } |