summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/pp/ata-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/pp/ata-target.h')
-rw-r--r--firmware/target/arm/pp/ata-target.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/target/arm/pp/ata-target.h b/firmware/target/arm/pp/ata-target.h
index 75570bf3cd..ddf4056db9 100644
--- a/firmware/target/arm/pp/ata-target.h
+++ b/firmware/target/arm/pp/ata-target.h
@@ -63,13 +63,15 @@
/* Maximum multi-word DMA mode supported by the controller */
#define ATA_MAX_MWDMA 2
-#ifndef BOOTLOADER
+#ifndef BOOTLOADER
/* The PP5020 supports UDMA 4, but it needs cpu boosting and only
* improves performance by ~10% with a stock disk.
* UDMA 2 is stable at 30 Mhz.
* UDMA 1 is stable at 24 Mhz.
+ *
+ * A slower mode is used on iPod 4Gs due to reported instabilities.
*/
-#if CPUFREQ_NORMAL >= 30000000
+#if CPUFREQ_NORMAL >= 30000000 && !defined(IPOD_4G)
#define ATA_MAX_UDMA 2
#elif CPUFREQ_NORMAL >= 24000000
#define ATA_MAX_UDMA 1