summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-01-22 10:16:28 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-01-22 10:16:28 +0000
commitb70baf88403900e8058db9840a6efb933ab758df (patch)
treec2c71922d5b96445cb3fb89b535a13860c56ce68
parent7f587ee491f7f7aa698fb368469b8a987894a9cc (diff)
downloadrockbox-b70baf88403900e8058db9840a6efb933ab758df.tar.gz
rockbox-b70baf88403900e8058db9840a6efb933ab758df.zip
Backport r29106 to v3.7 branch. Fixes FS#11830.
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_7@29109 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/ata-pp5020.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/ata-pp5020.c b/firmware/target/arm/ata-pp5020.c
index c8ce148dd7..77886df9b3 100644
--- a/firmware/target/arm/ata-pp5020.c
+++ b/firmware/target/arm/ata-pp5020.c
@@ -106,7 +106,9 @@ void ata_dma_set_mode(unsigned char mode) {
106 int modeidx; 106 int modeidx;
107 107
108 (*(volatile unsigned long *)(0x600060C4)) = 0xC0000000; /* 80 Mhz */ 108 (*(volatile unsigned long *)(0x600060C4)) = 0xC0000000; /* 80 Mhz */
109#if !defined(IPOD_NANO)
109 IDE0_CFG &= ~0x10000000; 110 IDE0_CFG &= ~0x10000000;
111#endif
110 112
111 modeidx = mode & 7; 113 modeidx = mode & 7;
112 mode &= 0xF8; 114 mode &= 0xF8;
@@ -121,7 +123,9 @@ void ata_dma_set_mode(unsigned char mode) {
121 } else if (mode == 0x20 && modeidx <= ATA_MAX_MWDMA) 123 } else if (mode == 0x20 && modeidx <= ATA_MAX_MWDMA)
122 IDE0_PRI_TIMING1 = tm_mwdma[modeidx]; 124 IDE0_PRI_TIMING1 = tm_mwdma[modeidx];
123 125
126#if !defined(IPOD_NANO)
124 IDE0_CFG |= 0x20000000; /* >= 50 Mhz */ 127 IDE0_CFG |= 0x20000000; /* >= 50 Mhz */
128#endif
125} 129}
126 130
127#define IDE_CFG_INTRQ 8 131#define IDE_CFG_INTRQ 8