mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
7f587ee491
commit
b70baf8840
1 changed files with 4 additions and 0 deletions
|
@ -106,7 +106,9 @@ void ata_dma_set_mode(unsigned char mode) {
|
|||
int modeidx;
|
||||
|
||||
(*(volatile unsigned long *)(0x600060C4)) = 0xC0000000; /* 80 Mhz */
|
||||
#if !defined(IPOD_NANO)
|
||||
IDE0_CFG &= ~0x10000000;
|
||||
#endif
|
||||
|
||||
modeidx = mode & 7;
|
||||
mode &= 0xF8;
|
||||
|
@ -121,7 +123,9 @@ void ata_dma_set_mode(unsigned char mode) {
|
|||
} else if (mode == 0x20 && modeidx <= ATA_MAX_MWDMA)
|
||||
IDE0_PRI_TIMING1 = tm_mwdma[modeidx];
|
||||
|
||||
#if !defined(IPOD_NANO)
|
||||
IDE0_CFG |= 0x20000000; /* >= 50 Mhz */
|
||||
#endif
|
||||
}
|
||||
|
||||
#define IDE_CFG_INTRQ 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue